/* Style for page Traffic_signs*/

body,
h2,
h3,

/* Resetting default margin and padding for list elements */
ul {
    margin: 0;
    padding: 0;
}

/* Ensuring 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;
}

/* 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;
}

/* 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 area */
.main_content {
    display: flex;
    justify-content: space-evenly;
    flex-wrap: wrap;
    padding: 20px;
    background-color: rgb(202, 183, 160);
    width: 100%;
}

/* Styling for h2 */
h2 {
    color: black;
    text-decoration: underline;
    font-weight: bold;
}

/* Styling for h3 */
h3 {
    color: black;
    font-weight: bold;
    text-decoration: underline;
    margin-right: 150px;
}

/* Styling for the traffic section */
.Traffic_sec {
    width: 100%;
    height: 40%;
    text-align: center;
    font-size: 18px;
    margin-bottom: 2%;
}

/* Styling for traffic image */
.Traffic_img {
    width: 75%;
    height: 100%;
    margin-right: 0%;
}

/* Styling for the warning signs section */
.warning_signs_sec {
    width: 100%;
    height: 40%;
    text-align: center;
    margin-right: -10%;
}

/* Styling for image container */
.image-container {
    display: inline-block;
    position: relative;
}

/* Styling for image inside container */
.image-container img {
    display: block;
    width: 270px;
    height: 270px;
    margin-right: 150px;
}

/* Styling for image container overlay */
.image-container-overlay {
    position: absolute;
    top: 55%;
    margin-right: 22%;
    margin-left: 12%;
    transform: translate(-20%, -50%);
    background-color: rgba(255, 255, 255, 0.8);
    padding: 10px;
    border-radius: 5px;
    display: none;
}

/* Hover effect for image container overlay */
.image-container:hover .image-container-overlay {
    display: block;
}

/* Styling for fixed button */
.fixed-button {
    position: fixed;
    bottom: 50px;
    right: 10px;
    background-color: #007bff;
    color: white;
    padding: 1% 2%;
    border-radius: 5px;
    font-size: 16px;
    text-align: center;
    margin: 10px;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

/* Hover effect for fixed button */
.fixed-button:hover {
    background-color: #0056b3;
}

/* 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) {
    /* 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 image size for smaller screens */
    .image-container img {
        width: 180px;
        height: 180px;
    }

    /* Adjusting image container overlay position and size */
    .image-container-overlay {
        position: absolute;
        margin-right: 30%;
        max-height: 170px;
        width: 200px;
        font-size: 12px;
    }

    /* Flexbox adjustments for smaller screens */
    header {
        display: flex;
        align-items: center;
        font-size: 15px;
    }

    .login_signin_nav {
        margin-left: auto;
    }

    li {
        display: block;
    }

    .contact {
        margin-top: -55px;
        font-size: 12px;
        
    }

    /* Adjusting dropdown content width */
    .dropdown-content {
        left: 15%;
        width: 70%;
    }

    /* Adjusting fixed button size and position */
    .fixed-button {
        right: 5px;
        height: 100px;
        width: 60px;
    }
}

