* {
    box-sizing: border-box;
}

html {
    padding: 0;
    height: 100%;
}

body {
    height: 100vh;
    margin: 0;
    background: #1a85c9 url("img/seals_bg.png") no-repeat fixed 50% 100%;
    background-size: contain;
    font: 1.3em "Segoe UI", "Open Sans", Roboto, -apple-system, BlinkMacSystemFont, Helvetica, sans-serif;
    font-weight: 300;
    color: #fff;
    padding: 40px 40px 80px 40px;
}

#toast-root {
    font-size: 16px;
}

@media (max-width: 640px) {
    body {
        padding: 10px 10px 80px 10px;
        font-size: 1rem;
    }
}

@media (min-width: 641px) {
    body {
        padding: 40px 40px 80px 40px;
    }
}

a {
    color: #FFFFFF;
    transition: color 0.1s;
}

@media(hover: hover) and (pointer: fine) {
    a:hover {
        color: #CCCCCC;
    }
}

h1, p  {
    margin: 0.5em 0;
}

img {
    margin: 40px 0;
    border-radius: 20px;
}

.exception {
    border: 1px solid black;
    background: #800;
    padding: 0;
    color: #fff;
    margin: 10px;
    font-size: 16px;
    text-align: left;
}

.exception p {
    padding: 5px 10px;
}

.exception pre {
    background: #fee;
    color: #000;
    padding: 5px 10px;
    margin: 0;
    font-size: 0.9em;
    overflow: auto;
}

textarea {
    display: block;
    width: 100%;
    resize: vertical;
    min-height: 200px;
    margin-bottom: 20px;
}

button {
    padding: 15px 20px;
    cursor: pointer;
    transition: box-shadow 0.05s, color 0.1s, background-color 0.1s;
    font-weight: 300;
    font-size: 1rem;
    line-height: 1em;
    display: inline-block;
    color: #fff;
    background-color: #0f6086;
    border-color: #0c4e6b;
    border-width: 0 1px 1px 0;
    border-style: solid;
    user-select: none;
    -webkit-appearance: none;
    position: relative;
}

.button:active {
    box-shadow: #000 inset 3px 3px 4px -2px;
}

.ajax-loading {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: #000;
    opacity: 0.6;
}

.ajax-loading::before {
    content: "";
    background: url("img/loading.svg") no-repeat 50% 50%;
    width: 43px;
    height: 11px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.thingything {
    display: block;
    text-align: center;
    margin: 40px auto;
    overflow: hidden;
    border: 0;
    background-color: #0001;
    max-width: 100%;
    z-index: -10;
}

@media (max-width: 1209px) {
    .thingything {
        width: 350px;
        height: 300px;
    }
}

@media (min-width: 1210px) {
    .thingything.h {
        width: 980px;
        height: 400px;
    }

    .thingything:not(.h) {
        width: 980px;
        height: 120px;
    }
}