/* Applicable to all pages headers */
#footer,
#header {
    background-color: #120e0c;
    width: 100%;
    height: auto;
    color: var(--navColour);
    top: 0;
    left: 0;
    z-index: 1000;
}

#header #text_container {
    padding: 1%;
    color: inherit;
}

#footer #text_container {
    padding: 1%;
    color: inherit;
}

.allPageHeader {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1em;
    margin-right: 3em;
    margin-left: 3em;
    color: white;
}

.allPageFooter {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 1em;
    margin-right: 3em;
    margin-left: 3em;
    color: white;
    justify-content: space-between;
}

.footerHolder {
    display: flex;
    flex-direction: column;
    margin-left: 2rem;
    margin-right: 2rem;
}

.footerHolder a {
    color: #ffffff70;
    text-decoration: none;
}

.footerHolder a:hover {
    text-decoration: underline;
}

.footerLinkHolder {
    display: flex;
    flex-direction: row;
    font-size: 12px;
}

.menu-bar a {
    margin-right: 0.5rem;
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

.menu-bar ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    font-size: 1.25em;
    text-transform: uppercase;
    color: gray;
}

.menu-bar ul li {
    padding: 0 .5em .25em;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: .3s;
}

.menu-bar ul li:hover {
    color: #fff;
}

.menu-bar ul li:before {
    content: "";
    position: absolute;
    inset: calc(100% - 3px) 0 0 0;
    /* 3px = the thickness */
    background: #ce4f20;
    /* the color */
    scale: 0 1;
    transition: .3s, translate 0s .3s;
}

.menu-bar ul:hover li:before {
    scale: 1;
}

.menu-bar ul li:hover:before {
    translate: 0;
    transition: .3s;
}

.menu-bar ul:hover li:has(~ li:hover):before {
    translate: 100% 0;
    transition: .2s .2s, scale 0s .4s;
}

.menu-bar ul:hover li:hover~li:before {
    translate: -100% 0;
    transition: .2s .2s, scale 0s .4s;
}

#text_container {
    color: white;
}

@media (max-width: 760px) {
    .allPageHeader {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 1em;
    }

    .menu-bar {
        display: none;
    }

    .allPageFooter {
        flex-direction: column;
    }
}

@media (max-width: 425px) {
    .footerLinkHolder {
        flex-direction: column;
    }
}