@import "https://www.nerdfonts.com/assets/css/webfont.css";
@import url('https://fonts.googleapis.com/css2?family=Redaction+10:ital,wght@0,400;0,700;1,400&display=swap');

@font-face {
    font-family: "Outer Wilds";
    src: url("../resources/OUTERwildsFont/OUTERwilds-Normal.otf") format("opentype");
}

* {
    color: white;
    font-family: 'Redaction 10', sans-serif;
    font-style: normal;
}

body {
    background-image: url("../resources/background.jpg");
    background-repeat: repeat-x;
    background-size: 20% auto;
    background-color: black;
}

#nav {
    display: block;
    top: 0;
    left: 0;
    position: absolute;
    margin: 0;
    width: 100%;
    height: 2.9em;
    text-align: center;
}

.icon {
    display: none;
    position: fixed;
    float: right;
    right: 0;
    top: 0;
    padding: 12px 8px;
    background-color: rgba(49, 49, 49, 0.8);
    color: white;
    text-decoration-style: none;
    font-size: 1.9em;
}

.navLeft {
    float: left;
}

.navRight {
    float: right;
}

.navButton, #formBtn {
    margin: 6px;
    position: relative;
    padding: 12px 8px;
    background-color: rgba(49, 49, 49, 0.8);
    color: white;
    text-decoration-style: none;
}

.active {
    background-color: rgba(90, 90, 90, 0.8);
}

.navButton:hover, .icon:hover, #formBtn:hover {
    background-color: rgba(90, 90, 90, 0.8);
}

.title {
    color: orange;
    text-align: center;
    font-family: 'Outer Wilds', sans-serif;
    font-size: 5em;
}

p {
    color: white;
    text-align: center;
    font-size: 1.5em;
}

.border {
    border: 2px solid transparent;
    border-radius: 16px;
    padding: 10px;
    background:
        linear-gradient(#0b0b0f, #0b0b0f) padding-box,
        linear-gradient(180deg, orange, #000000, #191919) border-box;
}

main {
    flex-direction: column;
    margin: 15px;
}

#top #bottom {
    display: flex;
    gap: 20px;
}

#textLeft, #textRight {
    display: flex;
    width: 48%;
}

#imageLeft, #imageRight {
    display: flex;
    width: 48%;
    height: auto;
}

#textLeft {
    order: 1;
    float: left;
}

#textRight {
    order: 2;
    float: right;
}

#imageLeft {
    order: 1;
    float: left;
}
#imageRight {
    order: 2;
    float: right;
}

.storyWrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.storyText {
    width: 75%;
    text-align: left;
    line-height: 145%;
}

.storyImg {
    width: 85%;
    height: auto;
}

.specialText {
    color: orange;
    font-family: 'Outer Wilds', sans-serif;
}

.audioWrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

.playPauseButton {
    font-size: 1.5em;
    background-color: rgba(49, 49, 49, 0.8);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    border: 2px solid rgb(90,90,90);
}

.playPauseButton:hover {
    background-color: rgba(90, 90, 90, 0.8);
}

.splash {
    cursor: pointer;
    position: fixed;
    top: 50%;
    left: 50%;
    height: 100%;
    width: 100%;
    transform: translate(-50%, -50%);
    background-color: rgb(12, 12, 12);
    transition: all ease-in-out 0.8s;
    z-index: 2;
}

.hidden {
    transition-duration: 2s;
    display: none;
}

.splashTop, .splashBottom {
    color: white;
    font-size: 3.5em;
}

.splashTop {
    position: absolute;
    top: 15%;
    left: 30%;
}

.splashBottom {
    position: absolute;
    bottom: 35%;
    right: 30%;
}

.splashSpoiler {
    font-size: 1.3em;
    position: absolute;
    left: 40%;
    bottom: 35%;
}

subscript {
    font-size: 0.8em;
    position: absolute;
    left: 50%;
    bottom: 5%;
    transform: translate(-50%, -50%);
}

.req {
    font-weight: bold;
    font-size: 1.4em;
    color: yellow;
}

form {
    font-size: 1.3em;
}

#formBtn {
    font-size: 1em;
}

input, textarea {
    color: black;
}

.videoWrapper {
    display: hidden;
}

/* Slideshow container */
.slideshow-container {
    width: 80%;
    position: relative;
    margin: auto;
}

/* Next & previous buttons */
.prev,
.next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
}

/* Position the "next button" to the right */
.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

/* On hover, add a black background color with a little bit see-through */
.prev:hover,
.next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* The dots/bullets/indicators */
.dot {
    cursor: pointer;
    height: 15px;
    width: 15px;
    margin: 0 2px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

.active,
.dot:hover {
    background-color: #717171;
}

/* Fading animation */
.fade {
    animation-name: fade;
    animation-duration: 1.5s;
}

@keyframes fade {
    from {
        opacity: .4
    }

    to {
        opacity: 1
    }
}

@media only screen and (max-width: 1000px) {
    body {
        background-size: 50% auto;
    }

    .icon {
        margin: 0;
        top: 0;
        right: 0;
        display: block;
        z-index: 2;
    }

    #nav {
        position: fixed;
        top: 0;
        left: 0;
        padding: 0;
        display: none;
        width: 100%;
        height: 100%;
        flex-direction: column;
        background-color: rgba(20, 20, 20, 0.9);
    }

    .navButton {
        font-size: 1.3em;
    }

    .navLeft, .navRight {
        display: flex;
        flex-direction: column;
        width: 100%;
        float: left;
    }

    #top, #bottom {
        border-collapse: separate;
        display: inline-flex;
        flex-direction: column;
        width: 100%;
        align-items: center;
    }

    #imageLeft, #imageRight {
        width: 90%;
        height: auto;
        float: none;
        padding: 2%;
    }

    #textLeft, #textRight {
        width: 90%;
        float: none;
        order: 1;
    }

    #imageRight {
        order: 0;
    }

    .slideshow-container {
        width: 95%;
    }

    .home {
        width: 85%;
        padding-left: 15%;
    }

    .splashTop {
        top: 10%;
        left: 2%;
    }

    .splashBottom {
        bottom: 20%;
        float: right;
        right: 2%;
        text-align: right;
    }

    .title {
        font-size: 4em;
        max-width: 90%;
    }
}

@media only screen and (max-width: 600px) {
    body {
        background-size: 100% auto;
    }
}

