* {
    box-sizing: border-box;
}

hr {
    border: none;
    border-top: #e5e5e5 1px solid;
}

body {
    font-family: "A1-sans", Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    background-color: #f2f2f2;
}

body > * {
    width: 100%;
    max-width: 810px;
}

.content-frame {
    width: 100%;
    background-color: #fafafa;
    border: none;
}

.block {
    margin: 2rem 3rem;
}

.container {
    margin-top: 2rem;
    background-color: white;
    border-color: rgba(0, 0, 0, 0);
    box-shadow:
        rgba(0, 0, 0, 0.12) 0px 0px 2px 0px,
        rgba(0, 0, 0, 0.14) 0px 2px 4px 0px;
    width: 100%;
}

.container:empty {
    display: none;
}

header {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

header > * {
    margin: 0 3rem;
    text-align: left;
}

header .logo {
    width: 150px;
    height: auto;
}

.card {
    flex: 1 1 auto;
    min-height: 1px;
    text-align: justify;
}

main {
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: start;
}

footer {
    width: 100%;
    margin-bottom: 2rem;
}

.button-container {
    max-width: 810px;
    background-color: white;
    display: flex;
    flex-direction: row;
    padding: 1.5rem;
    align-items: center;
    justify-content: center;
}

.button-container button {
    width: 45%;
    margin: 0 1.5rem;
    color: white;
    font-weight: bold;
}

#continue-button {
    background: var(--a1-red);
}

#skip-button {
    background: var(--a1-grey);
}

#start-button {
    background: var(--a1-red);
}

#safe-button {
    background: var(--quiz-green);
}

#phishing-button {
    background: var(--quiz-red);
}

label {
    display: inline-block;
    margin-bottom: 0.5rem;
}

[aria-hidden="true"] {
    display: none;
}

#link-preview {
    position: fixed;
    bottom: 0;
    left: 0;
    background-color: #202124;
    border: none;
    border-radius: 0 4px 0 3px;
    color: #e7e7e7;
    padding: 0.25rem;
    font-family:
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        "Helvetica Neue",
        Arial,
        sans-serif;
    font-size: 14px;
    line-height: 1;
    z-index: 100;
    pointer-events: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    text-align: left;
}

#onboarding iframe,
#offboarding iframe {
    width: 100%;
    border: none;
}

#statistics {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding-bottom: 3rem;
}

#statistics-chart-container {
    width: 75%;
}

#context {
    text-align: left;
}

#info-text-container {
    text-align: left;
}

#info-text-reveal {
    font-weight: bold;
}

#info-text-reveal li {
    font-weight: normal;
}

#score-span {
    margin: 0;
}

#cookie-banner-spacer {
    margin-bottom: 4rem;
}

#cookie-banner {
    width: fit-content;
    opacity: 0.9;
    text-align: left;
    position: fixed;
    bottom: 1rem;
    background-color: white;
    border-color: rgba(0, 0, 0, 0);
    padding: 0.5rem 0.6rem;
    font-size: small;
    z-index: 100;
}

#cookie-banner > * {
    margin: 0;
}

#customized-recipient-form-explanation {
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
}

/* TODO: code refactoring KISS & reuse with boarding.css */
ul {
    list-style: none;
    padding-left: 0;
}

ul li {
    margin-top: 13px;
    min-height: 47px;
    padding: 15px;
    padding-left: 73px;
}

ul li::before {
    content: "!";
    font-family: "A1-serif", serif;
    background: var(--quiz-yellow);
    color: white;
    font-weight: bold;
    font-size: 40px;
    text-align: center;
    line-height: 47px;
    width: 47px;
    height: 47px;
    border-radius: 50%;
    display: inline-block;
    position: absolute;
    margin-left: -60px;
}

ol {
    list-style: none;
    padding-left: 0;
    counter-reset: boarding-list;
}

ol li {
    margin-top: 13px;
    min-height: 47px;
    padding: 15px;
    padding-left: 73px;
    counter-increment: boarding-list;
    display: table;
}

ol li::before {
    content: counter(boarding-list);
    background: var(--quiz-red);
    color: white;
    font-family: "A1-serif", serif;
    font-weight: bold;
    font-size: 30px;
    text-align: center;
    line-height: 47px;
    width: 47px;
    height: 47px;
    border-radius: 50%;
    display: inline-block;
    position: absolute;
    margin-left: -60px;
}

ol li.tip-red::before {
    background: var(--quiz-red);
}

ol li.tip-green::before {
    background: var(--quiz-green);
}

ol li > span {
    display: table-cell;
    vertical-align: middle;
}

@media (max-width: 600px) {
    .block {
        margin: 2rem 2rem;
    }

    header {
        flex-direction: column-reverse;
        align-items: center;
    }

    header > * {
        text-align: center;
    }

    header .logo {
        margin-top: 2rem;
    }

    main {
        margin-bottom: 6rem;
    }

    #statistics-chart-container {
        display: none !important;
    }
}
