@font-face {
    font-family: Moirai-One;
    src: url(./fonts/MoiraiOne-Regular.ttf);
}

html {
    height: 100%;
    width: 100%;
}

body {
    overflow: hidden;
    background-color: #141414;
    font-family: 'Source Code Pro', monospace, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen,
        Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif;
    color: #fefff5;
    padding: 0px;
    height: 100%;
    width: 100%;
    margin: 0px;
    display: flex;
}

h1 {
    font-family: Moirai-One;
    font-size: 2.5em;
    margin-top: 50px;
    width: 100%;
    margin-bottom: 10px;
}

p {
    margin-bottom: 0px;
}

a {
    text-decoration: underline;
    color: white;
    transition: 0.3s;
}

a:hover {
    color: rgba(255, 255, 255, 0.5);
}

#left_panel {
    margin: 0px 50px 0px 50px;
    max-width: 30em;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow-y: scroll;
    overflow-x: visible;
    -ms-overflow-style: none;
    scrollbar-width: none;
    mask-image: linear-gradient(to bottom, transparent 0%, black 48px, black calc(100% - 48px), transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 48px, black calc(100% - 48px), transparent 100%);
}

#left_panel::-webkit-scrollbar {
    display: none;
}

#menu *:not(h1) {
    margin-left: 10px;
}

#right_panel {
    flex-grow: 3;
    min-width: 50vh;
}

#snapshot {
    border: 1.5px solid rgb(255, 255, 255);
    border-radius: 10px;
    display: none;
    max-width: 50%;
    height: auto;
    max-height: 200px;
    margin-top: 20px;
    transition: 0.3s;
}

button,
#file_upload_button {
    background: none;
    border: 1.5px solid rgb(255, 255, 255);
    border-radius: 10px;
    color: white;
    width: 50%;
    height: 40px;
    min-height: 40px;
    margin-top: 20px;
    font-size: 0.8em;
    display: block;
    cursor: pointer;
}

button:hover,
#file_upload_button:hover {
    background: white;
    color: black;
}

input[type="file"] {
    display: none;
}

#file_upload_button {
    cursor: pointer;
    text-align: center;
}

#post_upload {
    display: none;
    transition: 0.3s;
}

#post_download {
    display: none;
    transition: 0.3s;
}

#questions {
    margin-bottom: 50px;
}

#questions p {
    opacity: 0.7;
}

#right_panel svg {
    width: 100%;
    height: 100%;
}

@media only screen and (orientation: portrait) {
    body {
        overflow-y: scroll;
        overflow-x: wrap;
        flex-direction: column;
    }

    #left_panel {
        overflow: visible;
        max-width: 100%;
        flex: 1;
        align-items: center;
    }

    #left_panel>* {
        width: 100%;
    }

    #right_panel {
        order: -1;
        min-height: 60vw;
        max-height: 75vh;
        flex-shrink: 0;
        min-width: 0px;
    }

    #questions {
        margin-bottom: 100px;
    }
}

@media only screen and (max-width: 500px) {
    #left_panel {
        margin-left: 15px;
        margin-right: 15px;
    }
}