﻿@import url('https://fonts.googleapis.com/css?family=Lora');

/*html {
    font-size: 18px;
}*/

/*global variables*/




:root {
    --footer-bg-color: #aaddff;
    --darck-blue: #0d1a46;
    --white-gray: #eeeeee;
    --darck-gray: #1a1a1a;
    --zatemnenie: rgba(0, 0, 0, 0.5);
    --basis-buttons-color: #6292f4;
    --basis-buttons-color-hover: #dfdfdf; /*#a7c0f1;*/ 
    --mobile-menu-background-color: #2a3f54;
    --mobile-menu-background-color-hover: #acb0b3;
    --primary-color: #4c628d;
    --hover-bg: #e0e0e0;
    --border-color: rgb(160, 202, 245);
    --form-width: 15rem;
    --font-main: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --text-color: #333;
    --text-color-hover: #000;
    --background-color: #f2f2f2;
    --background-color1: #f2f2f2;
    --gray: #dfdfdf;
    --login-button-color: #67bb8d;
    --green: #67bb8d;
    --green-hover: #a7d4bc;
    --login-button-color-hover: #a7d4bc;
    --text-buttons-color: #ffffff;
    --white: #ffffff;
    --text-buttons-color-hover: #646464;
    --white-hover: #646464;
    --blue: #6699ff;
    --blue-hover: #8db9ff;
}

html, body {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
}

div {
    padding-bottom: 0.1rem;
    padding-top: 0.1rem;
}
.wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
}


body {
    
    font-family: var(--font-main);
    font-size: 1rem;
    /*overflow: scroll;*/
    
    padding: 0px;
}


div#Login,
div#SignUp
{
    font-family: var(--font-main);
    display: block;
    margin-left: 0;
    margin-right: 0;
    margin-top: 2%;
    margin-bottom: 2%;
    text-align: center;
    
}


div#SignUp {
    margin-left: 20%;
    text-align: left;
    padding-left: 1rem;
    width: calc(100% - 21%);

}

* {
    box-sizing: border-box;
}


label,
textarea,
input,
button,
form#GenomUploadForm label,
form#GenesUploadForm label,
form#GenomUploadForm button#uploadButton,
form#GenesUploadForm button#uploadButton,
.file-button,
.file-fake,
.steps-services,
.steps-step2,
.description
{
    font-family: var(--font-main);
    font-weight: normal;
    font-size: 1rem;
    display: inline-block;
    background: #FFFFFF;
    color: var(--white-hover);
    line-height: 2rem;
    text-decoration: none;
    padding: 0;
    border-radius: 6px;
    padding-left: 1rem;
    border: 1px solid gray;
    width: 15rem;
}

.description {
    line-height: 1rem;
    width: 20rem;
    border: 0px solid gray;
    margin: 0;
}
.describer {
    background: transparent;
    width: 80%;
    min-width: 20rem;
    color: var(--white-hover);
    font-size: 1.2rem;
    font-weight: bold;
    margin: 1rem;
}
label {
    font-weight: bold;
    background: transparent;
    color: inherit;
    padding-left: 0rem;
    border: 0px solid gray;
}

button {
    margin-top: 1rem;
    font-weight: bold;
    background: var(--primary-color);
    color: var(--white);
    padding-left: 0;
}

    button:hover {
        background: var(--basis-buttons-color-hover);
        color: var(--white-hover);
        cursor: pointer;
    }

textarea {
    height: 10rem;
    width: 60%;
}

    textarea:hover,
    input:hover {
        border: 1px solid var(--border-color);
    }

    textarea:focus,
    input:focus {
        outline: none;
        box-shadow: none;
        border: 1px solid var(--login-button-color);
    }

.text-danger {
       display:block;
       margin-top: 0.25rem;
       color: red;
       font-size: 1rem;
   }

.main_text {
    display: block;
    margin: auto;
    padding: 0 0.5rem;
    
    text-align: justify;
    text-indent: 50px;
    width: 90%;
    clear: both;
    color: var(--text-buttons-color-hover);
    font-family: var(--font-main);
    font-size: 1.1rem;
    letter-spacing: 1px;
    line-height: 1.4rem;
    border: 0px solid red; /* граница */
    box-sizing: border-box;
}


#services {
    display: flex;
    flex: 1;
    min-height: 100%;
}

#menu {
    background-color: var(--gray);
    flex: 0 0 20%;
    max-width: 20%;
    min-height: 100%;
}

#main {
    flex: 1;
    background-color: var(--background-color);
}


div#services {
    background-color: var(--background-color);

}

div#menu,
div#main {
    background-color: var(--gray);
    display: block;
    text-align: justify;
    text-indent: 5%;
    clear: both;
    color: var(--text-color);
    font-family: var(--font-main);
    font-weight: normal;
    font-size: 1.3rem;
    letter-spacing: 1px;
    line-height: 1.7rem;
    box-sizing: border-box;
    /*float: left;*/
    width: 20%;
}

    div#menu a {
        width: 20rem;
    }

div#main {
    background-color: var(--background-color);
    padding-top: 10px;
    text-indent: 30px;
    padding: 10px;
    width: 80%;
}

.verhnij {
    background-color: var(--background-color); /* var(--gray);*/
    border: 5px solid var(--background-color);
    font-size: 1.1rem;
    
}

.nizhnij {
    background-color: var(--gray);
    border: 5px solid var(--gray);
    margin-bottom: 0.5rem;
    padding: 0.5rem;
}

    .verhnij label,
    .nizhnij label {
        margin-right: 0rem;
        padding-right: 0rem;
        padding-left: 0.2rem;
        font-size: 1.5rem;
        font-weight: bold;
        overflow-wrap: break-word;
        word-wrap: break-word;
        word-break: break-word;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
        box-sizing: border-box;
        text-indent: 0;
        -webkit-tap-highlight-color: transparent; /* убирает тёмный фон в Safari/Chrome */
        background-color: transparent; /* на всякий случай */
        outline: none;
    }

    .nizhnij label {
        position: relative;
        cursor: pointer;
        display: block;
        font-weight: normal;
    }


        .nizhnij label::after {
            content: "▶"; /* Unicode-стрелка или своя */
            display: inline-block;
            margin-left: 0.2rem;
            vertical-align: auto;
            font-size: 1.5rem;
            color: var(--text-color);
        }

        .nizhnij label::after {
            content: "▶"; /* Unicode-стрелка или своя */
            display: inline-block;
            margin-left: 0.2rem;
            vertical-align: auto;
            font-size: 1.5rem;
            color: var(--text-color-hover);
        }

        .nizhnij label:hover {
            color: var(--text-color-hover);
            font-weight: bold;
        }

    .nizhnij label {
        -webkit-tap-highlight-color: transparent; /* убирает тёмный фон в Safari/Chrome */
        background-color: transparent; /* на всякий случай */
        outline: none;
    }

        .nizhnij label:focus,
        .nizhnij label:active {
            background-color: transparent !important;
            outline: none;
            box-shadow: none;
        }

    .nizhnij label:active,
    .nizhnij label:focus {
        background: none;
        outline: none;
    }

/* Скрыть мобильное меню по умолчанию */
#mobile-menu-services {
    display: none;
    flex-direction: column;
    padding: 10px;
    background-color: var(--background-color);
}

#main.mhlab {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.mobbtn {
    padding-left: 2rem; text-align:left; margin-bottom: 2rem;
}

.loadedfls {
    color: forestgreen !important;
}

.bacteria-list {
    display: block;
    width: 100%;
}

.bacteria-toggle {
    display: flex;
    cursor: pointer;
}


.gene-list {
    list-style: none;
    display: block; /* делаем горизонтальный флекс-контейнер */
    flex-wrap: wrap; /* если не помещается, переносим на новую строку */
}

    .gene-list li {
        display: flex;
    }

    .gene-list label {
        display: flex;
        cursor: pointer;
    }

.hidden {
    display: none;
}

input[type="checkbox"] {
    width: 1.4rem;
    height: auto;
    cursor: pointer;
}

.bacteria-toggle,
.bacteria-toggle:focus,
.bacteria-toggle:active,
.bacteria-toggle:hover {
    background: none !important;
    background-color: transparent !important;
    outline: none !important;
    box-shadow: none !important;
}

    .bacteria-toggle *,
    .bacteria-toggle *:hover,
    .bacteria-toggle *:active,
    .bacteria-toggle *:focus {
        background: none !important;
        background-color: transparent !important;
    }

input[type="checkbox"]:focus,
input[type="checkbox"]:hover,
input[type="checkbox"]:active {
    outline: none !important;
    box-shadow: none !important;
    background-color: transparent !important;
    border: none !important;
}

label.checkbox-label {
    cursor: pointer;
    background-color: transparent;
    outline: none;
    box-shadow: none;
}

    label.checkbox-label:focus,
    label.checkbox-label:active,
    label.checkbox-label:hover {
        background-color: transparent !important;
        outline: none !important;
        box-shadow: none !important;
        color: inherit;
    }



/* Контейнер результата — по умолчанию скрыт и плавно появляется */
.result-container {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease, transform 1s ease;
    background-color: #fdfdfd;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 16px;
    margin-top: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-width: 90%;
    margin: 0 5% 2% 5%;
    overflow-x: auto;
}

/* Заголовок */
.result-title {
    margin-bottom: 12px;
    font-size: 1.2rem;
    font-weight: 600;
}

/* Содержимое результата */
.result-content {
    font-size: 1rem;
    line-height: 1.5;
}

/* Появление (добавляется из JS) */
.result-container.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}



/* Десктоп — по умолчанию */
/*header*/
@media screen and (min-width: 1400px) {
    /* === top menu === */
    /* === body === */
}
@media screen and (max-width: 1399px) {
    
}
/* Планшеты и небольшие ноутбуки */
@media screen and (max-width: 1024px) {
    
}

@media screen and (max-width: 844px) {

}

/* Мобильные устройства в горизонтальной ориентации или очень узкие планшеты */
@media screen and (max-width: 768px) {

}

/* Мобильные устройства в портретной ориентации */
@media screen and (max-width: 480px) {



    #services {
        display: none;
    }
    
    #menu {
        display: none;
    }

    #mobile-menu-services {
        display: flex;
    }
    footer{
        z-index: 10;
        display: flex;
    }
}

@media (max-width: 600px) {
    .form-container,
    .scroll-container,
    .scroll-container-st3 {
        margin: 0 auto !important;
        padding: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        width: 100% !important;
        gap: 1rem !important;
        box-sizing: border-box !important;
        width: 20rem !important;
    }

    .form-container .mhl-navigation {
        display: none;
    }

    .mobile-navigation {
        display: flex !important;
        justify-content: space-between;
        margin-top: 1rem;
    }

    .modal {
        position: fixed;
        top: 2.5%;
        left: 5%;
        width: 90%;
        height: 95%;
        background-color: rgba(0,0,0,0.3);
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 1001;
    }

    .result-container {
        padding: 12px;
        font-size: 0.95rem;
    }

    .result-title {
        font-size: 1rem;
    }
}



