/* static/css/index.css */

/*************************************************/
.guide {
    height: 80px;
    display: flex;
    justify-content: space-between; /* Распределение элементов по всей ширине */
    align-items: center; /* Вертикальное выравнивание (если нужно) */
    /*width: 0rem 97rem;*/
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.9),  0 4px 10px rgba(0, 255, 255, 0.9);
    background-color: rgba(255, 255, 255, 0.8);
    margin: 1rem;
    border-radius: 8px;
}

.guide_link {
    text-align: center; /* Центрирование текста внутри каждого блока */
    flex: 1; /* Каждый блок занимает равное количество места */
}

.guide_link a {
    display: block; /* Если нужно, чтобы ссылка занимала весь размер блока */
    padding: 10px;
    color: inherit; /* Наследование цвета от родителя */
    text-decoration: none;
}

.guide_link a:hover {
    text-decoration: underline; /* Добавляет подчеркивание при наведении */
}

/*----------- Section 2: Animated Blocks --------*/
.block {
    opacity: 0;
    transform: translateX(0);
    transition: transform 1.5s ease-in-out, opacity 1.5s ease-in-out;
    box-sizing: border-box;
    height: calc(100% * 0.655);
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 1rem;
    padding: 1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.9),  0 4px 10px rgba(0, 255, 255, 0.9);
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
}

.block.hidden-left {
    transform: translateX(-100%);
}

.block.hidden-right {
    transform: translateX(100%);
}

.block.visible {
    opacity: 1;
    transform: translateX(0);
    transition: transform 1.5s ease-in-out, opacity 1.5s ease-in-out;
}

/* Section 3: Animated Blocks */
.extra-space {
    background-color: rgba(0, 0, 0, 0.5);
    min-height: 120px;
    height: auto;
    display: flex;
    align-items: center;
    padding: 3% 5%;
}

.fade-text {
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.fade-text.visible {
    opacity: 1;
}

/*========================Блоки===================================================*/
.image-block {
    flex: 0 1 30%;
    max-height: 100%;
    overflow: hidden;
    border-radius: 8px;
}

.image-block img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.info-block {
    flex: 1 1 65%;
    padding-left: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.text-block h2 {
    margin: 0;
    font-size: 1.5rem;
    color: #333;
}

.text-block p {
    margin-top: 0.5rem;
    color: #666;
}

.button-block {
    margin: 1rem 0;
    text-align: center;
    padding: 0.5rem 1rem;
    /* background-color: #007bff; */
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.button {
    padding: 0.5rem 1rem;
    background-color: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.button:hover {
    background-color: #0056b3;
}

/*------------------------- слоган ---------------------------------*/
.slogan {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Центрирование по вертикали */
}

.slogan div {
    font-size: 2.5rem;
    line-height: 1.5;
}

h1 {font-size: 2.3rem;}
/*------------------------- стили видео ---------------------------------*/
#video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

#video-container video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    background-size: cover;
    z-index: -1;
}

/*----------------------------------- video----------------------------------*/
#bg_video { 
    position: fixed;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -100;
    transform: translateX(-50%) translateY(-50%);
    transition: 1s opacity;
}
/*------------------------------ Стили переключения языков -------------------*/
/* Language dropdown styled like .auth-links .link */
.auth-links .lang-select{
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  padding: 0.55rem 2.2rem 0.55rem 1.2rem; /* справа место под стрелку */
  border-radius: 999px;

  color: deepskyblue;
  font-weight: 700;
  letter-spacing: 0.2px;

  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;

  font: inherit;
  line-height: 1;
  cursor: pointer;
}

/* hover / active как у кнопки */
.auth-links .lang-select:hover{
  background: rgba(0, 0, 0, 0.6);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45);
  transform: translateY(-1px);
}
.auth-links .lang-select:active{
  transform: translateY(0);
}

/* focus-visible как у кнопки */
.auth-links .lang-select:focus-visible{
  outline: 2px solid rgba(255, 255, 255, 0.9);
  outline-offset: 3px;
}

/* стрелка справа (белая), чтобы выглядело как dropdown */
.auth-links .lang-select{
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(255,255,255,.95) 50%),
    linear-gradient(135deg, rgba(255,255,255,.95) 50%, transparent 50%);
  background-position:
    calc(100% - 16px) 52%,
    calc(100% - 11px) 52%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

/* сами пункты в выпадающем списке (внутреннее меню браузера) */
.auth-links .lang-select option{
  color: #111;
}
/*----------------------------------------------------------------*/