/* Reset */ *{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}



html, body{
        height: 100%;
	background-color: rgba(17, 25, 47);
	font-family: "Play", sans-serif;
	font-style: normal;
        font-weight: 400;
        letter-spacing: 1px;
        box-sizing: border-box;
        scroll-behavior: smooth;
}


body {
    min-height: 100svh; /* Small Viewport Height - stays constant */
}


h1{
        margin-top: 20px;
        margin-bottom: 40px;
        font-family: "Play", sans-serif;
        font-size: 1.5em;
        color: rgba(87, 255, 255);
        font-weight: 400;
        font-style: normal;
}



h2{
        position: relative;
        display: inline;
        margin-top: 10px;
        margin-bottom: 10px;
        font-family: "Play", sans-serif;
        font-size: 1.55em;
        color: rgba(155, 177, 255);
        font-weight: 400;
        font-style: normal;
}

h3 {
        font-family: "Play", sans-serif;
        font-size: 1.45em;
        color: rgba(100, 220, 240);
        font-weight: 400;
        font-style: normal;
}

p {
        font-family: "Play", sans-serif;
        font-size: 1.25em;
        color: rgba(220, 220, 255);
        font-weight: 400;
        font-style: normal;
}

a {
	text-decoration: none;
	margin-left: 0px;
	margin-right: 0px;
        text-decoration: none;
        color: rgba(220, 90, 125);
}



p:hover span {
    opacity: 1 !important;
}

.automatic {
  font-size: 1.2em;
}

.someheadline {
  padding: 25px 25px; /* Даем пространство тексту */
  text-align: left;
  /* Градиент, который начинается сверху темным и растворяется вниз */
    background: linear-gradient(
        to bottom, 
        rgba(25, 25, 55, 0.85) 0%, 
        rgba(25, 25, 55, 0.55) 77%, 
        transparent 100%
    );
}

.someheadline h2, .someheadline h3 {
    margin: 10px 0;
    /* Можно добавить легкое свечение тексту для гиперреализма */
    text-shadow: 0 0 15px rgba(178, 178, 255, 0.2);
}


.virtuematrix .start {
    margin-top: 0;      /* Убираем лишний отступ сверху */
    margin-bottom: 25px; 
}

.virtuematrix {
/* ЦЕНТРИРОВАНИЕ */
/* 1. Центрирование */
  margin-top: 77px;
  margin-left: auto;
  margin-right: auto;

  /* 2. ШИРИНА: */
  width: 100%;           /* По умолчанию 100% (для мобилок) */
  max-width: 789px;      /* Но не шире 789px на десктопе */
  box-sizing: border-box; /* КРИТИЧНО: чтобы padding не раздувал ширину больше 100% */
  
  background-color: rgba(27, 57, 87, 0.87);
  background: 
        /* The "Grime" layer */
        radial-gradient(circle at 30% 40%, rgba(0, 0, 0, 0.2), transparent),
        /* Base Conic Gradient */
        conic-gradient(
            from 180deg at 50% 50%,
            rgba(7, 34, 77, 1) 0deg,
            rgba(15, 45, 95, 1) 120deg,
            rgba(7, 34, 77, 1) 200deg,
            rgba(15, 45, 95, 1) 310deg,
            rgba(7, 34, 77, 1) 360deg
        );

  background-blend-mode: color-dodge, multiply, normal;
    
  /* Тень: смещение 0 0, размытие 7px, бирюзовый с прозрачностью 15% */
  box-shadow: 0 0 7px rgba(0, 200, 220, 0.15), 0 0 20px rgba(0, 200, 220, 0.05);
  padding: 55px 33px 55px 33px;
  max-width: 789px;
  
  border-left: 1px solid rgb(87, 100, 255);
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* Текст внутри всё еще слева */
    
  justify-content: center;
  text-align: left;
}


.footer {
  margin-top:77px;
  color:rgb(220,220,255);
  position: relative;
  width: 100%;
  line-height:1.8em;
  font-size:1.0em;
  margin-top: 20px;       /* Отступ футера от основного блока */
  text-align: center; 
}


.excite {
    /* Растягиваем на всю ширину и высоту (высота по желанию) */
    width: 100%;
    flex-direction: column; /* Элементы (matrix и footer) будут друг под другом */
    align-items: center;    /* Центрируем содержимое по горизонтали */
    justify-content: center; /* Если нужно центрирование и по вертикали */
    padding-top: 5vh;    /* Отступ сверху, чтобы не прилипало к крыше */
    padding-bottom: 5vh;
    padding: 20px;          /* Чтобы на мобилках не прилипало к краям */
    display: block;
}


.welcome {
  width: 100%;
  /* Минимальная высота на весь экран, чтобы фон не обрезался */
  min-height: 100vh; 
  margin: auto;
  padding-bottom: 34px;
  z-index: 1;
  overflow-y: auto;
  display: block;
  position: relative;
  /* 1. Цвет-заглушка (пока грузится фото) 
     2. Градиент поверх фото (для тонировки)
     3. Сама картинка */
  background: rgba(17, 8, 71, 0.17)
    url("/static/img/imaginerydarklab.png"); /* Не забудьте проверить путь к статике */
  /* Фиксация и масштабирование */
  background-attachment: fixed;
  background-size: cover;      /* Закрывает 100% видимой области по меньшей стороне */
  background-position: center; /* Центрирует изображение */
  background-repeat: no-repeat;
  opacity: 1;
  animation: fade 1.5s linear;
}


.chapterlink {
    text-decoration: none; /* Убираем дефолтное подчеркивание */
    color: rgb(87, 225, 255); /* Исходный цвет (как у футера) */
    transition: all 0.3s ease; /* Плавная смена цвета и подчеркивания */
    display: block; /* Чтобы ссылка занимала всю ширину строки и по ней было легче попасть */
    margin-top: 17px;
}


.chapterlink:hover {
    color: rgb(145, 255, 255); /* Цвет при наведении */
    text-decoration: underline; /* Появление подчеркивания */
    /* Опционально: можно добавить небольшое свечение */
    text-shadow: 0 0 8px rgba(125, 225, 255, 0.4);
    /* Устанавливаем толщину линии */
    text-decoration-thickness: 1px;
    /* Сдвигаем линию чуть ниже от текста (опционально) */
    text-underline-offset: 4px;
}

/* Сбрасываем лишние отступы у h3 внутри ссылок, чтобы не ломать логику маржинов */
.chapterlink h3 {
    margin: 0;
    font-weight: 400;
}


.music{
    color: rgb(255,99,178);
    text-align: center; 
    margin-top:25px;
    margin-bottom:25px;
    width: 100%;

}

.swords{
    color: rgb(178,178,255);
    margin-top:25px;
    margin-bottom:25px;
    line-height: 1.5; /* Межстрочный интервал 1.1 */    
}


@media only screen and (max-width: 577px) {
  .sizing {
    padding-top:58px;
  }
  .sizingX {
    padding-bottom:48px;
    margin-left: 0px;
  }
  h2, info {
    font-size: 1.2em;
  }
  p {
    font-size: 1.05em;
  }
  .sizing_bottom {
    padding-bottom:25px;
  }
  .bottom {
    font-size: 0.7em;
  }

}






