@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@200..800&family=Roboto:ital,wght@0,100..900;1,100..900&family=Work+Sans:ital,wght@0,100..900;1,100..900&display=swap');

:root {
    --red-color: #AE5971;
    --yellow-color: #F2EADF;
    --green-color: #598B72;
    --salad-color: #C7D2B2;
    --grey-color: #EFEFEF;
    --background-color: #FFFFFF;

    --yellow-text-color: #987B5E;

    --primary-text-color: #1F1D1D;
    --secondarty-text-color: #61656D;
    --placeholder-text-color: #C1C5CC;

    --grey-filter: invert(99%) sepia(0%) saturate(6636%) hue-rotate(187deg) brightness(109%) contrast(87%);
    --secondary-text-filter: invert(40%) sepia(13%) saturate(260%) hue-rotate(182deg) brightness(92%) contrast(88%);

    --primary-border-radius: 24px;
    --secondary-border-radius: 16px;

    --math-basement: 12px;
    --math-double-basement: 10px;


    font-family: "Manrope", sans-serif !important;
    font-optical-sizing: auto;
    color: var(--primary-text-color);
    font-weight: 500;
    font-style: normal;
    font-variation-settings: "wdth" 100;
}

p, h1, h2, h3 {
    font-family: "Manrope", sans-serif !important;
    font-optical-sizing: auto;
    color: var(--primary-text-color);
    font-style: normal;
    font-variation-settings: "wdth" 100;
}


body {
    min-height: 100vh;
    width: 100vw;
    max-width: 100vw;
    display: flex;
    justify-content: center;
    align-items: start;
    margin: 0;

    overflow-x: hidden;

    background: var(--background-color);
}

.app {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: start;

    min-height: calc(100vh - 60px);

    width: calc(66vw - 200px);
    max-width: calc(100vw - 200px);
    min-width: calc(1440px - 200px);

    overflow-x: hidden;


    padding: 30px 100px;
    gap: 24px;
}

.horizontal-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

.vertical-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.horizontal-divider {
    width: 100%;
    height: 1px;
    background: var(--grey-color);
}

.match-width {
    width: 100%;
}

.match-height {
    height: 100%;
}

.text-base {
    font-size: 16px;
    font-weight: 400;
}

.gap-50 {
    gap: 50px !important;
}


.gap-32 {
    gap: 32px !important;
}

.gap-24 {
    gap: 24px !important;
}


.gap-16 {
    gap: 16px !important;
}

.gap-12 {
    gap: 12px !important;
}

.gap-10 {
    gap: 10px !important;
}

.gap-8 {
    gap: 8px !important;
}

.gap-4 {
    gap: 4px !important;
}

.gap-0 {
    gap: 0 !important;
}

.match-parent {
    width: 100%;
    height: 100%;
}

.max-width {
    width: 100%;
}

.max-height {
    height: 100%;
}

p {
    font-weight: 300;
}

.container {
    display: flex;
    flex-direction: row;

    gap: 24px;
    width: 100%;
    height: 100%;

    background: transparent;
}

.container-column {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
    height: 100%;
    align-items: start;
}

.item-shadow {
    box-shadow: 0 0 4px #0E101312;
    transition: all 0.5s;
}

.gravity-right {
    margin-left: auto !important;
}

.gravity-left {
    margin-right: auto !important;
}

.gravity-bottom {
    margin-top: auto !important;
}

.gravity-top {
    margin-bottom: auto !important;
}

.hidden {
    visibility: hidden;
}

.display-none {
    display: none !important;
}

.adaptive-container {
    display: flex;
    flex-direction: row;
    align-items: center;
}

a {
    text-decoration: none;
    color: var(--primary-text-color);
    cursor: pointer;
}

.input-with-label {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 4px;
}

label {
    font-size: 18px;
    color: var(--secondarty-text-color);
    font-weight: 300;
}

input {
    font-optical-sizing: auto;
    font-weight: 500;
    font-style: normal;
    font-variation-settings: "wdth" 100;

    background: var(--grey-color);
    border-radius: 50vh;
    outline: none;
    border: 2px solid var(--grey-color);
    padding: 8px 12px;
    font-size: 18px;
    color: var(--primary-text-color);
}

input:focus {
    border: 2px solid var(--green-color);
}

input::placeholder {
    color: var(--placeholder-text-color);
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 6px solid var(--grey-color);
    border-top: 6px solid var(--green-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 40px auto;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}


.row-section {
    width: 100%;
}


.row-section h2 {
    font-size: 40px;
    margin: 0;
}

.section-row-container {
    display: flex;
    align-items: center;
}

.section-row-container.underline {
    border-bottom: 2px solid var(--secondarty-text-color);
}

.section-row-container h3 {
    margin-left: 150px;
    margin-right: auto;
    margin-top: 0;
    margin-bottom: 0;
    font-size: 22px;
    color: var(--primary-text-color);
    font-weight: 500;

    text-align: start;
}

.section-row-container p {
    font-size: 18px;
    color: var(--secondarty-text-color);
    max-width: 600px;
}

.row-num {
    font-size: 18px;
    color: var(--secondarty-text-color);
    font-weight: 300;
    min-width: 80px;
    max-width: 80px;
    white-space: nowrap;
}

.additional-title {
    display: flex;
    flex-direction: column;
    margin-bottom: 16px;
    width: fit-content;
}

.additional-title img {
    margin-left: auto;
    min-width: 220px;
}

.predict-button {
    height: 40px;
    border-radius: 50px;
    background: var(--green-color);
    color: var(--background-color);
    font-size: 16px;
    border: none;
    outline: none;
    padding: 0 24px;
    font-weight: 500;
    margin-top: calc(24px + 32px);
    cursor: pointer;
    transition: 0.3s ease;
}

.predict-button:disabled {
    background: var(--grey-color);
    color: var(--secondarty-text-color);
    cursor: not-allowed;
    opacity: 0.6;
}

input[type="checkbox"], input[type="radio"] {
    display: flex;
    align-items: center;
    justify-content: center;

    height: 20px;
    width: 20px;
    min-width: 20px;

    cursor: pointer;
    appearance: none; /* Убираем стандартный стиль */
    margin: 0;
    padding: 0;
    border-radius: 50%; /* Для радио кнопок */
    background-color:  var(--background-color);
    transition: background-color 0.3s, border-color 0.3s;
    position: relative; /* Для работы с псевдоэлементами */
    border: 2px solid var(--grey-color); /* Обычная граница */
}


/* Для чекбоксов квадратный радиус */
input[type="checkbox"] {
    border-radius: 4px;
}

/* Стили для состояния checked */
input[type="checkbox"]:checked, input[type="radio"]:checked {
    background-color:  var(--background-color); /* Зеленый цвет при выборе */
    border-color: var(--green-color);
}

/* Псевдоэлемент для красивого фона */
input[type="checkbox"]:checked::before, input[type="radio"]:checked::before {
    content: "";
    position: absolute;
    width: 12px; /* Оставляем место для границы */
    height: 12px;
    background-color: var(--green-color); /* Цвет выбранного состояния */
    border-radius: 50%; /* Для радиокнопки */
}

/* Псевдоэлемент для красивого фона */
input[type="checkbox"]:checked::before {
    content: "";
    position: absolute;
    width: 12px; /* Оставляем место для границы */
    height: 12px;
    background-color: var(--green-color); /* Цвет выбранного состояния */
    border-radius: 2px;
}

/* Эффект при наведении */
input[type="checkbox"]:hover, input[type="radio"]:hover {
    border-color: var(--green-color);
}
