/*
Содержание:
    Основное: 10-290 ( Элементы использующиеся почти на всех страницах )
    Главная: 291-520
    Генетический анализ:521-664
    Черты ребёнка: 665-788
    Не используется: 789-814
*/

/* Основное */

    body {
        background-size: 100% 100%;
        background: var(---main-bg);
        background-attachment: fixed;
        background-size: cover;
        background-position: center;
        font-family: Calibri, sans-serif; 
        transition: background-color 0.3s, color 0.3s;
        margin: 0;
        scroll-behavior: smooth;
        overflow-x: hidden;
    }

    /* Основные цвета */
    /*
    ---red-color = <hr> полоски между текстом
    ---main-bg = цвет заднего фона элемента
    ---bg-buttons = задний фон кнопок
    ---bg-color = 
    ---predict-bg = то же что и main-bg только чуть светлее или темнее 
    ---txt-color =  цвет текста
    ---nucl = цвет подсказок(на стр генетический анализ)
    ---blur-bg = цвет блюра 
    */

    /* Светлая тема */
    body.light-theme {
        ---bg-points: #474747; /* Выбор признаков */
        ---red-color:#f74e4e;
        ---bg-buttons: #dbd9d9;
        ---bg-color: #f7f7f7;
        ---predict-bg: #fffdfd;
        ---txt-color: #1b1b1b;
        ---nucl: rgba(189, 189, 189, 0.5);
        ---blur-bg: rgba(255, 255, 255, 0.25);
        background-color: #dadada;
        background-image: radial-gradient(rgba(0, 0, 0, 0.486) 2.5px, transparent 0);
        background-size: 25px 25px;
        background-position: -5px -5px
    }

    /*Тёмная тема*/
    body.dark-theme {
        ---bg-points: #474747; 
        ---red-color:#b63737;
        ---bg-buttons: #585858;
        ---bg-color: #313131;
        ---predict-bg: #414040;
        ---txt-color: #e4e4e4;
        ---nucl: rgba(105, 105, 105, 0.5);
        ---blur-bg: rgba(59, 59, 59, 0.25);
        background-color: #252525;
        background-image: radial-gradient(rgba(255, 255, 255, 0.253) 2px, transparent 0);
        background-size: 25px 25px;
        background-position: -5px -5px
    }

    /* blur для main-menu(панель управления) */
    .blur-background {
        position: relative; 
        width: 105%;
        height: 100%;
        left: -5%;
        background-color: rgba(255, 255, 255, 0); 
        z-index: -100;
    }

    /* section */
    .section {
        padding: 60px 20px;
        margin: auto;
    }

    @media (max-width: 1450px){
        p{
            font-size: 18px;
            overflow-wrap: break-word;
        }
        h2{
            font-size: 22.5px;
            overflow-wrap: break-word;
        }
        h1{
            font-size: 25px;
        }
        li{
        font-size: 18px !important;
        }
        .hero{
            display: none;
        }
        .main-menu{
            display: block;
        }
        #res{
            display: flex;
            flex: 1;
            float: right;
            margin-left: 50px;
            width: 50vw;
        }
        select{
            width: 150px;
            height: 25px;
        }
    }





    
    /* Переключатель темы (новый) */
    .switch {
        font-size: 17px;
        position: relative;
        display: inline-block;
        width: 64px;
        height: 30px;
        top: 12px;

        margin-right: 25px;
    }

    .switch .input {
        opacity: 0;
        width: 0;
        height: 0;
        margin: 0;
        padding: 0;
        position: absolute;
    }

    .switch .slider {
        position: absolute;
        cursor: pointer;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: #73C0FC;
        transition: .4s;
        border-radius: 30px;
    }

    .switch .slider:before {
        position: absolute;
        content: "";
        height: 30px;
        width: 30px;
        border-radius: 20px;
        left: 2px;
        bottom: 2px;
        z-index: 2;
        background-color: #e8e8e8;
        transition: .4s;
    }

    .switch .sun {
        position: absolute;
        top: 5px;
        left: 36px;
        z-index: 1;
        width: 24px;
        height: 24px;
        pointer-events: none;
    }

    .switch .moon {
        position: absolute;
        top: 5px;
        left: 5px;
        z-index: 1;
        width: 24px;
        height: 24px;
        pointer-events: none;
    }

    .switch .sun svg,
    .switch .moon svg {
        width: 100%;
        height: 100%;
        display: block;
    }

    .switch .moon svg {
        fill: #73C0FC;
    }

    .switch .sun svg {
        animation: rotate 15s linear infinite;
    }

    .switch .moon svg {
        animation: tilt 5s linear infinite;
    }



    .switch .input:checked + .slider {
        background-color: #183153;
    }

    .switch .input:focus + .slider {
        box-shadow: 0 0 1px #183153;
    }

    .switch .input:checked + .slider:before {
        transform: translateX(30px);
    }

    /* Скрывает при недостатке ширины */
    @media (max-width: 1450px) {
        .switch {
            display: none;
            position: fixed;
            top: 12px;
            right: 70px;
            margin: 0;
            z-index: 1002;
        }
    }

    @media (max-width: 480px) {
        .switch {
            transform: scale(0.85);
            right: 60px;
        }
    }





    /* Главные кнопки на панеле управления(главная, биоинфо и тд) */
    .main-buttons {
        display: inline-block;
        width: auto;
        height: 60px;
        font-family: Calibri, sans-serif; 
        font-size: 25px;
        margin: 25px;
        padding: 15px;
        font-size: 15px;
        color: var(---txt-color);
        background-color: var(---bg-buttons);
        border: none;
        border-radius: 50px;
        box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.1);
        cursor: pointer;
        outline: none;
    }
        /* При наведении */
        .main-buttons:hover{
            background-color: var(---red-color);
            box-shadow: 0px 15px 20px rgba(184, 68, 68, 0.4);   
            color: #fff;
        }
        /* При нажатии слегка опускаются */
        .main-buttons:active {
            transform: translateY(5px);
        }

    /* Элемент с кнопками(главное не перепутать) */
    .buttons-menu {
        display: inline;
        float: right;
        width: auto;
        justify-content: space-between;
        border-radius: 25px 25px 0px 0px; 
        z-index: 4;
        opacity: 0;
    }
        /* При уменьшении экрана скрываются и появляется баргер-меню */
        @media (max-width: 1450px) { 
        .main-buttons {
            display: none;
        }
        }

    /* Красная полоска или разделитель текста так называемый */
    hr {
        border: none; 
        height: 3px; 
        background-color: var(---red-color); 
    }

    /* Анимация появления */
    @keyframes slideOut {
        to {
            transform: translateY(0px);
            opacity: 1;
        }
    }

    /* крутая анимация(не используется)*/
    @keyframes pes {
        from {
            width: 600px;
            height: 750px;
            transform: translateX(-1000px);
            opacity: 0.5;
        }

        25% {
            width: 600px;
            height: 750px;
            transform: translateX(-500px);
            opacity: 1;
        }

        50% {
            width: 600px;
            height: 750px;
            transform: translateX(500px);
            opacity: 1;
        }
        75% {
            width: 600px;
            height: 750px;
            transform: translateX(1000px);
            opacity: 0;
        }
        85% {
            width: 450px;
            height: 500px;
            transform: translateY(0px);
            opacity: 0;
        }
        to {
            width: 450px;
            height: 500px;
            transform: translateY(125px);
            opacity: 1;
        }
    }

    /* НЕ УДАЛЯТЬ (сьезжают влево (main-buttons)) */
    nav {
        float: right;
    }

    /* Панель управления(то что сверху(не знаю как её еще обозвать)) */
    .menu{
        position: sticky;     
        top: 0;           
        left: 0;            
        right: 0;    
        width: auto;
        height: auto;
        border-radius: 0px 0px 50px 50px;
        color: var(---txt-color);
        z-index: 3;
        overflow: hidden;
        text-align: left;
        padding-left: 50px;
        transform: translateY(-150px);
        backdrop-filter: blur(10px); /* 25 */
        opacity: 1;
        animation: slideOut 0.5s ease forwards;
        background: var(---blur-bg);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }
        /* Текст для названия страницы (слева на панеле управления) */
        .menu h1 {
            display: inline-block;
            top: 0;
            left: 0;
            padding: 10px;
        }

    /* Основной текст */
    .text {
        position: relative;
        max-width: 1200px;
        border-radius: 50px;
        background-color: var(---bg-color);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        margin: 25px auto;
        margin-bottom: 25px;
        text-align: justify;
        color: var(---txt-color);
        padding-top: 5px;
        padding-bottom: 25px;
        padding-left: 25px;
        padding-right: 25px;
        z-index: 1; 
        font-family: Calibri, sans-serif; 
        font-size: 22px;
        text-decoration: none;
        display: block;
        transform: translateY(-1500px);
        opacity: 1;
        animation: slideOut 1s ease forwards;
    }

    /* Ссылки без подчеркивания и цвета основного текста */
    a {
    text-decoration: none;
    color: var(---txt-color);
    }

details > summary::marker {
    display: none;
    content: ''; 
}
details > summary::-webkit-details-marker {
    display: none; 
    content: '';
}

#disease {
    display: table;
    clear: both;
}
.phototext{
    float: right;
    height: auto;
    width: auto;
    max-height: 450px;
    margin: 25px;
    border-radius: 50px;
}

/* Главная */

    /* Вступительное изображение */
    .hero {
        background-image: url(dna.gif);
        background-size: cover;
        background-position: center;
        border-radius: 0px 0px 50px 50px;
        width: 100vw;
        height: 110vh;
        margin: -150px auto;
        margin-bottom: 25px;
        z-index: 4;
    }

    /* Текст на гифке */
    #home {
        padding-top: 27.5vh;
        text-align: center;
        font-size: 3vw;
        font-family: Arial, Helvetica, sans-serif;
        color: white;
        z-index: 2;
        height: auto;
    }

    /* Стрелка-вонючка на вступительной фотокарточке */
    .arrow {
        margin: 40px auto 10px auto;
        width: 38px;
        height: 100px;
    }
        .arrow span {
            display: block;
            width: 30px;
            height: 30px;
            border-bottom: 5px solid white;
            border-right: 5px solid white;
            transform: rotate(45deg);
            margin: -16px 0;
            animation: arrow 2s infinite;
        }
            .arrow span:nth-child(2){
                animation-delay: -0.2s;
            }
            .arrow span:nth-child(3){
                animation-delay: -0.4s;
            }
    @keyframes arrow {
        0%{
            opacity: 0;
            transform: translate(0,-20px) rotate(45deg);
        }
        25%{
            opacity: 0.5;
        }
        50%{
            opacity: 0.75;
        }
        75%{
            opacity: 0.5;
        }
        100%{
            opacity: 0;
            transform: translate(0,20px) rotate(45deg);
        }
    }

    /* blur фотокарточки */
    .blur-photo { 
        width: 100%;
        height: 100%;
        background-color: rgba(10, 10, 10, 0.452); 
        backdrop-filter: blur(5px); 
        border-radius: 0px 0px 50px 50px;
        z-index: -99;
        left: 0%;
        top: 0%;
    }

    /* Панель управления */
    .main-menu{
        display: block;
        position: sticky;     
        top: 0;           
        left: 0;            
        right: 0;             
        width: auto;
        height: auto;
        border-radius: 0px 0px 50px 50px;
        color: var(---txt-color);
        z-index: 3;
        overflow: hidden;
        text-align: left;
        padding-left: 3vw;
        backdrop-filter: blur(10px); /* 25 */
        transform: translateY(-150px);
        opacity: 1;
        animation: slideOut 0.5s ease forwards;
        background: var(---blur-bg);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }
        /* Текст на панеле управления */
        .main-menu h1 {
            display: inline-block;
            top: 0;
            left: 0;
            padding: 10px;
        }



    /* Главный текст */
    .main-text {
        position: relative;
        max-width: 1200px;
        border-radius: 50px;
        background-color: var(---bg-color);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        margin: 50px auto ;
        margin-bottom: 50px;
        text-align: justify;
        color: var(---txt-color);
        padding-top: 20px;
        padding-bottom: 20px;
        padding-left: 20px;
        padding-right: 20px;
        z-index: 1; 
        font-family: Calibri, sans-serif; 
        font-size: 22px;
        text-decoration: none;
        display: block;
        transform: translateY(1500px);
        opacity: 1;
        animation: slideOut 1s ease forwards;
    }

    /* Кнопка-гамбургер */
    .menu-toggle {
        display: none !important;
    }

    @media (max-width: 1450px) {
        .menu-toggle {
            display: flex !important;
            position: fixed !important;
            top: 0 !important;
            right: 0 !important;
            left: auto !important;
            bottom: auto !important;
            width: 45px !important;
            height: 45px !important;
            margin: 20px !important;
            padding: 0 !important;
            background: var(---blur-bg) !important;
            backdrop-filter: blur(10px) !important;
            border-radius: 50% !important;
            border: none !important;
            cursor: pointer !important;
            z-index: 1002 !important;
            flex-direction: column !important;
            justify-content: center !important;
            align-items: center !important;
            gap: 5px !important;
        }
        
        .menu-toggle span {
            display: block !important;
            width: 22px !important;
            height: 3px !important;
            background-color: var(---txt-color) !important;
            border-radius: 3px !important;
            transition: all 0.3s ease !important;
            margin: 0 !important;
        }
        
        /* Анимация при открытом меню (крестик) */
        .menu-toggle.active span:nth-child(1) {
            transform: rotate(45deg) translate(5px, 6px);
        }
        
        .menu-toggle.active span:nth-child(2) {
            opacity: 0;
        }
        
        .menu-toggle.active span:nth-child(3) {
            transform: rotate(-45deg) translate(5px, -6px);
        }
    }





    /* Sidebar(Островок если экран малёк) */
    .sidebar {
        position: fixed;
        top: 0;
        right: 0;
        transform: translateX(100%);
        width: auto;
        height: auto;
        background-color: var(---predict-bg);
        color: var(---txt-color);
        box-shadow: -10px 4px 8px rgba(0, 0, 0, 0.1);
        border-radius: 50px 0 0 50px;
        transition: transform 0.3s ease;
        z-index: 7;
        margin-top: 25vh;
        backdrop-filter: blur(10px); /* 25 */
        background: var(---blur-bg);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }
        .sidebar.show {
            transform: translateX(0);
        }
        .sidebar h2{
            display: flex;
            justify-content: center;
            align-items: center;
        }
        .sidebar ul {
            font-size: 17.5px;
            flex: 1;
            display: flex;
            flex-direction: column; 
            list-style: none;
            padding-right: 25px;
            padding-bottom: 15px;
        }
        .sidebar a{
            height: auto;
            color: var(---txt-color);
        }
    /* Показывается именно тогда когда скрывается панель управления */
    @media (max-width: 1450px) {
        .menu-toggle {
        display: block;
        }
    }

    /* Карточки */
    .cards {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
    }
    .card {
        display: inline-block;
        flex: 1;
        width: auto;
        height: auto;
        padding-bottom: 5px;
        padding-left: 25px;
        padding-right: 25px;
        margin: 25px;
        border-radius: 50px;
        background: var(---predict-bg);
        color: var(---txt-color);
        box-shadow: rgba(0, 0, 0, 0.4) 0px 2px 4px, rgba(0, 0, 0, 0.3) 0px 7px 13px -3px, rgba(0, 0, 0, 0.2) 0px -3px 0px inset;
    }


/* Генетический анализ */


        .nucltext {
        max-width: 750px;
        background-color: var(---nucl);
        color: var(---txt-color);
        border-radius: 0px 25px 25px 25px;
        padding: 10px;
        z-index: 1;
        bottom: 50%; 
        left: 25%;
        text-align: justify;
        }

/* Черты ребёнка */

    /* Выбор из списка */
    option {
        color: white;
        background-color: var(---bg-points);
        border-radius: 25px;
    }

    /* Форма выбора */
    select {
        width: 150px; 
        color: white;
        background-color: var(---bg-points);
        border-radius: 25px;
        border: 2px solid rgb(48, 48, 48);
        outline: none;
    }
        /* Полоска вокруг */
        select:focus {
        border-color: rgb(177, 178, 179);
        box-shadow: 0 0 5px rgb(177, 178, 179);
        }

    /* Вспомогательные надписи (цвет волос, цвет глаз и тд) */
    label {
        width: auto;
        height: auto;
    padding-bottom: 5px;
    display: block;
    font-size: 17.5px;
    }

    /* Поле ввода роста */
    input {
    background-color: var(---bg-points);
    color: white;
    border: 2px solid rgb(48, 48, 48);
    border-radius: 25px;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
    appearance: none;
    width: 100px;
    }
        /* Полоска вокруг */
        input:focus {
        border-color: rgb(177, 178, 179);
        box-shadow: 0 0 5px rgb(177, 178, 179);
        }
        /* Должно убирать стрелки но не везде работает */
        input[type="number"]::-webkit-inner-spin-button {
        -webkit-appearance: none;
        }
        input[type="number"]::-webkit-outer-spin-button {
        -webkit-appearance: none; 
        } 

    /* Кнопка с надписью "предсказать черты" (все то же что и с главными) */
    .predict-button {
        display: fixed;
        width: auto;
        height: 60px;
        font-family: Calibri, sans-serif; 
        margin: 25px;
        padding: 15px;
        font-size: 15px;
        background-color: var(---bg-buttons);
        color: var(---txt-color);
        border: none;
        border-radius: 50px;
        box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.1);
        cursor: pointer;
        outline: none;
    }

        .predict-button:hover{
            background-color: var(---red-color);
            box-shadow: 0px 15px 20px rgba(184, 68, 68, 0.4);   
            color: #fff;
        }

        .predict-button:active {
            transform: translateY(5px);
        }

    /* Элемент с признаками */
    #predictchild {       
        display: block;   
        max-width: 1200px;
        height: auto;
        margin: 30px auto;
        border-radius: 50px ;
        color: var(---txt-color);
        padding-left: 25px;
        padding-right: 15px;
        z-index: 2;
        overflow-y: auto;
        background: var(---bg-color);
        transform: translateY(-1000px);
        opacity: 5;
        animation: slideOut 0.5s ease forwards;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        text-align: justify;
    }

    /* Островок с результатом */
    #result {
        position: relative;
        max-width: 600px;
        height: auto;
        float: right; 
        left: 0;
        color: var(---txt-color);
        padding: 15px;
        z-index: 3;
        background: var(---predict-bg);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        border-radius: 50px;
        text-align: left;
    }



/* не используется */

    .pes {
        position: relative;
        width: 450px;
        height: 500px;
        margin: -30px auto ;
        top: 25%;
        right: 0px;
        display: flex;      
        flex-direction: column;
        align-items: flex-start; 
        border-radius: 0px 0px 25px 25px; 
        z-index: 2;
        transform: translateY(-150px);
        opacity: 0;
        animation: pes 5s ease forwards;
    }
        /* Удалено */
    #close-sidebar {
        margin-top: 20px;
        cursor: pointer;
        color: #fff;
        padding: 10px;
        background-color: #444;
    }




/* адаптация для планшетов */
@media (min-width: 768px) and (max-width: 1024px) {
    .main-text, .text {
        width: 90% !important;
        margin: 30px auto !important;
        padding: 20px !important;
    }
    li{
        font-size: 18px !important;
    }
    .cards {
        flex-wrap: wrap !important;
        justify-content: center !important;
    }
    
    .card {
        width: 45% !important;
        margin: 15px !important;
    }
    
    #predictchild {
        width: 90% !important;
        padding: 25px !important;
    }
    
    #result {
        max-width: 400px !important;
    }
    
    .phototext {
        max-width: 300px !important;
    }
}

/* адаптация для телефонов */
@media (max-width: 768px) {
    
    /* Карточки */
    .cards {
        flex-direction: column !important;
        gap: 20px;
    }
    .card {
        width: 90% !important;
        margin: 0 auto 20px auto !important;
        padding: 20px !important;
    }
    .card button {
        width: 100% !important;
        margin-top: 15px !important;
        float: none !important;
    }
    .main-text, .text {
        width: 92% !important;
        margin: 20px auto !important;
        padding: 15px !important;
        border-radius: 25px !important;
    }
    .main-text h2, .text h2 {
        font-size: 20px !important;
    }
    hr {
        margin-left: 10% !important;
        margin-right: 10% !important;
    }
    .main-text hr {
        margin-left: 5% !important;
        margin-right: 60% !important;
    }
    .nucltext {
        width: 90% !important;
        margin: 10px auto !important;
        left: 0 !important;
        right: 0 !important;
        border-radius: 0px 25px 25px 25px !important;
    }
    .phototext {
        float: none !important;
        display: block;
        margin: 20px auto !important;
        max-width: 95% !important;
        height: auto !important;
    }
    details summary {
        display: block;
        padding: 5px 0;
        font-size: 17.5px;
        
    }
    #predictchild {
        width: 92% !important;
        padding: 20px !important;
        margin: 20px auto !important;
    }
    #result {
        float: none !important;
        width: 100% !important;
        margin-top: 25px !important;
        position: relative !important;
        left: auto !important;
        right: auto !important;
        max-width: 100% !important;
    }
    #res {
        display: block !important;
        width: 100% !important;
        float: none !important;
        margin-left: 0 !important;
    }
    label {
        font-size: 16px !important;
        margin-top: 10px !important;
    }
    .predict-button {
        width: 100% !important;
        padding: 14px !important;
        font-size: 18px !important;
        margin: 15px 0 !important;
        float: none !important;
        display: block;
    }
    .main-text a {
        word-break: break-all;
    }
    li{
        font-size: 18px !important;
    }
    .hero {
        display: none !important;
    }
}

/* для очень маленьких экранов */
@media (max-width: 480px) {
    .card {
        width: 95% !important;
        padding: 15px !important;
    }
    
    .card p {
        font-size: 14px !important;
    }
    
    .main-text, .text {
        width: 95% !important;
        padding: 12px !important;
    }
    
    .main-text p, .text p {
        font-size: 17.5px !important;
    }
    
    .predict-button {
        font-size: 16px !important;
        padding: 12px !important;
    }
    
    input, select {
        font-size: 14px !important;
        max-width: 180px !important;
    }
    
    h2 {
        font-size: 18px !important;
    }
    
    h3 {
        font-size: 16px !important;
    }
    li{
        font-size: 16px !important;
    }
}





