body {
    font-family: "Arial", sans-serif;
    margin: 0;
    display: flex;
    flex-direction: column; /* Stack elements vertically */
    justify-content: center;
    align-items: center;
    /* min-height: 100vh; */
    width: 100vw;
    background-color: black;
}

.container {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 5px;
    height: 100%;
    width: 100%;
    margin-bottom: 80px; /* Adds space to the bottom of the game board */
}

.category-column {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.category {
    background: linear-gradient(135deg, #4c669f, #3b5998, #192f6a);
    color: gold;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 8px;
    border: 2px solid black;
    padding: 10px;
    height: 80px;
}

.question {
    background-color: #007BFF;
    color: gold;
    border: 1px solid black;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 1.5rem;
    font-weight: bold;
    transition: background-color 0.3s ease;
    width: 100%;
    height: 100px;
}

.question:hover {
    background-color: #0056b3;
}

.question:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.question-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 600px;
    height: auto;
    background: white;
    padding: 20px;
    box-shadow: 0 0 20px rgb(0 0 0 / 50%);
    border-radius: 12px;
    overflow: auto;
}

.answer-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.answer-buttons button {
    border: 1px solid black;
    padding: 10px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
}

.players {
    display: flex;
    justify-content: space-around;
    position: fixed; /* Changed from absolute to fixed */
    bottom: 0;
    width: 100%;
    background-color: #333;
    padding: 10px;
    z-index: 10; /* Ensures it stays on top of other content */
}


.player {
    color: white;
}

.title-container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
}

.logo {
    text-align: right;
    margin-right: 20px; /* Add some space between the logo and text */
}

.title-text {
    text-align: left;
    color: gold;
}

h1 {
    margin: 0;
    font-size: 2rem;
    font-weight: bold;
    color:gold;
}


#winner-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 700px !important;
    height: 700px !important;
    background: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background: white;
    margin: 15% auto;
    padding: 20px;
    width: 80%;
    text-align: center;
}


/* Media Queries for Responsive Design */
@media (max-width: 768px) {
    .container {
        grid-template-columns: repeat(3, 1fr);
        margin-bottom: 100px; /* Extra bottom margin for smaller screens */
    }

    .question {
        height: 80px;
        font-size: 1rem;
    }

    .category {
        height: 60px;
        font-size: 1rem;
    }

    .answer-buttons {
        flex-direction: column;
        gap: 10px;
        margin-top: 10px;
    }

    .answer-buttons button {
        width: 100%;
        padding: 15px;
    }

    .players {
        padding: 15px;
        font-size: 0.9rem; /* Adjusts font size for mobile */
    }
}

@media (max-width: 480px) {
    .container {
        grid-template-columns: repeat(2, 1fr);
        margin-bottom: 120px; /* Even more space for smaller screens */
    }

    .question {
        height: 60px;
        font-size: 0.9rem;
    }

    .category {
        height: 50px;
        font-size: 0.9rem;
    }

    .question-modal {
        width: 90%;
        max-width: 400px;
    }
    
    .players {
        padding: 20px;
        font-size: 0.8rem; /* Further adjust font size for mobile */
    }
}
