/* =========================================================
   FREECELL - ÖZEL MASA TASARIMI
   ========================================================= */

.game-body {
    background-color: #1e6b3c;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    overflow-x: hidden;
}

.game-header {
    width: 100%;
    max-width: 950px;
    margin-top: 10px;
    background-color: #ffffff;
    border: 3px solid #000;
    border-radius: 8px;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 4px 4px 0px #000;
    z-index: 10;
}

.game-layout {
    display: flex;
    gap: 30px;
    margin-top: 30px;
    max-width: 1200px;
    align-items: flex-start;
}

#freecell-board {
    width: 850px; 
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.top-section {
    display: flex;
    justify-content: space-between;
}

#freecells, #foundations {
    display: flex;
    gap: 15px;
}

.tableau-container {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

/* KART YUVALARI */
.card-slot {
    width: 90px;
    height: 130px;
    border-radius: 8px;
    position: relative;
    background-color: rgba(0, 0, 0, 0.15);
    border: 2px solid rgba(0, 0, 0, 0.3);
    box-shadow: inset 3px 3px 6px rgba(0,0,0,0.4);
}

.freecell-slot::after {
    content: '✖'; /* Boş hücre olduğunu belli eden ufak bir ikon */
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    color: rgba(0,0,0,0.1);
}

.tableau-col {
    width: 90px;
    min-height: 130px;
    position: relative;
    border-radius: 8px;
    background-color: rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(0, 0, 0, 0.1);
}

/* KART TASARIMI */
.playing-card {
    width: 90px;
    height: 130px;
    background-color: #fff;
    border: 2px solid #000;
    border-radius: 8px;
    position: absolute;
    cursor: grab;
    user-select: none;
    transition: transform 0.1s ease;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.5);
    color: black;
}

.playing-card:hover { transform: translateY(-2px); }

.card-red { color: #e74c3c !important; }
.card-black { color: #2c3e50 !important; }

.card-corner {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.1;
}

.top-left { top: 5px; left: 6px; }
.bottom-right { bottom: 5px; right: 6px; transform: rotate(180deg); }

.card-center {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-size: 38px;
}

.game-ad {
    margin-top: 0; background-color: #fff; border: 3px solid #000; box-shadow: 4px 4px 0px #000;
}