* {
    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;
}

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

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

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

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: 32px 0;
    border-radius: 20px;
}

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

.exception p {
    padding: 4px 8px;
}

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

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

button {
    border-radius: 3px;
    padding: 8px 16px;
    cursor: pointer;
    transition: 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: 0;
    user-select: none;
    -webkit-appearance: none;
    position: relative;
}

button:active {
    color: #0f6086;
    background-color: #fff;
}

.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%);
}

.a {
    display: block;
    margin: 32px 8px;
    overflow: hidden;
    border: 0;
    width: calc(100% - 16px);
}

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

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