/* Import Google Font - Poppins */
@import url('https://fonts.googleapis.com/css2?family=Jua&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Jua', sans-serif;
}

body {
    background-color: #000;
}


.field {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100vw;
    min-height: 100vh;
    background: #000;
}

.text {
    margin-right: 5vw;
    align-self: center;
}


.main-text {
    line-height: .8;
    font-size: 4vw;
    color: #ffe700;
    text-transform: capitalize;
}

.main-text span {
    font-size: 12vw;
}

.details {
    width: 100%;
    margin-top: 3vh;
    display: flex;
    flex-direction: column;
    align-items: right;
    font-size: 4vw;
    line-height: 1;
    color: #fff;

}
.details p {
    line-height: 1.3;
}


.details button {
    width: 100%;
    margin-top: 5vw;
    cursor: pointer;
    font-size: 14px;
    color: #fff;
    border-radius: 4px;
    padding: 1vw 3vw;
    background: #000;
    border: 2px solid #fff;
    transition: 0.3s ease;
}

.details button:hover {
    color: #000;
    background: #fff;
}














.wrapper {
    padding: 25px;
    border-radius: 20px;
    background: #000;
    box-shadow: 0 10px 20px 20px rgba(0, 0, 0, 0.2);
}

.cards,
.card,
.view {
    display: flex;
    align-items: center;
    justify-content: center;
}

.cards {
    height: 500px;
    width: 500px;
    flex-wrap: wrap;
    justify-content: space-between;
}

.cards .card {
    cursor: pointer;
    list-style: none;
    user-select: none;
    position: relative;
    perspective: 1000px;
    transform-style: preserve-3d;
    height: calc(100% / 4 - 10px);
    width: calc(100% / 4 - 10px);
}

.card.shake {
    animation: shake 0.35s ease-in-out;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    20% {
        transform: translateX(-13px);
    }

    40% {
        transform: translateX(13px);
    }

    60% {
        transform: translateX(-8px);
    }

    80% {
        transform: translateX(8px);
    }
}

.card .view {
    width: 100%;
    height: 100%;
    position: absolute;
    border-radius: 15px;
    background: #fff;
    pointer-events: none;
    backface-visibility: hidden;
    box-shadow: 0 0px 10px 3px rgba(255, 231, 0, 1);
    transition: transform 0.25s linear;
}

.card .front-view {
    background: #ffe700;
}

.card .front-view img {
    width: 70px;
}

.card .back-view img {
    max-width: 100px;
    background-color: #fff;
}

.card .back-view {
    transform: rotateY(-180deg);
}

.card.flip .back-view {
    transform: rotateY(0);
}

.card.flip .front-view {
    transform: rotateY(180deg);
}

@media screen and (max-width: 700px) {
    .cards {
        height: 350px;
        width: 350px;
    }

    .card .front-view img {
        width: 17px;
    }

    .card .back-view img {
        max-width: 40px;
    }

    .field {
        flex-direction: column;
    }
    .text {
        margin-bottom: 3vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    .details {
        margin-top: 3vh;
        font-size: 5vw;
    }

    .main-text {
        font-size: 10vw;
    }

    .main-text span {
        font-size: 15vw;
    }



    @media screen and (max-width: 530px) {
        .cards {
            height: 300px;
            width: 300px;
        }

        .card .front-view img {
            width: 15px;
        }

        .card .back-view img {
            max-width: 35px;
        }
    }