* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
/* de overflow hidden is experiment */
body {
    font-family: 'Kanit', sans-serif;
    min-height: 100lvh;
    width: 100vw;
    color: rgb(49, 8, 8);
    background: rgb(236, 167, 216);
    overflow: hidden;
}

h1 {
    margin-top: 5px;
    text-align: center;
    font-weight: bolder;
    letter-spacing: 6px;
    color: rgb(87, 13, 13);
    font-size: 2.4rem;
    padding: 1px;
    line-height: 100%;
    text-shadow: 1px 2px 2px purple;
}

@supports (-webkit-text-stroke: 1px black) {
    h1 {
      -webkit-text-stroke: 1px black;
      -webkit-text-fill-color: rgb(222, 46, 231);
    }
}

img {
    max-width: 100%;
    display: block;
}
  

/* footer {
    min-height: 200px;
} */

.memory-game {
    /* width: 60%; deze tijdelijk weg vanwegeghieronder*/
    width: 80%;
    height: 80%;
    margin: auto;
    display: flex;
    flex-wrap: wrap;
    perspective: 1000px;
    /* max-width: 100%; */
}

.memory-card {
    /* width: calc(25% - 10PX); tijdelijk weg en hieronder is test*/
    width: calc(16.6% - 10PX);
    height: calc(33.333% - 10px);
    /* margin: 5px; */
    margin-left: 5px;
    margin-right: 5px;
    position: relative;
    box-shadow: 2px 2px 2px rgba(0,0,0,.3);
    transform: scale(1);
    transform-style: preserve-3d;
    transition: transform .5s;
    cursor: pointer;
}

.memory-card:active {
    transform: scale(0.97);
    transition: transform .2s;
}

.front-face,
.back-face {
    width: 100%;
    height: 100%;
    padding: 10px;
    position: absolute;
    border-radius: 5px;
    background: #3c60c2;
    top: 0;
    left: 0;
    backface-visibility: hidden;
}

.front-face {
    transform: rotateY(180deg);
}

.memory-card img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.memory-card.flip {
    transform: rotateY(180deg);
}

.btn {
    padding: 7px;
    border-radius: 5%;
    margin-left: 10px;
    cursor: pointer;
    font-weight: bold;
    background-color: rgb(80, 230, 102);
}
.wrapper {
    margin: 10px;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.score {
    text-align: center;
}

.container {
    width: 100%;
    
}

.color {
    color: purple;
}
.label {
    color: green;
    font-weight: bold;
    font-size: 1.4rem;
    display: block;
}

.input {
    text-align: center;
}

/* header { tijdelijk weg sinterklaas
    min-height: 180px;
} */

.form {
    display: flex;
    justify-content: center;
    text-align: center;
    align-items: center;
    display: none;
    padding: 1px;
}

input {
    padding: 7px;
}
.p {
    font-size: 1.4rem;
    /* margin: 4px; */
    text-align: center;
}

@media screen and ( max-width: 680px ) {
    .memory-card {
        width: calc(33.333% - 10PX);
        height: calc(33.333% - 10px);
        /* width: calc(25% - 10PX);
        height: calc(25% - 10px); */
    }
    
    .p {
        font-size: 1.4rem;
    }

    h1 {
        font-size: 4rem;
    }

    body {
        overflow: hidden;
        /* min-height: 100lvh; */
    }

    header {
        min-height: 224px;
    }

    .memory-game {
        width: auto;
        height: auto;
    }
}

/* het hele gedoe kwam door de vaste width van de kaarten, nu aangepast en erna media query aangemaakt */