/* General Styles */
body {
    background: url('bg.png') no-repeat center center fixed;
    background-size: cover;
    color: white;
    font-family: Arial, sans-serif;
    text-align: center;
    margin: 0;
    padding: 0;
}

/* Main Container */
.container {
    width: 90%;
    max-width: 380px;
    margin: 50px auto;
    padding: 20px;
    border-radius: 15px;
    
}

/* HIA Logo */
.logo {
    width: 80px;
    margin-bottom: 10px;
}

/* Title Logo Image */
.title-logo {
    width: 100%;
    max-width: 280px;
    margin: 15px auto;
    display: block;
}

/* Form Styling */
form {
    text-align: left;
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center; /* Center the form fields */
}

/* Labels */
label {
    display: block;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 5px;
    width: 100%;
    max-width: 300px; /* Ensuring the label width matches input */
    text-align: left;
}

/* Input Fields */
input {
    width: 100%;
    max-width: 300px;
    padding: 14px;
    border-radius: 10px;
    border: none;
    margin-bottom: 20px; /* Increase margin to give proper spacing */
    font-size: 16px;
    background: #FFFFFF;
    color: black;
    font-weight: bold;
    text-align: left;
    display: block;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0px -4px 8px rgba(0, 0, 0, 0.2);
}


/* Start Button */
.start-btn {
    background-color: #FFFFFF;
    color: #E50914;
    padding: 12px 0;
    border: none;
    width: 100%;
    max-width: 206px;
    height: 45px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    border-radius: 50px;
    margin-top: 10px;
    transition: 0.3s;
    display: block;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    box-shadow: 0px -4px 8px rgba(0, 0, 0, 0.2);
}

.start-btn:hover {
    background-color: #F5F5F5;
}

/* Timer Box - Positioned to the right */
/* Timer Box - Positioned at the top-right inside question container */
.timer-box {
    top: 12px;
    right: 12px;
    font-size: 14px;
    font-weight: bold;
    color: #E50914; /* Red text */
    padding: 5px 10px;
    border-radius: 8px;
    text-align: right;
    margin-right: 20px;
}
#timer-text{
    color: #FFFFFF;
}
#timer{
    color: #E50914;
}

/* Main Quiz Container */
.quiz-container {
    width: 90%;
    max-width: 380px;
    margin: 50px auto;
    padding: 20px;
    background: rgba(10, 20, 60, 0.95);
    border-radius: 15px;
    box-shadow: 0px 0px 20px rgba(0,0,0,0.2);
    text-align: center;
    position: relative;
}

/* Question Box */
.question-box {
    background: rgba(255, 255, 255, 0.2);
    padding: 15px;
    border-radius: 15px;
    margin-top: 20px;
    text-align: center;
    margin-left: 20px;
    margin-right: 20px;
}

/* Question Title */
.question-box h2 {
    font-size: 16px;
    margin-bottom: 10px;
    font-weight: bold;
    text-align: left;
    padding-left: 10px;
}

/* Question Text */
.question-box p {
    font-size: 14px;
    margin-bottom: 15px;
    text-align: left;
    padding-left: 10px;
}

/* Answer Input Box */
textarea {
    width: 90%;
    max-width: 320px;
    padding: 12px;
    border-radius: 15px;
    border: none;
    font-size: 16px;
    background: #FFFFFF;
    color: black;
    box-shadow: 0px -4px 8px rgba(0, 0, 0, 0.2);
    display: block;
    margin: 10px auto;
    height: 80px;
}

/* Radio Button Container */
/* Radio Button Container */
.radio-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Align to the left */
    gap: 10px; /* Space between radio buttons */
    padding-left: 10px; /* Ensure some left spacing */
    width: 100%;
}

/* Updated styles for labels inside the new container */
.radio-container label {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: white;
    padding: 8px 12px; /* Ensure padding inside the container */
    border-radius: 10px;
    width: 100%;
    max-width: 280px;
    cursor: pointer;
    margin-bottom: -15px;
}

/* Hide default radio button */
.radio-container input[type="radio"] {
    appearance: auto; /* Ensures full control over styling */
    width: 16px;
    height: 16px;
    border: 2px solid white;
    border-radius: 50%;
    margin-right: 8px;
    background-color: transparent;
    position: relative;
}

/* Checked State - Red Inner Dot */
.radio-container input[type="radio"]:checked::before {
    content: "";
    width: 6px;
    height: 6px;
    background-color: #E50914;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Align label text beside radio button */
.radio-container label span {
    font-size: 14px;
    font-weight: normal;
    color: white;
    flex: 1; /* Aligns text properly */
    line-height: 1.4;
    padding-bottom: 15px; /* Removed extra padding */
}

/* Ensure form alignment */
#quizForm {
    display: flex;
    flex-direction: column;
    align-items: center; /* Keeps everything properly centered */
    width: 100%;
}


/* Next Button */
.next-btn {
    background-color: #FFFFFF;
    color: #E50914;
    padding: 12px 0;
    border: none;
    width: 100%;
    max-width: 206px;
    height: 45px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    border-radius: 50px;
    margin-top: 10px;
    transition: 0.3s;
    display: block;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    box-shadow: 0px -4px 8px rgba(0, 0, 0, 0.2);
}

.next-btn:hover {
    background-color: #F5F5F5;
}
/* Footer Logo Styling */
.footer-logo {
    text-align: center;
    position: relative; /* Change from absolute to relative */
    margin-top: 20px;  /* Add some space above */
    padding-bottom: 20px;
    width: 100%;
}
.footer-logo-thankyou {
    display: flex;
    justify-content: center; /* Center horizontally */
    align-items: center; /* Align vertically */
    position: absolute;
    bottom: 20px; /* Adjust spacing from bottom */
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
}

/* Footer Logo Image */
.footer-logo .logo {
    width: 80px; /* Default width */
    max-width: 100px; /* Prevents excessive scaling */
    height: auto;
}
/* Thank You Container Styling */
.thankyou-container {
    background: rgba(255, 255, 255, 0.1); /* Light transparent white background */
    border-radius: 15px; /* Smooth rounded corners */
    padding: 20px; /* Adjust padding */
    text-align: center; /* Center the text */
    color: #ffffff; /* Ensure text is white */
    width: 80%; /* Adjust width to fit mobile */
    max-width: 320px; /* Prevent excessive scaling */

    /* Center the container in the parent */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Thank You Text */
.thankyou-container h2 {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 10px;
}

.thankyou-container p {
    font-size: 14px;
    line-height: 1.5;
}

/* Responsive Styling */
@media screen and (max-width: 480px) {
    .thankyou-container {
        width: 90%;
        padding: 15px;
    }
}


/* Responsive Adjustments */
@media screen and (max-width: 768px) {
    .container {
        max-width: 90%;
        padding: 15px;
    }

    .title-logo {
        max-width: 260px;
    }

    input {
        font-size: 14px;
        padding: 12px;
        max-width: 280px; /* Limit width on smaller screens */
    }

    .start-btn {
        font-size: 16px;
        padding: 10px 0;
        margin-top: 50px;
    }
    .quiz-container {
        max-width: 90%;
        padding: 15px;
    }

    .question-box h2, .question-box p {
        font-size: 14px;
    }

    textarea {
        font-size: 14px;
        padding: 10px;
        max-width: 280px;
    }

    .next-btn {
        font-size: 16px;
        padding: 10px 0;
    }

    .timer-box {
        top: 10px;
        right: 10px;
        font-size: 12px;
        padding: 5px;
        margin-right: 20px;
    }
     .footer-logo {
        bottom: 5px;
    }
    
    .footer-logo .logo {
        width: 15vw; /* Slightly larger for smaller screens */
        max-width: 70px;
    }
}

@media screen and (max-width: 480px) {
    .container {
        width: 95%;
        padding: 10px;
        margin-top: 20px;
    }

    .logo {
        width: 70px;
    }

    .title-logo {
        max-width: 220px;
    }

    input {
        font-size: 13px;
        padding: 12px;
        max-width: 280px; /* Prevent input from going full width */
    }

    .start-btn {
        font-size: 14px;
        padding: 12px;
        max-width: 206px;
        margin-top: 50px;
    }
    .footer-logo {
        bottom: 0;
    }

    .footer-logo .logo {
        width: 18vw; /* Larger for very small screens */
        max-width: 60px;
    }
}
