/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at https://mozilla.org/MPL/2.0/. */

/* General - Start */
:root {
    --color-blue: rgb(0, 96, 223);
    --color-red: red;
    --color-dark: #333;
    --color-light: #F3F3F3;
    --color-text: var(--color-dark);
    --color-background: white;
}

@media (prefers-color-scheme: dark) {
    :root {
        --color-text: var(--color-light);
        --color-background: var(--color-dark);
    }
}

body {
    font-family: 'Franklin Gothic Medium', Arial, sans-serif;
    padding: 0;
    margin: 0;
    font-size: 14pt;
    line-height: 1.2;
    color: var(--color-text);
    background: var(--color-background);
}

body > section,
body > form > section {
    width: 95%;
    max-width: 1000px;
    margin: auto;
}

section img {
    width: 100%;
}

h1, h2, h3, h4, h5, h6 {
    text-align: center;
}

a {
    color: var(--color-blue);
}

.hide {
    display: none !important;
}
/* General - End */

/* Page header - Start */
header > div {
    display: flex;
    align-items: center;
    box-sizing: border-box;
    padding: 0.5em;
    width: max-content;
    margin: auto;
}

header > div > div {
    display: flex;
    align-items: center;
    padding: 1em 2em;
}

header {
    background: var(--color-header);
    position: sticky;
    top: 0;
    box-shadow: 0 0 5px 5px rgba(0, 0, 0, .3);
}

header h1 {
    font-size: 200%;
    margin: 0;
    color: var(--color-header-text);
}

header img {
    width: 30pt;
    height: 30pt;
    margin-right: .5em;
}
/* Page header - End */

/* Banner - Start */
.banner {
    display: flex;
    padding: .5em 1em;
    box-sizing: border-box;
    border-radius: 10px;
    align-items: center;
    margin-bottom: 1em;
}

.banner span {
    flex: 1;
}

.banner a {
    text-decoration: none;
    padding: .5em 1em;
    border-radius: 10px;
}
/* Banner - End */

/* Donation banner - Start */
.donate {
    background: var(--color-blue);
    color: white;
}

.donate a {
    color: var(--color-blue);
    background: white;
}
/* Donation banner - End */

/* Warning banner - Start */
.warning {
    background: var(--color-red);
    color: white;
}

.warning a {
    color: var(--color-red);
    background: white;
}
/* Warning banner - End */

/* Release info - Start */
.release-info {
    text-align: center;
    font-size: 80%;
}
/* Release info - End */

/* Important warning - Start */
.important {
    border-left: 5px solid #fcba03;
    padding: 0.5em 1em;
    background: #fff1c9;
    margin-top: 1em;
}

.important > h4,
.important > p {
    text-align: left;
    margin: 0;
}
/* Important warning - End */

/* Form */
form input:not([type="checkbox"]),
form select,
form textarea {
    width: 100%;
    max-width: 500px;
}

form textarea {
    resize: none;
}

form h3 {
    text-align: left;
}

.survey-option {
    display: flex;
    margin-bottom: 1em;
}

.survey-option > input {
    margin-right: 1em;
}

.side-by-side {
    display: flex;
    align-items: flex-start;
}

.side-by-side > section {
    flex: 1;
}

button {
    font-size: 125%;
    color: white;
    background: rgb(0, 96, 223);
    padding: 0.5em 2em;
    border: none;
    border-radius: 10000px;
    cursor: pointer;
}

span.link {
    color: var(--color-link);
    cursor: pointer;
    text-decoration: underline;
}
/* Form - End */

/* Privacy Policy */
.privacy-policy h3 {
    text-align: left;
}

.privacy-policy p {
    margin-left: 1em;
}

.privacy-policy p.no-indent {
    margin-left: 0;
}
/* Privacy Policy - End */
