
:root {
    box-sizing: border-box;

    --palevioletred-color: rgb(255, 255, 255);

}
*,

*::before {
    box-sizing: inherit;
    margin: 0;
    padding: 0;
}
header ul li a{
    text-decoration: none;
    color: rgb(199, 186, 151);
    list-style: none;
    /* outline: none; */
}
header h1 a{
    padding-left: 70px;
    text-decoration: none;
    color: rgb(233, 231, 223);
    list-style: none;
    /* outline: none; */
}
header {
    /* change the padding or add container while the width goes large */
    width: 100%;
    padding: 0.5rem;
    height: 50px;
    background: rgb(35, 35, 35);
    overflow: hidden;
    position:sticky;
    top: 0; 
    z-index: 10;
    display: flex;
    justify-content:space-between;
    align-items:center;
    font-family: "josefin sans", "helvetica", sans-serif;
    font-size: 1.3rem;

}
header input {
    display:none;
    /* visibility: hidden; */
}

.logo {
    font-size: 25px;   
}

.nav_menu ul {
    float: right;
    margin-right: 5rem;
}


.nav_menu a {
    position: relative;
    padding: 0.5em 0 .5em 0;
    transition: 350ms ease-in-out ;
}

.nav_menu a:hover {
    border-bottom: 2px solid var(--palevioletred-color);
    color: var(--palevioletred-color)
}

/* media queries */

.nav_menu {
        all: unset;
    }
nav ul li{
        line-height: 35px;
        margin: 5px;
        display:inline-block;
}
.nav_menu a::after{
        content: "";
        position: absolute;
        top: 1.8em;
        left: 0;
        height: 3px;
        width: 100%;
        background: var(--palevioletred-color); 
        transform: scaleX(0);
        transform-origin: center;
        transition: transform 350ms ease-in-out;
        -webkit-transition: transform 350ms ease-in-out;
        
} 

.nav_menu a:hover::after{
        transform: scaleX(1);
 }

 .nav_menu a:hover {
        border-style: none;
 }


/* button */
.checkbtn{
    font-size: 25px;
    color: white;
    float: right;
    line-height: 40px;
    margin-right: 20px;
    cursor: pointer;
    display: none;
}
#check{
    display: none;
}

@media only screen and (max-width: 58.75em) {
    .menu li a {
      font-size: 1rem;
    }
    h1 .logo{
        font-size: 30px;
        padding-left: 50px;
    }

  }
@media (max-width: 58em) {
    .checkbtn{
        display: block;
    }
    .logo{
        font-size: 25px;
        padding-left: 10px;
        margin-right: auto;
    }
    ul{
        position: fixed;
        width: 100%;
        height: 70vh;
        background: #615f5f;
        top: 70px;
        left: -100%;
        text-align: center;
        transition: all .5s;
    }
    nav ul li{
        display: block;
        margin-top: 30px 0;
        line-height: 40px;
    }
    nav ul li a{
    
        font-size: 25px;
    }

    #check:checked ~ ul{
        left: 0;

    }
}

/* For styling a letter */
