@charset "UTF-8";
/* ------ Swipegame CSS 2022 --------*/
/* ------ Let op dit document maakt gebruik van de variabelen!!!! --------*/

.safetyGame_root {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    background-color: rgb(245, 247, 250);
    --color-m1: rgba(92, 92, 92, 0.49); /* aquamarine */
    --border-radius: var(--borderRadius);
    --color-good: #93a700;
    --color-wrong: #ff004d;
    position: absolute;
    z-index: 1;
    right: 0;
    top: 0;
    margin: 0;
    padding: 0;
}

h1 {
    letter-spacing: 2px;
    margin: 20px;
}
p {
    padding: 0 20px;
    margin: 1em;
    font-size: 1.2em;
}
#board {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    background-color: var(--lightdark-bgcolor);
    color: var(--lightdark-text);
}

.question {
    text-align: center;
    background: transparent;
    position: absolute;
    width: 100%;
    margin: 10vh auto;
    z-index: 1;
    font-size: 2rem;
    font-weight: 600;
    color: var(--lightdark-text);
    box-sizing: border-box;
}

.question p {
    max-width: 900px;
    padding: 0 1rem;
    margin: auto;
}

.card {
    width: 90vw;
    height: 90vw;
    max-width: 400px;
    max-height: 400px;
    top: 50%;
    left: 50%;
    border-radius: var(--border-radius);
    box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.1);
    background-color: white;
    /*transform: translateX(-50%) translateY(-50%) scale(0.95);*/
    transform: translateX(-50%) translateY(-50%) scale(0.4);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: 50% 50%;
    cursor: pointer;
    z-index: 2;
    position: relative;
}
.overlay {
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-m1);
    backdrop-filter: blur(5px);
    opacity: 1;
    z-index: 4;
    transition: 0.4s ease;
}
.invisible_overlay {
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: transparent;
    z-index: 4;
    display: none;
}

.container {
    position: absolute;
    top: 50%;
    left: 50%;

    z-index: 10;
    background-color: white;
    margin: 0 auto;
    box-shadow: 0px 2px 5px 0px rgb(0 0 0 / 10%);
    width: 80%;

    border-radius: var(--border-radius);
    max-width: 520px;
    min-width: 400px;
    color: #333;
    text-align: center;
    padding: 3rem 1.5rem;
    box-sizing: border-box;
    transition: 0.4s;

    max-height: 98vh;
}
.endContainer {
    transform: translateX(-50%) translateY(-50%) scale(0.2);
    opacity: 0;
    display: none;
}
.endContainer h1 {
    font-size: 7rem;
    color: var(--primaryAccentColor);
}

.startContainer {
    transform: translateX(-50%) translateY(-50%) scale(0.2);
    opacity: 0;
    display: block;
}

.startContainer img {
    width: 70vw;
	max-width:300px;
}

.startContainer h1 {
    margin: 0;
}
.infoContainer {
    width: 70%;
    max-width: 600px;
    overflow: auto;
    padding: 0;
    transform: translateX(-50%) translateY(-50%) scale(0);
    display: flex;
    flex-direction: column;
}
button {
    background-color: var(--secondaryAccentColor);
    border: none;
    color: white;
    padding: 10px 60px;
    text-align: center;
    text-decoration: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    outline: 0;
    font-size: 1.2em;
    margin: 15px auto;
    box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.1);
}
.infoContainer button {
    margin: 25px auto 40px auto;
}

.infoContainer img {
    display: block;
    width: 100%;
    height: 100%;
    max-height: 350px;
    border-top-left-radius: var(--border-radius);
    border-top-right-radius: var(--border-radius);
    object-fit: contain;
}
button:active {
    transform: translateY(3px);
    transform: scale(0.95);
}
.button:hover {
    filter: brightness(110%);
}
.startButton:disabled {
    background-color: rgb(206, 206, 206);
    color: grey;
    box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0);
}
header {
    position: absolute;
    top: 0;
    background: transparent;
    /*z-index: 1;*/
    width: 100%;
    text-align: center;
}
.indicatorContainer {
    background: white;
    min-width: 140px;
    width: fit-content;
    padding: 8px 12px;
    border-radius: var(--border-radius);
    box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.1);
    z-index: 5;
    display: inline-flex;
    align-content: center;
    justify-content: center;
    position: fixed;
    top: 90vh;
    left: 0px;
    right: 0px;
    margin: auto;
}
.indicator {
    display: inline-block;
    background: rgb(194, 194, 194);
    height: 15px;
    width: 15px;
    margin: 5px 5px;
    border-radius: 50%;
}

.indicatorGood {
    background: #93a700;
    box-shadow: 0 0 0 0 rgba(51, 217, 178, 1);
    transform: scale(1);
    animation: pulse-green 2.5s normal forwards;
}
.indicatorWrong {
    background: #ff004d;
    box-shadow: 0 0 0 0 rgba(255, 82, 82, 1);
    transform: scale(1);
    animation: pulse-red 2.5s normal forwards;
}
.instruction_small {
    font-weight: initial;
    font-style: italic;
    opacity: 0.8;
}
.arrow-right,
.arrow-left {
    position: absolute;
    z-index: 1;
    top: 0;
    bottom: 0;
    display: table;
    margin: auto 5vw;
    overflow: auto;
    cursor: pointer;
    height: 15vw;
    max-height: 500px;
    min-height: 100px;
}

.arrow-left img,
.arrow-right img {
    height: 15vw;
    max-height: 500px;
    min-height: 100px;
    display: table-row;
}
.arrow-right {
    right: 2vw;
}
.arrow-left {
    left: 2vw;
}

/* animation */
@keyframes pulse-red {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 82, 82, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(255, 82, 82, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 82, 82, 0);
    }
}

@keyframes pulse-green {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(51, 217, 178, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(51, 217, 178, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(51, 217, 178, 0);
    }
}
@media only screen and (max-height: 640px) {
    .infoContainer {
        max-width: 500px;
        max-height: 460px;
        overflow-y: scroll;
    }
    .infoContainer img {
        max-height: 280px;
    }
    .card {
        width: 80%;
        height: 60%;
        top: 50%;
    }
    .cardSmall {
        width: 70%;
        height: 50%;
        top: 50%;
    }
    .question p {
        font-size: 1.4rem;
        position: relative;
    }
    .indicatorContainer {
        padding: 4px 12px;
    }
	.container {
        margin-top: 5vh;
		min-width: auto;
		font-size:0.9em;
		max-width:75%;
	}
}

@media only screen and (max-width: 800px) {
    .arrow-right,
    .arrow-left {
        top: auto;
        bottom: 1vh;
        margin: auto 0;
        height: 15vw;
    }
}
