:root {
    --color-primary: #06151B;
    --color-secondary: #14252C;
    --gradient: linear-gradient(87.47deg, #CE3000 -5.52%, #D44B00 16.53%, #DA6400 33.91%, #DD7300 53.41%, #E18800 64.01%, #D44700 77.58%);


    --font-primary: 'Open Sans', sans-serif;
    --border-radius: 20px;
    --transition-duration: 0.2s;

    --max-width: 430px;
    --padding-x: 16px;
}

body, html {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    overflow-y: hidden;
    font-family: var(--font-primary), sans-serif;
    background-color: var(--color-primary);
    font-weight: 400;
    color: white;
}

.button {
    border: none;
    outline: none;
    font-size: 15px;
    padding: 8px 10px 10px 10px;
    border-radius: var(--border-radius);
    transition-duration: var(--transition-duration);
}

.transparent {
    background-color: transparent;
}

.button.white {
    color: white;
    border: 1px solid white;
}

.button.transparent:hover {
    background-color: white;
    color: black;
}

.gradient {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.title {
    font-size: 44px;
    font-weight: 700;
    margin: 0;
}

.description {
    font-size: 16px;
    line-height: 1.3;
    text-align: center;
    max-width: 295px;
    margin: 0;
}

.section {
    max-width: var(--max-width);
    padding-inline: var(--padding-x);
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: black;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
    z-index: 9999;
}

#text-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 90%;
}

.text-slide {
    font-family: 'Silkscreen', monospace;
    font-size: 24px;
    height: 0;
    white-space: pre-wrap;
    overflow: hidden;
    visibility: hidden;
    word-break: break-word;
    max-width: 100%;
    position: relative;
}

.text-slide .cursor {
    display: inline-block;
    width: 4px;
    height: 1em;
    background-color: white;
    margin-left: 2px;
    animation: blink-cursor 0.5s step-end infinite;
    vertical-align: middle; /* Выравнивание по тексту */
}

#continue-btn {
    display: none;
    margin-top: 20px;
    padding: 10px 20px;
    font-size: 18px;
    cursor: pointer;
    background-color: white;
    color: black;
    border: none;
}

/* Изначальные состояния для анимации */
.form {
    opacity: 0;
    justify-content: center;
    align-items: center;
    background: black;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    z-index: 9999;
}

.form__container {
    display: flex;
    flex-direction: column;
    padding-inline: 10px;
}

.form__name {
    text-align: center;
    display: block;
    font-size: 36px;
    line-height: 1.2;
    color: white;
    font-family: 'Silkscreen', monospace;
    margin-bottom: 40px;
}

.form__input {
    box-sizing: border-box;
    width: 100%;
    height: 40px;
    font-size: 20px;
    font-family: 'Silkscreen', monospace;
    margin-bottom: 30px;
}

.form__button {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    border: none;
    outline: none;
    font-family: 'Silkscreen', monospace;
    font-size: 24px;
    color: white;
}

.form__button:not(:last-child) {
    margin-bottom: 20px;
}

.form__button-image {
    position: relative;
    background: white;
    border-radius: 50%;
    width: 37px;
    height: 37px;
    margin-right: 10px;
    transition-duration: 0.2s;
}

.form__button:hover .form__button-image {
    background: #bcbcbc;
}

.form__button:active .form__button-image {
    background: #7c7c7c;
}

.form__button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.form__button:disabled .form__button-image {
    background: #656565;
}

.form__button:disabled:hover .form__button-image {
    background: #656565;
}

.form__alert {
    background: white;
    border-radius: 5px;
    color: red;
    font-size: 14px;
    margin-top: 10px;
}

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

.chort__title, .chort__description {
    font-family: 'Silkscreen', monospace;
}

.chort__title {
    font-size: 40px;
}

.chort__description {
    font-size: 30px;
}

.header {
    height: 47px;
}

.header__buttons {
    max-width: 305px;
    height: 100%;
    display: flex;
    justify-content: space-between;
    margin-inline: auto;
}

.header__button {
    border: none;
    outline: none;
    color: white;
    background-color: transparent;
    font-size: 16px;
}

.hero {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding-top: 45px;
    padding-bottom: 20px;
    height: calc(100svh - 43px);
    background:
            linear-gradient(to right, #06151B 0%, rgba(6, 21, 27, 0) 15%, rgba(6, 21, 27, 0) 85%, #06151B 100%),
            url("/images/hero-bg.png") bottom center no-repeat;
    background-size: cover;
    margin-bottom: 60px;
}

.hero__title {
    font-size: 48px;
    text-align: center;
    margin-top: 0;
    margin-bottom: 23px;
}

.hero__info {
    display: flex;
    justify-content: space-between;
    opacity: 0.6;
}

.hero__date-text {
    display: block;
    text-align: right;
}

.hero__bottom {
    display: flex;
    align-items: center;
    flex-direction: column;
}

.hero__button {
    margin-bottom: 15px;
}

.vertical-devider {
    width: 2px;
    background-color: white;
    display: inline-block;
    margin-inline: 5px;
}

.hello {
    margin-bottom: 40px;
}

.hello__title {
    margin-bottom: 15px;
}

.hello__annotation {
    font-size: 10px;
    text-align: right;
    display: block;
    margin-bottom: -5px;
    padding-right: 10px;
}

.countdown {
    margin-bottom: 40px;
}

.countdown__description {
    margin-bottom: 40px;
}

.countdown__timer {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 20px;
    column-gap: 40px;
}

.countdown__item {
    display: flex;
    flex-direction: column;
    align-items: center;

}

.countdown__number {
    font-size: 48px;
    font-weight: bold;
}

.countdown__label {
    font-size: 16px;
    color: #fff; /* Цвет текста под цифрами */
}

.image-filter {
    mix-blend-mode: hard-light;
    margin-bottom: 20px;
}

.location {
    margin-bottom: 40px;
}

.dress {
    margin-bottom: 40px;
}

.dress__title {
    margin-bottom: 20px;
}

.footer {
    height: 645px;
    background:
            linear-gradient(to right, #06151B 0%, rgba(6, 21, 27, 0) 15%, rgba(6, 21, 27, 0) 85%, #06151B 100%),
            url("/images/footer-bg.png") top center no-repeat;
    background-size: cover; /* Чтобы изображение занимало весь элемент */
}


/* Стили для модального окна */
.modal {
    display: none; /* Скрыто по умолчанию */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7); /* Затемнение фона */
}

.modal__content {
    background-color: var(--color-primary);
    margin: 15% auto;
    padding: 20px;
    border-radius: var(--border-radius);
    width: 300px;
    text-align: center;
    position: relative;
}

.modal__close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    color: #333;
}

.modal__close:hover {
    color: white;
}

/* Анимации */
.fade-out {
    opacity: 0;
    transition: opacity 1s ease-out;
}

.fade-in {
    opacity: 1;
    transition: opacity 1s ease-in;
}

@keyframes blink-cursor {
    0% { opacity: 1; }
    50% { opacity: 0; }
    100% { opacity: 1; }
}