/* GLOBAL STYLES */

/* fonts */

@font-face {
    font-family: HelveticaNeue-Light;
    src: url("../assets/fonts/HelveticaNeue-Light.ttf");
}

@font-face {
    font-family: HelveticaNeue-Roman;
    src: url("../assets/fonts/HelveticaNeue-Roman.ttf");
}

* {
    overflow-wrap: break-word;
    word-break: break-word;
}

@media only screen and (max-width: 768px) {
    .privacy-policy {
        hyphens: auto;
    }

    .cta-buttons {
        margin-top: 40px;

    }
}


/* PREVENT STICKY BUTTONS ON TOUCH DEVICES */

@media (pointer: coarse) {

    [data-color-link-primary]:hover,
    [data-color-link-secondary]:hover,
    [data-menu]:hover,
    [data-color-social-primary]:hover,
    [data-color-social-secondary]:hover {
        opacity: 1 !important;
    }

    [data-button]:hover:not([disabled]) {
        opacity: 1 !important;
    }
}

input[type="date"] {
    text-align: left;
}

[data-email] {
    position: relative;
    min-height: 100vh;
    background-color: black;
    flex-direction: row !important;
    align-items: center;
    justify-content: center;
}

body {
    position: relative;
}

:root {
    --red-button: #e30613;
    --blue-button-heading: #16b7bb;
    --white-pure: #fff;
    --white-bg: #f7f7f7;
    --grey-text: #333;
}

a,
#social a:hover {
    text-decoration: none;
}

h1,
h2 {
    margin-bottom: 30px;
}

p,
h3 {
    margin-bottom: 20px;
}

.heading-style {
    text-align: center;
}

.row {
    margin: 0;
}

.copyright {
    margin-top: 50px;
}

h3>span,
h3>span>span {
    color: inherit !important;
    font-size: inherit !important;
    font-style: inherit !important;
    font-weight: inherit !important;
}

.image>img {
    box-shadow: 0 0 6px #0000003d;
}

#pimg {
    box-shadow: unset !important;
}

.button__container {
    display: flex;
    justify-content: center;
    margin-top: 28px;
}

.btn {
    width: 100%;
    max-width: 300px;
    padding: 17px 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: initial;
}

.custom-checkbox .custom-control-label::before,
.custom-checkbox .custom-control-label::after {
    top: calc(50% - 0.55rem);
}


/* || HEADER || */

.header {
    width: 100%;
    padding: 24px 0;
}

.logo__container {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo__container img {
    max-width: 210px;
    max-height: 100px;
    object-fit: contain;
}


/* || CONTENT || */

.template__inner {
    width: 100%;
    max-width: 845px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100vh;
}

.introduction__inner {
    text-align: center;
    display: flex;
    flex-direction: column;
}


/* || GAME VIEW || */

.game__view__wrap {
    width: 100%;
    height: auto;
    margin: 30px 0 0;
}

.center__content__game {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    margin: 50px 0 20px;
}

.template__inner.game {
    max-width: 1320px;
}

#time__wrap__memory {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-bottom: 30px;
}

#card-container {
    width: 100%;
    max-width: 330px;
    margin: auto;
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.game-item {
    width: 120px;
    height: 120px;
    border-radius: 12px;
    overflow: hidden;
}

.game-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media screen and (min-width: 410px) {
    .game-item {
        width: 140px;
        height: 140px;
    }
}

@media screen and (min-width: 768px) {
    #card-container {
        max-width: 768px;
        gap: 15px;
    }

    .game-item {
        width: 160px;
        height: 160px;
    }
}

@media screen and (min-width: 1440px) {
    #card-container {
        max-width: 1000px;
    }

    .game-item {
        width: 220px;
        height: 220px;
    }
}

.question__wrap {
    text-align: center;
}

.swipe__icon__wrap {
    display: flex;
    justify-content: center;
    gap: 170px;
}

#icon-left {
    transform: rotate(180deg);
}

.swipe__icon i {
    font-size: 40px;
}

.swipe__click__wrap {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.swipe__click__wrap div {
    width: 380px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.swipe__click__wrap div a {
    width: 100%;
    padding: 20px 5px;
    text-align: center;
    height: 100%;
}

.answers-container {
    width: 100%;
    max-width: 564px;
    margin: 0 auto;
    display: flex;
    gap: 15px;
    flex-direction: column;
}

.answers-container a {
    padding: 20px 5px;
    text-align: center;
}

.center__content__img.game {
    position: relative;
    padding: 0;
    width: 100%;
    aspect-ratio: 1.667 / 1;
}

.game-info {
    padding: 20px 0;
    width: 100%;
}


/* || REGISTER || */

.center__content.register {
    display: flex;
    flex-direction: column;
}

.headline__wrap {
    text-align: center;
}

.form-box {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.form-box div {
    flex: 0 0 48%;
}

.form-box div input:focus-visible {
    outline: none;
}

.form-box div select:focus-visible {
    outline: none;
}

.form-box div input,
select {
    width: 100%;
    padding: 18px;
    border-radius: 60px;
    border: 1px solid #343434;
    background-color: transparent !important;
}

/* disable arrow in select input */

select {
    appearance: none;
    /* Firefox */
}

.custom-checkbox .custom-control-label::before {
    border: 1px solid #343434;
    border-radius: 0;
    background-color: #fff;
}

.custom-checkbox .custom-control-input:checked~.custom-control-label::before {
    background-color: #fff;
}

.custom-checkbox .custom-control-input:checked~.custom-control-label::after {
    background-image: none;
    background-color: #197B6F;
    transform: scale(0.6);
}


/* || OUTCOME || */

#outcome {
    flex-direction: column;
}

.center__content__img {
    width: 100%;
    max-width: 563px;
    margin: 0 auto;
    padding: 10px 0 30px;
}

.center__content__img img {
    width: 100%;
    height: 100%;
    max-height: 400px;
    border-radius: 12px;
    object-fit: cover;
}

#introduction .center__content__img {
    max-height: 300px;
    padding: 0px !important;
}

#introduction .center__content__img img {
    object-fit: contain;
}

.center__content.outcome {
    padding: 30px 0;
    text-align: center;
}

.center__content.outcome .center__content__text {
    margin: 10px 0;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    width: 100%;
    justify-content: center;
    padding-bottom: 20px;
}

.cta {
    width: 100%;
    max-width: 312px;
    display: none;
    padding: 10px 0;
}

/* social icons */

.social__wrap {
    width: 100%;
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
    align-items: center;
    gap: 0;
    list-style: none;
    margin: 0 auto;
    padding: 0;
}

[data-social] {
    width: 40px;
    height: 40px;
    aspect-ratio: 1 / 1;
    border: none;
    border-radius: 50%;
    overflow: hidden;
    margin: 10px 5px 0;
    transition: transform .3s ease-out, opacity .5s ease-in;
}

[data-social]:hover {
    transform: translateY(-10px);
    opacity: .6;
}

[data-social]>a {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    text-decoration: none;
}

a>svg {
    max-width: 50%;
    max-height: 50%;
    width: 50%;
    height: auto;
    object-fit: contain;
    margin: auto;
}


/* || FOOTER || */

.footer {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin: 10px 0;
    text-align: center;
}

.footer span,
a {
    padding: 5px 0;
}


/* Spin the wheel
--------------------------------- */

.content-background {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-direction: column;
}

.spin-the-wheel {
    width: 100%;
}

.spin-the-wheel .canvas-container {
    border: 12px solid #000;
    border-radius: 50%;
    width: 440px;
    height: 440px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.spin-the-wheel .canvas-wrapper {
    width: 420px;
    height: 420px;
    border: 10px solid transparent;
}

.spin-the-wheel canvas {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    cursor: pointer;
    transform: rotate(90deg);
}

.spin-the-wheel .ticker-layer {
    position: absolute;
    display: flex;
    z-index: 1;
    right: -25px;
    justify-content: center;
}

.spin-the-wheel .ticker-layer img {
    width: 54px;
    height: 43px;
    object-fit: contain;
}

.spin-the-wheel .center-layer {
    position: absolute;
    margin: auto;
    z-index: 2;
}

.spin-the-wheel .center-layer img {
    width: 60px;
    height: 60px;
    background-color: #fff;
    border-radius: 50%;
}

.legend__section {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.spin-the-wheel .legend {
    display: flex;
    flex-direction: column;
    margin: 0 auto;
}

.spin-the-wheel .legend-element {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    align-items: center;
}

.spin-the-wheel .legend .sector {
    width: 53px;
    min-width: 53px;
    height: 53px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
}

.spin-the-wheel .legend span {
    font-weight: 600;
    font-size: 18px;
    line-height: 1;
}

.spin-the-wheel .legend .sector img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.btn__stw {
    width: 100%;
    max-width: 420px;
}

.row.content-wrap.stw {
    box-shadow: none;
}


/* || MEDIA QUERY || */

@media screen and (max-width: 768px) and (orientation: landscape) {
    .footer.game {
        padding-bottom: 20px;
    }
}

@media screen and (max-width: 1280px) {
    .spin-the-wheel .canvas-section {
        padding-right: 0;
    }

    .small-tiles .prize-box {
        width: 160px;
        height: 160px;
    }

    .big-tile {
        width: 360px;
        height: 360px;
    }

    p.date {
        font-size: 30px !important;
    }

    .date.big {
        font-size: 60px !important;
    }
}

@media screen and (max-width: 1010px) {
    .calendar-wrap {
        flex-direction: column;
    }

    .small-tiles {
        width: 60%;
    }

    .small-tiles .prize-box {
        width: 205px;
        height: 205px;
    }

    .big-tile {
        width: 431px;
        height: 431px;
    }
}

@media screen and (max-width: 991px) {
    .content-background {
        gap: 30px;
        margin-top: 20px;
    }
}

@media screen and (max-width: 800px) {
    .center__wrap {
        margin-bottom: 30px;
    }
}

@media screen and (max-width: 768px) {
    .swipe__click__wrap {
        flex-wrap: wrap;
    }

    .swipe__click__wrap div {
        width: 100%;
    }

    .spin-the-wheel .legend-element {
        flex: 0 0 100%;
    }

    .small-tiles {
        width: 80%;
    }
}

@media screen and (max-width: 600px) {
    .form-box div {
        flex: 0 0 100%;
    }

    .small-tiles {
        width: 100%;
    }
}

@media screen and (max-width: 500px) {
    .cta-buttons {
        flex-wrap: wrap;
    }
	
	#introduction .center__content__img {
		max-height: 120px;
	}
	
	#introduction .center__content__img img {
		max-height: none;
	}

    .center__content__img img {
        max-height: 16rem;
    }

    .spin-the-wheel canvas {
        width: 250px;
        height: 250px;
    }

    .spin-the-wheel .canvas-wrapper {
        width: 270px;
        height: 270px;
    }

    .spin-the-wheel .canvas-container {
        width: 280px;
        height: 280px;
    }

    .spin-the-wheel .legend .sector {
        margin-right: 4px;
    }

    .spin-the-wheel .legend span {
        font-size: 16px;
    }

    .spin-the-wheel .ticker-layer img {
        width: 40px;
        height: 30px;
    }

    .spin-the-wheel .center-layer img {
        width: 25px;
        height: 25px;
    }

    .small-tiles .prize-box {
        width: 160px;
        height: 160px;
    }

    .big-tile {
        width: 340px;
        height: 340px;
    }
}

@media screen and (max-width: 350px) {
	#introduction .center__content__img img {
		max-height: none;
	}
	
    .center__content__img img {
        max-height: 14rem;
    }

    .template__inner {
        padding: 0 10px;
    }

    .spin-the-wheel canvas {
        width: 220px;
        height: 220px;
    }

    .spin-the-wheel .canvas-wrapper {
        width: 240px;
        height: 240px;
    }

    .spin-the-wheel .canvas-container {
        width: 250px;
        height: 250px;
    }

    .small-tiles .prize-box {
        width: 130px;
        height: 130px;
    }

    .big-tile {
        width: 280px;
        height: 280px;
    }
}

/*  ===== LIMIT REACHED PAGE ===== */
#limit-reached {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

#limit-reached>div {
    flex: 0 0 100%;
}

.limit-container {
    width: 100%;
    max-width: 600px;
    height: auto;
    margin: auto;
    padding: 20px 10px;
    text-align: center;
    border-radius: 12px;
}

.limit-container h2 {
    margin: 0;
}

@media screen and (min-width: 410px) {
    .limit-container {
        padding: 30px 20px;
    }
}

/* ================================ SCRATCH CARD ================================ */
.scratch-card {
    width: 100%;
}

.legend-wrap h2 {
    text-align: center;
}

.scratch-card>.page-wrap {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
}

/* -------------- CARD CONTAINER -------------- */
.po-none {
    user-select: none;
    pointer-events: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
}

.scratch-card__container {
    width: 300px;
    max-width: 500px;
    display: grid;
    grid-template-columns: repeat(3, 96px);
    grid-template-rows: repeat(3, 96px);
    gap: 6px;
    margin: auto;
}

@media screen and (min-width: 410px) {
    .scratch-card__container {
        width: 350px;
        grid-template-columns: repeat(3, 112px);
        grid-template-rows: repeat(3, 112px);
        gap: 7px;
    }
}

@media screen and (min-width: 1025px) {
    .scratch-card__container {
        width: 470px;
        grid-template-columns: repeat(3, 150px);
        grid-template-rows: repeat(3, 150px);
        gap: 10px;
    }
}

.scratch-card__container>.card {
    width: 100%;
    height: 100%;
    position: relative;
    cursor: pointer;
    user-select: none;
    aspect-ratio: 1 / 1;
    background: transparent;
    box-shadow: 0 0 30px 5px rgb(0 0 0 / 10%);
    border: 4px solid rgb(0 0 0 / 12.5%);
    border-radius: 12px;
}

.card-canvas {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
    aspect-ratio: 1 / 1;
    z-index: 10;
    border-radius: inherit;
}

.prize-cover {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
    z-index: 9;
    border: 2px solid white;
    border-radius: inherit;
}

#scratch-card .prize {
    position: relative;
    z-index: 8;
}

.scratch-card__container img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: cover;
    border-radius: inherit;
    aspect-ratio: 1 / 1;
}

/* -------------- ANIMATIONS -------------- */
.card-outline {
    box-shadow: 0 0 0 4px rgb(25 123 111 / 100%);
}

.card-match {
    box-shadow: 0 0 0 4px rgb(25 123 111 / 100%);
    animation: blink 0.5s infinite;
}

@keyframes blink {
    0% {
        box-shadow: 0 0 0 0 rgb(25 123 111 / 100%);
    }

    100% {
        box-shadow: 0 0 7px 8px rgb(25 123 111 / 100%);
    }
}

@keyframes blink {
    0% {
        box-shadow: 0 0 0 0 rgb(25 123 111 / 100%);
    }

    100% {
        box-shadow: 0 0 7px 8px rgb(25 123 111 / 100%);
    }
}

@keyframes blink {
    0% {
        box-shadow: 0 0 0 0 rgb(25 123 111 / 100%);
    }

    100% {
        box-shadow: 0 0 7px 8px rgb(25 123 111 / 100%);
    }
}

@keyframes blink {
    0% {
        box-shadow: 0 0 0 0 rgb(25 123 111 / 100%);
    }

    100% {
        box-shadow: 0 0 7px 8px rgb(25 123 111 / 100%);
    }
}

/* -------------- LEGEND -------------- */
#scratch-card .legend {
    width: fit-content;
    max-width: 100%;
    height: auto;
    margin: auto;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: repeat(4, 1fr);
    gap: 30px;
    justify-items: start;
    position: relative;
}

#scratch-card .legend-element {
    width: fit-content;
    max-width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
}

#scratch-card .legend-element>span {
    display: flex;
    align-items: center;
}

#scratch-card .sector {
    width: 74px;
    height: 74px;
    margin-right: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    border: 2px solid;
    border-radius: 6px;
    overflow: hidden;
}

#scratch-card .sector>img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media screen and (min-width: 768px) {
    #scratch-card .legend {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(2, 1fr);
    }

    .prize-cover {
        border: 4px solid;
    }
}

@media screen and (min-width: 1025px) {
    #scratch-card .page-wrap {
        flex-direction: row;
    }

    .legend-wrap h2 {
        text-align: left;
    }

    #scratch-card .legend-wrap {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    #scratch-card .legend {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(4, 1fr);
        margin: 0 auto 0 0;
    }
}

/* --------------- RETRY MODAL --------------- */
.retry-modal {
    width: 90%;
    max-width: 700px;
    height: fit-content;
    min-height: 300px;
    position: absolute;
    inset: 200px 0 0;
    margin: 0 auto;
    z-index: 10;
    border: 4px solid white;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgb(0 0 0 / 30%);
}

.retry-modal__body {
    width: 100%;
    min-height: 300px;
    padding: 70px 10px 40px;
    border-radius: inherit;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
}

.retry-modal__body>h1 {
    margin-bottom: 40px;
}

.retry-modal__body>button {
    min-width: 200px;
    padding: 10px 20px;
    margin: 0;
}

/* ================================ RTL SUPPORT ================================ */
[dir="rtl"] .question__wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
}

[dir="rtl"] .question__wrap>h3 {
    display: flex;
}

[dir="rtl"] #timer,
[dir="rtl"] #status-text {
    margin-right: 5px;
}

[dir="rtl"] .custom-control.custom-checkbox {
    text-align: right;
    padding: 0 1.5rem 0 0 !important;
}

[dir="rtl"] .custom-control-label::before,
[dir="rtl"] .custom-control-label::after {
    right: -1.5rem !important;
}

/* SWIPE GAMES */
[dir="rtl"] [data-mode-swipe] {
    direction: ltr;
}

[dir="rtl"] #terms,
[dir="rtl"] #privacy,
[dir="rtl"] .legend span {
    direction: rtl;
    text-align: right;
}

.gtp-tile-wrap {
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: repeat(20, 5%);
    grid-template-rows: repeat(10, 10%);
    border-radius: 12px;
    overflow: hidden;
}

.gtp-tile {
    width: 100%;
    height: 100%;
}
