*, *::before, *::after {
    box-sizing: border-box;
}
  
body {
    font-family: "Montserrat", Helvetica;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overflow-x: hidden;
}

@media (max-width: 480px) {
    .off-screen-menu a {
        color: white;
    }
    .off-screen-menu a:visited {
        color: white;
    }
    .off-screen-menu a:hover {
        color: #F7E2FE;
    }
    
    
    
    /* off-screen-menu */
    .off-screen-menu {
        font-family: "Montserrat", Helvetica;
        background-color:  rgb(0, 0, 0);
        border-radius: 0 0 0 4rem;
        opacity: 90%;
        height: 40vh;
        width: 50%;
        max-width: 450px;
        position: fixed;
        top: 0;
        right: -450px;
        display: flex;
        flex-direction: column;
        align-items: center;    
        justify-content: center;
        text-align: center;
        font-size: 1rem;
        line-height: 2.5rem;
        transition: .3s ease;
    }
    .off-screen-menu.active {
        right: 0;
    }
    
    .off-screen-menu ul, a {
        text-decoration: none;
        list-style: none;
    }
    
    
    
    /* nav */
    nav {
        padding-right: 0.5rem;
       
       
    }
    


    /* ham menu */
    .ham-menu {
        height: 50px;
        width: 40px;
        /* margin-left: auto; */
        position: relative;
    }
    .ham-menu span {
        height: 3px;
        width: 80%;
        background-color: #000000;
        border-radius: 25px;
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        transition: .3s ease;
    }

    .ham-menu span:nth-child(1) {
        top: 30%;
    }
    .ham-menu span:nth-child(3) {
        top: 70%;
    }
    .ham-menu.active span {
        background-color: rgb(0, 0, 0);
    }
    .ham-menu.active span:nth-child(1) {
        top: 50%;
        transform: translate(-50%, -50%) rotate(45deg);
    }
    .ham-menu.active span:nth-child(2) {
        opacity: 0;
    }
    .ham-menu.active span:nth-child(3) {
        top: 50%;
        transform: translate(-50%, -50%) rotate(-45deg);
    }
}


@media (min-width: 481px) {
    .ham-menu {
        display: none;
    }
    .off-screen-menu {
        display: none;
    }
}
