@import './fonts.css';

.xmas__body {
    padding: 0;
    margin: 0;
}

.xmas__body,
.xmas__body * {
    box-sizing: border-box;
}

.xmas__main {
    margin-inline: auto;
    padding-inline: 25px;
    width: 100%;
    box-sizing: border-box;
    font-family: 'fs-elliot-pro', sans-serif;
    line-height: 100%;
}

/*heading*/
.xmas__heading {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 39px;
    margin-top: 12px;
    margin-bottom: 24px;
}

.xmas__heading h1 {
    font-weight: 400;
}

.xmas__container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.xmas__card {
    width: 360px;
    height: 410px;
    border-radius: 8px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding-top: 60px;
    padding-bottom: 24px;

    background-image: url("/assets/images/newyear_gifts/cardBg.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.xmas__card_contentbox {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.xmas__card_contentbox img {
    user-select: none;
    -webkit-user-drag: none;
}

.xmas__card p {
    font-size: 28px;
    color: #fff;
    font-weight: 900;
    line-height: 100%;
    margin: 0
}

.xmas__card_cover {
    position: absolute;
    inset: 0;
    z-index: 2;
    border-radius: 8px;
    backdrop-filter: blur(4px);
    background-color: rgba(7, 59, 78, 0.5);

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.xmas__card_cover p {
    font-size: 24px;
}

.xmas__card button {
    width: 272px;
    height: 44px;

    position: relative;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    box-shadow: 0 0 30px 0 rgba(59, 191, 54, 0.68);

    background: none;
    overflow: hidden;

    display: flex;
    align-items: center;
    justify-content: center;
}

/* фон кнопки */
.xmas__card button::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;

    background: url("/assets/images/newyear_gifts/buttonBg.svg") center / cover no-repeat;
    transition: filter 0.15s ease;
}

.xmas__card button:disabled {
    cursor: default;
}

.xmas__card button:disabled::before {
    filter: brightness(0.70) saturate(0.80);
}

.xmas__card button:disabled p {
    opacity: 70%
}

/* hover - только фон */
.xmas__card button:not(:disabled):hover::before {
    filter: brightness(0.90) saturate(0.94);
}

/* текст */
.xmas__card button p {
    position: relative;
    z-index: 1;
    margin: 0;

    font-size: 12px;
    font-weight: 900;
    color: #fff;
}


/* модалка */
.xmas__modal {
    background-color: #fff;
    position: relative;
    width: 395px;
    height: fit-content;
    border: none;
    border-radius: 5px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    background: url('/assets/images/newyear_gifts/modalBg2.jpg');
    background-repeat: no-repeat;
    background-position: top center;
    background-size: 100% auto;

    padding-inline: 0;
    padding-top: 8px;
    padding-bottom: 32px;
}

.xmas__modal__close-btn {
    background-color: transparent;
    border: none;
    position: absolute;
    width: fit-content;
    height: fit-content;
    padding: 0;
    top: 16px;
    right: 16px;
    cursor: pointer;
}
.xmas__modal__close-btn:focus{
    background: transparent;
}
xmas__modal__close-btn:active{
    background: transparent;
}

.xmas__modal__close-btn img {
    width: 24px;
    height: 24px;
}

.xmas__modal__close-btn:hover img {
    filter: brightness(0.90) saturate(0.94);
}

.xmas__modal::backdrop {
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(1px);
}

.xmas__modal[open] {
    animation: show 0.3s ease-out;
}

.xmas__modal h2 {
    font-size: 24px;
    font-weight: 400;
    line-height: 160%;
    margin: 0
}

.xmas__modal hr {
    border: none;
    outline: none;
    background-color: #3BC5C4;
    width: 306px;
    height: 1px;
}

.xmas__modal__content {
    font-size: 16px;
    line-height: 160%;
    margin-bottom: 16px;
}

.xmas__modal a {
    color: #058ED0;
    text-decoration: none;
}

.xmas__modal a:hover {
    text-decoration: underline;
}

.xmas__modal .xmas__modal__congrats {
    font-size: 16px;
    line-height: 160%;
    font-weight: 700;
    color: #F74C4C;
    margin: 0;
}

@keyframes show {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes pulse-shake {
    0% {
        transform: scale(1) rotate(0deg);
    }

    10% {
        transform: scale(1.05) rotate(-2deg);
    }

    20% {
        transform: scale(1.05) rotate(2deg);
    }

    30% {
        transform: scale(1.05) rotate(-2deg);
    }

    40% {
        transform: scale(1.05) rotate(2deg);
    }

    50% {
        transform: scale(1.1) rotate(0deg);
    }

    100% {
        transform: scale(1) rotate(0deg);
    }
}

.xmas__card_contentbox__icon.animated {
    animation: pulse-shake 2.5s ease-in-out infinite;
    transform-origin: center;
}