/* Initial Background for Landing Page */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-image: url('img/landingquiz.jpg'); /* Landing page background */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Common Styles for Container */
.quiz-container {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 10px;
    max-width: 500px;
    width: 100%;
    border: 5px solid black; /* Outer black border */
    box-shadow: 0 0 0 5px yellow; /* Inner yellow border */
}

/* Hidden Class */
.hidden {
    display: none;
}

/* Landing Page Form Styles */
#landing-page input {
    display: block;
    width: 90%; /* Changed from 100% to 90% to provide space within the container */
    padding: 10px;
    margin: 10px auto; /* Center the input fields */
    border-radius: 5px;
    border: 2px solid #ddd;
}

#landing-page button {
    display: block;
    width: 90%; /* Reduced width to match input fields */
    padding: 10px;
    margin: 10px auto; /* Center the button */
    background-color: navy;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}


#landing-page button:hover {
    background-color: darkblue;
}

/* Quiz Page Styles */
#quiz-page {
    text-align: center;
}

.quiz-title {
    font-size: 24px;
    margin-bottom: 20px;
}

#question-container {
    margin-top: 20px;
}

.option {
    display: block;
    width: 100%;
    margin: 10px 0;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    background-color: #fff; /* This makes the options visible initially */
    transition: background-color 0.3s, color 0.3s;
}

.option:hover {
    background-color: black;
    color: white;
}

.correct {
    background-color: green;
    color: white;
}

.wrong {
    background-color: red;
    color: white;
}

#next-btn, #submit-btn {
    margin-top: 20px;
    padding: 10px 20px;
    background-color: navy;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

/* Additional Button Hover Effect */
button:hover {
    background-color: #555;
}

/* Loading Screen Styles */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: white; /* Set the background to white */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* Loader Spinner */
.loader {
    border: 8px solid #f3f3f3; /* Light gray background */
    border-top: 8px solid yellow; /* Yellow spinner */
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
