/*---Foundation & Layout---*/

body {
    margin: 0px;
    background-color: #f7f7f7;
    box-sizing: border-box;
    font-family: astoria;
    font-size: 16px;
}

h2,
h3,
h4,
h5,
h6 {
    font-weight: 500;
    margin-bottom: 20px;
}

h2 {
    text-align: center;
    margin: 30px auto;
    font-size: 2em;
}

h2:first-of-type {
    color: #f7f7f7;
    font-size: 1em;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin: 50px auto 100px auto;
}

h2 span {
    display: block;
    font-size: 1.9em;
    text-transform: none;
    margin-top: 10px;
    letter-spacing: normal;
}

h3 {
    font-size: 1.65em;
}

h4 {
    font-size: 1.25em;
    margin-bottom: 0;
}

p {
    line-height: 1.35;
    margin-bottom: 20px;
    font-weight: 300;
}

a {
    color: black;
    font-weight: 300;
    text-decoration: none;
}

figure img {
    border: 1px solid #f7f7f7;
    box-shadow: 10px 11px;
}

figcaption {
    opacity: .6;
    font-weight: 300;
    margin-top: 15px;
}

b,
strong {
    font-weight: 500;
}

i,
em {
    font-style: italic;
}

main {
    padding: 10% 0;
    padding-top: 140px;
    padding-bottom: 100px;
    box-sizing: border-box;
    margin: auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

section {
    margin: 0 10%;
}

img {
    width: 100%;
}

.full-width {
    width: 100%;
}

.center-text {
    text-align: center;
}

.black-bg {
    height: 300px;
    background-color: black;
    width: 100%;
    position: absolute; 
    top: 0;
    left: 0;
    z-index: -1;
}

@media screen and (min-width: 2000px) {
    body {
        font-size: 18px;
    }
}


/*---Header---*/
header {
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    margin: auto;
    left: 0;
    right: 0;
    top: 0;
    width: 100%;
    background-color: #f7f7f7;
    height: 140px;
    padding: 0 10%;
    z-index: 999;
}

.title_link {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.title_link img {
    width: 40%;
    max-width: 130px;
    margin-right: 15px;
}

#logo {
    content: url(../images/mobile-logo-saturated.png) !important;
}


h1 {
    font-family: 'Changa', sans-serif;
    font-size: 2.25em;
    margin: 0;
    font-weight: 700;
    visibility: hidden;
}

h1 span {
    display: block;
    font-family: astoria;
    font-weight: 400;
    font-size: .49em;
    color: black;
    position: relative;
    left: 3px;
    margin-top: 5px;
}

.gameButton {
    text-align: center;
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
}

.gameButton #door-container {
    height: 45px;
    width: 45px;
    background-image: url(../images/door-closed-icon.svg);
    background-repeat: no-repeat;
    background-position: right;
}

.gameButton p {
    text-transform: uppercase;
    font-weight: 450;
    font-size: 12px;
    margin-top: 5px;
    letter-spacing: 1px;
    line-height: 1.15;
    margin: 0;
    position: relative;
    left: 10px;
    margin-bottom: 0;
}

.gameButton:hover #door-container {
    background-image: url(../images/door-open-icon.svg);
}

@media screen and (min-width: 800px) {
    h1 {
        visibility: visible;
    }

    #logo {
        content: url(../images/desktop-icon-saturated.png) !important;
    }
}


/*---Navigation Menu---*/
nav {
    margin: auto;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    background-color: #f7f7f7;
    width: 100%;
    box-sizing: border-box;
    padding: 0 10%;
}

nav a {
    border: 2px solid black;
    border-style: solid;
    text-align: center;
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 1px;
    font-size: 14px;
    width: 35%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all .3s;
    line-height: 0;
    padding: 20px;
    margin-bottom: 25px;
}


nav a:last-of-type {
    border-right: 2px solid black;
}

.nav_current {
    background-color: rgba(146, 140, 140, 0.69);
}

.nav {
    display: flex;
    margin: 0 auto;
    justify-content: space-between;
    flex-wrap: wrap;
}

.nav img {
    height: 100%;
    width: 30px;
}

.arrow {
    font-size: 1em;
    display: none;
}

.current-page {
    background-color: #706F6F;
    color: white;
}

.glitch {
    position: relative;
}

.glitch li {
    position: relative;
    z-index: 3;
}

.glitch:before,
.glitch:after {
    display: block;
    content: attr(data-glitch);
    text-transform: uppercase;
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.8;
    letter-spacing: 1px;
}

.glitch:after {
    color: #f0f;
    z-index: 0;
}

.glitch:before {
    color: #0ff;
    z-index: 1;
}

.glitch:hover {
    background-color: black;
    color: #f7f7f7;
}

.glitch:hover:before {
    -webkit-animation: glitch 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) both 1;
    animation: glitch 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) both 1;
}

.glitch:hover:after {
    animation: glitch 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) reverse both 1;
}

@-webkit-keyframes glitch {
    0% {
        transform: translate(0);
    }

    20% {
        transform: translate(-3px, 3px);
    }

    40% {
        transform: translate(-3px, -3px);
    }

    60% {
        transform: translate(3px, 3px);
    }

    80% {
        transform: translate(3px, -3px);
    }

    to {
        transform: translate(0);
    }
}

@keyframes glitch {
    0% {
        transform: translate(0);
    }

    20% {
        transform: translate(-3px, 3px);
    }

    40% {
        transform: translate(-3px, -3px);
    }

    60% {
        transform: translate(3px, 3px);
    }

    80% {
        transform: translate(3px, -3px);
    }

    to {
        transform: translate(0);
    }
}


@media only screen and (min-width: 913px) {
    nav {
        height: 100px;
    }

    .nav {
        height: 50px;
        flex-wrap: nowrap;
    }

    nav a {
        width: 15%;
        border-right: 0px solid black;
        font-size: 16px;
    }

    .arrow {
        display: inline-block;
    }

    .gameButton #door-container {
        height: 60px;
        width: 60px;
    }

    .gameButton p {
        font-weight: 500;
        font-size: 16px;
    }

}