html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

body {
    background-color: #1c1c1c;
    color: #f0f0f0;
}

main {
    flex: 1;
}

.navbar {
    background-color: #222;
}

.navbar-brand,
.nav-link {
    color: #f8f9fa !important;
}

.nav-link:hover {
    color: #ffc107 !important;
}

.form-control {
    background-color: #2d2d2d;
    color: white;
    border: 1px solid #444;
}

.form-control::placeholder {
    color: #aaa;
}

.form-label {
    color: #ffc107;
}

.contact-box {
    background-color: #2c2c2c;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
}


.hero {
    background-color: #2d2d2d;
    padding: 60px 20px;
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    color: #ffc107;
}

.event-card {
    background-color: #2c2c2c;
    border: none;
}

.event-card:hover {
    background-color: #343a40;
}

.event-card img {
    height: 200px;
    object-fit: cover;
}

.oyun-kutu {
    background-color: #2d2d2d;
    padding: 20px;
    border-radius: 12px;
}

.oyun-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
    max-width: 320px;
    margin: 20px auto;
}

.kutu {
    width: 50px;
    height: 36px;
    background-color: transparent;
    border: 2px solid #555;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    user-select: none;
    border-radius: 6px;
}

.kutu.secilen {
    border-color: yellow;
}

.kutu.etraf5 {
    box-shadow: 0 0 0 3px #3498db inset;
}

.kart-secim-wrapper {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    max-width: 320px;
    margin: 20px auto 0;
}

.kart-btn {
    width: 50px;
    height: 36px;
    background-size: cover;
    background-position: center;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0;
    padding: 0;
    position: relative;
}

.kart-sayac {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    color: #ccc;
    pointer-events: none;
}

.kart-btn[data-kart="1"] {
    background-image: url("../img/kart_1.png");
}

.kart-btn[data-kart="2"] {
    background-image: url("../img/kart_2.png");
}

.kart-btn[data-kart="3"] {
    background-image: url("../img/kart_3.png");
}

.kart-btn[data-kart="4"] {
    background-image: url("../img/kart_4.png");
}

.kart-btn[data-kart="5"] {
    background-image: url("../img/kart_5.png");
}

.kart-btn[data-kart="K"] {
    background-image: url("../img/kart_k.png");
}

.kart-btn:disabled {
    filter: grayscale(100%) opacity(0.5);
    cursor: not-allowed;
}

.kontrol-btnlar {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.buton-gorsel {
    width: 70px;
    height: 35px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    border: none;
    cursor: pointer;
    font-size: 0;
    padding: 0;
    border-radius: 6px;
}

.site-footer {
    background-color: #111;
    color: #f0f0f0;
    font-size: 14px;
    border-top: 1px solid #333;
    padding: 15px 0;
    text-align: center;
}

.tas-satir {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    margin: 8px 0 14px;
}

.tas-kutu {
    display: inline-block;
    position: relative;
    background: transparent;
    border: 0;
    padding: 0;
    margin: 0;
    cursor: pointer;
    outline: none;
    line-height: 0;
    /* alt satır boşluğunu kaldır */
    font-size: 0;
    /* olası metin kalıntısını yok et */
    user-select: none;
    vertical-align: top;
}

.tas-kutu.pasif {
    opacity: 0.3;
    filter: grayscale(1);
}

.tas-kutu:focus-visible {
    outline: 2px dashed #ffc107;
    outline-offset: 2px;
    border-radius: 6px;
}

.tas-kutu img {
    width: 56px;
    height: 78px;
    object-fit: contain;
    display: block;
    /* img altındaki boşluğu tamamen kaldırır */
    -webkit-user-drag: none;
}

.tas-kutu.pasif img {
    filter: grayscale(1);
    opacity: .35;
}

.kontroller {
    display: flex;
    justify-content: center;
    margin-block-end: 25px;
}

/* --- alt kombinasyon panelleri (resimdeki görünüm) --- */
.okey-panel {
    background: #f0e1c3;
    /* bej */
    border: 1px solid #b98f5d;
    border-radius: 4px;
    box-shadow: 0 1px 0 #fff inset;
}

.okey-panel-head {
    background: #7a1c16;
    color: #fff;
    text-align: center;
    font-weight: 700;
    padding: 8px 6px;
    line-height: 1.2;
    border-top-left-radius: 3px;
    border-top-right-radius: 3px;
}

.okey-panel-head small {
    font-weight: 600;
    opacity: .9;
}

.okey-panel-body {
    padding: 8px;
}

.okey-panel-foot {
    text-align: center;
    color: #5f5038;
    font-style: italic;
    padding: 4px 6px 8px;
    font-size: 12px;
}

/* satır: 3 taş + sağda puan */
.combo-row {
    display: grid;
    grid-template-columns: auto 46px;
    /* sağdaki puan kolonu */
    align-items: center;
    gap: 8px;
    padding: 6px 6px;
    border-bottom: 1px solid #dec8a2;
}

.combo-row:last-child {
    border-bottom: none;
}

.combo-tiles {
    display: flex;
    gap: 4px;
}

.combo-puan {
    text-align: right;
    color: #3d2f1a;
    font-weight: 700;
    font-size: 13px;
}

/* küçük taş görselleri */
.combo-tile {
    width: 28px;
    height: 40px;
    display: inline-block;
}

.yenile-btn {
    width: 78px;
    /* taş görselinin boyutuna göre ayarla */
    height: 56px;
    background: url('/img/yenile.png') no-repeat center center;
    background-size: cover;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    display: inline-block;
}

.yenile-btn:hover {
    transform: scale(1.05);
    transition: 0.2s;
}


.tas-sira {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.reset-btn {
    margin-top: 30px;
}

.event-card.small {
    background-color: #1e1e1e;
    border: none;
    font-size: 0.85rem;
}

.event-card.small .card-img-top {
    height: 100px;
    object-fit: cover;
}

.event-card.small .card-body {
    padding: 10px;
}

.event-card.small .card-title {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.event-card.small .btn {
    padding: 4px 10px;
    font-size: 0.8rem;
}

.event-card.disabled {
    pointer-events: none;
    /* hiçbir şeye tıklanamaz */
    opacity: 0.6;
    /* genel şeffaflık */
}

.event-card.disabled img {
    filter: grayscale(100%) brightness(80%);
    opacity: 0.7;
}

.text-sag {
    text-align: right;
}

#yardimPopup ul {
    list-style: none;
    padding-left: 0;
}

#yardimPopup li::before {
    content: "\f054";
    /* Font Awesome arrow icon */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: #ffc107;
    margin-right: 8px;
}

#yardimPopup {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -20%);
    }

    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

.yardim-div-class {
    display: flex;
    padding: 15px
}


@media (max-width:480px) {
    .combo-tile {
        width: 24px;
        height: 34px;
    }

    .okey-panel-body {
        padding: 6px;
    }

    .tas-kutu img {
        width: 30px;
        height: 42px;
    }

    .yenile-btn {
        width: 42px;
        height: 30px;
    }
}

@media (max-width:768px) {
    .tas-kutu img {
        width: 40px;
        height: 56px;
    }

    .yenile-btn {
        width: 56px;
        height: 40px;
    }
}

@media (max-width:360px) {
    .tas-kutu img {
        width: 40px;
        height: 56px;
    }

    .yenile-btn {
        width: 56px;
        height: 40px;
    }
}