/* Elements */

html {
    font-size: 14px;
    font-family: Arial, Helvetica, sans-serif;
    color: #16253C;
}
@media (min-width: 769px) {
    html { font-size: 16px }
}

* { box-sizing: border-box }

body {
    margin: 0; padding: 0;
}

p { line-height: 1.3; margin: 0; padding: 0 }

header {
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #B9B9B9;
    padding-top: 1rem;
    padding-bottom: .8rem;
}
header > p { flex: 1; padding-right: 3.125rem }
@media (min-width: 769px) {
    header > p, header > h1 { font-size: .8125rem; margin: 0; }
}

label:first-of-type input[type="radio"]:checked { accent-color: #74BE85 }
label:last-of-type input[type="radio"]:checked { accent-color: #B85F6C }

main {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem
}
@media (min-width: 769px) {
    main { padding: 0 2rem }
}

figure {
    margin: 0;
    padding: 0;
}

details {
    background: #F5F5F5;
    margin-bottom: .3rem;
}
details > div {
    font-size: .875rem;
    color: #313E53;
    text-align: left;
    padding-left: 2rem;
    padding-bottom: 1rem;
}
details > div > p { margin-bottom: .4rem }
details label { margin-right: 2rem }

summary {
    background: #F5F5F5;
    min-height: 2.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    padding-left: 1rem;
    width: 100%;
    position: relative;
    text-align: left;
}
summary::-webkit-details-marker { display: none }
summary::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: .3rem;
    background: linear-gradient(to bottom, #70E6B9, #3774CE);
}
@media (min-width: 769px) {
    summary { min-height: 3rem }
}

footer {
    color: #A4A4A4;
    font-size: .75rem;
    margin-top: 2.375rem;
    margin-bottom: 1rem;
}
footer a { color: inherit }
@media (min-width: 769px) {
    footer {
        font-size: .8125rem;
        margin-top: 3.5rem;
        margin-bottom: 1.375rem;
    }
}

/* Objects */
.green-box { background: linear-gradient(to bottom right, #B0E170, #5DAE90); color: white }
.red-box { background: linear-gradient(to bottom right, #D44F5A, #9C232E); color: white }
.orange-box { background: linear-gradient(to bottom right, #F2D476, #E8AA58); color: white }

.learn-german {
    background: linear-gradient(to bottom right, #73EDB9, #3A7BCD);
    padding: 2px;
    position: relative;
}

.learn-german img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.learn-german .test-results {
    background: #F5F5F5;
    text-align: left;
    padding: .5rem 1rem;
    font-size: .875rem
}

@media (min-width: 769px) {
    .learn-german .test-results {
        position: absolute;
        width: calc(100% - 4px);
        height: calc(100% - 4px);
        top: 2px; left: 2px;
    }
}

.learn-german .test-results > p { margin: .75rem 0 1rem 0 }

.learn-german .test-results.test-results-mobile {
    position: relative;
}

.text-results-numbers {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.text-results-numbers i {
    width: 1.2rem;
    height: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .625rem;
    border-radius: 2px;
}

.learn-german .test-results-legend {
    font-size: .75rem;
    border-top: 1px solid #BDBDBD;
    margin-top: 2.5rem;
    padding-top: .5rem;
}
.learn-german .test-results-legend > p {
    margin: .5rem 0 .5rem 0;
}
.learn-german .test-results-legend > p > i {
    content: '';
    display: inline-block;
    margin-right: 0.4rem;
    width: .75rem;
    height: .75rem;
    border-radius: 2px;
}


/* Components */
.logo {
    width: 40px;
    height: 30px;
}
@media (min-width: 769px) {
    .logo {
        width: 34px;
        height: 24px;
    }
}

.top-separator {
    background: #16253C;
    height: 2rem;
    border-bottom: 2px solid #68AAC2;
}
@media (min-width: 769px) {
    .top-separator { height: 1rem }
}

.description { padding-top: .8rem }
.description > p { font-size: 1.125rem }
.description > div { display: flex; align-items: center; margin-top: .875rem }
.description > div > p { flex: 1; font-size: .75rem; margin-right: 1rem; margin-top: 0 }
.description .learn-german {
    display: block;
    width: 68px;
    height: 106px;
}
@media (min-width: 769px) {
    .description { padding-top: 1.2rem }
    .description .learn-german { display: none }
    .description > div {  margin-top: .75rem }
    .description > div > p { flex: 1; margin-right: 0; font-size: .8125rem }
}

.questions-wrapper {
    display: block;
    text-align: center;
    margin-top: 1.5rem;
}
.questions-wrapper > div { width: 100% }
.questions-wrapper > .learn-german { display: none; height: auto }
.questions-wrapper button {
    margin-top: 1.25rem;
    color: white;
    background: linear-gradient(to right, #7EEAC3, #3A7ACD);
    border: 0;
    padding: .7rem 1rem;
    border-radius: .3rem;
    box-shadow: 0 1px 2px .2px rgba(0,0,0,0.35);
    cursor: pointer;
}
@media (min-width: 769px) {
    .questions-wrapper {
        display: flex;
        justify-content: space-between;
        align-items: start;
    }
    .questions-wrapper > div {
        margin-right: 1.375rem;
        flex: 1;
        width: auto;
    }
    .questions-wrapper .questions { overflow-y: scroll; height: 372px }
    .questions-wrapper .learn-german {
        display: block;
        width: 237px;
        height: 372px;
    }
}

.course-recommendation > p {
    font-weight: bold;
    margin-top: 1rem;
}


/* Utilities */
.hidden { display: none }
