/* Resetting default margin and padding for consistent layout */
body,
h1,
h2,
p,
ul {
    margin: 0;
    padding: 0;
}

/* Making sure the body and HTML elements take up the full height of the viewport */
body, html{height: 100%;}

/* Box-sizing set to border-box for consistent sizing */
*{box-sizing: border-box; padding:3px}

/* Setting default font family, line-height, and background color for the body */
body {
    font-family: "calibri";
    line-height: 1.6;
    background-color: #f4f4f4;
}

/* Styling the header section */
header {
    background-color:rgb(19, 26, 46);
    height: 15%;
    text-align: center;
    font-size: 20px;
}

/* Styling the logo */
.logo_img
{
    height: 75%; 
    width: 15%;
    float: right;
    margin-right: 1%;
    margin-top: 1%;
}

/* Styling the main navigation */
nav{
    margin-top: 0.5%;
    margin-left: 15%;
}

/* Styling the list items */
li {
    display: inline;
    
}

/* Styling the login/sign-in navigation */
.login_signin_nav{
    float: left;
    margin-left: 1%;
    margin-top: -4% ;
}

/* Styling the links */
a {
    text-decoration: none;
    color: white;
}

/* Styling the links on hover */
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%;
}

/* Styling for dropdown links on hover */
.dropdown-content a:hover {
    border-bottom: none;
    background-color: rgba(240, 219, 219, 0.436);
}

/* Displaying dropdown content on hover */
.dropdown:hover .dropdown-content {
    display: block;
}

/* CSS 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; /* Adjust the distance from the link */
}

/* Styling for the main content section */
.main_content {
    display: flex;
    justify-content: space-evenly;
    flex-wrap: wrap;
    padding: 20px;
    background-color: rgb(202, 183, 160);
}

/* Styling for headings */
h2 {
    text-align: right;
    color: black;
}

.display_name{
    font-weight: bold;
    color:rgb(10, 91, 94);
    font-size: 20px;
}

/* Styling for the about us section */
.about_us_sec {
    width: 100%;
    height: 40%;
    text-align: right;
    font-size: 18px;
    margin-bottom: 2%;
}

/* Styling for about us image */
.about_us_img {
    width: 60%;
    height: 100px;
    margin-right: 19%;
    border-radius: 15%;
}

/* Styling for accident section */
.accident_sec {
    width: 30%;
    height: 30%;
    text-align: right;
}

/* Styling for accident image */
.accident_img {
    width: 60%;
    height: 150px;
    margin-right: 20%;
    margin-top: 5%;
    border-radius: 30%;
}

/* Styling for theory and emergency section */
.theory_emergency_sec {
    width: 30%;
    height: 30%;
    text-align: right;
    border: dotted black;
    border-width: 0px 0px 0px 3px;
}

/* Styling for theory image */
.theory_img {
    width: 40%;
    height: 100px;
    margin-right: 20%;
    margin-top: 15%;
}

/* Styling for emergency image */
.emergency_img {
    width: 40%;
    height: 150px;
    margin-right: 20%;
    margin-top: 20%;
    border-radius: 50%;
}

/* Styling for the footer */
footer {
    background-color: rgb(19, 26, 46);
    color: #fff;
    text-align: center;
    padding: 1%;
    width: 100%;
    height: 7%;
    display: block;
    font-family: 'Times New Roman', Times, serif;
    direction: ltr;
}

/* Styling for the contact link */
.contact {
    margin-top: -2%;
    margin-right: 90%;
    float: left;
}


/* Media query for smaller screens */
@media screen and (max-width: 900px) {

    /* Styling of the logo in smaller screens */
    .link_logo{
       width: 30%;
       height: 80%;
       margin-left: auto;
    }

    .link_logo:hover {
        border-bottom: none;
    }

    .logo_img{
        width: 100%;
        height: 100%;
    }

    /* Adjusting header styles for smaller screens */
    header {
        display: flex;
        align-items: center;
        font-size: 15px;
    }

    /* Adjusting login/sign-in navigation position */
    .login_signin_nav {
        margin-left: auto;
    }

    /* Changing list item display to block for smaller screens */
    li {
        display: block;
    }

    /* Adjusting contact link position and font size */
    .contact {
        margin-top: -30px;
        font-size: 12px;
    }

    /* Adjusting size and positioning of accident image */
    .accident_img {
        height: 80px;
        width: 50%;
        margin-right: 25%;
    }

    /* Adjusting size and positioning of theory and emergency images */
    .theory_img,
    .emergency_img {
        margin-top: 10%;
        margin-right: 35%;
        height: 70px;
        width: 30%;
    }

    /* Adjusting width and border width for theory and emergency section */
    .theory_emergency_sec, .accident_sec {
        width: 100%;
        border-width: 0;
    }

    /* Adjusting dropdown content width */
    .dropdown-content {
        left: 15%;
        width: 70%;
    }
}

