@import url('https://fonts.googleapis.com/css2?family=Gemunu+Libre:wght@300&family=Roboto:wght@300&display=swap');

* {
    margin: 0;
    font-family: 'Roboto', sans-serif;
}

/* stylized font is used only for the header*/
h1 {
    font-family: 'Gemunu Libre', sans-serif;
}

h2,
h3 {
    margin-bottom: 0.5em;
}

/* for icons used in some places */
.material-symbols-outlined {
    vertical-align: middle;
    padding-right: 0.25em;
    font-variation-settings:
        'FILL' 0,
        'wght' 400,
        'GRAD' 0,
        'opsz' 48
}

body {
    background-color: rgb(9, 0, 14);
    text-align: left;
    margin: 0px 0px 0px 0px;
    padding: 0px 0px 0px 0px;
    color: khaki;
    font-size: 100%;
    background-image: url('../images/pilarsofcreation_small.jpg');
    background-position: top;
}

.page {
    max-width: 90%;
    margin: 0px auto;
    background-color: rgba(0, 0, 0, 0);
    color: khaki;
}

/* header is inverted to get the background image stand out.
 So all colors are inverted as well */
header {
    background-color: rgb(2, 44, 2);
    color: #F0EBEB;
    text-align: center;
    padding: 1em;
    font-size: 200%;
    letter-spacing: 0.1875em;
    background-image: url('../images/pilarsofcreation_small.jpg');
    filter: invert(100%);
    background-position: top;
    border-radius: 0.5em;

    text-shadow:
        2px 2px 5px #111,
        -2px 2px 5px #111,
        2px -2px 5px #111,
        -2px -2px 5px #111;
}

nav,
footer {
    height: 3.5em;
    background-color: rgba(35, 44, 19, 0);
    color: #F7F5EE;
    text-align: center;
    /*border: black 1px solid;*/
    /*padding: 0.6em;*/
    margin: 0;
    overflow: visible;
}

nav {
    height: 3em;
    padding-top: 1em;
}

footer {
    background-color: rgba(9, 0, 14, 0.685);
    height: auto;
    text-shadow: 1px 1px #111;
    color: khaki;

}

section.content {
    background-color: rgba(9, 0, 14, 0);
    overflow: hidden;
    width: 100%;
    text-align: center;
}

section.content_left,
section.content_right {
    float: left;
    width: 42%;
    background-color: rgba(9, 0, 14, 0.76);
    margin: 1.25em;
    text-align: justify;
    color: khaki;
    padding: 1.0em;
    text-shadow: 1px 1px #111;
}

div.div_left,
div.div_right {
    float: left;
    width: 47.5%;
    margin: 0.25em 0.25em 0.25em 0.25em;
}

section.upper,
section.lower {
    width: 100%;
    overflow: hidden;
    text-align: justify;
}

/* makes nice borders and shadows for the main elements */
footer,
section.content_left,
section.content_right {
    border-radius: 1em;
    box-shadow: 0 0.4em 1em 0 rgba(9, 0, 14, 0.767);
    border: 1px rgb(90, 86, 52) solid;

}

section.content_right {
    overflow: hidden;

}

a:link {
    color: rgb(209, 165, 115);
}

a:visited {
    color: rgb(167, 155, 56);
}

a:hover {
    color: rgb(212, 143, 97);
}

a:active {
    color: rgb(209, 165, 115);
}

ul {
    list-style-type: none;
    margin: 0;
    overflow: hidden;
    background-color: rgba(35, 44, 19, 0);
    text-align: center;
    align-content: center;
    padding: 1em;
}

/* all li elements are used for nav */
li.navl_li {
    display: inline;
}

li a {
    color: white;
    text-align: center;
    padding: 14px 16px;
    margin: 0.2em 0 0.2em 0;
    text-decoration: none;
    background-color: rgb(39, 38, 23);
    opacity: 1;
    transition: 0.3s;
    text-shadow: 1px 1px #111;
    border-radius: 0.5em;
    box-shadow: 0 0.4em 1em 0 rgba(9, 0, 14, 0.767);
    width: 100%;

}

/* making sure the links in the nav don't change color */
li a:visited {
    color: white;
}

a:hover.notactive {
    background-color: #111;
    opacity: 1;
}

a.active {
    background-color: rgb(90, 86, 52);
    opacity: 1;
    color: white;
}

a.notactive {

    color: white;
}

.lista {
    text-align: left;
}

/* overwriting layout when screen size is small*/
@media only screen and (max-width: 1074px) {

    section.content_left,
    section.content_right {
        float: none;
        margin: 0.25em 0.25em 1.25em 0.25em;
        margin-left: 1%;

        width: 89%;
    }

    .page {
        max-width: 100%;
    }

    li.navl_li {
        display: flex;
        overflow: hidden;

    }

    ul {
        padding-top: 0.75em;
        padding-bottom: 1em;
    }

    nav {
        height: 12em;
        padding-top: 0em;
    }

    div.div_left,
    div.div_right {
        float: none;
        width: 99%;
    }
}

/* these are used when screen size is too big
mainly just background image stuff so it doesn't look weird*/
@media only screen and (min-width: 1920px) {

    body {
        background-size: 100% auto;
    }

    header {
        background-size: 111% auto;
    }
}