.modal {
    background: linear-gradient(98.89deg, #0522BB 0%, hsl(306, 100%, 34%) 52.91%, #220101 100%);
    overflow: hidden;
    z-index: 3;
}

.cookie-modal {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
}

.cookie-modal_container {
    width: 100%;
    background: url("../images/bg-stars.webp");
    background-repeat: no-repeat;
    background-size: cover;
    color: #FFFFFF;
    padding: 30px 15px;
}

.cookie-modal_notice {
    text-align: center;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: column;
    gap: 30px;

}

.cookie-modal_txt {
    width: 100%;
    max-width: 470px;
}

.modal-txt h2,
.modal-txt h3 {
    font-family: 'Genos', sans-serif;
    font-size: 28px;
    line-height: 38px;
    font-weight: 500;
    text-transform: uppercase;
}

.cookie-modal_container h2,
.cookie-modal_container h3 {
    margin-bottom: 10px;
}

.modal-txt p,
.modal-txt span {
    font-size: 16px;
    line-height: 20px;
    font-weight: 400;

}

.cookie-modal_container p {
    margin-bottom: 5px;
}

.cookie-modal_accept {
    display: flex;
    flex-direction: row;
    gap: 20px;
}

.cookie-modal_accept .btn {
    font-size: 14px;
    line-height: 20px;
}

.age-modal {
    display: none;
    width: 100%;
    max-width: 540px;
    border: none;
    border-radius: 20px;
}


.age-modal_container {
    display: block;
    width: 100%;
    background: url("../images/bg-stars.webp");
    background-repeat: no-repeat;
    background-size: cover;
    color: #FFFFFF;
    padding: 15px 20px 35px;
    text-align: center;
}


.age-error {
    min-height: 382px;
}

.age-error .modal-txt {
    font-family: 'Genos', sans-serif;
    font-size: 28px;
    line-height: 34px;
    font-weight: 500;
    padding: 150px 20px 110px;
    text-transform: uppercase;
}

#age-fail {
    display: none;
}

.age-modal_cover {
    display: inline-block;
    width: 143px;
    height: 143px;
    margin-bottom: 21px;
}

.age-modal_txt {
    margin-bottom: 28px;
}

.age-modal_txt h3 {
    margin-bottom: 20px;
}

.age-modal_txt input[type=checkbox] {
    vertical-align: bottom;
    margin-right: 5px;
    accent-color: #FFFFFF;
    width: 15px;
    height: 15px;
}

.age-modal_btn .btn {
    padding: 20px 40px;
}

.age-modal_btn .btn:first-child {
    margin-right: 40px;
}

.age-modal_txt .terms-txt {
    font-size: 13px;
    line-height: 16px;
}

.modal-txt a {
    text-decoration: underline;
}

.age-modal_txt #terms-error {
    display: none;
    color: #bf3b00;
    margin-top: 15px;
    font-size: 14px;
    line-height: 16px;
    font-weight: 700;
}

.login-modal,
.signup-modal {
    border: none;
    border-radius: 20px;
    width: 100%;
    max-width: 574px;
}

.login-modal_container,
.signup-modal_container {
    display: block;
    width: 100%;
    background: url("../images/bg-stars.webp");
    background-repeat: no-repeat;
    background-size: cover;
    color: #FFFFFF;
    padding: 40px 25px;
    margin: 0 auto;
}

.login-modal_container .modal-txt,
.signup-modal_container .modal-txt {
    text-align: center;
}

.login-modal_container .modal-txt span,
.signup-modal_container .modal-txt span {
    font-size: 14px;
    line-height: 21px;
}

.modal-switch {
    text-decoration: underline; 
    cursor: pointer; 
}
.modal-switch:hover {
    color: #2F80ED;
}

.login-modal_title,
.signup-modal_title {
    font-family: 'Genos', sans-serif;
    font-size: 40px;
    font-weight: 500;
    text-transform: uppercase;
    margin-bottom: 10px;
    text-align: center;
}

.login-modal_items,
.signup-modal_items {
    display: flex;
    flex-direction: column;
}

.login-modal_item,
.signup-modal_item {
    width: 100%;
    background: #FFFFFF;
    color: #9a9797;
    border-radius: 100px;
    padding: 15px 42px;
    border: none;
    margin-top: 15px;
    margin-bottom: 15px;
}

.login-modal_item input,
.signup-modal_item input {
    display: block;
    width: 100%;
    font-size: 14px;
    line-height: 21px;
    color: #9a9797;
    font-weight: 400;
    border: none;
    background-color: transparent;
    outline: none;
}

.login-modal_txt,
.signup-modal_txt {
    margin: 12px 0;
    font-size: 14px;
    line-height: 21px;
}

.login-modal_txt a,
.signup-modal_txt a {
    text-decoration: underline;
}

.signup-modal_txt input {
    display: inline-block;
}

.signup-modal_txt input[type=checkbox] {
    vertical-align: bottom;
    margin-right: 15px;
    accent-color: #FFFFFF;
    width: 24px;
    height: 24px;
}

.login-modal_btn,
.signup-modal_btn {
    text-align: center;
    margin-top: 30px;
    margin-bottom: 30px;
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: center;
}

.login-modal_btn .btn {
    display: inline-block;
    padding: 20px 40px;
}

.signup-modal_btn .btn {
    display: inline-block;
    padding: 20px 25px;
}

.form-error-msg {
    display:block;
    font-family: "Genos", sans-serif;
    font-weight: 400;
    color: #bf3b00;
    font-size: 16px;
    line-height: 18px;
    font-weight: 600;
    text-align: center;
}

#login-form,
#signup-form {
    display: none;
    position: relative;
}


#signup-thanks {
    display: none;
}

.signup-thanks_title {
    font-size: 28px;
    line-height: 32px;
    margin-bottom: 14px;
    text-transform: uppercase;
    font-family: 'Genos', sans-serif;
    font-weight: 500;
}

.signup-thanks_cover {
    width: 60%;
    max-width: 445px;
    margin: 0 auto;
}

.active {
    display: block !important;
}

.submit-loader {
    display: none;
    color: #ffffff;
    font-size: 20px;
    text-indent: -9999em;
    overflow: hidden;
    width: 1em;
    height: 1em;
    border-radius: 50%;
    margin: 5px auto;
    position: relative;
    -webkit-transform: translateZ(0);
    -ms-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-animation: load6 1.7s infinite ease, round 1.7s infinite ease;
    animation: load6 1.7s infinite ease, round 1.7s infinite ease;
}

.close {
    position: absolute;
    right: 10px;
    top: 30px;
    width: 40px;
    height: 40px;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity .7s ease-out;
}

.close:before, .close:after {
    position: absolute;
    left: 15px;
    content: " ";
    height: 40px;
    width: 4px;
    background-color: #F8F8F8;
    border-radius: 100px;
}

.close:before {
    transform: rotate(45deg);
}

.close:after {
    transform: rotate(-45deg);
}

.modal-wrap {
    position:fixed;
    display:block;
    height:100%;
    width:100%;
    top:0;
    left:0;
    transform:scale(0);
    z-index: 15;
}

.modal-wrap.active {
    transform:scaleY(.01) scaleX(0);
    animation:unfoldIn 1s cubic-bezier(0.165, 0.840, 0.440, 1.000) forwards;
}

.modal-wrap.active .wrap-bg .modal {
    transform:scale(0);
    animation: zoomIn .5s .8s cubic-bezier(0.165, 0.840, 0.440, 1.000) forwards;
}

.modal-wrap.active.disabled {
    transform:scale(1);
    animation:unfoldOut 1s .3s cubic-bezier(0.165, 0.840, 0.440, 1.000) forwards;
}

.modal-wrap.active.disabled .wrap-bg .modal {
    animation: zoomOut .5s cubic-bezier(0.165, 0.840, 0.440, 1.000) forwards;
}

.wrap-bg {
    height:100%;
    width:100%;
    background:rgba(0,0,0,.8);
    display:flex;
    justify-content: center;
    align-items: center;
}

@-webkit-keyframes load6 {
    0% {
      box-shadow: 0 -0.83em 0 -0.4em, 0 -0.83em 0 -0.42em, 0 -0.83em 0 -0.44em, 0 -0.83em 0 -0.46em, 0 -0.83em 0 -0.477em;
    }
    5%,
    95% {
      box-shadow: 0 -0.83em 0 -0.4em, 0 -0.83em 0 -0.42em, 0 -0.83em 0 -0.44em, 0 -0.83em 0 -0.46em, 0 -0.83em 0 -0.477em;
    }
    10%,
    59% {
      box-shadow: 0 -0.83em 0 -0.4em, -0.087em -0.825em 0 -0.42em, -0.173em -0.812em 0 -0.44em, -0.256em -0.789em 0 -0.46em, -0.297em -0.775em 0 -0.477em;
    }
    20% {
      box-shadow: 0 -0.83em 0 -0.4em, -0.338em -0.758em 0 -0.42em, -0.555em -0.617em 0 -0.44em, -0.671em -0.488em 0 -0.46em, -0.749em -0.34em 0 -0.477em;
    }
    38% {
      box-shadow: 0 -0.83em 0 -0.4em, -0.377em -0.74em 0 -0.42em, -0.645em -0.522em 0 -0.44em, -0.775em -0.297em 0 -0.46em, -0.82em -0.09em 0 -0.477em;
    }
    100% {
      box-shadow: 0 -0.83em 0 -0.4em, 0 -0.83em 0 -0.42em, 0 -0.83em 0 -0.44em, 0 -0.83em 0 -0.46em, 0 -0.83em 0 -0.477em;
    }
  }
  @keyframes load6 {
    0% {
      box-shadow: 0 -0.83em 0 -0.4em, 0 -0.83em 0 -0.42em, 0 -0.83em 0 -0.44em, 0 -0.83em 0 -0.46em, 0 -0.83em 0 -0.477em;
    }
    5%,
    95% {
      box-shadow: 0 -0.83em 0 -0.4em, 0 -0.83em 0 -0.42em, 0 -0.83em 0 -0.44em, 0 -0.83em 0 -0.46em, 0 -0.83em 0 -0.477em;
    }
    10%,
    59% {
      box-shadow: 0 -0.83em 0 -0.4em, -0.087em -0.825em 0 -0.42em, -0.173em -0.812em 0 -0.44em, -0.256em -0.789em 0 -0.46em, -0.297em -0.775em 0 -0.477em;
    }
    20% {
      box-shadow: 0 -0.83em 0 -0.4em, -0.338em -0.758em 0 -0.42em, -0.555em -0.617em 0 -0.44em, -0.671em -0.488em 0 -0.46em, -0.749em -0.34em 0 -0.477em;
    }
    38% {
      box-shadow: 0 -0.83em 0 -0.4em, -0.377em -0.74em 0 -0.42em, -0.645em -0.522em 0 -0.44em, -0.775em -0.297em 0 -0.46em, -0.82em -0.09em 0 -0.477em;
    }
    100% {
      box-shadow: 0 -0.83em 0 -0.4em, 0 -0.83em 0 -0.42em, 0 -0.83em 0 -0.44em, 0 -0.83em 0 -0.46em, 0 -0.83em 0 -0.477em;
    }
  }
  @-webkit-keyframes round {
    0% {
      -webkit-transform: rotate(0deg);
      transform: rotate(0deg);
    }
    100% {
      -webkit-transform: rotate(360deg);
      transform: rotate(360deg);
    }
  }
  @keyframes round {
    0% {
      -webkit-transform: rotate(0deg);
      transform: rotate(0deg);
    }
    100% {
      -webkit-transform: rotate(360deg);
      transform: rotate(360deg);
    }
  }
  

@keyframes unfoldIn {
    0% {
      transform:scaleY(.005) scaleX(0);
    }
    50% {
      transform:scaleY(.005) scaleX(1);
    }
    100% {
      transform:scaleY(1) scaleX(1);
    }
  }
  
  @keyframes unfoldOut {
    0% {
      transform:scaleY(1) scaleX(1);
    }
    50% {
      transform:scaleY(.005) scaleX(1);
    }
    100% {
      transform:scaleY(.005) scaleX(0);
    }
  }
  
  @keyframes zoomIn {
    0% {
      transform:scale(0);
    }
    100% {
      transform:scale(1);
    }
  }
  
  @keyframes zoomOut {
    0% {
      transform:scale(1);
    }
    100% {
      transform:scale(0);
    }
  }


  @media (min-width: 400px) {
    .close {
      top: 10px;
    }

    .signup-modal_btn .btn {
        padding: 20px 40px;
    }
  }

@media (min-width: 600px) {
    .signup-modal_container {
        padding: 45px;
    }

    .login-modal_container {
        padding: 40px 45px;
    }

    .signup-thanks_title {
        font-size: 48px;
        line-height: 58px;
    }

    .close {
        right: 20px;
        top: 20px;
        opacity: 0;
    }
    
    #login-form:hover .close,
    #signup-form:hover .close {
    opacity: 0.8;
    }  
}

@media (min-width: 768px) {

    .cookie-modal_notice {
        flex-direction: row;
        text-align: left;

    }
    .cookie-modal_accept {
        flex-direction: column;
    }

    .modal-txt h2,
    .modal-txt h3 {
        font-size: 48px;
        line-height: 58px;
    }

    .cookie-modal_container h2,
    .cookie-modal_container h3 {
        margin-bottom: 13px;
    }

    .modal-txt p {
        font-size: 20px;
        line-height: 24px;
    }

    .cookie-modal_accept .btn {
        font-size: 16px;
        line-height: 24px;
        padding: 20px 40px;
    }

    .age-error .modal-txt {
        font-size: 48px;
        line-height: 54px;
        padding: 120px 20px 110px;
    }

    #signup-thanks  {
       max-width: 745px;
    }

    .signup-thanks_cover {
        width: 80%;
    }

    .login-modal_item,
    .signup-modal_item {
        font-size: 18px;
    }
    .login-modal_item input,
    .signup-modal_item input {
        font-size: 18px;
    }   
}

@media (min-width: 1024px) {
    .cookie-modal {
        width: 850px;
        bottom: 10px;
        left: 10px;
        right: unset;
        border: none;
        border-radius: 20px;
    }
    .cookie-modal_container {
        min-height: 350px;
        padding: 44px 40px 82px;
        position: relative;
    }

    .cookie-modal_cover {
        position: absolute;
        right: 0;
        bottom: 0;
        width: 465px;
        height: 315px;
        background: url("../images/cookies.webp");
        background-repeat: no-repeat;
        background-size: contain;
        background-position: bottom right;
    }

    .cookie-modal_notice {
        flex-direction: column;
        width: 470px;
        margin-left: 0;
        margin-right: 0;

    }
    
    .cookie-modal_accept {
        flex-direction: row;
    }
}