html,
body {
    height: 100%;
    background-color: #1A1102;
}
body {
    width: 100%;
    display: flex;
    flex-direction: column;
}

img {
    user-drag: none !important;
    -webkit-user-drag: none !important;
    -moz-user-select: none !important;
}

main {
    flex: 1;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    background-color: #1A1102;
    background-image: url("/assets/img/Muster_Streifen_Schneeflocken.png"),
                      url("/assets/img/Muster_Streifen_Schneeflocken.png");
    background-position: center top -25px, center bottom -25px;
    background-repeat: no-repeat, no-repeat;
    background-attachment: fixed, fixed;
}
.gamewrapper {
    overflow-x: hidden;
}
.people {
    background-image: url("/assets/img/streifen_oben.png"),
                      url("/assets/img/streifen_unten.png");
    background-position: center top, center bottom 50px;
    background-size: contain, contain;
    background-repeat: no-repeat, no-repeat;
    overflow-x: hidden;
}

.people > div {
    width: 1200px;
    transform: translateX(-25%);
}

.reindeers {
    background-image: url("/assets/img/Rentier_links.png"),
                      url("/assets/img/Rentier_rechts.png");
    background-position: left -5% center, right -5% center;
    background-repeat: no-repeat, no-repeat;
    background-size: contain, contain;
}

#score {
    background-color: #FFFFFF;
    border-radius: 25px;
    max-width: 500px;
    margin: 0 auto;
}

.sweater {
    transition: all 0.5s;
}

.nav-buttons {
    z-index:10;
}

.slider-image {
    object-fit: cover;
    width: 100%;
    height: 100%;
}
.all-slides .slider-image {
    object-fit: contain;
}

#progressCounter {
    color: #268B4C;
}

#pagination {
    top: 46%;
}

#pagination2 {
    top: 160px;
}

#submitmatch {
    cursor: pointer;
    position: relative;
    z-index: 20;
    transition: all 0.2s ease-in-out;
}

#submitmatch:disabled {
    filter: grayscale(1);
}

#submitmatch:not(:disabled):hover {
    transform: scale(1.1);
}

#submitmatch:disabled:hover {
    cursor: not-allowed;
}

.arrow,
.arrow-green {
    background-repeat: no-repeat;
    background-size: contain;
    color: transparent;
    width: 40px;
    height: 50px;
}
.arrow.arrow-left {
    background-image: url("/assets/img/arrow-left.png");
}
.arrow.arrow-right {
    background-image: url("/assets/img/arrow-right.png");
}
.arrow-green.arrow-left {
    background-image: url("/assets/img/arrow-left2.png");
}
.arrow-green.arrow-right {
    background-image: url("/assets/img/arrow-right2.png");
}

.person {
    width: 250px;
    height: 250px;
    transition: transform 0.3s ease-in-out,
                scale 0.3s ease-in-out;
}
.person img {
    object-fit: contain;
}

.person.disabled {
    filter: brightness(0.4);
}

.person.forwardanim {
    animation: moveLeft 0.3s ease-in-out 0s 1 normal forwards;
}
.person.backanim {
    animation: moveRight 0.3s ease-in-out 0s 1 normal forwards;
}

#theFace {
    z-index: 99999;
    width: 200px;
    height: 200px;
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%) scale(0) rotate(-15deg);
    opacity: 0;
}

.snowflake {
    transition: all 0.2s ease-in-out;
    animation: rotate 4s linear 0s infinite normal forwards;
    z-index: 99989;
}

.sweater {
    width: 300px;
    height: 400px;
}

.all-slides {
    width: 100%;
    margin: -4rem auto 0;
    height: 400px;
    overflow-x: hidden;
    background-image: url("/assets/img/Lichterkette_1_neu.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: top 5% center;
}

.single-slide {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: absolute;
    transition: 0.3s ease;
}


/* 2nd left slide*/
.single-slide[data-order="1"] {
    left: 0px;
    transform: translate(-50%);
    z-index: 1;
}

/* Left slide*/
.single-slide[data-order="2"] {
    left: 15%;
    transform: translate(-50%);
    z-index: 3;
}

/* Middle slide */
.single-slide[data-order="3"] {
    left: 50%;
    transform: translate(-50%);
    z-index: 5;
    opacity: 1;
}

/* Right slide*/
.single-slide[data-order="4"] {
    left: 85%;
    transform: translate(-50%);
    z-index: 4;
}

/* 2nd right slide*/
.single-slide[data-order="5"] {
    left: 100%;
    transform: translate(-50%);
    z-index: 2;
}

.single-slide:nth-child(4) {
    order: 5;
}

.single-slide:nth-child(3) {
    order: 4;
}

.single-slide:nth-child(2) {
    order: 3;
}

.single-slide:nth-child(1) {
    order: 2;
}

.single-slide:nth-child(6) {
    order: 5;
}

.incorrectMatch {
    z-index:100;
    opacity: 0;
    transform: scale(0) rotate(-10deg) translate(-50%, -50%);
    transform-origin: center;
    top: 40%;
    left: 50%;
}
.incorrectMatch.animate {
    animation: popIn 0.5s ease-in-out 0s 1 normal forwards;
}
.correctMatch.animate {
    animation: popIn 0.5s ease-in-out 0s 1 normal forwards;
}

#result {
    z-index: 10000;
    background: rgba(0,0,0,0.8);
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

#result .content {
    opacity: 0;
    transform: scale(0.7);
    background-color: #BC2932;
    max-width: 600px;
    width: 500px;
    padding-top: 185px;
    padding-bottom: 185px;
    background-image: url("/assets/img/result_bg_top.png"),
    url("/assets/img/result_bg_bottom.png");
    background-position: center top, center bottom;
    background-repeat: no-repeat, no-repeat;
    text-align: center;
}
#result .content.animate {
    animation: grow 0.5s ease-in-out 0s 1 normal forwards;
}

@keyframes popIn {
    0% { opacity: 0; transform: scale(0) rotate(-10deg) translate3d(-50%, -50%, 0) }
    100% { opacity: 1; transform: scale(1) rotate(0deg) translate3d(-50%, -50%, 0) }
}

@keyframes moveLeft {
    0% { transform: translate3d(0,0,0) }
    100% { transform: translate3d(calc((-100% - 8px)),0,0) }
}

@keyframes moveRight {
    0% { transform: translate3d(0,0,0) }
    100% { transform: translate3d(calc((100% + 8px)),0,0) }
}

@keyframes rotate {
    0% { transform: rotate(0deg) }
    100% { transform: rotate(360deg) }
}

@keyframes grow {
    0% { opacity: 0; transform: scale(0.7) }
    100% { opacity: 1; transform: scale(1) }
}
@keyframes shrink {
    0% { opacity: 1; transform: scale(1) }
    100% { opacity: 0; transform: scale(0.7) }
}


@media (max-width: 600px) {
    body,
    main {
        overflow-x: hidden;
    }
    .people {
        background-size: initial;
    }
    .people > div {
        transform: translate3d(calc((1200px - 100vw)* -0.5), 0, 0);
    }
}

@media (max-width: 425px) {
    #pagination2 {
        top: 140px;
    }
    #pagination {
        top: 42%;
    }
    .people {
        background-size: contain;
    }
    .people > div {
        padding-top: 10px !important;
    }
    .sweater {
        width: 250px;
        height: 300px;
    }
    .all-slides {
        height: 310px;
        margin-top: -20px !important;
        /*
        transform: translateY(-7%);
    }
    #buttons {
        transform: translateY(-45%);
    }
    #score {
        transform: translateY(-190%);
    }
    #progress {
        transform: translateY(-90%);

         */
    }
    #buttons {
        margin-top: -35px !important;
    }

    #progress {
        padding-top: 10px !important;
        padding-bottom: 0 !important;
    }


    .person {
        width: 175px;
        height: 175px;
    }
    #result .content {
        max-width: 100% !important;
        width: 100% !important;
    }
    #score {
        margin-left: 15px;
        margin-right: 15px;
    }
    #score img {
        zoom: 0.5;
    }
    #theFace {
        z-index: 99999;
        width: 200px;
        height: 200px;
        position: absolute;
        top: 14%;
        left: 50vw;
        transform: translateX(-50%) scale(0) rotate(-15deg);
        opacity: 0;
    }
}

@media (max-width: 320px) {
    #theFace {
        z-index: 99999;
        width: 150px;
        height: 150px;
        position: absolute;
        top: 20%;
        left: 50vw;
        transform: translateX(-50%) scale(0) rotate(-15deg);
        opacity: 0;
    }
}
