html,
body {
    padding: 0;
    margin: 0;
}

body {
    /* font-family: Helvetica, "SofiaProSemiBold", "Arial", sans-serif; */
    font-family: "Montserrat", sans-serif;
    font-optical-sizing: auto;
    font-weight: 600;
    font-style: normal;

    /* font-family: "Roboto", sans-serif;
    font-weight: 900; */

    font-size: 50px;
    /* font-variant: small-caps; */
    color: #000000;
    background-color: #ffffff;
}

body.nee,
body.error {
    color: rgb(0, 78, 113);
    background-color: rgb(107, 147, 168);
}

a:link,
a:visited,
a:active,
a:hover {
    text-decoration: none;
}

.error a:link,
.error a:visited,
.error a:active,
.error a:hover,
.nee a:link,
.nee a:visited,
.nee a:active,
.nee a:hover {
    color: rgb(0, 78, 113);
}

body.ja {
    color: #c34f22;
    background-color: rgb(253, 235, 209);
}

body.ja a:link,
body.ja a:visited,
body.ja a:active,
body.ja a:hover {
    color: #c34f22;
}

.backdrop {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
}

body.ja .backdrop {
    background: radial-gradient(#feebd1, #ebcea4);
}

body.nee .backdrop,
body.error .backdrop {
    background: radial-gradient(#e6f4fe, #b3c0d0);
}

.container {
    position: absolute;
    z-index: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

.title {
    font-size: 36px;
    font-weight: bold;
    text-align: center;
    margin: 60px 16px -20px 16px;

    z-index: 1;
    margin-right: auto;
    margin-left: auto;
    max-width: 750px;
    padding: 0px 16px;
}

@media all and (min-width: 640px) {
    .title {
        font-size: 54px;
        display: block;
        padding: 0px 64px;
    }
}

.verdict {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;

    max-width: 800px;
    margin: auto;
    width: 90%;
}

@media all and (min-width: 640px) {
    .verdict {
        flex: 1;
        justify-content: center;
    }
}

.date,
.temp {
    font-weight: bold;
    text-align: center;
    min-width: 120px;
    font-size: 15px;
    width: 100%;
    flex-grow: 1;
}

@media all and (min-width: 640px) {
    .date,
    .temp {
        width: inherit;
        flex: 1;
    }
}

@media all and (min-width: 640px) {
    .rain,
    .temp {
        min-width: 0;
        font-size: 18px;
    }
}

.date {
    order: 2;
    /* font-family: "Helvetica", "sofiapro-light"; */
    font-weight: 400;
}

@media all and (min-width: 640px) {
    .date {
        order: 1;
        /* font-family: Helvetica, "SofiaProSemiBold", "Arial", sans-serif; */
        font-weight: 600;
    }
}

.temp {
    order: 3;
    line-height: 10px;
}

.error .data {
    display: none;
}

.main-image {
    margin: 0 16px -16px 16px;
    order: 1;
    flex: 1;
    flex-grow: 2;
}

@media all and (min-width: 640px) {
    .main-image {
        margin: 0;
        margin-top: -42px;
        max-width: 500px;
        text-align: center;
        order: 2;
    }
}

.main-image img {
    min-width: 200px;
    width: 100%;
    margin: -32px 0;
}

@media all and (min-width: 640px) {
    .main-image img {
        max-width: 370px;
    }
}

.credits-opener,
.tomorrow-opener {
    display: flex;
    position: fixed;
    z-index: 3;
    right: 18px;
    bottom: 18px;
    cursor: pointer;

    width: 32px;
    height: 32px;
    text-align: center;
    font-size: 32px;
}

.credits-container,
.tomorrow-container {
    position: absolute;
    display: none;
    left: 0;
    top: 0;
    transform: translateY(100vh);

    -webkit-transition: transform 200ms ease-out;
    -moz-transition: transform 200ms ease-out;
    -ms-transition: transform 200ms ease-out;
    -o-transition: transform 200ms ease-out;
    transition: transform 200ms ease-out;

    z-index: 4;
    width: 100vw;
    height: 100vh;
}

body.ja .credits-container,
body.ja .tomorrow-container {
    color: #c34f22;
}

body.nee .credits-container,
body.error .credits-container,
body.nee .tomorrow-container {
    color: rgb(0, 78, 113);
}

body.nee .credits-container a,
body.error .credits-container a,
body.error .tomorrow-container a {
    color: rgb(0, 78, 113);
}

body.overlay-container--visible {
    overflow: hidden;
}

body.overlay-container--visible .credits-container,
body.overlay-container--visible .tomorrow-container {
    display: block;
}

.credits-container.overlay-container--visible,
.tomorrow-container.overlay-container--visible {
    transform: translateY(0vh);
}

.credits-backdrop,
.tomorrow-backdrop {
    position: absolute;
    z-index: 1;
    top: 10%;
    right: 10%;
    bottom: 10%;
    left: 10%;
    background-color: white;

    -webkit-box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.23);
    -moz-box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.23);
    box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.23);
}

.overlay-close {
    position: absolute;
    z-index: 3;

    cursor: pointer;

    width: 32px;
    height: 32px;
    text-align: center;

    top: 10px;
    right: 10px;
    font-size: 20px;
}

@media all and (min-width: 640px) {
    .overlay-close {
        top: 18px;
        right: 18px;
        font-size: 32px;
    }
}

.credits,
.tomorrow {
    position: absolute;
    z-index: 2;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    flex-direction: column;
    text-align: center;
}

.credits a {
    text-decoration: underline;
}

.credits--bold {
    font-weight: bold;
}

.credits__title {
    font-size: 1.5em;
}

.socials {
    display: flex;
    flex-direction: row;
    align-items: flex-start;

    position: fixed;
    z-index: 3;
    left: 18px;
    bottom: 18px;
    cursor: pointer;

    font-size: 14px;
}

body.ja a.social-icon {
    margin-right: 12px;
    color: #c34f22;
}

body.ja a.social-icon:hover {
    color: #c34f22;
}
