/* ПОДКЛЮЧАЕМ ШРИФТЫ */
@font-face{font-family: 'regularText'; src: url('../fonts/PoiretOne-Regular.ttf') format('truetype'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face{font-family: 'welcomeText'; src: url('../fonts/GreatVibes-Regular.ttf') format('truetype'); font-weight: 400; font-style: normal; font-display: swap; }

/* Шрифт Princess-Diana - винтажный шрифт для заголовка "Константин и Светелана*/
@font-face{font-family: 'PrincessDiana'; src: url('../fonts/princess-diana.ttf') format('truetype'); font-weight: 400; font-style: normal; font-display: swap; }

/* Шрифт Montserrat - базовый шрифт для абзацев и подзаголовков*/
@font-face{font-family: 'Montserrat'; src: url('../fonts/montserrat-thin.ttf') format('truetype'); font-weight: 100; font-display: swap;}
@font-face{font-family: 'Montserrat'; src: url('../fonts/montserrat-light.ttf') format('truetype'); font-weight: 200; font-style: normal; font-display: swap;}
@font-face{font-family: 'Montserrat'; src: url('../fonts/montserrat-regular.ttf') format('truetype'); font-weight: 400; font-weight: bold; font-display: swap; }
@font-face{font-family: 'Montserrat'; src: url('../fonts/montserrat-medium.ttf') format('truetype'); font-weight: 500; font-display: swap;}
@font-face{font-family: 'Montserrat'; src: url('../fonts/montserrat-semibold.ttf') format('truetype'); font-weight: 600; font-display: swap;}
@font-face{font-family: 'Montserrat'; src: url('../fonts/montserrat-bold.ttf') format('truetype'); font-weight: 700; font-display: swap;}



body {
    font-family: "Montserrat";
    font-weight: 200;
    font-size: 28px;
}
a {
    text-decoration: none;
}

img {
    max-width: 100%;
}

h1 {
    font-weight: 400;
    font-size: 1.15em;
    text-transform: uppercase;
}
h2 {
    font-weight: 200;
    font-size: 1em;
    text-transform: uppercase;
}
h3 {
    font-weight: 200;
    font-size: 0.9em;
    text-transform: uppercase;
}
p {
    text-align: justify;
    text-align-last: start;
    
    font-weight: 200;
    font-size: 1em;
}

@media(max-width: 1440px) {
    boby {
        font-size: 24px;   
    }
}
@media(max-width: 480px) {
    boby {
        font-size: 22px;   
    }

    h1 {
        font-size: 1em;
    }
    h2 {
        font-size: 0.8em;
    }
    h3 {
        font-size: 0.7em;
    }
    p {
        font-size: 0.7em
    }
}

.videoBackground {
    /* фоновое видео будет находжиться позади ВСЕХ остальных объектов и будет заполнять весь экран */
    background: rgba(232, 187, 120, 0.726);
    position: fixed; 
    top: 0; 
    left: 0; 

    width: 100%; 
    height: 100%;

    overflow: hidden; 

    z-index: -1;
}

.backgroundLayer {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    
    margin: 1% auto 2% auto;
    
    padding-top: 2em;
    padding-bottom: 2em;

    text-align: center;

    width: 90%;
}
.backgroundLayer p {
    width: 60%;
}
@media(max-width: 1440px) {
    .backgroundLayer p {
        width: 90%;
    }
}


.bg-video { 
    position: fixed; 
    top: 0; left: 0; 
    width: 100%; height: 100%; 
    object-fit: cover; /* обрезка по размеру окна */ 
    object-position: center; /* центрирование */ 
    min-width: 100%; 
    min-height: 100%; 
    z-index: -1; /* за контентом (контент можно разместить поверх) */ 
    filter: brightness(1); /* подложка чуть темнее, текст читается лучше */ 
} 

.scrollingArea {
    height: 90%;
    width: 100%;
    overflow-y: scroll;
    overflow-x: hidden;
    scroll-behavior: smooth;

    padding-top: 1%;
}
@media (max-width: 1440px) {
    .scrollingArea {
        height: 100%;
    }
}
/* ########################## НАВИГАЦИЯ ########################## */
header {
    align-self: center;

    margin-left: auto;
    margin-right: auto;

    width: 89%;

    /*font-family: "regularText";*/
    font-family: "Montserrat";
    font-size: 22px;
    font-weight: 200;
    font-style: normal;
}
header nav {
    width: 50%;

    float: right;
    background-color: rgba(255, 255, 255, 0.2);
    border: 1px solid black;
    border-radius: 15px;
}
header nav ul {
    display: flex;      /* располагаем элементы по горизонтали */ 
    justify-content: space-between;

    padding: 1% 5%;

    list-style: none;   /* удаляем маркеры */ 
    align-items: center;/* выравнивание по вертикали */
    text-transform: uppercase;

}
header nav ul li {
    display: inline-block;
}

header nav ul li a {
    color: black;
    transition: font-weight 0.5s ease;
}
header nav ul li a:hover {
    font-weight: bolder;
}

@media(max-width: 1440px) {
    header {
        font-size: 0.5em;
    }

    header nav {
        width: 100%;
    }
}
@media(max-width: 480px) {
    header {
        font-size: 0.4em;       
    }
}
@media(max-width: 400px) {
    header li { 
        transform: scaleX(0.9);
        transform-origin: center;
    }
}


/* ########################## Первый блок - Обложка ########################## */
.present {
    height: 80%;
    
    opacity: 0; transform: translateY(40px);
    animation: revealFromTop 2s ease-out forwards; 
    
    text-align: center;

    display: flex;
    flex-direction: column;
    justify-content: space-between; 
}
@keyframes revealFromTop { to { opacity: 1; transform: translateY(0); } }

.present h1 {
    text-transform: none; /* убираем перевод в верхний регистр*/
    font-family: "welcomeText";
    font-size: 3.5em;
    font-weight: 100;

    margin: 0.8em auto 0.8em auto;
}
.present h2 {
    font-size: 1em;
    font-weight: 200;

    margin-top: 0;
}

.present > .dataViewer {
    max-height: 20%;
    
    display: flex;
    flex-direction: column;
    align-content: flex-start;
    justify-content: center;

    text-transform: uppercase;
}
.present > .dataViewer h1 {
    font-size: 2em;
    font-weight: 200;
    transform-origin: 50% 50%;
    transform: scaleY(1.6);

    font-family: "Montserrat";
    margin: 5px auto 5px auto;
}
.present > .dataViewer h3 {
    font-size: 1em;
    font-weight: 200;
    margin: 0 auto 0 auto;

    font-family: "Montserrat";

}

@media(max-width: 1440px) {
    .present h1 {
        font-size: 2.3em;
    }
    .present h2 {
        font-size: 0.6em;
    }
    
    .present > .dataViewer h1 {
        font-size: 1.5em;
    }
    .present > .dataViewer h4 {
        font-size: 1em;
    }
}
@media(max-width: 400px) {
    .present h1 {
        font-size: 2.1em;
    }
}

/* ########################## Второй блок - приветствие ########################## */
.forVisitors {
    padding-top: 2em;
    padding-bottom: 2em;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    text-align: center;
    align-items: center;

    min-height: 40%;
}
.forVisitors h1 {
    width: 90%;
}
@media(max-width: 1440px) {
    .forVisitors {
        width: 90%;
    }
}

/* ########################## Третий блок - тайминги ########################## */
.graphicsPlot {
    text-align: center;
    align-items: center;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    min-height: 80%;
}
.graphicsPlot > .timePoint {
    display: flex;
    flex-direction: column;
    align-content: center;
    justify-content: center; 
    
    width: 90%;
}
.graphicsPlot > .timePoint h2,
.graphicsPlot > .timePoint h3 {
    font-size: 1em;
    margin: 0 auto 0 auto;
}
@media(max-width: 1440px) {
    .graphicsPlot > .timePoint h2,
    .graphicsPlot > .timePoint h3 {
        font-size: 0.9em;
    }
}


/* ########################## Четвертый блок - дресс-код ########################## */
.dresscode {
    display: flex;
    flex-direction: column;

    align-items: center;
}
.colorsPlot {
    margin: 5% auto;
    width: 90%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}
.colorsPlot img {
    width: 12%;
    height: 12%;
    border: 4px solid white;
    border-radius: 50%;
    aspect-ratio: 1/1;
}

/* Раздел с референсами*/
.references {
    max-height: 80%;
    min-height: 65%;
    max-width: 90%;

    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 10px;
}
.references > .photoLayer {
    border-radius: 10px;
    margin: 0;
    
}
.references > .photoLayer .photoRef {
    border-radius: 10%;
    height: 100%;
    width: auto;
}
@media(max-width: 1440px) {
    .colorsPlot {
        display: grid;
        grid-template-columns: repeat(3, auto);
        grid-template-rows: repeat(2, auto);
        gap: 10px 10px;
    }
    .colorsPlot img {
        height: 3em;
        width: auto;
    }
}

/* ########################## Пятый блок - подсказки ########################## */
.prompt {
    margin-left: auto;
    margin-right: auto;

    min-height: 70%;
}
.prompt h1 {
    text-align: center;
    margin-left: auto;
    margin-right: auto;

    text-transform: uppercase;
    margin: 2% auto 2% auto;
}
.prompt p {
    margin: 2% auto 2% auto;
}
details {
    text-align: start;
    margin: 10px 5% auto 5%;
}
.prompt > details > summary {
    margin-left: auto;
    margin-right: auto;
    
    cursor: pointer;
    list-style: none;   
}

.prompt > details > summary::before {
    margin-left: 25%;
    margin-right: 2%;
    content: "▼";
    transform: translateY(-40%);
}
.prompt > details[open] > summary {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
}
.prompt > details[open] > summary::before {
    content: "►";
}
@media(max-width: 1440px) {
    .prompt > details > summary {
        margin-bottom: 2px;
    }
    .prompt > details > summary::before {
        margin-left: 0;
    }
}

.promptContent {
    display: flex;

    flex-direction: column;
    align-items: center;
}

.person {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;

    margin-bottom: 1%;
}
.person > .personHead {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    flex-wrap: nowrap;
}
.person > .personHead > .personInfo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;

    width: auto;
    padding-top: 2em;
    padding-bottom: 0.7em;
}
.person > .personHead > .personInfo p {
    width: 80%;
}
.person > .personHead img {
    margin-top: 0.5em;
    margin-bottom: 0.5em;
    width: 30%;
    height: auto;
    border-radius: 20px;
}

.person > .links {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin-bottom: 2%;
    
    font-size: 0.8em;

    width: 100%;
}
.person > .links a {
    margin-top: 2%;
    display: flex;
    flex-direction: row;
    align-items: center;
    color: black;

    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
}
.person > .links a img {
    width: 1.2em;
    height: auto;
    margin-right: 0.5rem;
}
@media(max-width: 1440px) {
    .promptContent {
        width: 100%;
    }
    .person {
        flex-wrap: nowrap;
    }
    .person > .personHead{
        display: flex;
        flex-direction: column;
        justify-content:center;
        flex-wrap: nowrap;
    }
    .person > .personHead > .personInfo h1 {
        margin-top: 5%;
    }
    .person > .personHead > .personInfo h2 {
        margin-top: 5%;
        font-size: 0.8em;
        text-align: center;
    }
    .person > .personHead img {
        align-items: center;
        width: 100%;
    }
    .person > .links {
        flex-direction: column;
        margin-bottom: 5%;
    }
    .person > .personHead > .personInfo p {
        width: 90%;
    }
}

.location {
    display: flex;
    text-align: center;

    flex-direction: column;
    align-items: center;
}

.location > .sphereGallery {
    margin-top: 1em;
    margin-bottom: 1em;
    display: grid;


    grid-template-columns: repeat(3, 1fr);
    gap: 10px 10px;

    height: 80%;
    width: 90%;
}
.location > .sphereGallery img {
    height: 100%;
    width: auto;
    border-radius: 10%;
}

@media(max-width: 1440px) {
    .location > .map {
        width: 100%;        
    }
    .location > .map iframe {
        height: 15em;
        width: 90%;
    }
    .location > .sphereGallery {
        display: flex;
        flex-direction: column;
    }
}

/* endBlock - Блок для анкеты
    questions - часть непосредственно с анкетой
 */
.endBlock {
    width: 60%;
    min-height: 250px;

    margin: 1% auto 1% auto;
    padding-bottom: 1%;
    
    display: flex;
    flex-direction: column;
    align-items: center;
}
.endBlock > .questions {    
    width: 80%;
    min-height: 20%;

    display: flex;
    flex-direction: column;
    align-items:    center;

    justify-content: flex-start;
    font-weight: 200;
}
.endBlock > .questions p {    
    width: 80%;
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}
.endBlock > .questions > .generalQeustion > .check p {
    margin-top: 1em;
    margin-bottom: 1em;
}

@media(max-width: 1440px) {
    .endBlock {
        width: 90%;
        min-height: 250px;

        margin: 1% auto 1% auto;
        padding-bottom: 1%;
        
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .endBlock > .questions p {    
        width: 100%;
    }
}




/* Задаем кастомизацию для полей ввода и чекбоксов*/

.lineEdit {
    width: 80%;
    background-color: rgba(255, 255, 255, 0.0);
    border: 2px solid black;
    text-align: center;
    font-family: "Montserrat";
    font-weight: 200;
    font-size: 0.8em;
}
/*чек-бокс пишем с нуля*/
.checkboxInput {
    -webkit-appearance: none; 
    -moz-appearance: none; 
    appearance: none; 
    
    width: auto;
    height: 1.5em;
    aspect-ratio: 1;
    
    background-color: rgba(255, 255, 255, 0.0);
    border: 2px solid black;
    border-radius: 0.3em;

    background-repeat: no-repeat; 
    background-position: center; 
    background-size: 80% 80%;
    
    cursor: pointer;

    align-items: center;
    justify-content: center;
}
.checkboxInput:checked { 
    background-color: rgba(0, 0, 0, 0.15); /* пример изменения фона при выборе */ 
    background-image: url("../img/V.png");
}
.customButtons {
    width: 64%;
    background-color: rgba(255, 255, 255, 0.3);
    border: 2px solid black;
    height: 32px;

    text-transform: uppercase;

    font-family: "Montserrat";
    font-size: 0.7em;
    font-weight: 200;

    font-style: normal;
}

.endBlock > .questions > .generalQeustion {
    width: 80%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

/* стили для вопросов  */
.check, .wideCheck  {
    display: flex;
    flex-direction: row;
    align-items: center;
}
.check {
    margin-left: 0;
    margin-right: 0 ;

    justify-content: center;
    min-width: 30%;
}
.wideCheck {
    justify-content: space-between;
    width: 100%;
}
.wideCheck > .customButtons {
    height: 1.25em;
    width: auto;
    aspect-ratio: 1;
}

/* КЛАССЫБ ДОБАВЛЯЕМЫЕ СКРИПТАМИ*/
.questionsBlock {
    width: 80%;
    display: flex;
    flex-direction: column;
    align-items: center;
}
div#guestAddingDiv {
    width: 100%;
}
.guest {
    display: flex; 
    flex-direction: column;
    align-items: center;
    margin-bottom: 1em;

}

@media(max-width: 1440px) {
    .endBlock {
        width: 90%;
    }
    .questions {
        width: 100%;
    }
    .questions p {
        text-align: center;
    }
    .questionsBlock {
        width: 100%;
    }
    .questionsBlock > .wideCheck {
        height: 2em;
    }
    .lineEdit {
        width: 100%;
    }
    .customButtons {
        margin-top: 0.5rem;
        width: 80%;
    }
    .guest > .wideCheck {
        align-items: start;
    }
    .guest > .wideCheck > .checkboxInput {
        padding-top: 0.5rem;
        align-self: center;
    }
    .guestAddingDiv > .customButtons {
        margin-top: 0.5rem;
        width: 100%;
    }
    .check {
        margin-left: 0;
        margin-right: 0;
    }
    .wideCheck p {
        text-align: start;
    }
    .endBlock > .questions > .generalQeustion {      
        width: 100%;
    }
    .check > .checkboxInput {
        margin-right: 0;
    }
}



