/* General reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    /*Adds smooth scrolling instead of snapping to element*/
}

/*
:root{
    --color_ay: #CC3366;
    --large_font: 2vw;
    --light_gray: #EDEDED;
    --ay_blue: #93C2FF;
    --ay_logo_red: rgba(204, 51, 102, 0.7);

}
*/

/* variables*/

ul, ol, dl {
    padding: 0;
    margin: 0;
}

/* Body and header styles */
body {
    font-family: Arial, sans-serif;
/*    background-color: #f4f4f4;*/
}

/* Navbar styling */
header {
/*    background-color: #333;*/
    color: black;
    padding: 10px 0;
}

nav {
    display: flex;
    justify-content: flex-end;
/*    align-items: center;*/
    max-width: 1200px;
    margin: 0 0;
    padding: 0 0px;
}

.logo {
    font-size: 24px;
    font-weight: bold;
}

/* Menu styles */

ul.menu {
    list-style: none;
    display: flex;
    gap: 10px;
/*    flex-wrap: wrap; */
}

ul.menu li {
    line-height: 20px;
    position: relative;
}

ul.submenu-list li{
    line-height: 10px;
}

li:not(:last-child) {
    margin-bottom: 5px;
}

ul.menu a {
    color: black;
    text-decoration: none;
    font-size: 20px;
    padding: 8px 16px;
    display: block;
    transition: all 0.3s ease;
}

ul.menu li:hover > a {
/*    background-color: #555;*/
    background-color: var(--color_ay);/* #99FFFF;*/
    border-radius: 11px;
    color: white;
}

/* Submenu styles */
.submenu-list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    color: white;
    background-color: var(--ay_blue);
    border-radius: 5px;
    list-style: none;
    padding: 10px 0;
    min-width: 180px;
}

.submenu-list li a {
    padding: 10px;
    color: white;
    text-decoration: none;
    transition: background-color 1s ease;
}

.submenu-list li a:hover {
    background-color: var(--ay_blue);/* #99FFFF;*/
    border-radius: 11px;
    color: black;
/*    background-color: #555;*/
}

/*
@media screen and (min-width: 899px) {
    .submenu:hover .submenu-list {
        display: block;
        animation: slideIn 0.3s ease-out;
    }
}
*/

/* Mobile responsiveness */
@media screen and (max-width: 1199px) {
/*
    ul.menu {
        display: none;
    }
*/
    .menu {
        display: none;
        flex-direction: column;
        gap: 10px;
        position: absolute;
        top: 110px;
        right: 60px;
        background-color: var(--ay_blue);
        width: 200px;
        padding: 10px;
        border-radius: 5px;
/*
        -webkit-transition: max-height 1s;
        -moz-transition: max-height 1s;
        -ms-transition: max-height 1s;
        -o-transition: max-height 1s;
        transition: max-height 1s;*/
    }

    .menu li {
        width: 100%;
    }

    .menu a {
        padding: 10px;
        text-align: center;
    }

    ul.menu li {
        line-height: 10px;
    }

    ul.menu li a {
        color: white;
    }

/*    .submenu-list {
        position: relative;
        float: left;
    }
*/
    .submenu-list {
        position: relative;
        display: none;
        background-color: var(--light_gray);
    }

/*
  //
*/
    .submenu-list li a {
        //background-color: red;
        color: black !important;
    }

    .toggle-btn {
        display: block;
        cursor: pointer;
        align-self: flex-end;
    }

    .toggle-btn .bar {
        color: black;
        width: 25px;
        height: 3px;
        background-color: black;
        margin: 5px 0;
        transition: all 0.3s ease;
    }

    /* Hamburger to X animation */
    .toggle-btn.active .bar:nth-child(1) {
        transform: rotate(45deg);
        position: relative;
        top: 8px;
    }

    .toggle-btn.active .bar:nth-child(2) {
        opacity: 0;
    }

    .toggle-btn.active .bar:nth-child(3) {
        transform: rotate(-45deg);
        position: relative;
        top: -8px;
    }

    /* Show the menu when toggled */
/*    .menu.active {
        display: flex;
    }

    .menu:not(:active) {
        display: none;
    }
 */

/*    .submenu:hover .submenu-list {
        display: block;
    }*/
}

/* Animation for submenu */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
