:root {
    --shadow: 4px 4px 4px 0 rgba(0, 0, 0, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overflow-wrap: break-word;
    word-break: break-word;
}

body {
    width: 100%;
    min-height: 100dvh;
    position: relative;
    overflow: hidden auto !important;
}

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

/* 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;
  }
}

#main-content {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100dvh;
    width: 100%;
    overflow: hidden !important;
}

img {
    width: 100%;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    background-color: transparent;
    border: none;
}

.icon-container>img {
    width: 32px;
    height: 32px;
}

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

h1,
h2,
h3,
p,
button {
    margin: 0;
}

.counter__element>span,
.counter__element>span>span {
    font-size: inherit;
    font-family: inherit;
    font-weight: inherit;
    font-style: inherit;
    color: inherit;
}

[data-button] {
    min-width: 180px;
    padding: 10px 25px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

#main-content>div:not([data-email]) {
    width: 100%;
    min-height: 100dvh;
    display: flex;
    justify-content: center;
    overflow: hidden !important;
}

/* tos and pp */
.document__wrap {
    width: 90%;
    max-width: 1025px;
    height: fit-content;
    margin: 40px auto 80px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: start;
    gap: 25px;
    padding: 0 20px 50px;
    box-shadow: var(--shadow);
}

.document__title {
    text-align: center;
    margin: 20px auto 50px;
}

.point {
    margin-bottom: 20px;
}

.document__wrap h4 {
    margin-bottom: 20px;
    font-weight: bold;
}

.document__wrap p {
    margin-bottom: 15px;
}

/* ====================================== layout ====================================== */

.page__wrap {
    max-width: 100%;
    width: 100%;
    min-height: 100dvh;
    height: fit-content;
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 40px;
    align-items: center;
    position: relative;
}

.logo__wrap {
    width: 100%;
    display: flex;
    justify-content: center;
}

.logo {
    width: 300px;
    max-height: 300px;
    object-fit: contain;
    margin: 40px auto 0;
}

.center__wrap {
    width: 90%;
    max-width: 1400px;
    height: auto;
    margin: auto;
    border: none;
    box-shadow: var(--shadow);
}

.content__wrap {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 25px;
    text-align: center;
    position: relative;
    padding: 25px 15px;
}

@media screen and (min-width: 375px) {
    .content__wrap {
        padding: 50px 30px;
    }
}

.page__image {
    max-width: 600px;
}

.button {
    width: fit-content;
    min-width: 258px;
    max-width: 100%;
    padding: 10px 30px;
}

@media screen and (min-width: 768px) {
    .button {
        padding: 10px 70px;
    }
}

.footer__wrap {
    width: 100%;
    margin: 0 10px 15px;
    text-align: center;
}

.footer {
    padding: 0 15px;
}

.footer>span,
.footer>a {
    display: inline;
}

@media screen and (min-width: 1025px), (orientation: landscape) and (min-width: 1023px) {
    .content__wrap {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: repeat(6, auto);
        text-align: start;
        align-items: start;
        column-gap: 35px;
        row-gap: 0;
        padding: 50px 40px;
    }

    .page__image {
        grid-area: 1 / 2 / 7 / 3;
        justify-self: end;
        align-self: center;
    }

    .grid__col__1-1 {
        grid-area: 2 / 1 / 3 / 2;
    }

    .grid__col__1-2 {
        grid-area: 3 / 1 / 4 / 2;
    }

    .grid__col__1-3 {
        grid-area: 4 / 1 / 5 / 2;
    }

    .grid__col__1-4 {
        grid-area: 5 / 1 / 6 / 2;
    }

    .leadForm {
        grid-area: 4 / 1 / 6 / 2;
    }

    #introduction .grid__col__1-1,
    #introduction .grid__col__1-2,
    #introduction .grid__col__1-3,
    #introduction .grid__col__1-4 {
        margin-bottom: 25px;
    }
}

@media screen and (min-width: 1280px) {
    .content__wrap {
        padding: 70px 90px;
    }
}

/* ====================================== Register ====================================== */

/* reset browser styles */

/* ----- disable outline on focus ------ */
.custom-control-label::before {
    outline: none;
    box-shadow: none !important;
    background-color: transparent !important;
}

button:focus,
button:focus-visible {
    outline: none !important;
}

input:-webkit-autofill,
select:-webkit-autofill {
    background-color: rgba(240, 240, 240, 1) !important;
}

.register__wrap {
    gap: 10px;
}

.leadForm {
    width: fit-content;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 15px;
    margin: 20px 0 0;
}

.form-box {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

[input-group] {
    width: 100%;
}

.form-input {
    width: 100%;
    height: 50px;
    padding: 13px 20px;
    margin: 0 auto;
    text-align: center;
    border: 2px solid rgba(88, 87, 87, 1);
    border-radius: 0;
    box-shadow: none;
    background-color: rgba(240, 240, 240, 1);
    line-height: 1.2;
}

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

#date-of-birth-input[type="date"],
#date-of-birth-input[type="text"] {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    appearance: none;
    vertical-align: middle;
    background-color: rgba(240, 240, 240, 1);
    width: 100%;
    min-height: 50px;
    height: 50px;
    box-shadow: none !important;
    outline: none !important;
    padding: 13px 20px;
}

/* input placeholder coloring fix */

/* WebKit browsers (Chrome, Safari, etc.) */
[input-group]>input::placeholder,
.span-select {
    color: inherit !important;
}

/* Firefox */
/* stylelint-disable-next-line selector-pseudo-class-no-unknown */
[input-group]>input:placeholder {
    color: inherit !important;
    opacity: 1 !important;
}

/* Edge */
/* stylelint-disable-next-line selector-pseudo-element-no-unknown */
[input-group]>input::input-placeholder {
    color: inherit !important;
}

#div-select {
    position: relative;
}

.span-select {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 50px;
    text-align: center;
    background-color: rgba(240, 240, 240, 1);
    border: 2px solid rgba(88, 87, 87, 1);
    pointer-events: none;
    word-break: normal;
    overflow-wrap: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 1;
    padding: 11px 20px;
}

/* Style the default calendar icon */

select {
    appearance: none;
    -webkit-appearance: none;
}

#select-div {
    position: relative;
    min-height: 38px;
}

/* checkboxes */

.checkbox__wrap {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    text-align: start;
}

.checkbox__wrap a {
    margin-left: 4px;
}

.checkbox__wrap .custom-control {
    padding: 0;
}

.checkbox__wrap .button {
    margin: 15px auto 0;
}

.custom-control-label {
    width: 100%;
    position: relative;
    padding-left: 30px;
}

.custom-control-label p,
.custom-control-label a {
    display: inline;
}

.custom-control-label::before,
.custom-control-label::after {
    width: 18px;
    height: 18px;
    position: absolute;
    top: calc(50% - 0.65rem);
    left: 0;
    border: 2px solid black;
    border-radius: 0 !important;
    background-color: transparent !important;
}

.custom-control-label::after {
    display: none;
    border: none;
}

.custom-control-input:checked~.custom-control-label::after {
    display: block;
    background-image: none !important;
    border: none;
    transform: scale(0.6);
}

@media screen and (min-width: 768px) {
    .form-box {
        flex-flow: row wrap;
        gap: 16px;
    }

    .form-box>div {
        flex: 0 0 calc(50% - 8px);
    }
}

@media screen and (min-width: 1025px), (orientation: landscape) and (min-width: 1023px) {
    .form-box {
        justify-content: flex-start;
    }

    .checkbox__wrap .button {
        margin: 15px auto 0 0;
    }

    .register__wrap {
        row-gap: 10px;
        column-gap: 35px;
    }
}

/* ====================================== Outcome ====================================== */

/* social icons */

.social__wrap {
    position: relative;
    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: 50px;
    height: 50px;
    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: 60%;
    max-height: 60%;
    width: 60%;
    height: auto;
    object-fit: contain;
    margin: auto;
}

/* swal toast icon small screen alignment fix */
.swal2-popup.swal2-toast .swal2-icon-show .swal2-icon-content {
    font-family: Arial, Helvetica, sans-serif !important;
}

@media screen and (min-width: 1025px), (orientation: landscape) and (min-width: 1023px) {
    .social__wrap {
        justify-content: flex-start;
        margin: 0 auto 0 -5px;
    }
}

/* cta buttons */
.cta-buttons {
    width: 100%;
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.cta {
    min-width: 230px;
    display: none;
}

.outcome__wrap {
    gap: 10px;
}

.outcome-text {
    margin-top: 20px;
    margin-bottom: 20px;
}

.grid__cell {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

@media screen and (min-width: 1025px), (orientation: landscape) and (min-width: 1023px) {
    .cta-buttons {
        justify-content: flex-start;
    }

    .grid__cell {
        align-items: flex-start;
    }

    #game-view .grid__cell {
        grid-area: 2 / 1 / 6 / 2;
    }
}

/* ====================================== Limit reached ====================================== */

#limit-reached {
    width: 100%;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

.limit__wrap {
    width: 90%;
    max-width: 600px;
    height: auto;
    margin: auto;
    text-align: center;
    border-radius: 0;
    border: none;
    box-shadow: var(--shadow);
}

.limit__wrap_2 {
    width: 100%;
     padding: 50px 20px;
}

/* ============================================= GAMES ============================================== */
#game-view>div {
    width: 100%;
}

.po-none {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -o-user-select: none;
    user-select: none;
    pointer-events: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
}

.grid__col__game {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

/* ============================ quiz and personality test ==================================== */
[data-mode-click],
[data-mode-swipe] {
    width: 100%;
    height: auto;
}

[data-personality-test="question-text"],
[data-quiz="question-text"] {
    margin-bottom: 30px;
}

/* ============= swipe ============= */

#game-view .center__wrap {
    width: fit-content;
    max-width: 90%;
}

#game-view .content__wrap {
    width: 100%;
    height: auto;
    display: flex;
}

.swipe__wrap {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    text-align: center;
    max-width: 926px;
    margin: auto;
}

.arrows__wrap_pc {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 106%;
    pointer-events: none;
    position: absolute;
    inset: 0;
}

.arrow__wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 41px;
    width: fit-content;
    height: auto;
    position: relative;
    z-index: 11;
}

.swipe-answers__container {
    width: 100%;
    display: flex;
    flex-direction: row;
    gap: 10px;
}

.swipe-answers__container>a {
    min-width: unset;
    flex: 0 0 calc(50% - 5px);
    display: flex !important;
    justify-content: center;
    align-items: center;
}

.game-image__wrap {
    width: 100%;
    max-width: 500px;
    margin: auto;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    min-height: 184px;
    margin-bottom: 30px;
}

.arrows__wrap_swipe {
    width: 100%;
    height: 100%;   
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
}

.image__wrap__swipe {
    position: relative;
    width: 100%;
    max-width: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 30px;
}

.image__wrap__swipe .game-image__wrap {
    margin: auto;
}

.swipe__wrap .image__wrap__swipe {
    width: 90%;
}

@media screen and (min-width: 410px) {
    .arrow__wrap i {
        font-size: 50px;
    }
}

@media screen and (min-width: 768px) {
    .arrows__wrap_pc {
        gap: calc(100% + 70px);
    }

    .arrow__wrap i {
        font-size: 80px;
    }

    .swipe-answers__container {
        padding: 0 8px;
    }
}

/* ============= click ============= */

.click__answers__wrap {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
}

.click__answers__wrap a {
    width: 100%;
    height: auto;
}

/* quiz popup */

#modal-container {
    width: 90%;
    border-radius: 0;
    background-color: rgba(255, 255, 255, 0.85);
}

@media screen and (min-width: 360px) {
    .game-image__wrap {
        min-height: 211px;
    }
}

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

@media screen and (min-width: 768px) {
    .game-image__wrap {
        min-height: 371px;
    }
}

@media screen and (min-width: 1025px), (orientation: landscape) and (min-width: 1023px) {
    .outcome__wrap {
        column-gap: 35px;
        row-gap: 10px;
    }

    .image__wrap__swipe {
        min-height: 372px;
        margin-bottom: 30px;
    }

    #game-view .center__wrap {
        width: 90%;
        max-width: 1400px;
    }

    .click__wrap {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: repeat(6, auto);
        text-align: start;
        align-items: start;
        column-gap: 35px;
        row-gap: 0;
    }

    .grid__col__game {
        grid-area: 2 / 1 / 6 / 2;
        align-items: flex-start;
    }

    .game-image__wrap {
        grid-area: 1 / 2 / 7 / 3;
        justify-self: end;
        align-self: center;
        margin: auto 0;
        min-height: 298px;
    }
}