html {
    min-height: -webkit-fill-available;
}

body {
    display: grid;
    grid-template-rows: auto 1fr auto;
    font-family: Roboto, sans-serif;
    height: 100vh;
    height: 100dvh;
    min-height: 100vh;
    min-height: -webkit-fill-available;
    min-height: 100dvh;
    position: relative;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

h2 {
    margin: 0;
    letter-spacing: .05rem;
    line-height: 1.25;
    font-size: 1.5rem;
    font-weight: 400;
    margin: 0;
    text-align: center;
    font-family: Oswald, sans-serif;
}

p {
    margin: 0 0 .5rem;
}

#logo-container {
    display: flex;
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    background-color: white;
    padding: 1.2rem;
    border-bottom: 2px solid #dcdcdc;
    justify-content: center;
}

#quiz {
    overflow: hidden;
    position: relative;
}

#quiz>section {
    height: 100%;
    padding: 0 1rem 1rem;
    display: flex;
    flex-direction: column;
}

#quiz h2 {
    padding: 1.5rem 0 3rem;
    flex-grow: 0;
    flex-shrink: 0;
}

#quiz .answers-container,
#quiz .code-container {
    flex-grow: 1;
}

#quiz .answers-container.vertical {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#quiz .answers-container.grid_2x {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-content: center;
    gap: 1rem;
}

#quiz input[type=radio] {
    display: none;
}

#quiz .answer {
    width: 100%;
    box-shadow: 0 2px 4px 1px rgba(0, 0, 0, 0.24);
    margin: .5rem 0;
    box-sizing: border-box;
    line-height: 1.15;
    vertical-align: middle;
    padding: .875rem 1.5rem;
    border: 2px solid transparent;
    transition: box-shadow .2s cubic-bezier(.4, 0, .2, 1), border-color .2s ease;
    user-select: none;
}

#quiz .grid_2x .answer {
    aspect-ratio: 2;
    width: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 1.25em;
}

#quiz .quiz-section[data-section-id=loading],
#quiz .quiz-section[data-section-id=failed] {
    align-items: center;
    justify-content: center;
    text-align: center;
}

#quiz .next-button {
    width: 100%;
    color: black;
    background-color: #d9d9d9;
    padding: .875rem 1.5rem;
    user-select: none;
    pointer-events: none;
    text-transform: uppercase;
    text-align: center;
    font-weight: 500;
    pointer-events: none;
    transition: background-color .2s ease;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 1ch;
    margin-top: 3rem;
}

#quiz .next-button .icon {
    height: 1em;
}

#quiz .answers-container:has(input[type=radio]:checked)+.next-button {
    background-color: #6dcff6;
    pointer-events: initial;
}

#quiz .answers-container input[type=radio]:checked+label {
    border-color: #6dcff6;
    box-shadow: 0 1px 1px #4d4d4d14, 0 1px 3px 1px #4d4d4d29
}

#quiz .code-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    padding-bottom: 3rem;
}

#quiz .code-container .part:not(:last-of-type)::after {
    content: '-';
    margin: 0 .5ch;
}

#footer {
    margin-top: auto;
    padding: 1rem;
    background-color: black;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    font-size: .8rem;
}

#start-overlay {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    right: 0;
    background-color: white;
    z-index: 99;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: clip-path 0.2s ease-in;
    clip-path: xywh(0 0 100% 100%);
}

#start-overlay.hide {
    clip-path: xywh(100% 0 0% 100%);
}