html { 
    font-size: calc(1em + 0.2vw);
    scroll-behavior: smooth;
}

* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    }

body {
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
}

.h1 {
    font-size: 3em;
    color: #FDFFFE;
    text-align: center;
    margin: 0;
    padding: 0;
    font-weight: 800;
    line-height: 1em;
    letter-spacing: 0;
}

.h2 {
    font-size: 1em;
    color: #FDFFFE;
    margin: 0;
    padding: 0;
    font-weight: 800;
    line-height: 1.2em;
    letter-spacing: 0;
}

.p {
    font-weight: 500;
    font-size: 0.8em;
    color: #FDFFFE;
    letter-spacing: 0;
    text-align: center;
    line-height: 1.3em;
    margin: 0;
    padding: 0;
}

.ul {
    padding: 0;
    margin: 0;
    font-size: 0.8em;
    color: #FDFFFE;
    letter-spacing: 0;
    text-align: center;
    line-height: 1.3em;
    list-style: none;
}

.p-menu {
    font-weight: 800;
    font-size: 2em;
    color: #272727;
    letter-spacing: 0;
    line-height: 1em;
    text-transform: uppercase;
    margin: 0 0 .25em;
    padding: 0;
}

.a-menu {
    text-decoration: none;
    display: block;
    transition: opacity 350ms ease-in-out;
}

.a-menu:hover {
    opacity: 0.6;
}

.p-sub {
    font-weight: 500;
    font-size: .8em;
    color: #B2B2B2;
    letter-spacing: 0;
    line-height: 1em;
    margin: 0;
    padding: 0;
}

.part {
    width: 100vw;
    height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    background-image: url('../images/achtergrond.png');
    background-position: 50% 50%;
    background-size: cover;
    background-repeat: no-repeat;
}

.part-1-2 {
    width: 100vw;
    height: 100vh;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 1fr;
    background-image: url('../images/achtergrond.png');
    background-position: 50% 50%;
    background-size: cover;
    background-repeat: no-repeat;
}

#header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: row;
    z-index: 10;
    justify-content: space-between;
    align-items: center;
    padding: 40px 70px 0;
    height: 40px;
}

#header .btn-white {
    height: 40px;
    max-width: 120px;
    padding: 0 1.5em;
    min-width: 30px;
    margin: 0;
    transition: max-width 350ms ease-in-out, background 350ms ease-in-out, color 350ms ease-in-out;
}

#header .btn-white.active {
    position: absolute;
    right: 70px;
    max-width: 150px;
    top: 40px;
    z-index: 11;
    text-decoration: none;
    background: #F4F4F4;
    color: #1F1A12;
}

#header .btn-white.active:hover {
    background: #1F1A12;
    color: #FFFFFF;
}

#header .menu-wrapper {
    position: fixed;
    top: 0;
    right: 0;
    background: white;
    min-height: 100vh;
    width: 45vw;
    height: 100%;
    pointer-events: none;
    transform: translateX(100%);
    transition: transform 550ms ease-in; 
}

#header .menu-wrapper.active {
    pointer-events: all;
    transform: translateX(0);
}

#header .menu-list {
    list-style: none;
    padding: 3em;
}

#header .menuitem {
    padding: 0;
    margin: 0 0 1em;
}

#start {
    position: relative;
    background-color: #D7C10D;
}

#start .content {
    transition: opacity 550ms ease-in-out;
    transition-delay: 550ms;
    opacity: 0;
}

#start .p {
    max-width: 20em;
}

#start .scroll-to {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: absolute;
    bottom: 1.5em;
    margin-bottom: 0 !important;
}

#start .scroll-to > .p {
    font-weight: 800;
}

#start .scroll-to > img {
    width: .9em;
    height: auto;
    margin-top: 1.1em;
    -moz-animation: bounce 2s infinite;
    -webkit-animation: bounce 2s infinite;
    animation: bounce 2s infinite;
}

#start .content.opacity-animate {
    opacity: 1 !important;
}

#countdown {
    display: none;
    flex-direction: row;
    width: fit-content;
    margin: 0 auto;
}

#countdown .sq {
    display: grid;
    text-align: center;
    gap: .8em;
    margin: 0 8px;
}

#countdown .smalltext {
    text-transform: uppercase;
    color: white;
    font-size: .8em;
}

#countdown .bord {
    background: white;
    font-size: 2em;
    padding: .8em 0;
    min-width: 2em;
    border-radius: 8px;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
}

#intro {
    position: relative;
    background-color: #8CCFF3;
}

#intro .h1 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9;
    opacity: 0;
}

#intro .p {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, calc(-50% + 6em));
    z-index: 9; 
    max-width: 20em;
    opacity: 0;
}

#box1,
#box2,
#box3,
#box4,
.cell
{
    width: 50vw;
    height: 50vh;
    position: relative;
    overflow: hidden;
}

.cell-1-2 {
    width: 100vw;
    height: 50vh;
    position: relative;
    overflow: hidden;
}

#main img{
    height: auto;
    width: 100%;
    max-width: 90%;
}
#i1 {
    position: absolute;
    right: 0;
    bottom: 0;
    transform: rotateX(180deg) translate(100%, -100%);
    transition: transform 1000ms ease-in-out;
    margin-bottom: -1px;
    margin-right: -1px;
}
#i2 {
    position: absolute;
    left: 0;
    bottom: 0;
    transform: scaleX(-1) rotateX(180deg) translate(100%, -100%);
    transition: transform 1000ms ease-in-out;
    margin-bottom: -1px;
    margin-left: -1px;
}
#i3{
    position: absolute;
    right: 0;
    top: 0; 
    transform: rotateX(0deg) translate(100%, -100%);
    transition: transform 1000ms ease-in-out;
    margin-right: -1px;
}
#i4{
    position: absolute;
    left: 0;
    top: 0;
    transform: scaleX(-1) translate(100%, -100%);
    transition: transform 1000ms ease-in-out;
    margin-left: -1px;
}

.champ {
    transition: transform 550ms ease-in-out;
}

#box1 .champ {
    left: 0;
    top: 0;
    transform: rotateX(180deg) translateX(-100%);
    position: absolute;
}
#box2 .champ {
    right: 0;
    top: 0;
    transform: rotateX(180deg) scaleX(-1) translateX(-100%);
    position: absolute;
}
#box3 .champ {
    left: 0;
    bottom: 0;
    transform: rotateX(0deg) translateX(-100%);
    position: absolute;
}
#box4 .champ {
    right: 0;
    bottom: 0;
    transform: scaleX(-1) translateX(-100%);
    position: absolute;
}

.intro-cell-1 {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 100% !important;
    transform: translateY(100%);
    margin-bottom: -1px;
}

.intro-cell-2 {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    max-width: 100% !important;
    transform: rotateX(180deg) translateY(100%);
    margin-top: -1px;
}

.intro-cell-mic1 {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    max-width: 100% !important;
    transform: translateY(-100%);
    margin-top: -1px;
}

.intro-cell-mic2 {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 100% !important;
    transform: rotateX(180deg) translateY(-100%);
    margin-bottom: -1px;
}

#start .cell-1 {
    transform: rotateX(180deg) translate(100%, -100%);
    transition: transform 100ms linear;
}
#start .cell-2 {
    transform: scaleX(-1) rotateX(180deg) translate(100%, -100%);
    transition: transform 100ms linear;
}
#start .cell-3 {
    transform: rotateX(0deg) translate(100%, -100%);
    transition: transform 100ms linear;
}
#start .cell-4 {
    transform: scaleX(-1) translate(100%, -100%);
    transition: transform 100ms linear;
}

#showbizz {
    position: relative;
    background-color: #221B60;
}

#showbizz .h1 .normal {
    display: none;
}

#showbizz .h1 .small-height {
    display: block;
}

#showbizz .p {
    max-width: 38em;
}

#showbizz .cell-curtains-1, #bingo .cell-bingo-1 {
    transform: rotateX(0deg) translate(-100%, -100%);
    transition: transform 100ms linear;
}
#showbizz .cell-curtains-2, #bingo .cell-bingo-2 {
    transform: scaleX(-1) rotateX(0deg) translate(-100%, -100%);
    transition: transform 100ms linear;
}
#showbizz .cell-curtains-3, #bingo .cell-bingo-3 {
    transform: rotateX(180deg) translate(-100%, -100%);
    transition: transform 100ms linear;
}
#showbizz .cell-curtains-4, #bingo .cell-bingo-4 {
    transform: scaleX(-1) rotateX(180deg) translate(-100%, -100%);
    transition: transform 100ms linear;
}

#escape {
    position: relative;
    background-color: #11ACA2;
}

#escape .p {
    max-width: 30em;
}

#escape img.h1-escape-word {
    position: absolute;
    height: auto;
    width: 15em !important;
    transform: translateY(-8.1em);
}

#escape .button-wrapper {
    display: flex;
    gap: 1em;
}

#escape img {
    max-width: 100%;
    width: auto;
    height: auto;
}

#escape .part-1-2 {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr;
}

#escape .cell-1-2 {
    width: 50vw;
    height: 100vh;
    position: relative;
    overflow: hidden;
}

#bingo {
    position: relative;
    background-color: #F79439;
}

#bingo .p {
    max-width: 20em;
}

#bingo .button-wrapper {
    display: flex;
    gap: 1em;
}

#bingo .cell-1 {
    transform: rotateX(0deg) translate(100%, 100%);
    transition: transform 100ms linear;
    margin-bottom: -1px;
}
#bingo .cell-2 {
    transform: scaleX(-1) rotateX(0deg) translate(100%, 100%);
    transition: transform 100ms linear;
    margin-bottom: -1px;
}
#bingo .cell-3 {
    transform: rotateX(180deg) translate(100%, 100%);
    transition: transform 100ms linear;
    margin-top: -1px;
}
#bingo .cell-4 {
    transform: scaleX(-1) rotateX(180deg) translate(100%, 100%);
    transition: transform 100ms linear;
    margin-top: -1px;
}

#breinbrekers {
    position: relative;
    background-color: #EE90FF;
}

#breinbrekers .p {
    max-width: 20em;
}

#breinbrekers .cell-1 {
    margin-bottom: -1px;
}
#breinbrekers .cell-2 {
    margin-bottom: -1px;
}
#breinbrekers .cell-3 {
    margin-top: -1px;
}
#breinbrekers .cell-4 {
    margin-top: -1px;
}

#babbelbox {
    position: relative;
    background-color: #FF5757;
}

#babbelbox .p {
    max-width: 20em;
}

#babbelbox .button-wrapper {
    display: flex;
    gap: 0.8em;
    flex-direction: row;
}

#babbelbox .btn-white {
    margin-top: 0;
    padding: 0 .8rem;
}

#babbelbox .cell-1 {
    margin-bottom: -1px;
}
#babbelbox .cell-2 {
    margin-bottom: -1px;
}
#babbelbox .cell-3 {
    margin-top: -1px;
}
#babbelbox .cell-4 {
    margin-top: -1px;
}

.left-top {
    left: 0;
    top: 0;
    position: absolute;
}
.right-top {
    right: 0;
    top: 0;
    position: absolute;
}
.left-bottom {
    left: 0;
    bottom: 0;
    position: absolute;
}
.right-bottom {
    right: 0;
    bottom: 0;
    position: absolute;
}

.two-columns {
    display: grid;
    grid-template-columns: 1fr minmax(auto, 13em) minmax(auto, 13em) 1fr;
    grid-template-rows: 1fr;
    gap: 2em;
    width: 100%;
}

.two-columns .card:first-child {
    grid-column-start: 2;
}

.two-columns .card {
    margin-top: 1em;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    gap: 1em;
}

.two-columns .card .h2 {
    text-align: center;
    margin-bottom: .3em;
}

.two-columns .card img {
    max-width: 100% !important;
}

.two-columns .card .btn-white {
    width: fit-content;
    margin: 0 auto;
}

.btn-white {
    background: #FFFFFF;
    font-weight: 800 !important;
    font-size: .8em;
    text-transform: uppercase;
    text-decoration: none;
    color: #1F1A12;
    letter-spacing: 0;
    text-align: center;
    padding: 0;
    min-width: 9em;
    height: 2.7em;
    margin-top: 1em;
    justify-content: center;
    display: flex;
    border: none;
    align-items: center;
    cursor: pointer;
    transition: background 350ms ease-in-out, color 350ms ease-in-out;
}
.btn-white:visited, .btn-white:focus {
    text-decoration: none;
    box-shadow: none;
    outline: none;
}

.btn-white:hover {
    text-decoration: none;
    background: #1F1A12;
    color: #FFFFFF;
}

.btn-white:visited {
    text-decoration: none;
    background: #FFFFFF;
    color: #1F1A12;
}

.btn-white:visited:hover {
    text-decoration: none;
    background: #1F1A12;
    color: #FFFFFF;
}

.content {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 1.8em;
    opacity: 0;
    z-index: 9;
}

@media (min-height: 820px) {
    html { 
        font-size: calc(1em + 0.5vw);
    }

    #header .menuitem {
        padding: 0;
        margin: 0 0 1.85em;
    }

    #showbizz .h1.small-height {
        display: none;
    }
/* 
    #start .h1 {
        margin-top: 3em;
    } */

    #showbizz .h1 .normal {
        display: block;
    }
    
    #showbizz .h1 .small-height {
        display: none;
    }

    #babbelbox .button-wrapper {
        flex-direction: column;
    }
}

@media (max-height: 500px) {
    #header .menu-wrapper {
        height: 100vh;
        overflow-y: scroll;
    }
}

@media (max-width: 480px) {
    html { 
        font-size: calc(1em + 1vw) !important;
    }
}

@media (max-width: 1000px) {
    #header .menu-wrapper {
        width:65%;
    }
}

@media (max-width: 640px) {
    #header .menu-wrapper {
        width: 100%;
    }
}


@media not all and (min-resolution:.001dpcm) { 
    @supports (-webkit-appearance:none) {
        .content .h1, .content .p {
            margin-bottom: 1.8rem;
        }

        #start .scroll-to .p {
            margin-bottom: 0 !important;
        }

        .card .heading, 
        .card img {
            margin-bottom: 1rem;
        }

        #babbelbox .button-wrapper button {
            margin-bottom: 0.8rem;
        }
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
      transform: translateY(0);
    }
    40% {
      transform: translateY(-0.8em);
    }
    60% {
      transform: translateY(-.4em);
    }
}

#modal {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background: rgba(0,0,0,0.65);
    z-index:99999;  
    visibility: hidden;
    pointer-events: none;
    opacity: 0;
    transform: translateY(-5%);
    transition: opacity 350ms ease-in-out, transform 350ms ease-in-out;
}

#modal.active {
    position: fixed;
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

#modal .inner-modal {
    position: relative;
}

#modal iframe {
    width: 70vw;
    height: calc(70vw / 16 * 9);
    max-height: 90vh;
    margin-left: 15vw;
    margin-top: calc((100vh - (70vw / 16 * 9)) / 2);
}

#modal .modal-close {
    position: absolute;
    left: 0;
    top: 0;
    margin-left: 85vw;
    margin-top: calc((100vh - (70vw / 16 * 9)) / 2);
    transform: translate(-100%, -100%);
    z-index: 9;

    font-size: .8rem;
    background: transparent;
    color: white;
    padding: 0;
    width: auto;
    min-width: 0;
}

@media (max-width: 1000px) {
    #modal iframe {
        width: 90vw;
        height: calc(90vw / 16 * 9);
        max-height: 90vh;
        position: absolute;
        margin-left: 5vw;
        margin-top: calc((100vh - (90vw / 16 * 9)) / 2);
    }
}