/* General Styles */
body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    background-color: #000; /* Black background for the body */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden;
    position: relative; /* Ensure the footer is positioned relative to the body */
}

.container {
    position: relative;
    text-align: center;
    max-width: 800px;
    width: 100%;
    padding: 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 2; /* Container is above the watermark */
}

/* Watermark between container and background */
.watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-20deg);
    font-size: 160px;
    color: rgba(0, 0, 0, 0.1);
    pointer-events: none;
    font-family: 'Times New Roman', Times, serif;
    z-index: 1; /* Watermark is behind the container */
}

h1 {
    font-size: 2em;
    color: #fff; /* White text color for better contrast on black background */
}

#question-container {
    margin-bottom: 20px;
}

#choices {
    list-style-type: none;
    padding: 0;
}

.choice {
    background-color: #f8f8f8;
    margin: 10px 0;
    padding: 10px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.choice:hover {
    background-color: #ececec;
    transform: scale(1.05);
}

#next-btn {
    padding: 10px 20px;
    font-size: 1em;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#next-btn:hover {
    background-color: #2980b9;
}

#scoreboard {
    margin-top: 20px;
    font-size: 1.2em;
    color: #2c3e50;
}

/* Footer positioned at the bottom right */
.footer {
    position: absolute;
    bottom: 10px; /* Position the footer at the bottom */
    right: 10px; /* Align the footer to the right */
    padding: 10px;
    color: #FFA500; /* Orange text color */
    text-align: right;
    font-size: 14px;
    font-weight: bold; /* Make the text bold */
    z-index: 3; /* Ensure footer is above the watermark */
}

/* Modal Styling */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 3; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4); /* Black with opacity */
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
    text-align: center;
}

.modal-content h2 {
    font-size: 2em;
    margin-bottom: 20px;
}

.modal-content ul {
    list-style-type: none;
    padding: 0;
    margin: 10px 0;
}

.modal-content .btn-close {
    padding: 10px 20px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.modal-content .btn-close:hover {
    background-color: #2980b9;
}

/* Responsive Media Queries */

/* For Tablets and Larger Screens */
@media (max-width: 768px) {
    .container {
        width: 90%;
        padding: 15px;
        margin-bottom: 60px; /* Prevent footer overlap */
    }

    .watermark {
        font-size: 80px;
        margin-right: 80px;
        margin-bottom: 60px;
    }

    .footer {
        font-size: 12px;
        position: absolute; /* Keep the footer at the bottom */
        bottom: 0;
        right: 10px; /* Keep footer on the right */
        width: auto;
    }
}

/* For Mobile Devices */
@media (max-width: 480px) {
    .container {
        padding: 10px;
    }

    .watermark {
        font-size: 60px;
        margin-right: 60px;
        margin-bottom: 40px;
    }

    .footer {
        font-size: 10px;
        position: absolute; /* Keep the footer at the bottom */
        bottom: 0;
        right: 10px;
        text-align: right; /* Keep footer text right-aligned */
    }

    h1 {
        font-size: 1.5em;
    }

    .choice {
        padding: 12px;
        font-size: 1rem;
    }

    #next-btn {
        padding: 12px 25px;
        font-size: 1.1em;
    }
}
