*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Noto sans';
    /* font-family: 'Poppins', sans-serif; */
    font-weight: bold;
}

:root{
    --thin-borders: 1px solid black;
    --x-color: #00ffff;
    --o-color: #ff00ff;
}

body{
    background: linear-gradient(135deg, #0a0a0f);
    overflow-x: hidden;
}

.app{
    width: 100%;
}


.score-board {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 20px;
    padding: 20px;
    border-radius: 20px;
}

/* Shared style for each score panel */
.score {
    width: 120px;
    background: rgba(15, 15, 25, 0.7);
    border-radius: 16px;
    padding: 20px 0;
    text-align: center;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 1px;
    transition: 0.3s;
    box-shadow: 0 0 12px rgba(255,255,255,0.1);
    cursor: default;
}

/* Player 1 (Cyan) */
.score.player1 {
    border: 2px solid #00ffff99;
    box-shadow: 0 0 20px #00ffff44;
}

.score.player1 h3 {
    color: #00ffff;
}

.score.player1 .points {
    font-size: 2em;
    color: #00ffff;
    text-shadow: 0 0 10px var(--x-color);
}

/* Draws (Neutral Purple Glow) */
.score.draws {
    border: 2px solid #8b5cf6aa;
    box-shadow: 0 0 20px #8b5cf633;
}

.score.draws h3 {
    color: #a78bfa;
}

.score.draws .points {
    font-size: 2em;
    color: #a78bfa;
    text-shadow: 0 0 10px #a78bfa;
}

/* Player 2 (Magenta) */
.score.player2 {
    border: 2px solid #ff00ff99;
    box-shadow: 0 0 20px #ff00ff44;
}

.score.player2 h3 {
    color: var(--o-color);
}

.score.player2 .points {
    font-size: 2em;
    color: var(--o-color);
    text-shadow: 0 0 10px var(--o-color);
}

/* Hover glow animation */
.score:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px currentColor;
}

.game{
    display: flex;
    flex-direction: row;
    justify-content: center;
    row-gap: 150px;
    width: 100%;
    margin-top: 120px;
    border-radius: 20px;
}

.cells-container{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    width: 230px;
    gap: 10px;
}

.cell{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 70px;
    height: 70px;
    background-color: rgba(20, 20, 30, 0.8);
    border-radius: 5px;
}

/* x - animation */
.x-symbol path {
    stroke-dasharray: 85;
    stroke-dashoffset: 85;
    animation: draw-x 0.3s ease-out forwards;
}

.x-symbol path.line2 {
    animation-delay: 0.15s;
}

@keyframes draw-x {
    to {
        stroke-dashoffset: 0;
    }
}

/* o - animation */
.o-symbol circle {
    stroke-dasharray: 213.6;
    stroke-dashoffset: 213.6;
    animation: draw-o 0.3s ease-out forwards;
}

@keyframes draw-o {
    to {
        stroke-dashoffset: 0;
    }
}

/* Game Prompts */
.game-mode-prompt, .bot-level-prompt, .result-prompt{
    overflow-x: hidden;
    width: fit-content;
    height: fit-content;
    margin: auto;
    padding: 70px 50px;
    background-color: rgba(15, 15, 25, 0.7);
    border: none;
}


.game-title, .bot-level-prompt h3, .result-prompt h3{
    margin-bottom: 15px;
    outline: none;
    color: var(--x-color);
    border: none;
    font-size: 2rem;
    text-align: center;
}

.game-modes-container, .bot-level-container{
    display: flex;
    flex-direction: column;
    width: 280px;
    height: fit-content;
    gap: 15px;
}

.game-mode{
    display: flex;
    justify-content: space-between;
    width: 100%;
    height: 45px;
    padding: 0px;
    background-color: inherit;
    border: none;
    text-align: center;
    text-transform: uppercase;
}   .game-mode:focus, .bot-level:focus, .result-prompt button:focus{
    outline: none;
}   .game-mode:hover, .bot-level:hover{
    border-radius: 5px;
    outline:  2px solid var(--x-color);
    outline-offset: 2px;
    cursor: pointer; 
    transition: outline 0.8s ease;
}

.avatar{
    border-radius: 50%;
    height: 100%;
}

.game-mode span{
    color: var(--x-color);
    position: relative;
    top: 15px;
}

/* Bot Level Prompt */

.bot-level{
    width: 100%;
    height: 45px;
    padding: 0px;
    color: var(--x-color);
    background-color: inherit;
    border: none;
    font-size: 1rem;
    text-align: center;
    transition-property: outline;
}

.bot-level:hover{
    outline: 2px solid;
}

.bot-level.medium{
    color: #a78bfa;
} .bot-level.medium:hover{
    outline-color: #a78bfa;
}

.bot-level.hard{
    color: var(--o-color)
} .bot-level.hard:hover{
    outline-color: var(--o-color);
}

/* Resulr Prompt */
.result-actions{
    display: flex;
    justify-content: space-around;
    width: 300px;
}

.result-actions button{
    width: 45%;
    padding: 10px 0;
    color: inherit;
    background-color: #00ffff;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
} .result-actions button:hover{
    outline: 2px solid #00ffff;
    outline-offset: 2px;
}

.result-actions .restart{
    background-color: #ff00ff;
}
.result-actions .restart:hover{
    outline: 2px solid #ff00ff;
}

#status{
    text-align: center;
}

/* Indicates Players Turn */
.player1-turn{
    outline: 1px solid #00ffff; 
    outline-offset: 3px;
}

.player2-turn{
    outline: 1px solid #ff00ff; 
    outline-offset: 3px;
}

.author{
    color: #00ffff;
    text-align: center;
    margin-top: 60px;
}

/* Mobile Responsiveness */

@media screen  and (max-width: 768px) {
    .score-board{
        gap: 10px;
    }
    .game-mode-prompt, .bot-level-prompt, .result-prompt{
        padding: 80px 20px;
    }

    .game-mode{
        height: 70px;
    }

    .game-mode span{
        position: relative;
        top: 25px;
        font-size: 14px;
    }

    .result-actions{
        width: 280px;    
    }

    .bot-level{
        font-size: 1.3rem;
    }

    .author{
        margin-top: 120px;
    }

}