$font: 'Montserrat', sans-serif;

$illiniblue: #13294B;
$blue1: #0455A4;
$blue2: #1F4096;
    
$illiniorange: #FF5F0F;
$neutral1: #E8E9EA;
$neutral2: #A5A8AA;
$neutral3: #5E6669;


$font-regular-color: black;
$font-light-color: #1A1A1A;
$font-lighter-color: #525252;


/** Element Setup **/

html {
    overflow-x: hidden;
}

html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    background-color: $neutral1;
}

body {
    display: flex;
    flex-direction: column;
}

h1, h2, h3, h4, h5, h6, a, li, span, p {
    font-family: 'Montserrat', sans-serif;
    z-index: 2;
}

h1 {
    font-weight: 800;
}

h2 {
    font-weight: 600;
}

h3 {
    font-weight: 600;
    text-decoration: underline;
}

h4 {
    font-weight: 400;
    font-style: italic;
    text-decoration: underline;
}

h5, h6 {
    font-variant: small-caps;
}

h6 {
    font-color: $font-lighter-color;
}

svg {
    pointer-events: none;
}

.separator {
    width: 100%;
    height: 0.5em;
    z-index: 5;
}

.orange {
    background-color: $illiniorange;
}

.blue {
    background-color: $illiniblue;
}

a {
    font-weight: 400;
    color: $blue1;
}

a, a:hover, a:visited, a:active {
    text-decoration: none;
}

.clearScroll {
  scrollbar-width: none;
}

.clearScroll::-webkit-scrollbar {
    width: 10px;
    height: 5px;
    background-color: rgba(0,0,0,0.0);

}

.clearScroll::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.15);
    border-radius: 50px;
}


/* Navigation */

nav  {
    position: sticky;
    top: 0;

    margin: 0;
    padding: 0;

    width: 100%;
    height: 4em;

    z-index: 10;
    background-color: $neutral1;
    box-shadow: 0 0.25rem 0.25rem rgba(0,0,0,0.5); 

    a, a:hover, a:visited, a:active {
        color: inherit;
    }

    ul {
        width: 98%;
        margin: 0 auto 0 auto;
        padding: 0;
        height: 3.5em;

        display: flex;
        justify-content: space-between;

        overflow-x: auto;
        overflow-y: hidden;
        white-space: nowrap;

        #logo {
            font-family: $font;
            font-weight: 400;

            font-size: 1.5em;
            padding: 0.55em;

            float: left;
        }

        #navItems {
            margin-left: 3em;
        }

        li {
            width: 10em;
            height: 100%;
            display: inline-block;
            font-size: 1em;

            background-color: $neutral1;

            text-align: center;
            list-style-type: none;
            cursor: pointer;
            transition: background-color ease-in-out 0.1s;

            a {
                display: inline-block;
                padding: 1.1em 0 1.1em 0;
                width: 100%;

                font-weight: 400;
                font-variant: normal;
            }

        }

        li:hover {
            background-color: darken($neutral1, 5%);
        }

        li:active {
            background-color: darken($neutral1, 10%);
        }
    }
}

.current {
  background-color: $illiniorange;
  color: $neutral1;
}

.current:hover {
    background-color: darken($illiniorange, 5%);
}

/* Slideshow */

#slideshowContainer {
    width: 100%;
    height: 30em;
}

#slideshow {
    position: relative;
    top: 0;
    left: 0;

    width: 100%;
    height: 30em;

    img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    span {
        position: absolute;
        top: 1em;
        right: 2%;

        background-color: rgba(0,0,0,0.8);
        color: $neutral1;
        font-weight: 200;
        z-order: 10;

        padding: 0.5em;
    }

}

@keyframes slideUp {
    from { transform: translateY(2em); opacity: 0}
    to { transform: translateY(0); opacity: 1}
}

/* Top Card */

.topCard {
    position: absolute;
    top: 20em;
    left: 0;
    right: 0;

    width: 20em;
    height: 19em;
    margin: 0 auto 0 auto;

    text-align: center;
    z-index: 5;
    animation: slideUp 0.5s;
    
    filter: drop-shadow(0.25em 0.3em 0.4em rgba(0,0,0,0.8));

    div {
        height: 100%;
        padding: 2em;
        clip-path: polygon(0 0, 100% 0, 100% 70%, 50% 100%, 0 70%); 
        background-color: rgba($illiniblue, 0.8);

        display: flex;
        flex-direction: column;
        justify-content: space-between;


        h1 {
            margin: 0;
            font-weight: 100;
            font-size: 3.8em;
            color: $neutral1;
        }

        p {
            margin: 0 auto 4.5em 0;
            font-weight: 400;
            font-size: 1em;
            color: darken($neutral1, 10%);
        }
    }
}

/*  Content */

.content {
    width: 100%;
    margin: 0 auto 0 auto;
    position: relative;
    flex-grow: 1;

    left: 0;
    right: 0;

    background-color: $neutral1;

    h1, h2, h3, h4, h5, h6, p, a, img {
        animation: slideUp 0.5s;
    }

    svg {
        position: absolute;
        width: 100%;
        height: 10em;
        fill: rgba($blue1, 0.1);
        left: 0;
        z-index: 1;
    }

    .upAccent {
        top: 0;
        transform: translateY(-10em);
    }

    .downAccent {
        bottom: 0;
        transform: translateY(10em);
    }
}

#bannerContent > h1 {
    padding: 1em 2em 0 2em;
    text-align: center;
}

#bannerContent {
    padding-top: 6em !important;
    background-color: rgba($blue1, 0.1);

    .downCircle {
        position: absolute;
        fill: rgba($blue1, 0.1);
        left: 0;
    }

    .item {
        width: 100%;
        min-height: 25em;
        padding-top: 5em;
        padding-bottom: 5em;

        position: relative;

        .itemScroll {
            overflow-x: auto;

            position: relative;
            z-index: 2;
        }

        .itemScroll .itemInner {
            width: 100%;
            min-width: 60em;
            padding: 2em 0 2em 0;



            display: flex;
            flex-direction: row;
            justify-content: space-evenly;
            align-items: center;

            .description {
                width: 40%;

                height: 100%;
                display: flex;
                flex-direction: column;
                justify-content: center;
                text-align: left;
                white-space: normal;

                h2 {
                    width: 100%;
                    margin: 0;
                    font-size: 2em;
                }

                p {
                    width: 100%;
                    font-size: 1.2em;
                    margin: 0.5em 0 0.5em 0;
                }

                p:last-child {
                    text-align:right;
                }

                a {
                    margin-right: 1em;
                    padding: 0.8em;

                    font-size: 0.8em;

                    background-color: lighten($blue2, 20%);
                    color: $neutral1;
                    border-radius: 13px;
                    transition: background-color ease-in-out 0.1s;
                }

                a:hover {
                    background-color: darken(lighten($blue2, 20%), 10%);
                }

                a:active {
                    background-color: darken(lighten($blue2, 20%), 15%);
                }
            }

            .image {
                width: 20em;
                padding-bottom: 20em;
                position: relative;
                z-index: 20;
            }

            img {
                position: absolute;
                width: 100%;
                height: 100%;
                top: 0;
                bottom: 0;
                left: 0;
                right: 0;
                object-fit: cover;
                border-radius: 50%;
                border: 5px solid rgba($blue2, 30%);
            }

        }
    }

    .item:nth-child(2) .upAccent {
        transform: translateY(0);
    }

    .item:nth-child(odd) {
        padding-bottom: 2em;
        padding-top: 2em;

        .itemScroll {
            direction: rtl;

            h2, p {
                direction: ltr;
            }
        }
    }
}

#bannerContent > div:nth-child(even) {
    background-color: $neutral1;
}


#postContent {
    width: 100%;

    svg {
        width: 100%;
        height: 15em;
        top: 0;
        transform: translateY(0);
        z-index: 0;
    }

    > div {
        position: relative;
        max-width: 85em;
        padding: 0 4em 0 4em;
        margin: 4em auto 4em auto;
        z-index: 1;
    }

    img {
        display: block;
        margin: auto;
        padding: 1em;
        width:85%;

        background-color: rgba(0, 0, 0, 0.05);
        border-radius: 10px;
    }
}

.nonItems {
    position: relative;
    width: 100%;
    padding: 2em 0 2em 0;

    > div {
        margin: auto;
        padding: 0 4em 0 4em;
        max-width: 90em;
    }

    img {
        display: block;
        margin: auto;
        padding: 1em;
        width:85%;

        background-color: rgba(0, 0, 0, 0.05);
        border-radius: 10px;
    }
}

.smallItemList {
    h2, h3, h4, h5, h6 {
        font-size: 1.2em;
        font-weight: 600;
        text-decoration: none;
        margin: 0.5em 0 0 0;

        padding: 1em 0.5em 0em 0.5em;
        border-top: 3px solid rgba(0, 0, 0, 0.1);

    }

    p {
        margin: 0;
        padding: 0.5em;
    }


}


/* Footer */
footer {
    position: relative;
    bottom: 0;
    width: 100%;
    height: 15em;
    background-color: $illiniblue;
    color: $neutral1;

    font-size: 0.8em;
    
    #footer {
        margin: 0 auto 0 auto;
        height: 11.5em;
        width: 90%;
        border-bottom: 1px solid $neutral1;

        display: flex;
        flex-flow: column;
        justify-content: center;

        
        div {
            display: flex;
            flex-flow: row wrap;
            justify-content: center;
        }

        p {
            color: $neutral2;
            width: 100%;
            text-align: center;
        }
        
        a {
            margin: 0 0.5em 0 0.5em;
            padding: 0.5em;
            border-radius: 3px;
            border: 1px solid $neutral1;
            background-color: $illiniblue;
            transition: background-color ease-in-out 0.3s;
        }

        a, a:visited {
            color: inherit;
        }

        a:hover {
            background-color: lighten($illiniblue, 10%);
        }

        a:active {
            background-color: lighten($illiniblue, 15%);
        }
    }

    #author {
        width: 90%;
        margin: 1em auto 1em auto;
        text-align: right;
        color: $neutral2;
    }
}

.centerHeading {
    text-align: center;
    margin-bottom: -1em;
}