body {
    background-color: #282828;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    justify-content: center;
    align-items: center;
}

button {
    background-color: #b58863;
    border: none;
    color: white;
    padding: 15px 32px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 4px 2px;
    cursor: pointer;
    border-radius: 5px;
}

button:hover {
    background-color: #a37c4a;
}

button:active {
    background-color: #8e6b3d;
}

span {
    color: white;
    font-size: 20px;
    font-weight: bold;
}

.modelLoading {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s, visibility 0.5s;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    opacity: 1;
    visibility: visible;

    transition: opacity 0.5s, visibility 0.5s;
}

.hidden {
    opacity: 0;
    visibility: hidden;
}

.overlay-content {
    background-color: #282828;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px 5px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.gameCode>button {
    background-color: #00000000;
    color: #b58863;

    font-size: 20px;
    font-weight: bold;

    padding: 0;

}

/* ================================
   GLASSMORPHISM GAME OVER OVERLAY
================================ */
/* ============================
   GLASSMORPHISM GAME CARD
============================ */

.overlay {
    position: absolute;
    inset: 0;
    background: transparent;
    /* ❌ no full-screen blur */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
    pointer-events: none;
    /* board still visible */
}

.overlay.hidden {
    display: none !important;
}

/* Floating glass card */
.overlay-content {
    pointer-events: auto;
    background: rgba(72, 137, 42, 0.18);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-radius: 18px;
    padding: 36px 50px;
    min-width: 320px;
    border: 1px solid rgba(240, 241, 215, 0.35);
    box-shadow:
        0 0 25px rgba(122, 148, 86, 0.7),
        inset 0 0 12px rgba(240, 241, 215, 0.25);
    text-align: center;
    color: #F0F1D7;
}

/* Title */
#gameOverText {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 18px;
    color: #fcffbd;
    text-shadow: 0 0 6px rgba(0, 0, 0, 0.8);
}

/* Game code row */
/* ============================
   GAME CODE ROW ALIGNMENT
============================ */

.gameCode {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 26px;
    color: #fcffbd;
    font-size: 25px;
    text-shadow: 0 0 6px rgba(0, 0, 0, 0.8);

}

/* "Your game" text */
.gameCode span,
.gameCode {
    line-height: 1;
}

/* Code button */
#gameCode {
    min-width: 90px;
    text-align: center;
    padding: 8px 16px;
    border-radius: 10px;
}


/* Glass buttons */
#restartButton,
#gameCode,
.overlay-content a,
#flipBoardButton,
#autoPlayButton,
#playAgainButton {
    background: rgba(240, 241, 215, 0.15);
    border: 1px solid rgba(240, 241, 215, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #F0F1D7;
    padding: 10px 18px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 18px;
    text-decoration: none;
    transition: 0.25s ease;
    box-shadow: 0 0 18px rgba(122, 148, 86, 0.6);
}

#restartButton:hover,
#gameCode:hover,
.overlay-content a:hover,
#flipBoardButton:hover,
#autoPlayButton:hover,
#playAgainButton:hover {
    background: rgba(122, 148, 86, 0.45);
    box-shadow: 0 0 28px rgba(122, 14);
}

/* Example for Delta logo */
.delta-text {
    font-family: "UnifrakturMaguntia", cursive;
    font-size: 2.5rem;
    /* adjust as needed */
    font-weight: bold;
    color: #ffffff;
    /* or whatever matches your UI */
    letter-spacing: 1px;
}

/* ===== 3 column chess layout ===== */
.board-wrapper {
    display: flex;
    gap: 24px;
}

/* Side panels */
.side-panel {
    display: flex;
    flex-direction: ;
    justify-content: ;
    width: 180px;
}

/* Left panel bottom alignment */
.left-panel {
    display: flex;
    flex-direction: column-reverse;
    padding-bottom: 18px;
}

/* Right panel top alignment */
.right-panel {
    display: flex;
    align-items: flex-start;
}

/* HUD cards */
.hud {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    background: rgba(240, 241, 215, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 14px 18px;
    color: #F0F1D7;
    box-shadow: 0 0 20px rgba(122, 148, 86, 0.7);
}

/* Avatar */
.hud .avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(240, 241, 215, 0.5);
    box-shadow: 0 0 10px rgba(122, 148, 86, 0.8);
}

/* Player name */
.hud .player-name {
    font-size: 18px;
    letter-spacing: 0.5px;
    text-align: center;
}

.hud .avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 1px solid rgba(240, 241, 215, 0.5);
    box-shadow: 0 0 6px rgba(122, 148, 86, 0.6);
    object-fit: cover;
}

.hud .player-name {
    font-size: 16px;
    letter-spacing: 0.5px;
}