﻿body::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(5px 5px at 20px 30px, #eee, rgba(0,0,0,0)), radial-gradient(3px 3px at 40px 70px, #fff, rgba(0,0,0,0)), radial-gradient(3px 3px at 50px 160px, #ddd, rgba(0,0,0,0)), radial-gradient(3px 3px at 90px 40px, #fff, rgba(0,0,0,0)), radial-gradient(3px 3px at 130px 80px, #fff, rgba(0,0,0,0));
    background-repeat: repeat;
    background-size: 200px 200px;
    animation: particles-move 100s linear infinite;
    z-index: -1;
    opacity: 0.6;
}

@keyframes particles-move {
    from {
        background-position: 0 0;
    }

    to {
        background-position: 1000px 1000px;
    }
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 0% 50%, rgba(155, 89, 182, 0.15) 0%, transparent 40%), radial-gradient(circle at 100% 50%, rgba(52, 152, 219, 0.15) 0%, transparent 40%);
    z-index: -2;
}

#board {
    line-height: 0;
    height: 80vh;   
    aspect-ratio: 1 / 1;
    border: 8px solid #34495e;
    box-shadow: 0 0 30px rgba(0,0,0,0.7);
    border-radius: 10px;
}

button {
    vertical-align: top;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

    button:hover {
        transform: scale(1.02);
        filter: brightness(1.2);
    }

#gameOverModal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 0 50px rgba(0,0,0,0.8);
    text-align: center;
    z-index: 1000;
}

    #gameOverModal h2 {
        color: #e74c3c;
        margin-top: 0;
    }

    #gameOverModal button {
        background-color: #2ecc71;
        color: white;
        padding: 10px 20px;
        border-radius: 5px;
        font-size: 18px;
        margin-top: 20px;
    }

body {
    background-color: #2c3e50;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    justify-content: center;
    align-items:center;
    height: 100vh;
    margin: 0;
}

#turn-container {
    display: flex;
    justify-content: space-between;
    width: 560px;
    margin-bottom: 20px;
}

.player-label {
    color: #7f8c8d;
    font-size: 3.5vh;
    font-weight: bold;
    font-family: Arial, sans-serif;
    transition: all 0.3s ease;
}
    .player-label.active {
        color: white;
        text-shadow: 0 0 2vh white;
        transform: scale(1.2);
    }
#board {
    line-height: 0;
    border: 0.8vh solid #34495e;
}

.side-panel {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 4vh 2vw;
    border-radius: 2vh;
    color: white;
    text-align: center;
    font-size: 2.5vh;
    backdrop-filter: blur(10px);
}

.left {
    left: 5vw;
    border-left: 0.8vh solid white;
    box-shadow: 0 0 30px rgba(255,255,255,0.5);
}

.right {
    right: 5vw;
    border-right: 0.8vh solid #3498db;
    border-color: rgba(0,0,0,0.8);
    color: #000000e4;
    box-shadow: 0 0 30px rgba(0,0,0,0.7);
}

#credits {
    position: absolute;
    width: 35%;
    top: 100%;
    left: 2%;
    transform: translateY(-100%);
    color: black;
    font-size: x-large;
    text-shadow: 0 0 30px rgba(0,0,0,0.7);
}