* {
    box-sizing: border-box;
    font-family: Verdana, Geneva, sans-serif;
}

html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body {
    background-color: lightyellow;

    /*  Use flexbox to keep footer at the bottom of the page, 
        even if the page is short.
        https://stackoverflow.com/a/12253099/21322342
    */
    display: flex;
    flex-direction: column;
}

/* block content */
/* Removed the margin otherwise the image on homepage would be fill the whole screen */
#main {
    flex: 1;
    margin: 0;
    padding: 0;
}

/* header navbar */
.main-navbar {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
    background: #333;
    padding: 15px 20px;
    color: white;
    height: 75px;
}

.main-navbar a {
    color: white;
    text-decoration: none;
}

.main-navbar button {
    border: 2px solid orangered;
    padding: 10px 20px;
    font-size: 18px;
    color: white;
    border-radius: 5px;
    background: transparent;
    cursor: pointer;

    &:hover {
        border: none;
        background: linear-gradient(90deg, #ff8c00, #ff0000);
        box-shadow: 0 0 10px 0 rgba(255, 255, 255, 0.2);
    }
}

.links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.links>a,
#mobile-navbar-popup a {
    color: white;
    font-size: 20px;
    text-align: center;
    width: 100%;
    text-decoration: none;

    /* Added hover */
    &:hover,
    &:active {
        text-decoration: underline;
    }
}

@media screen and (max-width: 1024px) {
    #mobile-navbar-burger {
        display: block !important;
    }

    .hide-mobile {
        display: none !important;
    }
}

.title {
    /* Center title */
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-weight: 300;
    font-size: 38px;
}

footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 0.5rem;
    width: 100%;
    z-index: 10;
}


/* Aggresive, mainly used for user_management urls */

.center {
    width: 80%;
    margin: auto;
    text-align: center;
}


#mobile-navbar-burger {
    display: none;
    background: orangered;
    border-radius: 50%;
    font-size: 18px;
    padding: 10px;
    
    cursor: pointer;
    /* Nearly added a hover effect, then decided against it
    &:hover {
        background: orange;
    }
    */
}

#mobile-navbar-popup {
    position: absolute;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 70%;
    
    background: black;
    color: white;
    z-index: 1;
    transition: left 0.2s;
}

#mobile-navbar-popup:not(.active){
    visibility: hidden;
}

#mobile-navbar-popup.active {
    visibility: visible;
}

#mobile-navbar-popup>i {
    font-size: 26px;
    align-self: flex-end;
    margin: 15px;
    cursor: pointer;
}

#mobile-navbar-popup ul {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 24px;
    gap: 15px;
}

#mobile-navbar-popup ul>li {
    cursor: pointer;
    width: 100%;
    padding: 15px 50px;
    text-align: center;

    &:hover, &:active {
        text-decoration: underline;
    }
}