@font-face {
    font-family: "Roboto";
    src: url("../fonts/Roboto-Regular.ttf");
    font-weight: normal;
    font-style: normal;
}

@media only screen and (max-width: 1200px) {
    .desktop {
        display: none;
    }
}

@media only screen and (min-width: 1200px) {
    .mobile {
        display: none;
    }
}

html, body {
    height: 100%;
    margin: 0;
    background-color: #f0f0f0;

    color: #404040;
    font-family: "Roboto";
}

input, select {
    color: #404040
}

h1, p {
    padding: 0;
    margin: 0;
}

@media only screen and (max-width: 1200px) {
    h1 { font-size: 24px; }
    p  { font-size: 16px; }
    label { font-size: 16px; }
}

@media only screen and (min-width: 1200px) {
    h1 { font-size: 28px; }
    p  { font-size: 18px; }
    label { font-size: 18px; }
}

.spacer_0 { height: 6px;  flex-shrink: 0; }
.spacer_1 { height: 12px; flex-shrink: 0; }
.spacer_2 { height: 24px; flex-shrink: 0; }
.spacer_3 { height: 36px; flex-shrink: 0; }
.spacer_4 { height: 48px; flex-shrink: 0; }
.spacer_5 { height: 60px; flex-shrink: 0; }

.spacer_x3  { height: 3px; flex-shrink: 0; }
.spacer_x18 { height: 18px; flex-shrink: 0; }


#main {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}


/* RANGE header. */

#header_wrapper {
    width: 100%;
    flex-shrink: 0;

    background-color: #ffffff;
    box-shadow: 0px 2px 3px rgba(0, 0, 0, 0.16);
}

#header {
    position: relative;
    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: center;
}

/* mobile */
@media only screen and (max-width: 1200px) {
    #header {
        width: 100%;
        height: 75px;
    }

    #header img {
        position: absolute;
        left: 12px;
        top: 12px;
        width: 50px;
        height: 50px;
    }

    #header div {
        font-size: 30px;
    }
}

/* desktop */
@media only screen and (min-width: 1200px) {
    #header {
        width: 1200px;
        height: 100px;
    }

    #header img {
        position: absolute;
        left: 24px;
        top: 12px;
        width: 75px;
        height: 75px;
    }

    #header div {
        font-size: 36px;
    }
}


/* RANGE body. */

#body_wrapper {
    box-sizing: border-box;
    width: 100%;
}

/* mobile */
@media only screen and (max-width: 1200px) {
    #body_wrapper {
        padding: 0px 6px;
    }

    #body {
        padding: 18px;

        background-color: #ffffff;
        box-shadow: 0px 2px 3px rgba(0, 0, 0, 0.16);
    }
}

/* desktop */
@media only screen and (min-width: 1200px) {
    #body_wrapper {
        flex-grow: 1;

        background-color: #ffffff;
    }

    #body {
        box-sizing: border-box;
        width: 1200px;
        margin: 0 auto;
        padding: 24px;

        background-color: transparent;
        box-shadow: none;
    }
}


#info_text p {
    margin-bottom: 9px;
}


/* RANGE fancy submit button */

.fancy_submit_button {
    position: relative;

    border: none;
    color: #ffffff;
    background-color: #50A8FF;

    transition: background-color 0.2s ease-in-out;
    transition: border-color 0.2s ease-in-out;
    transition: box-shadow 0.1s ease-in-out;
    transition: background-color 0.1s ease-in-out;
}

.fancy_submit_button.disabled {
    background-color: #9CB6CE;
    border: 1px solid #688AA8;
}

.fancy_submit_button.idle {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
}

.fancy_submit_button.idle:hover {
    background-color: #3081CC;
}

.fancy_submit_button.idle:active {
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
}

.fancy_submit_button.waiting {
    border: 1px solid #2A6EB7;
}

.fancy_submit_button.success {
    background-color: #419A4D;
    border: 1px solid #2F773B;
}

.fancy_submit_button.error {
    background-color: #F17D70;
    border: 1px solid #AF4646;
}

.fancy_submit_button .idle_content {
    width: 100%;
}

.fancy_submit_button .waiting_content, .success_content, .error_content {
    width: 24px;
    height: 24px;
}

.fancy_submit_button span {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);

    opacity: 0;
    transition: opacity 0.2s ease-in-out;
}

@keyframes waiting_spin {
    0%   { transform: translate(-50%, -50%) rotate(0deg); }
    25%  { transform: translate(-50%, -50%) rotate(180deg); }
    50%  { transform: translate(-50%, -50%) rotate(180deg); }
    75%  { transform: translate(-50%, -50%) rotate(360deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.fancy_submit_button .waiting_content.shown {
    animation-name: waiting_spin;
    animation-duration: 1000ms;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
}

.fancy_submit_button.disabled .idle_content   { opacity: 1; }
.fancy_submit_button.idle    .idle_content    { opacity: 1; }
.fancy_submit_button.waiting .waiting_content { opacity: 1; }
.fancy_submit_button.success .success_content { opacity: 1; }
.fancy_submit_button.error   .error_content   { opacity: 1; }


