:root {
    --max-width: 1400px;
    --navbar-width: min(100%, 400px);
    --flashcard-button-padding: 32px;
}

html {
    font-size: 18px;
}

body, * {
    margin: 0;
    -webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
    -moz-box-sizing: border-box;    /* Firefox, other Gecko */
    box-sizing: border-box;         /* Opera/IE 8+ */
    word-break: break-word;
}

#root {
    overflow-x: hidden;

    width: 100%;
    height: 100vh;

    overflow-y: auto;
}

body {
    height: 100vh;
    overflow-y: hidden;
}

* {
    font-family: 'Open Sans', Arial, Helvetica, sans-serif;
    letter-spacing: 0.02rem;
    line-height: 1.3;
    margin: 0;
}

#feed {
    display: flex;
    flex-direction: column;
    gap: 64px;
}

h1 { color: #000b; font-size: 4rem; }
h2 { color: #000b; font-size: 2.5rem; }
h3 { color: #000b; font-size: 1.8rem; }
h4 { color: #000b; font-size: 1.25rem; }
h5 { color: #000b; font-size: 1.2rem; }
h6 { color: #000b; font-size: 1.166667rem; }

a {
    text-decoration: none;
    color: black;
}

a:not(.button):hover {
    color: #4C93BB;
}

a.button {
    padding: 12px 24px;
    background-color: #4C93BB;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    font-size: 21px;
    width: fit-content;
    text-align: center;
    letter-spacing: 1px;
}

a.button:hover {
    background-color: #33769c;
}

hr {
    outline: none;
    border: none;
    border-bottom: 1px solid #ddd;
    height: 0px;
    margin-block: auto;
}

section,
footer {
    width: 100%;
    max-width: var(--max-width);
    margin-inline: auto;
}

.rel {
    position: relative;
}

.vert-sep {
    border-right: 1px solid #ddd;
}

.inline {
    display: inline;
}

.block {
    display: block;
}

.column {
    display: flex;
    flex-direction: column;
}

.line {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

.row {
    display: flex;
    flex-direction: row;
}

.center {
    justify-content: center;
    align-items: center;
}

.center-main {
    justify-content: center;
}

.center-cross {
    align-items: center;
}

.space-main {
    justify-content: space-between;
}

.space-cross {
    align-items: self-end;
}

.grow {
    flex: 1;
}

.wrap {
    flex-wrap: wrap;
}

.dont-shrink {
    flex-shrink: 0;
}

.break {
    word-wrap: break-word;
    width: 100%;
}

.break {
    word-wrap: break-word;
    width: 100%;
}

.centered {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-white {
    color: white;
}

.g64 {
    gap: 64px;
}

.g32 {
    gap: 32px;
}

.g16 {
    gap: 16px;
}

.g8 {
    gap: 8px;
}

.page-border-pad,
.p64 {
    padding: 64px;
}

.p32 {
    padding: 32px;
}

.p16 {
    padding: 16px;
}

.p8 {
    padding: 8px;
}

.truncate {
    overflow: hidden; 
    white-space: nowrap; 
    text-overflow: ellipsis;
}

.width100 {
    width: 100%;
}

.mw0 {
    min-width: 0;
    flex-basis: 0;
}

.image-cover {
    object-fit: cover;
}

.image-alone {
    border-radius: 16px;
    border: 1px solid #ddd;
}

.image-bg {
    position: absolute;

    top: 0;
    left: 0;
    right: 0;
    bottom: 0;

    object-fit: cover;
}

.cover {
    background: rgb(0,0,0);
    background: -moz-linear-gradient(135deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0) 60%);
    background: -webkit-linear-gradient(135deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0) 60%);
    background: linear-gradient(135deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0) 60%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#000000",endColorstr="#000000",GradientType=1);
}

.circled-number {
    --size: 24px;

    flex-shrink: 0;

    height: var(--size);
    width: var(--size);

    border-radius: calc(var(--size) / 2.0);
    line-height: var(--size);
    font-size: calc(var(--size) * 0.6);
    font-weight: 800;
    color: white;
    text-align: center;

    background-color: #4C93BBa0;
}

.partner-card {
    display: flex;
    flex-direction: column;

    width: 256px;
    height: 256px;
    min-height: 0;
    
    border-radius: 8px;
    border: solid 1px #ddd;
}

.partner-logo {
    width: 100%;
    min-height: 0;
    flex: 1;
    padding: 16px;

    object-fit: contain;
}

.partner {
    max-width: 320px;
    height: 128px;

    object-fit: contain;
}

.demo-picture {
    padding: 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
}

/* footer {
    position: relative;
    width: 100%;
    box-sizing: border-box;

    margin: 128px -32px -32px -32px;
    width: calc(100% + 32px * 2);
} */

footer > .content {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: space-between;
}

@media only screen and (min-width: 1101px) {

    footer > .content > div.column:not(:last-of-type) {
        padding-right: 32px;
        border-right: solid 1px #fff;
    }
}

@media only screen and (max-width: 1100px) {
    footer > .content {
        flex-direction: column;
        gap: 32px;
    }
}

.quotes {
    color: #aaa;
}

.alt-nav {
    display: none;
}

nav .sidebar-toggle {
    display: none;
}

@media only screen and (max-width: 1400px) {
    .full-width-rounded {
        border-radius: 0 !important;
    }

    :root {
        --flashcard-button-padding: 0px;
    }
}

@media only screen and (max-width: 1150px) {
    #sidebar-toggle:not(:checked) ~ #root nav {
        display: none;
    }

    #sidebar-toggle:checked ~ #root nav {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: var(--navbar-width);

        flex-direction: column !important;
        align-items: flex-start !important;

        background-color: white;

        z-index: 1000;
        border-right: 16px solid #4C93BB;
    }

    nav .sidebar-toggle {
        display: flex;
    }

    .alt-nav {
        display: flex;
    }

    #sidebar-toggle:checked ~ #root nav .enter-platform {
        width: 100% !important;
    }

    /* #sidebar-toggle:checked ~ #root {
        overflow-y: hidden;
    } */

    #sidebar-toggle:checked ~ #root #close-navbar {
        position: absolute;
        top: 0;
        left: var(--navbar-width);
        right: 0;
        bottom: 0;

        background-color: #0008;

        z-index: 999;
    }
}

.subtitle {
    font-size: 24px;
}

@media only screen and (max-width: 800px) {

    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }
    h3 { font-size: 1.333333rem; }
    h4 { font-size: 1.25rem; }
    h5 { font-size: 1.2rem; }
    h6 { font-size: 1.166667rem; }

    .page-border-pad {
        padding: 32px;
    }

    #feed {
        gap: 32px !important;
    }

    .subtitle {
        font-size: 18px !important;
    }

    .create-pass-card {
        padding-block: 40px !important;
        gap: 64px !important;
    }
}


.intro-page1-div {
    display: none;
}

#intro-page1:checked ~ .intro-page1-div {
    display: flex;
}

#intro-page1:checked ~ .intro-page-buttons > #intro-page1-button {
    cursor: default;

    border: none;
    background-color: #4C93BB;
    color: white;
}

.intro-page2-div {
    display: none;
}

#intro-page2:checked ~ .intro-page2-div {
    display: flex;
}

#intro-page2:checked ~ .intro-page-buttons > #intro-page2-button {
    cursor: default;

    border: none;
    background-color: #4C93BB;
    color: white;
}

.intro-page3-div {
    display: none;
}

#intro-page3:checked ~ .intro-page3-div {
    display: flex;
}

#intro-page3:checked ~ .intro-page-buttons > #intro-page3-button {
    cursor: default;

    border: none;
    background-color: #4C93BB;
    color: white;
}

.intro-page-button {
    cursor: pointer;

    padding-inline: 24px;
    line-height: 32px;
    border-radius: 16px;

    font-size: 18px;
    font-weight: 400;
    
    border: 1px solid #156b9d;
    background-color: #fff;
    color: #156b9d;

    transition: 0.1s background-color ease-in-out;
}

.intro-page-button:hover {
    background-color: #e7f2fa;
}

#flashcards-container {
    /* padding-inline: calc((100% - var(--max-width)) / 2); */
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);;
}

.flashcard {
    flex: 0 0 100%;
    min-width: 0;
    padding-inline: max(calc((100% - var(--max-width)) / 2), 64px);
}

button.flashcard-button {
    background: none;
    border: none;
    outline: none;
    opacity: 0.2;

    transition: opacity 0.2s ease-in-out;
}

button.flashcard-button:hover {
    opacity: 0.5;
}

button.flashcard-button#flashcard-next {
    position: absolute;

    top: 50%;
    right: max(calc((100% - var(--max-width)) / 2), var(--flashcard-button-padding));

    transform: translateY(-50%);
}

button.flashcard-button#flashcard-prev {
    position: absolute;

    top: 50%;
    left: max(calc((100% - var(--max-width)) / 2), var(--flashcard-button-padding));

    transform: translateY(-50%);
}

.button.arrow-button:hover {
    background: none;
}

.button.arrow-button > div {
    transition: opacity 0.2s ease-in-out;
}

.button.arrow-button:hover > div {
    opacity: 0.7;
}

.button.arrow-button:hover > div > svg {
    transform: translateX(20%);
}

.button.arrow-button > div > svg {
    transition: transform 0.2s ease-in-out;
}

.arrow-button:after {
    content: url('/public/arrow1.svg');
    opacity: 0.3;

    position: absolute;
    font-size: 24px;

    top: 8px;
    right: 0;
    bottom: 0;

    object-position: center;

    padding-right: 32px;
}