@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
* {
    box-sizing: border-box;
    --primary: black;
    --secondary: #44546A;
    --color-1: #ED3263;
    --color-2: #F3D848;
    --color-3: #02BDC5;
    --color-4: #3B2480;
    --light: #E7E6E6;
    --headings: "Poppins", sans-serif;
    --body: "Open Sans", sans-serif;
}
html,
body {
    margin: 0;
    scroll-snap-type: y proximity;
    font-family: "Open Sans", sans-serif;
}


h1, h2, h3, h4, h5, h6 {
    font-family: "Poppins", sans-serif;
    font-style: normal;
}

a {
    color: inherit;
    font-weight: bold;
}

img[src*=".svg"] {
    margin-bottom: -3px;
}

input[type=submit],
input[type=reset],
button {
    font-family: var(--headings);
    font-weight: bold;
}

input[type=submit],
input[type=reset],
button,
a.button {
    display: inline-block;
    width: fit-content;
    background-color: var(--color-4);
    border-radius: 0.5em;
    padding: 0.5em 1em;
    color: white;
    text-decoration: none;
}

button.outline,
a.button.outline {
    color: var(--color-4);
    outline: 3px solid var(--color-4);
    background-color: transparent;
}

button img,
a.button img {
    vertical-align: baseline;
    margin-right: .25em;
}

button.icon-button,
a.icon-button {
    filter: hue-rotate(var(--color-4));
}

div.button-group {
    display: flex;
    flex-direction: row;
    align-items: center;
}

section {
    min-height: 90vh;
    scroll-snap-align: start;
    padding: 2em;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

h1 {
    font-size: 5vh;
    line-height: 0.9em
}

section header,
section footer {
    display: flex;
    justify-content: space-between;
}

img.background-element {
    pointer-events: none;
    position: absolute;
    z-index: -1;
    width: min(500px, 50%);;
}

img[class*="top-"]{
    top: 0;
}
img[class*="bottom-"]{
    bottom: 0;
}
img[class*="-right"]{
    right: 0;
}
img[class*="-left"]{
    left: 0;
}


ol {
    counter-set: toc;
    font-size: 2em;
    font-weight: bold;
    list-style: none;
}
ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
ol li {
    width: 100%;
    position: relative;
    counter-increment: toc;
    padding: .6em;
    padding-left: 25%;
    border-bottom: 2px solid;
    border-width: 2px;
    transition: border-width ease-in-out;
}
ol li::after{
    content: " ";
    position: absolute;
    width: 100%;
    background-color: var(--primary);
    height: 2px;
    bottom: 0px;
    left: 0px;
    opacity: 0;
    transition: opacity ease-in-out 250ms;
}
ol li:hover::after {
    opacity: 1;
}
ol li::before {
    content: counter(toc);
    left: 0;
    position: absolute;
}
li a {
    text-decoration: none;
}

section article {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
section.cover::before {
    content: " ";
    background: linear-gradient(180deg, #F8D78F, #ECBE5F);
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: -1;
    position: absolute;
}


.modal {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(255,255,255,.5);
    backdrop-filter: blur(0.5em);
    display: flex;
    align-items: center;
    justify-content: center;
    /* pointer-events: none; */
}

.modal > *:first-child{
    position: relative;
    margin: auto 2em;
    width: fit-content;
    z-index: 1;
}

.modal #close {
    position: fixed;
    z-index: 5;
    top: 1em;
    right: 1em;
    width: 2em;
}


.card {
    background-color: white;
    box-shadow: -.5em 0.5em 1em rgba(0,0,0,.25);
    padding: 2em;
    border-radius: 2em;
    overflow-y: auto;
    max-height: 90vh;
}

section.cover {
    color: white;
}

.subtle {
    filter: grayscale(1);
    opacity: .25;
}

#color-grid{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    color: white;
}

#color-grid .color {
    padding: 1em;
    vertical-align: bottom;
    height: 30vh;
    align-content: end;
}

#color-grid .color:first-child{
    grid-column: 1/span 3;
    background-color: var(--color-1);
}
#color-grid .color:nth-child(2){
    background-color: var(--color-2);
}
#color-grid .color:nth-child(3){
    background-color: var(--color-3);
}
#color-grid .color:nth-child(4){
    background-color: var(--color-4);
}

#color-grid .color:first-child{
    grid-column: 1/span 3;
    background-color: var(--color-1);
}
#color-grid .color:nth-child(2){
    background-color: var(--color-2);
}
#color-grid .color:nth-child(3){
    background-color: var(--color-3);
}
#color-grid .color:nth-child(4){
    background-color: var(--color-4);
}

ul.font-weight-feature li:first-child {
    font-weight: 200;
}
ul.font-weight-feature li:nth-child(2) {
    font-weight: 400;
}
ul.font-weight-feature li:nth-child(3) {
    font-weight: 600;
}
ul.font-weight-feature li:nth-child(4) {
    font-weight: 700;
}

ul.multiple-choice {
    margin-left: 2em;
}
ul.multiple-choice li {
    position: relative;
    margin: .25em;
}

ul.multiple-choice input[type="checkbox"] {
    display: none;
}

ul.multiple-choice li:has(input[type="checkbox"]:checked) {
    font-weight: bold;
}

ul.multiple-choice li:has(input[type="checkbox"]:checked) {
    font-weight: bold;
}

ul.multiple-choice li svg{
    height: 100%;
    position: absolute;
    left: -2em;
    display: none;
}

ul.multiple-choice li svg.uncheck {
    display: block;
}

ul.multiple-choice li:has(input:checked) svg.uncheck {
    display: none;
}


ul.multiple-choice li:has(input:checked) svg.check {
    display: block;
}

#validation_error {
    display: none;
}

#validation_error:has(input:invalid) {
    display: block;
}

textarea {
    width: 100%;
}

.slide-up {
    animation: slide-in-up 250ms ease-in-out;
}


@keyframes slide-in-left {
    0% {
        opacity: 0;
        transform: translateX(10em);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slide-in-up {
    0% {
        opacity: 0;
        transform: translateY(10em);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}
