/* Topaz Fonts */
/* IE6/7/8 */
@font-face {
    font-family: Topaz_a1200;
    src: url(../fonts/Topaz_a1200_v1.0.eot);
}
/* Modern and Older Browsers */
@font-face {
    font-family: Topaz_a1200;
    src: url(../fonts/Topaz_a1200_v1.0.woff2) format("woff2"),
         url(../fonts/Topaz_a1200_v1.0.woff) format("woff");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

html, body {
    margin: 0;
}

body {
    background: linear-gradient(rgb(100, 30, 100), rgb(32, 32, 128), rgb(100, 30, 100));
    background-attachment: fixed;
    font-family: "Noto Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-variation-settings: "wdth" 100;
    color: rgb(195, 195, 195);
    padding-top: 60px; /* Same as height of navigation : nav > div { height } + nav { padding-{top,bottom} } */
    padding-bottom: 1rem;
}

h1, h2, h3, h4, h5, h6 {
    font-family: Topaz_a1200;

    main > &:first-of-type, aside > &:first-of-type  {
        margin-top: 5px;
    }
}

nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 6px 0;
    background: #410641;
    color: white;
    box-shadow: 0px 2px 7px #01081133;
    z-index: 9999;
}

nav > div {
    display: flex;
    height: 48px;
    align-items: stretch;
    justify-content: space-between;
}

nav > div > div {
    display: flex;
    align-items: center;
}

nav > div > div:first-child > * {
    margin-left: 16px;
}

nav > div > div:last-child > * {
    margin-right: 16px;
}

nav a {
    font-family: Topaz_a1200;
    color: white;
    text-decoration: none;
    line-height: 48px;
}

nav img {
    display: inline-block;
    vertical-align: baseline;
    border-radius: 2px;
    height: 0.85em;
    margin-bottom: 0.15em; /* Move images up because Topaz has a bad baseline */
}

nav ul li:visited {
    font-family: Topaz_a1200;
    color: white;
    text-decoration: none;
    line-height: 48px;
}

nav ul li:hover {
    background: #758fb9;
    transition: 0.3s;
}

nav ul li:active {
    background: #410641;
    color: #758fb9;
    transition: 0.2s;
}

@media only screen and (max-width: 576px) {
    nav .optional {
        display: none;
    }
}

/* Device Width | max-width: 576px | 540px, 768px | 720px, 992px | 960px, 1200px | 1140px, 1400px | 1320px */

header {
    text-align: center;
    margin: 16px auto;
    max-width: 1200px;
}
@media only screen and (min-width: 576px) {
    header {
        max-width: 540px;
    }
}
@media only screen and (min-width: 768px) {
    header {
        max-width: 720px;
    }
}
@media only screen and (min-width: 992px) {
    header {
        max-width: 960px;
    }
}
@media only screen and (min-width: 1200px) {
    header {
        max-width: 1140px;
    }
}
@media only screen and (min-width: 1400px) {
    header {
        max-width: 1320px;
    }
}

.mainlogo {
    width: 100%;
    filter: drop-shadow(2px 2px 3px rgba(0, 0, 0, 0.72)); /* Logo Drop Shadow */
    -ms-interpolation-mode: nearest-neighbor; /* Pixelated Logo Scaling */
    image-rendering: pixelated;
}

#body {
    margin-left: auto;
    margin-right: auto;
    display: flex;
    align-items: flex-start;
    color: black;
    max-width: 1140px;
}
@media only screen and (max-width: 768px) {
    #body {
        display: block;
        width: 96%;
    }
}
@media only screen and (max-width: 1188px) {
    #body {
        width: 96%;
    }
}

.message {
    margin: 0px auto 16px auto;
    width: 100%;
    color: black;
    text-align: center;
    border-radius: 7px;
}

.message span {
    display: block;
    padding: 8px;
    font-size: 2rem;
}

.message.info {
    background: rgb(100, 255, 100);
}

.message.error {
    background: rgb(255, 100, 100);
}

main {
    width: 75%;
    padding: 16px;
    background: #c3c3c3;
    border-radius: 7px 0 7px 7px;
    align-self: stretch;
}
@media only screen and (max-width: 768px) {
    main {
        width: 100%;
        padding: 20px;
        box-sizing: border-box;
        border-radius: 7px 7px 0 0;
    }
}

aside {
    width: 25%;
    padding: 16px;
    background: #c3c3c3;
    font-family: Topaz_a1200;
    border-left: 1px solid black;
    border-radius: 0 7px 7px 0;
    margin-bottom: 7px;
}
@media only screen and (max-width: 768px) {
    aside {
        width: 100%;
        box-sizing: border-box;
        padding: 20px;
        border-radius: 0 0 7px 7px;
        border: none;
    }
}

aside div {
    padding-bottom: 1.2rem;
}

aside img {
    padding-top: 0.3rem;
}

.profile-image > img {
    display: block;
    border-radius: 50%;
}

nav .profile-image > img {
    width: 3rem;
    height: 3rem;
}

main .profile-image > img {
    width: 6.5rem;
    height: 6.5rem;
}

.dropdown {
    font-family: Topaz_a1200;
    color: white;
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    margin: -4px;
    background: #410641;
    z-index: 1;
}

nav .dropdown-content a {
    line-height: normal;
}

.dropdown-content.align-right {
    right: -8px;
}

.dropdown-content.align-left {
    left: -8px;
}

.dropdown-content > ul {
    margin: 0px;
    padding: 0px;
    list-style-type: none;
}

.dropdown-content > ul > li {
    padding: 8px;
    text-wrap: nowrap;
}

.dropdown-content button {
    background: none;
    color: inherit;
    border: none;
    padding: 0;
    font: inherit;
    cursor: pointer;
    outline: inherit;
}

.dropdown-content a {
    color: inherit;
    text-decoration: none;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.challenge.easier {
    span&, span {
        background: #ffa272;
    }
}

.challenge.tougher {
    span&, span {
        background: #fffb85;
    }
}

.challenge.jank {
    span&, span {
        background: #a1ff86;
    }
}

.challenge.coop {
    span&, span {
        background: #adf4ea;
    }
}

.challenge.hiscore {
    span&, span {
        background: #89acf4;
    }
}

.challenge.pdsubgame {
    span&, span {
        background: #d69bed;
    }
}

.challenge.speedrunbonus {
    span&, span {
        background: white;
    }
}

main button, main a.button {
    font-family: Topaz_a1200;
    background-color: #6787B9;
    color: black;
    padding: 16px 32px;
    text-align: center;
    font-size: 1.5rem;
    margin: 4px 2px;
    transition: 0.2s;
    display: inline-block;
    cursor: pointer;
    border-radius: 3px;
    border: none;
    text-decoration: none;
}

main button:hover {
    background-color: #758fb9
}

main button:active {
    background-color: #410641;
    color: #758fb9;
}

footer {
    display: block;
    margin-top: 1rem;
    text-align: center;
    font-size: 10px;
}

footer > span {
    display: inline-block;
    padding: 0 64px;
}

form input, form textarea {
    background: rgb(220, 220, 220);
}

form label {
    font-family: Topaz_a1200;
}
