@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300&display=swap');

:root {
    --mobile_nav_bar_height: 50px;

}

* {
    transition: all 0.3s ease;
    font-family: 'Roboto', sans-serif;
}

h1 {
    font-family: 'Roboto', sans-serif;
}



html {
    scroll-behavior: smooth;
}

body {
    background-color: whitesmoke;
}

a.home-button {
    color: black;
    font-size: 26px;
    -webkit-tap-highlight-color: transparent;

     
}
a.home-button:hover {
    color: darkblue
}


.nav_links a {
    font-size: 24px;
    font-family:  Helvetica, sans-serif;
    text-decoration: none;
    color: black;
    transition: all 0.3s ease 0s;
    -webkit-tap-highlight-color: transparent;

}
.nav_links a:hover{
    color: darkblue;
}

.nav_links li ul a:hover{
    color: skyblue;
}
.nav_links a {
    color: black;
    transition: all 0.3s ease 0s;
}

li a.class {
    transition: all 0.3s ease 0s;
    color: white;
}

nav {
    position: fixed;
    top: 0px;
    padding: 0px;
    margin-left: 0px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: var(--mobile_nav_bar_height);
    width: 100%;
    left: 0px;
    right:0px;
    background-color: white;
    font-family: "Roboto", sans-serif;
}

nav ul {
    position: relative;
}
nav ul ul {
    border-radius: 6px;
    background-color: white;
    position: absolute;
    top: 45px;
    opacity: 0;
    visibility: hidden;
    padding: 0px;
    box-shadow: 0px 3px 10px black;
}

nav ul li:hover > ul{
    opacity: 1;
    visibility: visible;
}




nav ul ul li {
    position: relative;
    display: list-item;
    border-bottom: 1px solid rgba(0,0,0,0.3);
    float: none;
    width: 80px;
    margin: 10px;
    background-color: white;
    text-align: left;

}


p {
    padding: 0px;
    margin-top: 5px;
    margin-right: 0px;
    margin-bottom: 10px;
    margin-left: 10px;
    font-family: Arial, Helvetica, sans-serif;
}

ul.nav_links {
    display: flex;
    justify-content: space-around;
    width: 40%;
}
ul.nav_links a{
font-size: 24px;
color: black;
}

ul.nav_links li a{
    letter-spacing: 1px;
    font-size: 22px;
    color: black;
    }


li {
    
    text-decoration: none;
    list-style: none;
    margin-top: 10px;
}

a {
    font-family:  Helvetica, sans-serif;
    text-decoration: none;
    color: black;
    transition: all 0.3s ease 0s;
}
a:visited {
    color: auto
}
a:hover {
    color: skyblue;
}
.menu ul{
    margin: 0px;
    float: center;
    padding: 0px;
    background-color: white;
    background-clip: content-box;
    align-items: center;
    border-radius: 5px;
    margin-top: 60px;

}
.menu li{
    margin: 10px;
}
.menu {
    margin-left: 100px;
    margin-right: 100px;
    border-radius: 5px;
}

strong {
    margin-left: 5px;
    margin-top: 5px;
}
h2 {
    margin-bottom: 5px;
}

.burger {
    display: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;

}
.burger div{
    border-radius: 5px;
    width: 30px;
    height: 5px;
    margin: 5px;
    background-color: black;
    transition: all 0.3s ease-in 0s;

}

.content {
    position: inherit;
    top: 200px;
}
@keyframes navLinkFade {
    from{
        opacity: 0;
        transform: translateX(50px);
    }
    to{
            opacity: 1;
            transform: translateX(0);
    }
}

/*  */
@media screen and (max-width:620px){
    nav ul ul {
    background-color: white;
    position: inherit;
    top: 60px;
    opacity: 0;
    visibility: hidden;
    padding: 0px;
    margin-left: 250px;
    margin-right: 250px;
    max-height: 0px;
    animation: all 0.3s ease-out;

    }
    nav ul li:hover > ul{
        /* background-color: black; */
        margin-left: 150px;
        margin-right: 150px;
        opacity: 1;
        visibility: visible;
        max-height: fit-content;
    
    }

    body {
        overflow-x: hidden;
    }
    a.class {
        font-size: 22px;
    
    }

    a.home-button {
        font-size: 24px;
    }
    .burger {
        display: block;
        cursor: pointer;
    }   
    .menu {
        margin-left: 25px;
        margin-right: 25px;
        border-radius: 5px;
    }
    .menu select {
        background-color: white;
        border-radius: 5px;
        margin-left: 150px;
    }
    ul.nav_links {
        margin: 0px;
        width: 100%;
        height: 100%;
        display: inline-block;

    }


    .nav_links {
        position: fixed;
        right: 0px;
        height: 92vh;
        top: var(--mobile_nav_bar_height);
        background-color: white;
        margin-top: 0px;
        flex-direction: column;
        align-items: center;
        width:50%;
        display: flex;
        transform: translateX(100%);
        transition: transform 0.3s ease-in;
    }
    .nav_links li {
        opacity: 1;
        text-align: -webkit-center;
    }


}

.nav_active {
    transform: translateX(0%);
}

.small_screen_alert {
    width: fit-content;
    position: relative;
    top: 15px;
    color: red
    }

/*  */
@media screen and (max-height:1045px) {
    .menu ul {
        margin-top: 110px;
    }
}

@media screen and (max-height:980px) {
    .menu ul {
        margin-top: 100px;
    }
}

@media screen and (max-height:780px) {
    .menu ul {
        margin-top: 80px;
    }
}

@media screen and (max-height: 300px){
    a.home-button {
        font-size: 20px;
    }   
    ul.nav_links li a{
        font-size: 18px;
    }
    .burger div{
        width: 25px;
        height: 4px;

    
    }
}

@media screen and (max-width:600px){
    nav ul ul {
        box-shadow: none;
        margin: 0px;
        }

}


@media screen and (max-width:200px){
.menu {
    display: none;
}
nav {
    display: none;
}
.content {
    display: none;
}
}
/*  */
@media screen and (max-width:1024px) {
    .nav_links {
        width: 60%;
    }
    
}


/* _____________________  */
/* Skeleton Loading */
img {
    animation: skeleton-loading 1s linear infinite alternate;
}

@keyframes skeleton-loading {
        0%{
            background-color: hsl(200, 20%, 70%);
        }
        100%{
            background-color: hsl(200, 20%, 95%);
        }
    }
/*  */


/* Burger Animation */
.toggle .line1{
    transform: rotate(-45deg)translate(-6px,7px);
    transition: all 0.3s ease-in 0s;
}
.toggle .line2{
    transition: all 0.3s ease-in 0s;

opacity: 0;

}.toggle .line3{
    transition: all 0.3s ease-in 0s;

    transform: rotate(45deg)translate(-6px,-7px);

}
/*  */