body {
    font-family: 'Comic Sans MS', sans-serif;
    background-color: #f5f7fa; 
    text-align: center;
    padding: 50px;
    color: #333;
}
#background-video {
    position: fixed; 
    top: 0;
    left: 0;
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    z-index: -1; 
}

.game-container {
    max-width: 400px;
    margin: 0 auto;
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, 120px);
    grid-template-rows: repeat(3, 120px);
    gap: 10px;
    margin: 20px auto;
    position: relative; 
}

.cell {
    background-color: #ffeb3b; 
    border: 4px solid #ff5722; 
    font-size: 3rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #333;
    transition: background-color 0.3s, transform 0.3s ease; 
}

.cell:hover {
    background-color: #ffd54f; 
    transform: scale(1.1); 
}

.cell.no-hover {
    pointer-events: none; 
    background-color: #ffeb3b; 
    transform: none; 
}

button {
    padding: 12px 25px;
    margin-top: 30px;
    background-color: #ff4081; 
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease; 
}

button:hover {
    background-color: #e91e63; 
    transform: scale(1.05); 
}

button:active {
    transform: scale(0.95);
}

.hidden {
    display: none;
}

#player-selection p, #status {
    font-size: 1.5rem;
    margin-top: 10px;
    color: #0f0101; 
}

.winner-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    font-weight: bold;
    color: #ff4081; 
    background-color: rgba(255, 255, 255, 0.8);
    padding: 20px;
    border-radius: 10px;
    z-index: 10; 
}
@media (max-width: 768px) {
    #backgroundVideo {
        width: 100vw;
        height: 100vh;
        object-fit: cover;
    }

    .btn {
        font-size: 18px;
        padding: 12px 24px;
    }
}

@media (max-width: 480px) {
    .btn {
        font-size: 16px;
        padding: 10px 20px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .btn {
        font-size: 20px;
        padding: 15px 30px;
    }
}

@media (min-width: 1025px) {
    .btn {
        font-size: 24px;
        padding: 20px 40px;
    }
}