* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

/* =========ez is fontos!=========== */

body{
    overflow-x: hidden;
    
    
}

/* ========navigáció========== */

nav{
    position: relative;
    
}

.nav{
    position: fixed;
    top: 23px;
    right: -120px;
    z-index: 10000;
    display: flex;
    flex-direction: row;
    width: fit-content;
    transition: all .3s ease-in-out;
}

.nav .icon{
    transition: all .2s ease-in-out;
    width: 40px;
    height: 22px;
    cursor: pointer;
}

.nav .icon .line-top{
    position: absolute;
    width: 40px;
    height: 5px;
    background-color: #77867b;
    border-radius: 10px;
    
    
    top: 0;
}
.nav .icon .line-middle{
    position: absolute;
    width: 40px;
    height: 5px;
    background-color: #77867b;
    border-radius: 10px;
    /* transform: rotate(40deg); */
    transform-origin: center;
    
    top: 10px;
}
.nav .icon .line-bottom{
    position: absolute;
    width: 40px;
    height: 5px;
    background-color: #77867b;
    border-radius: 10px;
    
    
    top: 20px;
}


/* .nav img{
    
} */

.navbar ul{
    padding: 1.8rem;
    padding-inline-end: 2rem;
    background-color: #f2c546;
    border-radius: 20px;
    border: 4px solid #77867b;
}

.navbar ul li {
    list-style: none;
    padding: .5rem 0 .5rem 0;
    
}

.navbar ul li a {
    text-decoration: none;
    color: rgb(57, 57, 57);
    padding: .5rem 0 .5rem 0;
    font-weight: bold;
    text-shadow: 2px 2px 2px grey;
    font-size: 1.3rem;
}

.navbar ul li:nth-child(3){
    padding-block-end: 0;
}



@media screen and (max-width: 500px) {
    .navbar{
        top: 50px;  
    }

}