@tailwind base;
@tailwind components;
@tailwind utilities;

@layer base {
    html.front {
        scroll-behavior: smooth;
        overflow-x: hidden;
    }

    .front body {
        @apply relative text-white text-base font-geologica antialiased font-normal leading-[1.3] bg-flexplay-purple-dark;
    }

    .front main {
        overflow-x: hidden;
    }

    .alignfull {
        @apply max-w-none;
    }

    .container {
        @apply mx-auto px-4 xl:px-0;
    }

    .container-large {
        @apply lg:p-0 lg:m-0 extra-xl:mx-auto;
    }

    h1 {
        @apply text-[36px] lg:text-[72px] leading-none;
    }

    h1.small {
        @apply text-[30px] lg:text-[58px] leading-none;
    }

    h2 {
        @apply text-[30px] lg:text-[42px] leading-none;
    }

    h2.enhanced {
        @apply text-[30px] lg:text-[64px] leading-none;
    }

    h3 {
        @apply text-[18px] lg:text-[36px] leading-[1.3] mb-4;
    }

    .entry-content {
        @apply text-[18px] lg:text-[20px] break-words leading-normal;
    }

    .entry-content.enhanced {
        @apply text-[24px] lg:text-[40px] font-light;
    }

    .entry-content ol,
    .entry-content ul {
        @apply list-outside last:mb-0 ml-0 mt-6 only:mt-0;
    }

    .entry-content p+ol,
    .entry-content p+ul {
        @apply mt-0;
    }

    .entry-content ol li,
    .entry-content ul li {
        @apply mb-2.5 last:mb-0 ml-[25px];
    }

    .entry-content ol {
        @apply list-decimal;
    }

    .entry-content ul {
        @apply list-disc;
    }

    .entry-content p {
        @apply mb-4 last:mb-0 empty:mb-0;
    }

    .entry-content strong {
        @apply font-bold;
    }

    .entry-content a {
        @apply text-flexplay-purple;
    }

    .entry-content a:hover {
        @apply underline;
    }
}

.radial-bg {
    background: radial-gradient(circle closest-side, rgba(188, 66, 234, 0.2) 100%, transparent 50.1%) 0 60px / 135px 135px repeat;
    background-position: top center;
}

@media (min-width: 1024px) {
    .radial-bg {
        background: radial-gradient(circle closest-side, rgba(188, 66, 234, 0.2) 100%, transparent 50.1%) 0 60px / 160px 160px repeat;
        background-position: center;
    }
}

.btn-primary {
    @apply flex w-fit shrink-0 text-white text-sm font-semibold bg-flexplay-green border-2 border-flexplay-green rounded-[30px] overflow-hidden px-12 py-4;
    @apply hover:bg-white hover:text-flexplay-green;
}

.btn-secondary {
    @apply flex w-fit shrink-0 text-black text-sm font-semibold bg-white border-2 border-flexplay-green rounded-[30px] overflow-hidden px-12 py-4;
    @apply hover:bg-transparent hover:text-white hover:border-white;
}

.btn-tertiary {
    @apply flex w-fit shrink-0 text-sm font-semibold bg-flexplay-purple border-2 border-flexplay-purple rounded-[30px] overflow-hidden px-12 py-4;
    @apply hover:bg-white hover:text-flexplay-purple;
}

.btn-quaternary {
    @apply flex w-fit shrink-0 text-white text-sm font-semibold bg-transparent border-2 border-white rounded-[30px] overflow-hidden px-12 py-4;
    @apply hover:bg-white hover:text-black;
}

.btn-events {
    @apply flex w-fit shrink-0 text-sm font-semibold bg-flexplay-purple-dark border-2 border-flexplay-purple-dark rounded-[30px] overflow-hidden px-[15px] py-2;
    @apply hover:bg-white hover:text-flexplay-purple-dark;
}

/* Modal */
.modal {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 9999;
}

.modal.is-open {
    display: block;
}

.modal__backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal__content {
    position: relative;
    display: flex;
    flex-direction: column;
    row-gap: 12px;
    align-items: center;
    background: #fff;
    max-width: 560px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 40px 45px;
    color: #7d21ad;
}
@media (min-width: 560px) {
    .modal__content {
        border-radius: 30px;
    }
}

.modal__content .title {
    font-size: 28px;
    font-weight: 600;
    line-height: 1.23;
    text-align: center;
}
@media (min-width: 1024px) {
    .modal__content .title {
        font-size: 36px;
    }
}

.modal__content .entry-content {
    font-size: 12px;
    font-weight: 300;
    line-height: 1.45;
    text-align: center;
}
@media (min-width: 1024px) {
    .modal__content .entry-content {
        font-size: 16px;
        line-height: 1.55;
    }
}

.modal__close-btn {
    position: fixed;
    top: 16px;
    right: 16px;
    border: 0;
    background: transparent;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    color: #fff;
}

.flexplay-form-modal form {
    display: flex;
    flex-direction: column;
    row-gap: 25px;
}

.flexplay-form-modal form>p {
    display: flex;
    flex-direction: column;
    row-gap: 25px;
}

.flexplay-form-modal form>p br {
    display: none;
}

.flexplay-form-modal form input[type=text],
.flexplay-form-modal form input[type=email],
.flexplay-form-modal form textarea,
.flexplay-form-modal form select {
    color: #7d21ad;
    background-color: #fff;
    border: 1px solid #ead1f3;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 400;
    height: 50px;
    line-height: 1.33;
    margin: 0;
    outline: none;
    padding: 0 20px;
    width: 100%;
}

.flexplay-form-modal form textarea {
    padding-top: 20px;
    min-height: 100px;
}

.flexplay-form-modal form input[type=text]::placeholder,
.flexplay-form-modal form input[type=email]::placeholder,
.flexplay-form-modal form textarea::placeholder {
    color: #7d21ad;
    opacity: 0.5;
}

.flexplay-form-modal form .btn-primary {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 0;
    cursor: pointer;
}

.flexplay-form-modal form .btn-primary input {
    padding: 12px 16px;
    cursor: pointer;
}

.flexplay-form-modal form .btn-primary p,
.flexplay-form-modal form .btn-primary input {
    width: 100%;
}

.flexplay-form-modal form .wpcf7-spinner {
    display: none;
}

.flexplay-form-modal .wpcf7 form .wpcf7-response-output {
    margin: 20px auto;
    color: #97c125;
}

.flexplay-form-modal .wpcf7 form.invalid .wpcf7-response-output {
    color: red;
}

.flexplay-form-modal form .wpcf7-not-valid-tip {
    color: red;
    margin-top: 12px;
}

.flexplay-form-modal form select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M6 9L12 15L18 9" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" stroke="currentColor"/></svg>');
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 20px;
}

.lang-arrow {
    border-color: inherit;
    display: inline-block;
    margin-left: 6px;
    position: relative;
    vertical-align: middle;
    width: 6px;
}
.lang-arrow::after {
    border-color: transparent;
    border-style: solid;
    border-top-color: inherit;
    border-width: 4px 3px 0;
    content: "";
    height: 0;
    left: 0;
    position: absolute;
    top: 45%;
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
    width: 0;
}

.lang-choose {
    opacity: 0;
    transition: all .3s ease-in-out;
    position: absolute;
    left: -24px;
    top: 69px;
    display: flex;
    flex-direction: column;
    background: #a328d1;
    max-width: 80px;
    box-shadow: 0 2px 3px rgba(0, 11, 48, 0.25);
    padding-top: 8px;
    padding-bottom: 8px;
}
#mm .lang-choose {
    left: 0;
    top: 40px;
}

.lang-choose li a {
    padding-top: 8px;
    padding-bottom: 8px;
    padding-left: 24px;
    padding-right: 24px;
    display: block;
    text-align: center;
}
.lang-choose li:hover {
    background-color: #7d21ad;
}

.lang {
    position: relative;
    cursor: pointer;
}
.lang:hover .lang-choose {
    opacity: 1;
}

.es .scalable-content {
    font-size: 14px;
    line-height: 22px;
}

.ru .scalable-dots {
    height: 100%;
}

.front section {
    scroll-margin-top: 133px;
}

nav .active,
#mm .active {
    color: #e371ff;
}

#page-content p,
#page-content ul {
    font-size: 16px;
    line-height: 1.45;
    font-weight: 300;
    margin-bottom: 16px;
}
@media (min-width: 1024px) {
    #page-content p,
    #page-content ul {
        font-size: 20px;
        line-height: 1.55;
        margin-bottom: 24px;
    }
}

#page-content p:last-of-type {
    margin-bottom: 0;
}

#page-content h1 {
    margin-bottom: 16px;
}
@media (min-width: 1024px) {
    #page-content h1 {
        margin-bottom: 24px;
    }
}

#page-content h2 {
    font-size: 30px;
    line-height: 1.23;
    font-weight: 600;
    margin-top: 24px;
    margin-bottom: 16px;
}
@media (min-width: 1024px) {
    #page-content h2 {
        font-size: 42px;
        margin-top: 50px;
        margin-bottom: 24px;
    }
}

#page-content strong {
    font-weight: 700;
}

#page-content a {
    color: #97c125;
}
#page-content a:hover {
    text-decoration: underline;
}

#page-content figure {
    margin-bottom: 16px;
}
@media (min-width: 1024px) {
    #page-content figure {
        margin-bottom: 24px;
    }
}

#page-content ul {
    list-style-type: disc;
}

#page-content ul li {
    margin-bottom: 0.625rem;
    margin-left: 25px;
}