body{
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: max-content 1fr auto;
    grid-template-areas:
        "header"
        "main"
        "footer";
}

/* Header */
header {
    position: sticky;
    display: flex;
    top: 0; /* At the top of the page */
    z-index: 3;
    background: var(--background-grey);
    padding: 12px 20px;
    justify-content: space-between;
    align-items: center;
}

header>div {
    display: flex;
    align-items: center;
    gap: 1em;
}

header a {
    text-decoration: none;
    color: var(--text-color);
}

#logo-text {
    font-family: 'Rubik Scribble', cursive;
    font-size: 2.25em;
    font-weight: bold;
    color: var(--primary-color);
    position: relative;
}

/* Footer */
footer {
    position: absolute;
    box-sizing: border-box;
    bottom: 0;
    width: 100%;
    height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    background: var(--background-grey);
    padding: 1em;
    gap: 1em;
}

footer p {
    text-align: center;
}

.socials {
    display: flex;
    flex-direction: column;
    gap: 0.5em;
}

.social-icons {
    display: flex;
    gap: 1em;
}

/* Burger Menu */
#burger-menu {
    display: block;
    position: relative;
    width: 1.7em;
    height: 1.5em;
    cursor: pointer;
}

#burger-menu>span {
    display: block;
    position: absolute;
    height: 0.25em;
    width: 100%;
    background: var(--text-color);
    border-radius: 0.1em;
    left: 0;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
}

#burger-menu span:nth-child(1) {
    top: 0;
}

#burger-menu span:nth-child(2),
#burger-menu span:nth-child(3) {
    top: 0.65em;
}

#burger-menu span:nth-child(4) {
    top: 1.3em;
}

#burger-menu.open span:nth-child(1) {
    top: 0.65em;
    width: 0%;
    left: 50%;
}

#burger-menu.open span:nth-child(2) {
    transform: rotate(45deg);
    width: 110%;
}

#burger-menu.open span:nth-child(3) {
    transform: rotate(-45deg);
    width: 110%;
}

#burger-menu.open span:nth-child(4) {
    top: 0.65em;
    width: 0%;
    left: 50%;
}

/* Mobile Navigation */
#mobile-side-nav {
    display: block;
    position: fixed;
    top: 0;
    right: 0;
    width: 0%;
    height: 100%;
    background: var(--background-grey);
    overflow: hidden;
    z-index: 2;
    transition: .3s ease-in-out;
}

#mobile-side-nav.open {
    width: 18em;
}

#mobile-side-nav ul {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2em;
    height: 100%;
    list-style: none;
}

#mobile-side-nav ul li a {
    font-size: 1.5em;
    color: var(--text-color);
    text-decoration: none;
    white-space: nowrap;
    opacity: 0;
    transition: .3s ease-in-out;
}

#mobile-side-nav ul li a:hover {
    color: var(--primary-color);
}

#mobile-side-nav.open ul li a {
    opacity: 1;
}

#mobile-nav-filter {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-color: #00000000;
    transition: .3s ease-in-out;
}

#mobile-nav-filter.open {
    z-index: 1;
    background-color: #00000075;
}

/* Desktop Navigation */
#desktop-nav {
    display: none;
    gap: 1em;
    margin-left: 1em;
}

#desktop-nav ul {
    display: flex;
    gap: 1em;
    list-style: none;
}

#desktop-nav ul li a {
    font-size: 1.25em;
    color: var(--secondary-color-light);
    text-decoration: none;
}

#desktop-nav ul li a:hover {
    color: var(--primary-color);
}

/* Navigation Switch */
@media screen and (min-width: 800px) {
    #mobile-side-nav {
        display: none;
    }

    #burger-menu {
        display: none;
    }

    #desktop-nav {
        display: flex;
    }
}
