/* Общие стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

#mobile_alert {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 1);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.alert-content {
    text-align: center;
}

#close_alert {
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #ff0000;
    color: white;
    border: none;
    cursor: pointer;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow: hidden;
}

h1, h2, p {
    margin: 0;
}

/* Стили для слайдов */
.slide {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* PageTitle */
.page-title {
    font-family: "Jost", sans-serif;
    font-weight: 900;
    font-size: 60px;
    text-align: center;
    margin-bottom: 20px;
}

/* Контейнер */
.react_container {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 1400px;
    height: 100%;
    margin: 0 auto;
}

.react_container_left,
.react_container_right {
    flex: 1;
    padding: 20px;
}

/* PersonalStat */
.personal-stat {
    display: flex;
    align-items: center;
    margin-bottom: 22px;
}

.personal-stat__image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 20px;
    border: 1px solid transparent; /* adds a 1px transparent border */
    border: 2px solid #000; /* adds a 2px black border */
}

.personal-stat__subtitle {
    font-size: 19px;
    margin-bottom: 2px;
}

.personal-stat__text {
    font-size: 15px;
    color: #555;
}

.horizontal-bar-chart {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 30px;
}

/* Bar стили */
.bar {
    display: flex;
    align-items: center;
    width: 100%;
}

.bar__image {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 10px;
}

.bar__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-grow: 1;
    position: relative;
}

.bar__label {
    font-family: "Jost", sans-serif;
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 5px;
}

.bar__fill {
    height: 15px;
    width: 0%;
    transition: width 0.5s ease-in-out;
}

.bar__value {
    font-size: 14px;
    margin-left: 10px;
    transform: translateY(10px);
    font-family: "Jost", sans-serif;
    font-weight: 600;
}

/*font-family: "Rubik", sans-serif;*/

.custom-block {
    width: 100%;
    height: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #1E1E1E;
    color: #E3B505;
    font-family: "Geologica", sans-serif;
    font-weight: 400;
    padding: 20px;
    border-radius: 12px;
    max-height: 100%;
}

form {
    width: 100%;
    height: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #2D2C2C;
    border-radius: 8px;
    padding: 0 15px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.3);
    margin-bottom: 20px;
}

form label {
    color: #E3B505;
    font-size: 14px;
    font-weight: 600;
}

form input {
    flex: 1;
    margin: 0 10px;
    height: 36px;
    background-color: transparent;
    border: 2px solid #E3B505;
    border-radius: 6px;
    padding: 0 10px;
    color: #E3B505;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}

form input:focus {
    border-color: #FFD700;
    box-shadow: 0 0 8px #FFD700;
}

form button {
    height: 36px;
    background-color: #E3B505;
    border: none;
    border-radius: 6px;
    color: #231F20;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.1s;
    width: 70px;
}

form button:hover {
    background-color: #FFD700;
}

form button:active {
    transform: scale(0.95);
}


.text_block {
    flex: 1;
    width: 100%;
    border-radius: 8px;
    padding: 15px;
    color: #E3B505;
    font-family: "Libre Franklin", sans-serif;
    box-shadow: inset 0 4px 6px rgba(0, 0, 0, 0.3);
    text-align: justify;
    box-sizing: border-box;
}

/* Стилизация полосы прокрутки */
#results::-webkit-scrollbar {
    width: 8px; /* Толщина скроллбара */
    background: transparent; /* Фон скроллбара убран */
}

#results::-webkit-scrollbar-thumb {
    background-color: rgba(227, 181, 5, 0.6); /* Цвет ползунка */
    border-radius: 4px; /* Скругленные края */
}

#results::-webkit-scrollbar-thumb:hover {
    background-color: rgba(227, 181, 5, 0.8); /* Ярче при наведении */
}

#results::-webkit-scrollbar-track {
    background: transparent; /* Трек становится прозрачным */
}

#results {
    overflow-y: auto;
}

.text_block {
    width: 100%;
    display: flex;
    flex-direction: column;

    padding: 20px;
    background-color: #252525;
    border-radius: 12px;
}

.text_block p {
    margin: 0;
    padding: 0;
    color: #eaeaea;
    font-size: 16px;
    line-height: 1.2;
    margin-bottom: 15px;
    font-weight: 500;
}

.text_block p b {
    color: #FFD700;
    font-weight: bold;
}

.text_block p i {
    color: #00f0ff;
    font-weight: 600;
}

.card {
    background-color: #333333;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s;
}

.card:hover {
    transform: scale(1.02);
}

.first-page {
    background-image: url(./left_pine.png), url(./right_pine.png);
    background-repeat: no-repeat, no-repeat;
    background-position: left center, right center;
    background-size: auto 100%, auto 100%; /* растягиваем по высоте */
}


.st-title {
    font-weight: 900;
    color: rgb(227, 255, 235);
    font-size: 80px;
    line-height: 88px;
    text-align: center;
    margin-bottom: 20px;
    font-family: "Alfa Slab One", serif;
    letter-spacing: 5px;
}

.st-subtitle {
    font-size: 35px;
    color: rgb(182, 255, 203);
    text-align: center;
    cursor: pointer;
    font-family: "Jost", sans-serif;
}

.horizontal-bar-chart_title {
    width: 100%;
    display: block;
    text-align: center;
    font-size: 22px;
    font-family: "Geologica", sans-serif;
    font-weight: 900;
}

.first-slide p {
    font-size: 18px;
}

.wrapped_page_subtitle {
    font-size: 14px;
    width: 100%;
    max-width: 800px;
    text-align: center;
    color: black;
}

#results {
    margin-bottom: 0;
    padding: 0;
}

@media (max-height: 850px) {
    .page-title {
        font-size: 40px;
        line-height: 1.1;
    }
}

/*тут начало верстки слайдера*/
.slider-container {
    width: 400px;
    max-width: 100%;
    margin: 0 auto;
    position: relative;
}

.slider-info, .syest-info {
    width: 100%;
    display: flex;
    flex-direction: row;
    padding: 10px 20px;
    background-color: #252525;
    border-radius: 12px;
    box-shadow: inset 0 4px 6px rgba(0, 0, 0, 0.3);
    text-align: justify;
    box-sizing: border-box;
    margin-bottom: 20px;
}

.syest-info {
    color: white;
    display: block;
    width: 100%;
    text-align: center;
    font-weight: bold;
}

.slider-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 10px;
}

.slider-nickname {
    text-align: left;
    font-size: 19px;
    color: #00ff5c;
    font-weight: bold;
}

.slider-text {
    text-align: center;
    color: #ccc;
    font-size: 14px;
}

.splide {
    position: relative;
}

.splide__track {
    overflow: hidden;
    position: relative;
}

.splide__list {
    display: flex;
    margin: 0;
    padding: 0;
    list-style: none;
}

.splide__slide {
    text-align: center;
    font-size: 18px;
    background: #ddd;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.5s, opacity 0.5s;
    width: 100%;
    position: relative;
    padding-top: 500px;
}

.splide__slide img {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.splide__pagination {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 5px;
}

.splide__pagination__page {
    width: 10px;
    height: 10px;
    background: #000;
    border-radius: 50%;
    cursor: pointer;
}

.splide__arrow {
    color: #000;
    font-size: 20px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.splide__arrow--prev {
    left: 10px;
}

.splide__arrow--next {
    right: 10px;
}

.slider-textblock {
    display: block;
    text-align: left;
}

.splide__arrow {
    top: 100%;
    transform: translateY(10%);
}

.splide__pagination {
    bottom: 0;
    transform: translateY(30px) translateX(-50%);
    width: 250px;
}

.d-n {
    display: none !important;
}

.smile-box {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 100;
    width: 100%;
    height: 100%;
}

.img-kekv-box {
    width: 100px;
    height: 100px;
    margin: auto;
}

.kekv {
    width: 100px;
    height: 100px;
    animation: opacityBox 0.9s ease;
    transform: scale(0);
}

.smile-line {
    height: 100px;
    margin: auto 0;
    width: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

@keyframes opacityBox {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1);
    }
    100% {
        transform: scale(0);
    }
}

.wrapped_max_width {
    max-width: 50%;
    margin: 0 auto;
}

@media (max-width: 600px) {
    body {
        overflow: auto;
    }

    .d-n {
        display: block !important;
    }

    .react_container {
        flex-direction: column;
    }

    .slide {
        height: auto;
        min-height: 100vh;
    }

    .wrapped_max_width {
        max-width: 100%;
    }

    .footer_big_title {
        font-size: 50px;
        line-height: 1.2;
    }
}

.statistic_footer {
    position: absolute;
    bottom: 10px;
    width: 100%;
    text-align: center;
    padding-top: 10px; /* Отступ сверху для полоски */
    box-sizing: border-box; /* Включает padding в общую ширину */
}

.footer_text {
    color: black;
    font-size: 14px;
    margin: 0;
}

.statistic_footer::before {
    content: '';
    display: block;
    width: 100%;
    height: 2px; /* Толщина полоски */
    background-color: black;
    position: absolute;
    top: 0;
    left: 0;
}

/* Basic styling for modal */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden; /* Prevent scrolling background */
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
}

/* Modal content box */
.modal-content {
    background-color: #fff;
    margin: auto;
    padding: 20px;
    border-radius: 8px;
    width: 400px;
    height: 400px;
    overflow-y: auto; /* Add scroll if needed */
    position: relative;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Centering modal content */
.modal-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Close button */
.close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
}

.close:hover {
    color: #000;
}

#credentials {
    cursor: pointer;
    color: navy;
    font-weight: 700;

}

/* Title styles */
.modal_title {
    font-size: 18px;
    color: #003366; /* Темно-синий */
    text-align: center;
    margin-bottom: 10px;
    font-weight: bold;
}

/* Text styles */
.modal_text {
    text-align: center;
    margin: 10px 0;
}

/* Link styles */
.modal_link {
    color: #008000; /* Зеленый */
    font-weight: bold;
    text-decoration: none;
}

.modal_link:hover {
    color: #005700; /* Темнее зеленого для hover */
}

/* Money link style */
.modal_dengi {
    text-align: center;
    margin: 10px 0;
}

/* Modal content scrollbar */
.modal-content {
    scrollbar-width: thin; /* Узкий скролл для Firefox */
    scrollbar-color: rgba(128, 128, 128, 0.5) transparent; /* Цвет скролла */
}

.modal-content::-webkit-scrollbar {
    width: 8px; /* Ширина скролла для Webkit */
}

.modal-content::-webkit-scrollbar-track {
    background: transparent; /* Фон трека */
}

.modal-content::-webkit-scrollbar-thumb {
    background-color: rgba(128, 128, 128, 0.5); /* Цвет скролла */
    border-radius: 4px; /* Скругленные края */
}

.modal_dengi {
    font-size: 9px;
}

.modal_image {
    width: 100%;
    max-width: 300px;
}

.small-textt {
    font-size: 10px !important;
}