header {
    position: sticky;
    top: 0;
    display: flex;
    min-height: 70px;
    background-color: #f8f7f2;
    align-items: center;
    text-align: center;
    font-family: 'Sorts Mill Goudy';
    justify-content: space-around;
    z-index: 12;
    border-bottom: 1px solid #00000055;

    .normal-header-content {
        max-width: 1000px;
        width: 100%;
        display: flex;
        flex-direction: row;
        align-items: center;
        text-align: center;
        justify-content: space-around;
    }
    
    .mobile-header-content {
        width: 100%;
        display: none;
        max-height: 100%;
        text-align: center;
        flex-direction: column;
    }
    a {
        color: #000;
        text-decoration: underline;
    }

    .logo {
        white-space: nowrap;
        font-size: 2em;
        font-weight: 500;
        min-width: 150px;
        text-shadow: 0 0 5px #f8edeb;
        padding: 5px 0px 5px 0px;
        user-select: none;
        
        a {
            color: #282299;
            text-decoration: none;
        }
    }

    .links {
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 1.2em;
        margin-left: auto;
    }
    
    .mobile-links {
        display: none;
    }
    
    .mobile-links-toggle {
        font-size: 1.5em;
    }
    
    .menu-link {
        position: relative;
        display: inline-block;
        padding-left: 20px;
        padding-right: 20px;
    }

    .link {
        text-decoration: none;
        color: #111111;
        position: relative;
        display: inline-block;
        transition: all 0.7s;
        text-decoration: underline wavy transparent;
        text-underline-offset: 5px;
    }
    
    .link:hover {
        color: #282299;
        text-decoration-color: #ce7474;
    }
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        justify-content: space-between;
        min-height: 0px;
        .normal-header-content {
            display: none !important;
        }
        
        .mobile-header-content {
            display: flex !important;
            flex-direction: column;
        }
        
        .mobile-header-controls {
            display: flex;
            flex-direction: row;
            justify-content: space-between;
            align-items: center;
            padding: 0 20px;
        }
    
        .links {
            flex-direction: column;
            align-items: flex-start;
        }
        
        .normal-links {
            display: none;
        }
    
        .mobile-links {
            z-index: 11;
            display: flex !important;
            max-height: 0;
            overflow: hidden;
            justify-content: center;
            align-items: center;
            transition: all 0s;
        }
        
        .active {
            max-height: 500px;
            padding-bottom: 10px;
            transition: max-height 0.7s ease-in;
        }
    
        .menu-link {
            margin-left: 0;
            margin-top: 10px;
        }
    }
    
}

@media (max-width: 480px) {
    .logo {
        font-size: 20px;
    }

    .menu-link a {
        font-size: 16px;
    }

}