@charset "UTF-8";


 * {
     margin: 0;
     padding: 0;
     text-decoration: none;
 }
 
 a {
    color: yellow;
 }
 
 #logo {
     font-size: 20pt;
     font-weight: bolder;
 }
 #header {
     box-sizing: border-box;
     display: flex;
     justify-content: space-around;
     align-items: center;
     padding: 1rem;
     height: 70px;
     background-color: #ec0404d7;
     border-bottom: 3px solid yellow;
 }

 #menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
 }
 #menu a {
     display: block;
     padding: 1rem;
 }
 #btn-menu-mobile {
     display: none;
 }
 
@media (max-width: 650px) {
    #btn-menu-mobile {
        display: flex;
        padding: .5rem 1rem;
        font-size: 1rem;
        border: none;
        background: none;
        cursor: pointer;
        color: yellow;
    }
    #menu {
        display: block;
        position: absolute;
        width: 100%;
        height: 0;
        top: 70px;
        right: 0px;
        transition: 1s;
        background-color: #ec0404c7;
        z-index: 1000;
        visibility: hidden;
        overflow-y: hidden;
    }
    #nav.active #menu {
        visibility: visible;
        height: calc(100vh - 80px);
        overflow-y: auto;
    }
    #menu a {
        text-align: center;
    }
    #ico-menu {
        width: 20px;
        border-top: 2px solid;
        color: yellow;
    }
    #ico-menu::after, #ico-menu::before {
        content: '';
        display: block;
        width: 20px;
        height: 2px;
        background: currentColor;
        margin-top: 5px;
        position: relative;
    }
    #nav.active #ico-menu {
        border-top-color: transparent ;
    }
    #nav.active #ico-menu::before {
        transform: rotate(135deg);
        transition: 1s;
    }
    #nav.active #ico-menu::after {
        transform: rotate(-135deg);
        transition: 1s;
        top: -7px;
    }
}
