* {
    margin: 0px;
    padding: 0px;
    box-sizing: border-box;
    font-family: 'Prosto One', cursive;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 8vh;
    background-color: rgb(21, 89, 148);
    margin: auto;
}

.logo {
    border-radius: 25%;
    width: 200px;
    padding: auto;
    margin: 30px;
}

.nav-links {
    display: flex;
    justify-content: space-between;
    width: 40%;
    padding: 10px;
    margin-right: 20px;
}

.nav-links li {
    list-style: none;
}

a {
    position: relative;
    text-decoration: none;
    color: white;
    font-size: 15px;
    padding: 0 10px;
}
a::after{
content:"";
position: absolute;
background-color: crimson;
height: 3px;
width: 0;
left: 0;
bottom: -10px;
transition: 0.5s;
}
a:hover{
    color: rgb(189, 45, 64);
}
a:hover:after{
    width: 100%;
}

.menu-btn {
    display: none;
    cursor: pointer;
}

.menu-btn div {
    width: 50px;
    height: 5px;
    border-radius: 20px;
    margin: 6px;
    background-color: white;

}


@media screen and (max-width:900px) {
    body {
        overflow-x: hidden;
    }

    .nav-links {
        position: absolute;
        right: 0px;
        height: 92vh;
        top: 15vh;
        background-color: rgb(21, 89, 148);
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 40%;
        transform: translateX(200%);
        transition: 0.5s ease-in;



    }

    .nav-links li {
        opacity: 0;
    }

    .menu-btn {
        display: block;
    }
    @keyframes navLinkFade {
        from {
            opacity: 0;
            transform: translateX(50px);
        }
    
        to {
            opacity: 1;
            transform: translateX(0px);
        }
    }
}

.nav-active {
    transform: translateX(15%);
}

