body, button, input {
    font-family: 'Ubuntu', sans-serif;
}

/* BEGIN 4CAST Header */

header {
    transform: translateY(0);
    transition: .3s ease;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
    z-index: 99;
    background: linear-gradient(
        150deg,
        rgba(0, 82, 185, 0.9) 0%,
        rgba(0, 59, 133, 0.9) 35%,
        rgba(0, 82, 185, 0.9) 100%
    );
    display: block;
    height: 40px;
    padding: 5px;
    color: rgb(10, 26, 64);
    box-sizing: border-box;
}

@media(max-width: 1023px) {
    header {
        display: none;
    }
}

header::before {
    background-color: rgba(0, 82, 185, 0.8);
    content: "";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

nav {
    display: flex;
    width: 1140px;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
    box-sizing: border-box;
    justify-content: space-between;
}

#fourcast_link_container {
    flex-grow: 1;
    flex-shrink: 1;
    box-sizing: border-box;
}

#fourcast_link {
    margin-right: 0;
    display: block;
    transition: all 0.25s ease;
    color: rgb(10, 26, 64);
    font-size: calc(0.4rem + 0.4vw);
    line-height: 0.9rem;
    outline: none;
    text-decoration: none;
    background-color: transparent;
    width: fit-content;
}

#fourcast_logo {
    width: 150px;
    display: block;
    height: 20px;
    max-width: 100%;
    transform: translateZ(0);
    border: 0;
    box-sizing: border-box;
}

#flag_list, #link_list {
    flex-grow: 1;
    flex-shrink: 1;
    box-sizing: border-box;
    margin-right: -21px;
    margin-left: 9px;
    margin-top: 6px;
    font-family: 'Ubuntu', sans-serif;
    color: rgb(53, 53, 53);
    font-weight: 200;
    line-height: 1.667rem;
    font-size: 13px;
    padding: 0;
    list-style: none;
}

#flag_list li, #link_list li {
    position: relative;
    float: left;
    transition: all 0.25s ease;
    box-sizing: border-box;
}

#flag_list li::before, #link_list li::before {
    content: '';
    display: block;
    position: absolute;
    left: 21px;
    right: 21px;
    bottom: -15px;
    height: 2px;
    transition: all 0.3s;
    background-color: #fff;
    opacity: 0;
    visibility: hidden;
    box-sizing: border-box;
    pointer-events: none;
}

#flag_list li:hover::before, #link_list li:hover::before {
    bottom: -3px;
    opacity: 1;
    visibility: visible;
}

#flag_list li a, #link_list li a {
    color: #fff;
    transition: all 0.25s ease;
    padding: 0 10px;
    text-transform: uppercase;
    letter-spacing: 3.5px;
    font-size: 13px;
    font-family: 'Ubuntu', sans-serif;
    text-decoration: none;
    font-weight: 600;
    display: block;
    line-height: 0.9rem;
    outline: none;
    background-color: transparent;
    box-sizing: border-box;
}

#admin, #logout {
    position: relative;
    color: #fff;
    z-index: 100;
    text-transform: uppercase;
    letter-spacing: 3.5px;
    font-size: 13px;
    font-family: 'Ubuntu', sans-serif;
    text-decoration: none;
    font-weight: 600;
    display: block;
    line-height: 0.9rem;
    outline: none;
    box-sizing: border-box;
    flex-grow: 1;
    flex-shrink: 1;
}

/* END 4CAST Header */

h1 {
    margin-top: 5rem;
}

h1, main, body > .intro, body > ol {
    margin-left: 20%;
    margin-right: 20%;
}

@media(max-width: 960px) {
    h1, main, body > .intro, body > ol {
        margin-left: 10%;
        margin-right: 10%;
    }
}

@media(max-width: 725px) {
    h1, main, body > .intro, body > ol {
        margin-left: 1rem;
        margin-right: 1rem;
    }
}

ol li {
    padding-left: 1rem;
}

.intro, #image_crop p, ol {
    text-align: justify;
}

h2 {
    text-align: left;
}

dialog p {
    text-align: center;
}

input[type=text],
input[type=email],
input[type=tel],
input[type=file],
input[type=password],
input[type=checkbox],
input[type=url] {
    display: block;
    margin-bottom: 1rem;
}

input[type=text], input[type=email], input[type=tel], input[type=password], input[type=url] {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    resize: vertical;
    width: 100%;
    box-sizing: border-box;
}

button, input[type=submit] {
    box-sizing: border-box;
    cursor: pointer;
    color: white;
    background-color: rgb(0, 162, 255);
    height: 39px;
    padding: 0 30px;
    border-radius: 0 20px;
    border: 1px solid transparent;
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    touch-action: manipulation;
    font-size: 16px;
    font-weight: 600;
    line-height: 0.9rem;
    transition: all 0.25s ease;
}

.hoverable:hover {
    color: rgb(0, 82, 185);
}

input[type=range] {
    width: 288px;
}

button:disabled {
    opacity: 0.5;
}

form {
    box-sizing: border-box;
    margin: 0;
    padding: 20px;
    width: 390px;
    background-color: #f2f2f2;
    flex-shrink: 0;
}

@media(max-width: 446px) {
    form {
        width: 100%;
    }
}

main {
    display: flex;
}

dialog {
    border: none;
    width: 470px;
}

hr {
    margin-bottom: 50px;
}

.error {
    color: red;
}

.buttons {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    row-gap: 0.5rem;
}

.button_list {
    display: flex;
    margin: 25px 0;
    row-gap: 0.5rem;
    column-gap: 1rem;
    flex-wrap: wrap;
}

.disabled {
    opacity: 0.5;
}

#personal_data {
    margin-right: 2rem;
}

#signature_result {
    display: none;
}

#signature_container {
    display: flex;
    margin-bottom: 5rem;
    padding: 1rem;
}

#download_signature {
    display: none;
}

#flag_container {
    display: flex;
    position: absolute;
    top: 1rem;
    right: 1rem;
    justify-content: center;
}

#image_container {
    display: flex;
    justify-content: center;
}

#target {
    position: relative;
    z-index: 1;
    max-width: 512px;
    max-height: 512px;
    user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-use-select: none;
    display: none;
}

#overlay {
    display: block;
    background-repeat: no-repeat;
    user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-use-select: none;
    cursor: grab;
}

#cutout {
    position: absolute;
    top: 0px;
    background-color: transparent;
    z-index: 4;
    border-radius: 50%;
    cursor: grab;
    box-shadow: 0px 0px 10px white;
    display: none;
}

#zoom_label {
    margin-right: 1rem;
}

#zoom_container {
    margin-top: 1rem;
    display: flex;
    align-items: center;
}

#loading div {
    border-radius: 50%;
    border: 16px solid lightgray;
    border-top: 16px solid black;
    width: 100px;
    height: 100px;
    margin: 0 auto;
    margin-bottom: 2rem;
    animation: spin 2s linear infinite;
    -webkit-animation: spin 2s linear infinite;
}

@-webkit-keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

#file_container {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    row-gap: 0.1rem;
    column-gap: 1rem;
    margin-top: 0.5rem;
}

#alt_file_choose, #delete_file {
    background-color: rgb(0, 162, 255);
    border-color: rgb(0, 162, 255);
    border-radius: 15px;
    font-size: 12px;
    cursor: pointer;
    text-align: center;
    color: white;
    height: 39px;
    box-sizing: border-box;
    line-height: 12px;
    margin: 0;
    font-weight: 700;
    width: fit-content;
    padding: 12px 24px;
}

#alt_file_choose {
    padding-top: 14px;
}

#delete_file {
    display: none;
}

#file_container p {
    margin: 0;
    font-size: 13.3333px;
    width: calc(100% - 200px);
    text-overflow: ellipsis;
    overflow: hidden;
    flex-grow: 1;
    white-space: nowrap;
}

#id_image, #id_banner {
    opacity: 0;
    height: 0;
}

#too_low_res_error {
    display: none;
}

@media(max-width: 1700px) {
    main {
        flex-direction: column;
    }

    #personal_data {
        margin-right: 0;
    }
}

#admin_panel {
    flex-direction: column;
}
