/* Style for page Accident_prevention_quiz*/

/* Resetting default margin and padding for list elements */
ul {
    margin: 0;
    padding: 0;
}

/* Making sure HTML and body take full height of the viewport */
body, html {
    height: 100%;
}

/* Applying box-sizing border-box to all elements with padding */
* {
    box-sizing: border-box;
    padding: 3px;
}

/* Styling for the body */
body {
    font-family: "calibri";
    line-height: 1.6;
    background-color: #f4f4f4;
    text-align: right;
}

/* Styling for the header */
header {
    background-color: rgb(19, 26, 46);
    height: 15%;
    text-align: center;
    font-size: 20px;
}

/* Styling for the logo image */
.logo_img {
    height: 75%; 
    width: 15%;
    float: right;
    margin-right: 1%;
    margin-top: 1%;
}

/* Styling for the navigation */
nav {
    margin-top: 0.5%;
    margin-left: 15%;
}

/* Styling for list items */
li {
    display: inline;
}

/* Styling for login and sign-in links in the navigation */
.login_signin_nav {
    float: left;
    margin-left: 1%;
    margin-top: -4%;
}

/* Styling for links */
a {
    text-decoration: none;
    color: white;
}

/* Hover effect for links */
a:hover {
    border-bottom: 2px solid rgba(240, 219, 219, 0.436);
}

/* Styling for dropdown content */
.dropdown-content {
    display: none;
    position: absolute;
    font-size: 15px;
    left: 4%;
    width: 105%;
    background-color: rgb(19, 26, 46);
}

/* Styling for dropdown links */
.dropdown-content a {
    display: block;
    padding: 7%;
}

/* Hover effect for dropdown links */
.dropdown-content a:hover {
    border-bottom: none;
    background-color: rgba(240, 219, 219, 0.436);
}

/* Display dropdown content on hover */
.dropdown:hover .dropdown-content {
    display: block;
}

/* Styling for inactive links */
a[href="#"]:hover::after {
    content: "Link is not active"; 
    display: inline-block; 
    position: absolute;
    background-color: #333;
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    z-index: 1;
    margin-top: 20px;
    margin-right: -180px; 
}

/* Styling for the main content area */
.main_content {
    display: flex;
    justify-content: space-evenly;
    flex-wrap: wrap;
    padding: 20px;
    background-color: rgb(202, 183, 160);
    height: 100%;
    width: 100%;
}

/* Styling for quiz container */
#quiz {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    height: auto;
    width: 500px;
}

/* Styling for choices */
.choices {
    margin-top: 10px;
}

/* Styling for next button */
.next-btn {
    font-weight: bold;
    color: blue;
}

/* Styling for buttons */
button {
    display: block;
    margin-bottom: 10px;
    padding: 10px;
    width: 100%;
    text-align: right;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #fff;
}

/* Hover effect for buttons */
button:hover {
    background-color: #f0f0f0;
}

/* Styling for feedback */
#feedback {
    margin-top: 20px;
    font-weight: bold;
}

/* Styling for completed image */
.completed-image {
    width: 300px; 
    height: 300px; 
    border-radius: 5px;
    margin-top: 50px;
    margin-right: 80px;
}

/* Styling for h2 */
h2 {
    text-shadow: #333;
    margin-right: 15px;
}

/* Styling for footer */
footer {
    background-color: rgb(19, 26, 46);
    color: #fff;
    text-align: center;
    padding: 1%;
    width: 100%;
    height: 7%;
    display: block;
}

/* Styling for contact */
.contact {
    margin-top: -4%;
    margin-right: 90%;
    float: left;
}

/* Media query for smaller screens */
@media screen and (max-width: 900px) {
    /* Adjusting logo size */
    .link_logo {
        width: 30%;
        height: 80%;
        margin-left: auto;
    }

    /* Removing hover effect for logo */
    .link_logo:hover {
        border-bottom: none;
    }

    /* Adjusting logo image size */
    .logo_img {
        width: 100%;
        height: 100%;
    }

    /* Adjusting header for smaller screens */
    header {
        display: flex;
        align-items: center;
        font-size: 15px;
    }

    /* Adjusting login and sign-in navigation */
    .login_signin_nav {
        margin-left: auto;
    }

    /* Displaying list items as blocks */
    li {
        display: block;
    }

    /* Adjusting contact information */
    .contact {
        margin-top: -6%;
        font-size: 12px;
        margin-top: -55px;
    }

    /* Adjusting dropdown content width */
    .dropdown-content {
        left: 15%;
        width: 70%;
    }
}