@charset "utf-8";

.btn {
    position: fixed;
    z-index: 9999;
    top:3%;
    right: 0.5%;
    width: 5rem;
    height: 5rem;
    background-color: whitesmoke;
    border-radius: 50%;
    cursor: pointer;
}

.btn__menu {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 3rem;
    height: 1px;
    background: #383838;
    margin: 0;
    padding: 0;
    transition: all 0.5s;
    transform: translate(-50%, -50%);
    cursor: pointer;
}

/* .btn__menu::before {
    display: block;
    content: "";
    position: absolute;
    top: -8px;
    left: 0;
    width: 100%;
    height: 100%;
    background: #26344a;
    transition: all 0.5s;
} */

.btn__menu::after {
    display: block;
    content: "";
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 50%;
    height: 100%;
    background: #383838;
    transition: all 0.5s;
}

.btn__menu.active {
    transform: rotate(45deg);
    width: 50%;
    left: 25%;
}

/* .btn__menu.active::before {
    top: 0;
    transform: rotate(-45deg);
} */

.btn__menu.active::after {
    bottom: 0;
    transform: rotate(90deg);
    width: 100%;
}

.btn-nav {
    position: fixed;
    z-index: 9999;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s;
}

.btn-nav li:hover{
    transform: translateY(-10%);
    transition: .3s;
}

.btn-nav a {
    font-size: 5vmin;
}

.btn-nav.active {
    opacity: 1;
    visibility: visible;
    transition: .5s;
}

main.active{
    opacity: 0;
    visibility: hidden;
    transition: .5s;
}
