/* styles.css */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Montserrat', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #00091b;
    color: #ffffff;
}

#game-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

.player {
    position: absolute;
    top: 0;
    height: 100%;
    transition: width 0.2s ease;
}

#player1 {
    background-color: #ff2e9a;
    width: 50%;
    left: 0;
}

#player2 {
    background-color: #0089b1;
    width: 50%;
    right: 0;
}

#overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
    backdrop-filter: blur(10px);
}

#game-info {
    text-align: center;
    z-index: 3;
    color: #ffffff;
}

#game-info h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: 1px;
}

#game-info p {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

#winner-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    opacity: 0;
    transition: opacity 0.3s ease;
    text-align: center;
    z-index: 3;
}

.winner {
    opacity: 1 !important;
}

.hidden {
    display: none;
}

#countdown {
    font-size: 1.5rem;
    margin-top: 1rem;
}

.restart-message {
    font-size: 1rem;
    margin-top: 0.5rem;
    opacity: 0.8;
}
