/* Основной стиль, использующийся на веб-страницах */

/* Шрифты сайта */
@font-face {
    font-family: 'NT Somic';
    src: url('/static/fonts/NT\ Somic\ Regular.ttf');
    font-weight: 100;
}
@font-face {
    font-family: 'NT Somic';
    src: url('/static/fonts/NT\ Somic\ Medium.ttf');
    font-weight: 200;
}
@font-face {
    font-family: 'NT Somic';
    src: url('/static/fonts/NT\ Somic\ Bold.ttf');
    font-weight: 300;
}
@font-face {
    font-family: 'Playfair Display SC';
    src: url('/static/fonts/Playfair\ Display\ SC.ttf');
}
@font-face {
    font-family: 'Lightfoot';
    src: url('/static/fonts/Lightfoot.ttf');
}


body {
    /* Основной шрифт текста на сайте */
    font-family: 'NT Somic';
    font-weight: 100;
    color: white;
    margin: 0px;
}

/* Логотип бренда, прикреплённый к хедеру сайта */
#logo {
    position: relative;
    z-index: 2;
    img {
        height: 250px;
        max-height: 50vh;
    }
    margin-bottom: -200px;
    @media all and (min-width: 1850px) {
        left: 15%;
    }
    @media all and (max-width: 1850px) {
        left: 10%;
    }
    width: 10%;

    /* Исчезает при ширине <= 1350 пикселей */
    @media all and (min-width: 0px) and (max-width: 1350px) {
        display: none;
    }
    @media all and (min-width: 1350px) {
        display: block;
    }
}

/* Свойства хедера сайта */
header {
    background-color:rgb(20, 20, 20);
    font-size: 18px;
}

/* Общие свойства контейнеров обоих меню */
.navbar {
    /* Исчезновение при ширине <= 850 пикселей */
    @media all and (min-width: 0px) and (max-width: 850px) {
        display: none;
    }
    @media all and (min-width: 850px) {
        display: flex;
    }
    
    justify-content: center;
    align-items: center;
}

/* Общие свойства обоих меню */
nav {
    display: flex;
    justify-content: space-between;
    align-content: space-between;
    align-items: center;
    * {
        vertical-align: middle;
        text-decoration-line: none;
        border-bottom: 1px solid transparent;
        color:white;
    }
    a {
        transition: color 0.15s;
        &:hover {
            color:rgb(211, 161, 25);
        }
    }
}
.upper {
    #logo-container {
        width: 20%;
    }
    nav {
        @media all and (min-width: 0px) and (max-width: 1350px) {
            padding-right: 0%;
            padding-left: 0%;
            margin-left: 5%;
            margin-right: 5%;
            width: 100%;
        }
        @media all and (min-width: 1350px) {
            padding-right: 7%;
            padding-left: 25%;
            margin-left: 6%;
            margin-right: 10%;
            width: 70%;
        }
        a {
            margin-block: 10px;
            margin-inline: 0px;
        }
    }
    border-bottom: 1px solid white;
}
.lower {
    position: relative;
    padding-top: 20px;
    @media all and (min-width: 0px) and (max-width: 1350px) {
        padding-left: 5%;
        padding-right: 5%;
    }
    @media all and (min-width: 1350px) {
        padding-left: 25%;
        padding-right: 10%;
    }
    nav {
        @media all and (min-width: 1350px) {
            width: 80%;
        }
        @media all and (min-width: 0px) and (max-width: 1350px) {
            width: 100%;
        }
    }
    a {
        transition: color 0.15s,  border-bottom 0.15s;
        &:hover {
            color:rgb(211, 161, 25);
            border-bottom: 1px solid rgb(211, 161, 25);
        }
    }
}


/* Контейнер выпадающего меню */
.navbox {
    float: left;
    overflow: hidden;
}

/* Родительская вкладка выпадающего меню */
.navbox .subnavparent {
    font-size: 16px;
    border: none;
    outline: none;
    background-color: inherit;
    /* Следующие два свойства нужны для вертикального центрирования на мобилках (костыль CSS) */
    font-family: inherit;
    margin: 0;
}

/* Переход на золотистый цвет текста родительской вкладки и при наведении на дочерние - их тоже  */
.navbar div a:hover, .navbox:hover .subnavparent {
    color:rgb(211, 161, 25);
}

/* Выпадающее меню (по умолчанию display: none) */
.subnav {
    display: block;
    position: absolute;
    top: 110%; /* Сдвиг чуть ниже самих вкладок, чтобы дать место подчёркиванию их названий */
    background-color: rgb(20, 20, 20);
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 3;
    max-height: 0px;
    transition: max-height 0.3s ease-in-out;
    overflow: hidden;
    border-radius: 10px;
}

/* Дочерняя вкладка по умолчанию */
.subnav a {
    float: none;
    color: white;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
}

/* Изменение фона дочерних вкладок на серый при наведении */
.subnav a:hover {
    background-color: #202020;
}

/* Появление (сверху вниз) выпадающего меню при наведении на родительскую вкладку */
.navbox:hover .subnav {
    display: block;
    max-height: 500%;
}

/* Логотипы в верхнем меню би лайк */
.social-media-logo {
    max-height: 40px;
    height:min-content;
    transition: 0.15s filter ease-in-out;
    /* Этот и последующие фильтры были сгенерированы при помощи https://angel-rs.github.io/css-color-filter-generator/ */
    filter: brightness(0) saturate(100%) invert(100%) sepia(100%) saturate(0%) hue-rotate(288deg) brightness(102%) contrast(102%);
}

/* Сброс цвета на золотистый при наведении */
a:hover .social-media-logo {
    filter: none;
}


#mobile-menu {
  background-color: #333;
  position: fixed;
  height: fit-content;
  width: 100vw;
  z-index: 10;
  box-shadow: inset 0 0 0 1px white;

  display: block;
  max-height: 0;

  overflow: hidden;
  transition: max-height 0.3s ease-in-out;
}

.mobile * img {
  max-height: 20px;
  height:min-content;
  transition: 0.15s filter ease-in-out;
  filter: brightness(0) saturate(100%) invert(100%) sepia(100%) saturate(0%) hue-rotate(288deg) brightness(102%) contrast(102%);
}

/* Сброс цвета на золотистый при наведении */
.mobile *:hover img {
  filter: brightness(0) saturate(100%) invert(0%) sepia(40%) saturate(1629%) hue-rotate(185deg) brightness(90%) contrast(107%);
}

.mobile {
  color: white;
  padding: 5px 16px;
  text-decoration: none;
  font-size: 1.2em;
  display: block;
}

.mobile.toggle {
  background: black;
  border: gray 2px solid;
  position: fixed;
  padding: 14px 16px;
  z-index: 11;
  right: 30px;
  top: 30px;
  
  @media all and (min-width: 0px) and (max-width: 850px) {
    display: block;
  }
  @media all and (min-width: 850px) {
    display: none;
  }
}

.mobile:hover {
  background-color: #ddd;
  color: black;
}

/* Заголовок (тоже есть на каждой страница) */
.title {
    font-family: 'Playfair Display SC';
    font-weight: normal;
    text-shadow: -2px 2px #000;
    font-size: 2.5em;
}

h2 {
    @media all and (min-width: 0px) and (max-width: 850px) {
        font-size: 1.2rem;
    }
    @media all and (min-width: 850px) {
        font-size: 1.4rem;
    }
    font-weight: 100;
    color: white;
    align-items: center;
    display: flex;
    justify-content: center;
    padding-block: 10px;
    margin-block: 0px;
}

/* Свойства футера */
footer {
    display: flex;
    justify-content: center;
    width: 100%;
    box-shadow: 0 50vh 0 50vh rgb(20,20,20);
    #footer-content {
        font-size: 1rem;
        margin-top: 50px;
        display: flex;
        @media all and (min-width: 0px) and (max-width: 900px) {
            flex-direction: column;
        }
        @media all and (min-width: 600px) {
            flex-direction: row;
        }
        justify-content: center;
        width: 80%;
        align-items: center;
        margin-inline: 10px;
        margin-bottom: 20px;
        p {
            margin-block: 8px;
        }
        #footer-logo {
            width: 80px;
            height: 80px;
        }
    }
}

/* Фирменный стиль кнопки */
.cool-button {
    cursor: pointer;
    font-family: 'NT Somic';
    font-size: 1.2rem;
    padding-inline: 30px;
    font-weight: 200;
    padding-block: 10px;
    background-color: rgb(61, 41, 16);
    border-color: rgb(238,192,100);
    border-radius: 30px;
    border-width: 5px;
    text-shadow: 1px 0 #000, -1px 0 #000, 0 1px #000, 0 -1px #000,
1px 1px #000, -1px -1px #000, 1px -1px #000, -1px 1px #000;
    color:white;
}

.grecaptcha-badge {
    display: none;
}


html, body {
    overflow-x: hidden;
    height: 100%;
}


/* Новая форма */

#contact-container {
    display: flex;
    justify-content: center;
    padding-inline: 10%;
    background-image: linear-gradient(rgb(39, 42, 45), rgb(50, 57, 64));

    @media all and (min-width: 0px) and (max-width: 950px) {
        padding-inline: 0%;
    }
    @media all and (min-width: 950px) {
        padding-inline: 10%;
    }
}
#contact-container:hover {
    border-color: white;
}
#contact {
    color: white;
    width: 100%;
    
    border: solid 2px;
    border-color: transparent;
    border-radius: 10px;
    transition: border-color 0.3s ease-in-out;
    
    a {
        color:rgb(211, 161, 25);
        text-decoration-color: rgb(211, 161, 25);;
    }
    h2 {
        text-align: center;
        font-family: 'NT Somic';
        font-weight: 100;
        font-size: 1.3rem;
        margin-bottom: 10px;
    }
}
#contact:hover {
    border-color: white;
}
#inline-form {
    display: flex;
    flex-direction: column;
    padding-inline: 30%;
    @media all and (min-width: 0px) and (max-width: 950px) {
        padding-inline: 5%;
    }
    @media all and (min-width: 950px) {
        padding-inline: 30%;
    }

    font-family: 'NT Somic';
    font-size: 1em;
    .normal {
        display: flex;
        align-items: baseline;
        margin-block: 5px;
        flex-direction: row;
        label {
            width: 40%;
            text-align: left;
            margin-bottom: 0px;
        }
        * {
            font-family: 'NT Somic';
            font-size: 1em;
            font-weight: 100;
        }
        input {
            width: 60%;
        }
        select {
            width: 60%;
        }
        textarea {
            width: 60%;
        }

        @media all and (min-width: 0px) and (max-width: 575px) {
            align-items: center;
            flex-direction: column;
            label {
                width: 100%;
                text-align: center;
                margin-bottom: 5px;
            }
            input {
                width: 100%;
            }
            select {
                width: 100%;
            }
            textarea {
                width: 100%;
            }
        }
        @media all and (min-width: 575px) {
            align-items: baseline;
            flex-direction: row;
            label {
                width: 40%;
                text-align: left;
                margin-bottom: 0px;
            }
            input {
                width: 60%;
            }
            select {
                width: 60%;
            }
            textarea {
                width: 60%;
            }
        }
        #phoneInput {
            letter-spacing: 1px;
        }
    }
    #consent-container {
        display: flex;
        justify-content: center;
    }
    #submit-div {
        text-align: center;
        #submit {
            margin-top: 10px;
            padding-block: 10px;
            padding-inline: 25px;
            font-family: 'NT Somic';
            font-size: 1em;
        }
    }
}
.errors {
    display: flex;
    flex-direction: column;
    margin-block: 0em;
    li {
        color: lightcoral;
    }
}

#after-submit-popup {
    display: none;
    justify-content: center;
    align-items: center;
    text-align: center;
    flex-direction: column;
    position: fixed;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 12;
    #close {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        width: 100%;
        height: 20vw;
        border-radius: 20px;
        background-color: transparent;
        transition: background-color 0.2s ease-in-out;
        text-decoration: goldenrod solid 2px;
        #close-text {
            font-size: 2em;
            font-weight: 100;
            color: goldenrod;
        }
        #close-img {
            height: 30px;
        }
        * {
            margin-inline: 20px;
        }
    }
    #close:hover {
        background-color: rgba(255, 255, 255, 0.5);
    }
    #popup-header {
        margin-top: 0px;
        font-size: 5em;
        font-weight: 100;
        color: white;
        text-shadow: -5px -5px 0 green;
        
        @media all and (min-width: 0px) and (max-width: 600px) {
            font-size: 3em;
            text-shadow: -3px -3px 0 green;
        }
        @media all and (min-width: 600px) {
            font-size: 5em;
            text-shadow: -5px -5px 0 green;
        }
    }
    #checkmark {
        width: 50%;
        height: 50%;
        @media all and (min-width: 0px) and (max-width: 600px) {
            width: 80%;
        }
        @media all and (min-width: 600px) {
            width: 50%;
        }
    }
    #popup-desc {
        font-weight: 100;
        color: white;
        text-shadow: -2px -2px 0 green;
    }
}