@import url(var.css);

/* header styling */
.navbar {
    display: flex;
    height: 60px;
    width: 100%;
    background-color: var(--main-color);
    justify-content: space-evenly;
    align-items: center;
    position: fixed; /* This makes it stick */
    top: 0;
    left: 0;
    z-index: 1000; /* Keeps navbar above other content */
}

.navbar img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}

.menubar {
    list-style: none;  /* Remove default bullet points */
    padding: 0;
    margin: 0;
    display: flex;  /* Make items appear in a row */
    font-family: Thasadith, sans-serif;
}

.menubar li {
    position: relative; /* Needed for dropdown positioning */
    align-items: center;
    justify-content: center;
}

.menubar a {
    display: flex;  /* Align text and icon properly */
    align-items: center;
    gap: 5px;  /* Add space between text and SVG */
    text-decoration: none;
    color: white;
    padding: 10px 20px;
}

.menubar a:hover {
    color: goldenrod;
}

/* Dropdown menu */
.dropdown-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: none;  /* Hide initially */
    position: absolute;
    top: 100%;  /* Position below the parent */
    left: 0;
    width: 150px;
}

.dropdown-menu li {
    width: 100%;
}

.dropdown-menu a {
    display: block;
    padding: 10px;
    color: white;
    background-color: var(--main-color);
}

.dropdown-menu a:hover {
    background-color: rgb(182,227,212)
}

/* Show dropdown on hover */
.dropdown:hover .dropdown-menu {
    display: block;
}

.menubar .dropdown-menu a:hover {
    background-color: #2a8c7f;  /* Hover background color for dropdown items */
    color: white;  /* Ensure the text color doesn't change on hover */
}

/* Main Content (middle part) styles*/
.main-content{
    width: 100%;
    /* Insert more here:*/
}

.illustration {
    width: 100%;
    margin-bottom: 100px;
}

/* footer styling */
.footer {
    width: 100%;
    height: 200px;
    background-color: #8b7b72;
    color: #fff;
    padding-top: 20px;
    align-items: start;
    justify-content: space-evenly;
    display: flex;
    font-family: Thasadith, sans-serif;
}

.footer img {
    max-width: 75%;
    max-height: 75%;
    object-fit: contain;
}

.footer-heading {
    color: goldenrod;
    margin-top: 0px;
    margin-bottom: 20px;
    font-family: inherit;
    font-size: 18px;
    line-height: 1.5;
}

.footer-content {
    font-size: 15px;
    line-height: 1.5;
}

.footer-content a:hover{
    text-decoration: underline;
}

@media (max-width:760px) {
    .footer {
        align-items: center;      
        flex-direction: column;
        height: auto;
        padding: 20px;
        text-align: center;
    }
    
    .footer p{
        margin-top: 10px;
    }

    .footer-heading{
        margin-top: 10px;
        margin-bottom: 0;
    }

    .footer img {
        display: none;
    }
}

