body {
    font-family: 'Avenir Next Lt Pro', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
    color: #333;

}

body.one-pager {
    overflow-y: hidden;
}

h1,
h2 {
    font-family: 'TW Cen MT Bold', sans-serif;
}

a {
    text-decoration: none;
    color: #333;
}

.gameFrame {
    align-content: center;
    justify-content: center;
    padding: 0 1em;
    overflow: visible;
    display: flex;
    height: inherit;
}

.normalColumn {
    display: flex;
    flex-direction: column;
}

header {
    margin-top: 5vh;
    padding: 1em;
    text-align: right;
    display: block;
}

header.hidden {
    display: none;
}

header nav {
    display: flex;
    justify-content: right;
    gap: 20px;
    padding-right: 2vw;

}

header nav a {
    text-decoration: underline;
    color: #333;
    font-size: 1.2em;
    text-underline-offset: 7px;
}

footer {

    color: #333;
    text-align: center;
    padding: 1em;
    position: relative;
    display: block;
}

footer.hidden {
    display: none;
}

.container {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-direction: column;
    overflow-y: hidden;
}

.text-box {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    padding: 2em;
    width: 50%;
    text-align: left;
}

p.centered {
    text-align: center;
}

.text-box h2 {
    margin-top: 0;
    height: inherit;
}

.bottom-text {
    top: 45%;
    position: inherit;
    display: flex;
}

.bottom-text p {
    text-align: center;
}

.large-text-box {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    padding: 2em;
    width: 75%;
    text-align: left;
}

#section-1 {
    top: -15vh;
}

.section {
    height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    opacity: 0;
    transform: translateY(100px);
    width: 90%;
}

.section.active {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease, transform 0.5s ease;
    height: 95vh;

}

.section.hidden * {
    height: 0;
    margin: 0 0 0 0;
    padding: 0 0 0 0;
}

.section.active .card:nth-child(0) {
    animation-delay: .2s
}

.section.active .card:nth-child(1) {
    animation-delay: 0.7s
}

.section.active .card:nth-child(2) {
    animation-delay: 1.2s
}

.section.active .card:nth-child(3) {
    animation-delay: 1.7s
}

.section.active .card:nth-child(4) {
    animation-delay: 2.2s
}

.section.active .card:nth-child(5) {
    animation-delay: 2.7s
}

.section.active .card:nth-child(6) {
    animation-delay: 3.2s
}


@media (max-width: 768px) {
    .text-box {
        right: 10%;
        width: 70%;
    }
}

@media (max-width: 480px) {
    .text-box {
        right: 5%;
        width: 80%;
    }
}

.grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    align-self: center;
    width: 80%;
}

.card {
    background-color: white;
    /* border: 1px solid #ddd; */
    border-radius: 3px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    width: calc(25% - 20px);
    padding: 1em;
    box-sizing: border-box;
    text-align: center;
    min-width: 24vw;

    opacity: 0;
}

.active .card {
    animation: 0.5s linear 0s forwards appear;
}

/* it is possible to animate multiple properties in a single animation */
@keyframes appear {
    from {
        transform: translateY(5px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 3px;

}

.card-content {
    padding: 1em;
}

.card h3 {
    font-size: 1.5em;
    margin: 0.5em 0;
}

.card p {
    font-size: 1em;
    color: #666;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

@media (max-width: 768px) {
    .card {
        width: calc(50% - 20px);
    }
}

@media (max-width: 480px) {
    .card {
        width: 100%;
    }
}

div.card-content h2 {
    font-size: medium;
}

.column {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    padding: 0 1em;
    top: 0;
    position: absolute;
    overflow: visible;
    height: 100vh;
}

.container-about {
    padding: 0 1em;
    top: 0;
    position: absolute;
    overflow: visible;
    display: flex;
    justify-content: center;
    flex-direction: column;
    height: inherit;

}

.about-grid {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-content: stretch;
    flex-wrap: wrap;
    align-self: center;
}

.about-card {
    background-color: white;
    /* border: 1px solid #ddd; */
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: min-content;
    opacity: 0;
}



.active .about-card {
    animation: 0.5s linear 0s forwards appear;
}

.section.active .about-card:nth-child(0) {
    animation-delay: .2s
}

.section.active .about-card:nth-child(1) {
    animation-delay: 0.7s
}

.section.active .about-card:nth-child(2) {
    animation-delay: 1.2s
}

.section.active .about-card:nth-child(3) {
    animation-delay: 1.7s
}

.section.active .about-card:nth-child(4) {
    animation-delay: 2.2s
}

.section.active .about-card:nth-child(5) {
    animation-delay: 2.7s
}

.section.active .about-card:nth-child(6) {
    animation-delay: 3.2s
}

.about-card img {
    display: block;
    height: 34vh;
}

.about-card-content {
    padding: 0.3em;
}

.about-card h3 {
    font-size: 1.5em;
    margin: 0.5em 0;
}

.about-card p {
    font-size: 1em;
    color: #666;
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.arrow-box {
    transform: rotate(90deg) scale(150%);
}

.arrow-box.align-left {
    transform: rotate(90deg) scale(150%) translateX(119px) translateY(93px);
}

#cta .arrow {
    top: -6px;
    left: 10px;
}

.arrow {
    position: absolute;
    bottom: 0;
    margin-left: 0px;
    width: 12px;
    height: 12px;
    background-size: contain;
    top: 19px;
    filter: invert(85%) sepia(0%) saturate(1149%) hue-rotate(97deg) brightness(100%);
    transform: rotate(90);
}

.arrow-two {
    margin-left: 8px;
}

.next {
    background-image: url(data:image/svg+xml;base64,PHN2ZyBpZD0iTGF5ZXJfMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB2aWV3Qm94PSIwIDAgNTEyIDUxMiI+PHN0eWxlPi5zdDB7ZmlsbDojZmZmfTwvc3R5bGU+PHBhdGggY2xhc3M9InN0MCIgZD0iTTMxOS4xIDIxN2MyMC4yIDIwLjIgMTkuOSA1My4yLS42IDczLjdzLTUzLjUgMjAuOC03My43LjZsLTE5MC0xOTBjLTIwLjEtMjAuMi0xOS44LTUzLjIuNy03My43UzEwOSA2LjggMTI5LjEgMjdsMTkwIDE5MHoiLz48cGF0aCBjbGFzcz0ic3QwIiBkPSJNMzE5LjEgMjkwLjVjMjAuMi0yMC4yIDE5LjktNTMuMi0uNi03My43cy01My41LTIwLjgtNzMuNy0uNmwtMTkwIDE5MGMtMjAuMiAyMC4yLTE5LjkgNTMuMi42IDczLjdzNTMuNSAyMC44IDczLjcuNmwxOTAtMTkweiIvPjwvc3ZnPg==);
}

@keyframes bounceAlpha {
    0% {
        opacity: 1;
        transform: translateX(0px) scale(1);
    }

    25% {
        opacity: 0;
        transform: translateX(10px) scale(0.9);
    }

    26% {
        opacity: 0;
        transform: translateX(-10px) scale(0.9);
    }

    55% {
        opacity: 1;
        transform: translateX(0px) scale(1);
    }
}

#cta {
    width: 100%;
    position: absolute;

}

#cta.centered {
    display: flex;
    justify-content: center;
    position: relative;
}

.arrow {
    animation-name: bounceAlpha;
    animation-duration: 1.4s;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
}

.arrow.arrow-one {
    animation-name: bounceAlpha;
    animation-duration: 1.4s;
    animation-delay: 0.2s;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
}

.about-card.visible {
    opacity: 100%;
}

.container-about-alone .about-card-content img {
    min-width: 15vw;
}

.container-about-alone {
    margin: 5%;
}

.education-container {
    max-width: 80%;
    margin: 2em auto;
    padding: 0 1em;
}

.education-block {
    padding: 1em 0;
    border-bottom: 1px solid #ddd;
}

.education-block:last-child {
    border-bottom: none;
}

.education-block h2 {
    font-size: 1.5em;
    margin-bottom: 0.5em;
    /* color: #FB8E21; */
}

.education-block p {
    font-size: 1em;
    margin: 0.2em 0;
    color: #666;
}

.link {
    text-decoration: underline 2px #333;
    text-underline-offset: 7px;

    color: #333;
    padding: 5px;
}

.moved-down {
    margin-top: 10vh;
}