/* General Styling */
body {
    margin: 0;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #000;
    font-family: 'Arial', sans-serif;
    color: #fff;
    flex-direction: column;
}

/* Header with YouTube Logo and Scoreboard */
#header {
    display: flex;
    justify-content: space-between;
    width: 90%;
    align-items: center;
    padding: 10px;
    box-sizing: border-box;
}

#youtubeLogo {
    height: 30px;
}

#homeBtn {
    background-color: #111;
    color: #fff;
    padding: 10px 20px;
    border: 2px solid cyan;
    font-size: 1em;
    cursor: pointer;
    transition: 0.3s;
    margin-left: 20px;
}

#homeBtn:hover {
    background-color: cyan;
    color: black;
}

/* Home Screen */
#homeScreen {
    text-align: center;
    padding: 20px;
}

h1 {
    font-size: 2.5em;
    font-style: italic;
    font-weight: bold;
    color: cyan;
}

.highlight {
    color: magenta;
    text-shadow: 0 0 10px cyan;
}

/* Button Styling */
button {
    background-color: #111;
    color: #fff;
    padding: 15px 30px;
    border: 2px solid cyan;
    font-size: 1.2em;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 10px;
}

button:hover {
    background-color: cyan;
    color: black;
}

/* Game Board Styling */
#gameBoard {
    text-align: center;
    padding: 20px;
}

h2 {
    font-size: 2em;
    color: magenta;
    text-shadow: 0 0 10px cyan;
}

.board {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 10px;
    justify-content: center;
    margin: 20px auto;
    width: 100%;
    max-width: 320px;
}

.cell {
    background-color: rgba(255, 255, 255, 0.1);
    border: 2px solid cyan;
    font-size: 3em;
    display: flex;
    justify-content: center;
    align-items: center;
    aspect-ratio: 1;
    cursor: pointer;
    transition: background-color 0.3s;
}

.cell:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

/* Winning Message */
#winningMessage {
    font-size: 1.5em;
    color: lime;
    text-shadow: 0 0 10px lime;
    margin-top: 20px;
}

/* Restart Button */
#restartBtn {
    background-color: #111;
    color: #fff;
    padding: 10px 20px;
    border: 2px solid cyan;
    font-size: 1.2em;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 20px;
}

#restartBtn:hover {
    background-color: cyan;
    color: black;
}

/* Hidden Class */
.hidden {
    display: none;
}

/* Media Queries for Mobile */
@media (max-width: 768px) {
    h1 {
        font-size: 2em;
    }

    button {
        padding: 10px 20px;
        font-size: 1em;
    }

    h2 {
        font-size: 1.5em;
    }

    .board {
        max-width: 280px;
    }

    .cell {
        font-size: 2.5em;
    }

    #winningMessage {
        font-size: 1.2em;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.5em;
    }

    button {
        padding: 8px 16px;
        font-size: 0.9em;
    }

    h2 {
        font-size: 1.2em;
    }

    .board {
        max-width: 240px;
    }

    .cell {
        font-size: 2em;
    }

    #winningMessage {
        font-size: 1em;
    }
}
