@font-face {
    font-family: "DS DIGIB";
    src: url("../fonts/DS-DIGIB.TTF") format("truetype");
}

@font-face {
    font-family: "Gill Sans";
    src: url("../fonts/GillSansBoNova.TTF") format("truetype");
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

img {
    max-width: 100%;
    height: auto;
}

section {
    background: url(../images/bg.jpg) repeat top center fixed;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
    width: 100%;
    height: 100svh;
}

.container,
.content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#winner .content>* {
    width: 80%;
}

.pexeso {
    height: 90svh;
}

.content {
    max-width: 570px;
    padding: 0 20px;
}

#gameboard {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, minmax(30px, 1fr));
    grid-auto-rows: minmax(calc(55vh / 4), 1fr);
    grid-gap: 7px;
    margin: 30px 0;
    height: 60vh;
    aspect-ratio: 3/4;
    margin: 0 auto;
}

.container-grid {
    width: 100%;
    height: 60vh;
}

.container-head {
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 30px;
}

.container-bottom {
    height: auto;
    width: 100%;
    padding-top: 10px;
}

.card {
    width: 100%;
    height: 100%;
    display: inline-block;
    position: relative;
    text-align: center;
    cursor: pointer;
    perspective: 500px;
    transition: transform 0.3s;
    aspect-ratio: 1/1;
}

.card.flipped {
    transform: rotateY(180deg);
}

.card .front,
.card .back {
    width: auto;
    height: 100%;
    position: absolute;
    backface-visibility: hidden;
    aspect-ratio: 1/1;
}

.card .front {
    background-image: url('../images/pexeso0.png');
    background-size: cover;
}

.card .back {
    background-size: cover;
    transform: rotateY(180deg);
}

.card[data-value="A"] .back {
    background-image: url('../images/pexeso1.png');
}

.card[data-value="B"] .back {
    background-image: url('../images/pexeso2.png');
}

.card[data-value="C"] .back {
    background-image: url('../images/pexeso3.png');
}

.card[data-value="D"] .back {
    background-image: url('../images/pexeso4.png');
}

.card[data-value="E"] .back {
    background-image: url('../images/pexeso5.png');
}

.card[data-value="F"] .back {
    background-image: url('../images/pexeso6.png');
}

.card.flipped .back {
    backface-visibility: unset;
}

.txt1-svg {
    padding-bottom: 10px;
    padding-top: 30px;
    padding-left: 20px;
    padding-right: 20px;
}

.txt2-svg {
    padding-bottom: 10px;
}

.txt3-svg {
    padding: 0 20px;
}

.timer-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 20px;

}

#timer {
    font-family: "DS DIGIB";
    font-size: 52px;
    color: #fff200;
    margin: 0 10px;
}

.container-bottom p {
    max-width: 760px;
    text-align: center;
}

.end-t {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
    color: white;
    font-family: "Gill Sans";
    font-size: 8px;
    padding-bottom: 20px;
    height: 10svh;
}

.timer-svg {
    max-width: 110px;
}

.timeleft-svg {
    max-width: 130px;
}

.txt4-svg {
    padding-bottom: 20px;
    padding-top: 30px;
    padding: 30px 20px 20px;
}


.svg-wrap-txt5-svg {
    padding-bottom: 20px;
}

.coin-container {
    display: flex;
    width: 100%;
    padding: 70px 20px;
}

.coin-wrapper {
    flex: 1.8;
    position: relative;
    display: flex;
    align-items: center;
}

.price-wrapper {
    flex: 1.2;
    display: flex;
    align-items: center;
}

.lens-wrap-coin1 {
    z-index: 2;
}

.lens-wrap-coin2 {
    position: absolute;
    right: 0px;
    z-index: 1;

}

.coin1,
.coin2 {
    max-height: 178px;
}

.label-gold-svg {
    position: absolute;
    max-width: 76px;
    top: -60px;
    left: 30px;
    z-index: 0;
}

.label-diameter-svg {
    position: absolute;
    max-width: 163px;
    z-index: 0;
    bottom: -70px;
    left: 70px;
}

.bonus-svg,
.booklet {
    padding: 0 40px;
    padding-top: 20px;
}

.prices-svg {
    padding: 0 10px;
}

.lens-wrap-coin1::after {
    content: '';
    width: 100%;
    height: 100%;
    background: url(../images/lens.png) no-repeat;
    bottom: -50px;
    left: -35px;
    position: absolute;
    display: inline-block;
    transform: rotateZ(0deg) scale3d(0.2, 0.2, 0.2);
    transform-origin: 110px 110px;
    opacity: 0;
}

.lens-wrap-coin2::before {
    content: '';
    width: 100%;
    height: 100%;
    background: url(../images/lens.png) no-repeat;
    top: -80px;
    right: -15px;
    position: absolute;
    display: inline-block;
    transform: rotateZ(0deg) scale3d(0.2, 0.2, 0.2);
    transform-origin: 110px 110px;
    opacity: 1;
}

.button-container {
    width: 100%;
    display: flex;
    align-items: center;
    position: relative;
    padding: 0 60px;
}

.arrows-left,
.arrows-right {
    position: absolute;
    width: 70px;
}

.arrows-left {
    left: 0;
}

.arrows-right {
    right: 0;
    transform: rotate(180deg);
}

.cta {
    display: flex;
    width: 100%;
}

.cta>img {
    width: 100%;
}

.rules-svg {
    padding: 10px 0;
    width: 50%;
}

.popup {
    position: fixed;
    top: 0;
    display: flex;
    width: 100%;
    height: 100%;
    justify-content: center;
    cursor: pointer;
}

.popup>img {
    max-width: 350px;
}