body {
    font-family: 'Montserrat', sans-serif;
    background-color: #f0f0f0;
    margin: 0;
    padding: 20px;
    color: #333;
}

.profile-container {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin: auto;
    max-width: 1800px;
}

.profile-container {
    display: none;
}

#profile-data {
    display: block;
}

#gift-data {
    display: none;
}

#additional-profile-data,
#additional-gift-data {
    display: none;
}



h1 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 16px;
}

.clickable-area,
.profile-button,
.gallery-button,
.toggle-button,
.cancel-button,
.hide-button {
    text-align: center;
    cursor: pointer;
    padding: 10px;
    border-radius: 8px;
    background-color: #f0f0f0;
    margin-bottom: 10px;
    display: block;
    border: none;
    font-size: 16px;
    color: #333;
    margin-left: auto;
    margin-right: auto;
    max-width: 200px;
    transition: background-color 0.3s, color 0.3s, transform 0.3s ease;
}

.profile-button {
    background-color: #28a745;
    color: white;
}

.gallery-button {
    background-color: #48489f;
    color: white;
}

.cancel-button {
    background-color: #d31f2e;
    color: white;
}

.toggle-button {
    background-color: #48489f;
    color: white;
}

.hide-button {
    background-color: transparent;
    border: none;
    cursor: pointer;
    margin-top: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 24px; 
    height: 24px;
    padding: 0;
    background-image: url('https://cdn3.iconfinder.com/data/icons/faticons/32/arrow-up-01-512.png'); 
    background-repeat: no-repeat;
    background-size: contain; 
}

.animated {
    animation: fadeIn 0.5s ease; /* Добавление анимации через класс */
}

input[type="text"],
input[type="tel"],
select {
    width: calc(100% - 20px);
    padding: 10px;
    margin: 5px 0 10px 0;
    display: block;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-sizing: border-box;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.clickable-area
.profile-button,
.hide-button {
    animation: fadeIn 1.2s ease-in-out;
}



.carousel {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 200px;
    height: 200px;
    margin: auto;
    position: relative;
    overflow: hidden;
}

.profile-image {
    position: absolute;
    top: 0;
    left: 100%;
    width: 100%;
    height: 100%;
    transition: left 0.1s ease; /* Плавный переход */
}

.profile-image:first-child {
    left: 0; /* Первое изображение отображается сразу */
}




#additional-gift-data {
    position: relative; /* Для абсолютного позиционирования кнопок внутри этого контейнера */
}

.carousel {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 300px;
    height: 300px;
    margin: auto;
    position: relative;
    overflow: hidden;
}

h2 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 16px;
}


.carousel-container {
    position: relative;
    width: 100%;
    height: 300px; /* Убедитесь, что высота соответствует высоте изображений */
    margin-bottom: 20px; /* Расстояние между каруселями */
}

.carousel-button {
    background: none;
    border: none;
    font-size: 24px;
    color: #333;
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    transition: color 0.3s ease;
}

.carousel-button:hover {
    color: #666;
}

#prev-button, #second-prev-button {
    left: 10px; /* Расположите кнопку слева от карусели */
}

#next-button, #second-next-button {
    right: 10px; /* Расположите кнопку справа от карусели */
}

#prev-button, #third-prev-button {
    left: 10px; /* Расположите кнопку слева от карусели */
}

#next-button, #third-next-button {
    right: 10px; /* Расположите кнопку справа от карусели */
}

#prev-button, #fourth-prev-button {
    left: 10px; /* Расположите кнопку слева от карусели */
}

#next-button, #fourth-next-button {
    right: 10px; /* Расположите кнопку справа от карусели */
}

#prev-button, #fifth-prev-button {
    left: 10px; /* Расположите кнопку слева от карусели */
}

#next-button, #fifth-next-button {
    right: 10px; /* Расположите кнопку справа от карусели */
}

.carousel {
    position: relative;
    height: 100%;
}

.fired-button {
    background-color: #d31f2e !important;
    color: white !important;
    font-size: 16px !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 12px 30px !important;
    cursor: pointer !important;
    margin: 32px auto 0 auto !important;
    display: block !important;
    transition: background-color 0.3s !important;
    box-shadow: 0 2px 6px rgba(40, 167, 69, 0.08) !important;
}

.fired-button:hover {
    background-color: #cb1020;
}

@media (max-width: 750px) {
    .profile-container {
        padding: 10px;
        margin: 10px;
    }
}
