@font-face {
    font-family: 'Beta';
    src: url("/assets/font/Beta.woff2") format("woff2"),
         url("/assets/font/Beta.woff") format("woff"),
         url("/assets/font/Beta.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

* {
    box-sizing: border-box;
    --color-white: #ffffff;
    --color-bright: #e0d0d0;
    --color-blue: #aaaaff;
    --color-gray: #595959;
    --color-light-gray: #8e8e8e;
    --color-red: #9b1616;
    --color-green: #199719;
    --color-orange: #f7942b;
    --color-orange-dark: #b36b1f;

    --padding: 1em;
    font-size: 102.5%;
}

.beta {
    font-family: 'Beta', sans-serif;

    -webkit-font-smoothing: none;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeSpeed;
    font-synthesis: none;
    font-kerning: none;

    line-height: 18px;
    font-size: 16px;
}

hr {
    height: 0.1em;
    margin-top: 2em;
    border-bottom: none;
    border-left: none;
    border-right: none;
    border-top: 2px dashed gray;
    width: 100%;
}

h1 {
    font-size: 1.75em;
    margin: 0;
}

h2 {
    font-size: 1.5em;
}

h2, h3, h4 {
    margin-top: 0;
    margin-bottom: 0.75rem;
}

body {
    margin: 0;
    background-color: #1d1d1d;
    background-image: url("/assets/img/bg_main.png");
    image-rendering: pixelated;

    font-family: sans-serif;
    color: var(--color-bright);
}

a {
    color: var(--color-blue);
}

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

li {
    text-align: justify;
}

p {
    margin-top: 1.5rem;
    text-align: justify;
}

.p--warning {
    color: var(--color-orange);
    font-weight: bold;
}

.span--note {
    color: var(--color-light-gray);
    font-size: smaller;
}

.h--marginb {
    margin-bottom: 0;
}

.mono {
    margin-top: 5px;
    font-family: Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    background-color: black;
    text-align: start !important;
    overflow-wrap: break-word;
}

/* Header */
.navigation-container {
    background-image: url("/assets/img/bg_top.png");
    image-rendering: pixelated;
    height: 48px;
    padding-left: var(--padding);
    padding-right: var(--padding);
}

.navigation {
    margin: auto;
    max-width: 68.5rem;

    display: flex;
    flex-direction: row;
    place-items: center;
    column-gap: 1em;
    height: 100%;
}

.navigation__logo {
    image-rendering: -moz-crisp-edges;
    image-rendering: pixelated;
    padding: 0.25rem 0;
    height: 40px;
    width: auto;
}

.navigation__links--start {
    text-align: start;
}
.navigation__links--end {
    text-align: end;
    flex: 1;
}

.navigation__link {
    font-weight: bold;
    padding: 0.5em;
}

.navigation__link--white {
    color: var(--color-white);
}

/* Main container */
.main {
    display: flex;
    place-content: center;
    column-gap: 2em;
    row-gap: 2em;

    max-width: 70rem;
    margin: 2rem auto auto;

    padding-left: var(--padding);
    padding-right: var(--padding);
}

.main--legal {
    flex-direction: column;
    column-gap: 0;
    row-gap: 0;
}

.section--wide {
    width: 100%;
}

/* Footnote */
.footer {
    margin: 2em;
    text-align: center;
    color: var(--color-gray);
    font-size: smaller;
}

.footer__link {
    color: var(--color-light-gray);
}

/* Common elements */
.button {
    background: linear-gradient(#9e9e9e, #4e4e4e);
    color: var(--color-white);
    font-weight: bold;
    text-align: center;

    display: flex;
    place-items: center;
    place-content: center;

    border-radius: 0.25em;
    padding: 0.5em 1em;
}

.button--orange {
    background: linear-gradient(var(--color-orange), var(--color-orange-dark));
}

/* Status message blocks */
.status-message {
    position: relative;
    max-width: 35em;
    margin: 0 auto -2rem;
    padding: 1.5rem 3rem;
    display: flex;
    align-items: center;
}

.status-message img {
    height: auto;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    flex-shrink: 0;
}

.status-message__description {
    position: absolute;
    text-align: initial;
    left: 22%;
    right: 10%;
    flex: 1;
    margin: 0 1.25em;
    max-width: 70%;
    max-height: 70%;
}

/* Main page blocks */
.trailer-video {
    width: 100%;
}

.download-now {
    display: flex;
    flex-direction: column;
    place-items: center;
}

.download-now__button {
    font-size: larger;
    margin-top: 0.5em;
}

.bluemap__button {
    text-align: center;
}

.bluemap__img {
    margin: 0 -10em 0 -10em;
    width: 100%;
}

.bluemap__comment {
    margin-top: -0.5em;
    text-align: center;
    color: var(--color-bright);
}

/* Utilties blocks */
.utilities {
    display: flex;
    flex-wrap: wrap;
    column-gap: 1em;
    place-content: center;
    row-gap: 1em;
}

.utility {
    display: flex;
    flex-direction: column;
    width: 25em;
}

.utility__description {
    flex: 1;
}

/* Account-related blocks */
.account-form {
    max-width: 40em;
    margin: auto;
    display: flex;
    flex-direction: column;
    row-gap: 1em;
}

.form__input {
    margin-top: 0.25em;
    width: 100%;
    padding: 0.4em;
}

.form-submit {
    width: 50%;
    margin-top: 0.25em;
}

/* Profile */
#profile-section p {
    margin-top: unset;
    margin-bottom: 1rem;
}

.textured-checkbox__wrapper {
    display: inline-flex;
    flex-direction: row;
    column-gap: 8px;
    align-items: center;
}

.textured-checkbox {
    position: relative;
    height: 20px;
    width: 20px;
}

.textured-checkbox > input[type="checkbox"] {
    position: absolute;
    cursor: pointer;
    height: 20px;
    width: 20px;
    opacity: 0;
    z-index: 2;
    top: 0;
    left: 0;
}

.textured-checkbox > input[type="checkbox"] + label {
    background: url('/assets/img/widget/checkbox/unchecked.png') no-repeat 0 0;
    background-size: 40px 20px;
    display: inline-block;
    position: absolute;
    padding: 0 0 0 0;
    height: 20px;
    width: 20px;
    z-index: 1;
    top: 0;
    left: 0;
}

.textured-checkbox > input[type="checkbox"]:hover + label {
    background-position: -20px 0;
}

.textured-checkbox > input[type="checkbox"]:checked + label {
    background: url('/assets/img/widget/checkbox/checked.png') no-repeat 0 0;
    background-size: 40px 20px;
}

.textured-checkbox > input[type="checkbox"]:checked:hover + label {
    background-position: -20px 0;
}

/* Profile */
.tooltip {
    position: relative;
    display: inline-block;
    cursor: help;
    color: #888888;
}

.tooltip.spaced {
    padding-left: 8px;
    vertical-align: 1px;
}

.tooltip > span {
    visibility: hidden;
    width: max-content;
    max-width: 30rem;
    background-color: black;
    color: white;
    padding: 6px;
    position: absolute;
    z-index: 1;
    top: -6px;
    left: calc(100% + 5px);
    border: 2px solid #a0a0a0;
    text-align: left;
}

.tooltip:hover > span {
    visibility: visible;
}

label[for="skin-field"] {
    font-size: larger;
    font-weight: bold;
}

.skin-form-inline {
    display: inline-flex;
    align-items: center;
    column-gap: 12px;
}

.skin-hr {
    left: 0;
    max-width: 20rem;
    margin-left: 0;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.small-hr {
    left: 0;
    max-width: 9rem;
    margin-left: 0;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.textured-browse {
    position: relative;
    width: 120px;
    height: 40px;
}

.textured-browse > input[type="file"] {
    position: absolute;
    width: 120px;
    height: 40px;
    z-index: 2;
    opacity: 0;
    top: 0;
    left: 0;
}

.textured-browse > input[type="file"] + label {
    background: url('/assets/img/widget/button/browse.png') no-repeat;
    background-size: 200%;
    image-rendering: pixelated;
    display: inline-block;
    position: absolute;
    padding: 0 0 0 0;
    width: 120px;
    height: 40px;
    z-index: 1;
    top: 0;
    left: 0;
}

.textured-browse > input[type="file"] {
    cursor: pointer;
}

.textured-browse > input[type="file"]:hover + label {
    background-position: -120px 0;
}

form[action="/profile/skin"] {
    margin-bottom: 5px;
}

#refresh-username {
    background: url('/assets/img/widget/button/refresh-username.png') no-repeat;
    background-size: 200%;
    cursor: pointer;
    font-size: 0;
    width: 224px;
    height: 40px;
    margin: 0;
    padding: 0;
    border: 0;
}

#refresh-username:hover {
    background-position: -224px 0;
}

#refresh-skin {
    background: url('/assets/img/widget/button/refresh-skin.png') no-repeat;
    background-size: 200%;
    cursor: pointer;
    font-size: 0;
    width: 168px;
    height: 40px;
    margin: 0;
    padding: 0;
    border: 0;
}

#refresh-skin:hover {
    background-position: -168px 0;
}

#patron-form {
    display: flex;
    flex-direction: column;
    row-gap: 8px;
    margin-top: 1rem;
}

#patron-form select {
    background: black;
    border: 2px #a0a0a0 solid;
    color: white;
    font-family: 'Beta', sans-serif;
    padding: 4px;
    font-size: 16px;
}

#patron-form select:hover {
    border: 2px #ffffa0 solid;
}

#save-preferences {
    background: url('/assets/img/widget/button/save.png') no-repeat 0 0;
    background-size: 200%;
    image-rendering: pixelated;
    cursor: pointer;
    font-size: 0;
    width: 88px;
    height: 40px;
    margin: 0;
    padding: 0;
    border: 0;
}

#save-preferences:hover {
    background-position: -88px 0;
}

#link-patreon {
    background: url('/assets/img/widget/button/link-patreon.png') no-repeat;
    background-size: 200%;
    cursor: pointer;
    font-size: 0;
    width: 174px;
    height: 40px;
    padding: 0;
    border: 0;
}

#link-patreon:hover {
    background-position: -174px 0;
}

#unlink-patreon {
    background: url('/assets/img/widget/button/unlink.png') no-repeat;
    background-size: 200%;
    cursor: pointer;
    font-size: 0;
    width: 102px;
    height: 40px;
    padding: 0;
    border: 0;
}

#unlink-patreon:hover {
    background-position: -102px 0;
}

#skin-file-label {
    font-size: 16px;
}

#skin-upload {
    background: url('/assets/img/widget/button/upload.png') no-repeat;
    background-size: 300px 40px;
    cursor: pointer;
    font-size: 0;
    width: 100px;
    height: 40px;
    padding: 0;
    border: 0;
}

#skin-upload:disabled {
    background-position: -200px 0;
    cursor: not-allowed;
}

#skin-upload:not(:disabled):hover {
    background-position: -100px 0;
}

#reset-skin {
    background: url('/assets/img/widget/button/reset-skin.png') no-repeat;
    background-size: 200%;
    cursor: pointer;
    font-size: 0;
    width: 136px;
    height: 40px;
    margin: 0;
    padding: 0;
    border: 0;
}

#reset-skin:hover {
    background-position: -136px 0;
}


/* Other */
@media (max-width: 50em) {
    main {
        margin: 1em;
        flex-direction: column;
    }

    .navigation__home {
        display: none;
    }

    .tooltip > span {
        width: 20em;
    }
}

@media (max-width: 37em) {
    .navigation__username {
        display: none;
    }

    .status-message {
        padding: 0.5rem 1rem;
        margin-top: 1rem;
        margin-bottom: -0.75rem;
    }

    .status-message__description {
        margin: 0 0;
    }

    .tooltip > span {
        position: fixed;
        max-width: none;
        width: auto;
        top: 0;
        margin-top: 4em;
        left: 1em;
        right: 1em;
    }
}

@media (max-width: 28em) {
    .status-message__description {
        font-size: small;
        margin-right: 0;
    }
}