/*! HTML5 Boilerplate v9.0.0-RC1 | MIT License | https://html5boilerplate.com/ */

/* main.css 3.0.0 | MIT License | https://github.com/h5bp/main.css#readme */
/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
  color: #222;
  font-size: 1em;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  box-sizing: border-box;

}
*,
*::before,
*::after {
  box-sizing: inherit;   /* наследует border-box от html */
}
/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Customize the background color to match your design.
 */

::-moz-selection {
  background: none;
  text-shadow: none;
  color: var(--color-r);
}

::selection {
  background: none;
  text-shadow: none;
  color: var(--color-r);
}

/*
 * A better looking default horizontal rule
 */

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
  resize: vertical;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

@media (max-width: 600px) {
  html, body {
  }
}

@font-face {
  font-family: 'HS_LunaObscura';
  src: url('../hs_lunaobscura/HS_LunaObscura.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

:root {
  --text-font-weight: 400;
  --text-font-size: 16px;
  --text-line-height: 150%;
  --text-font-style: normal;
  --color-r: rgba(255, 0, 0, 1);
  --color-g-1: rgba(13, 13, 13, 1);
  --color-g-2: rgba(128, 128, 128, 1);
  --color-g-3: rgba(53, 53, 53, 1);
  --padding-main: calc(8px + 0.6vw);
}

body {
  min-width: 360px;
  padding: 0;
  margin: 0;
  font-family: "Martian Mono", monospace;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-variation-settings: "wdth" 100;
  background-color: var(--color-g-1);
  color: var(--color-g-2);
  text-transform: uppercase;
  cursor: crosshair;
}

body.red-alert * {
  color: var(--color-r) ;
  fill: var(--color-r) ;
}
body.red-alert .cross {
  background: url("data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2254%22%20height%3D%2254%22%20viewBox%3D%220%200%2054%2054%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20d%3D%22M27%200V54%22%20stroke%3D%22%23ff0000%22%2F%3E%0A%3Cpath%20d%3D%22M54%2027L-1.99676e-06%2027%22%20stroke%3D%22%23ff0000%22%2F%3E%0A%3C%2Fsvg%3E") no-repeat center center;
}

body.red-alert .red-button {
color: var(--color-g-1) !important;
}


/*body.red-alert .text-settings .button, body.red-alert .text-settings .checkbox {
  border-color: var(--color-r);
}
*/

img.big {
  max-width: 100%;
  width: 100%;
}

a, .button, .checkbox, .audio-play, .letters div {
  cursor: pointer;
}

ul, li {
  padding: 0;
  margin: 0;
}

a {
  color: var(--color-r);
  text-decoration: none;
}

a:hover .g {
  color: var(--color-g-2);
  animation: Pulse 0.05s infinite alternate;
}

@keyframes Pulse {
  0% {
    color: var(--color-g-2);
  }

  100% {
    color: var(--color-g-3);
  }
}

span.g {
  color: var(--color-g-3);
}

p {
  max-width: 1500px;
}

.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 2s ease-out, transform 2s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.font-luna-obskura {
  font-family: "HS_LunaObscura";
  line-height: 100%;
  padding: 0;
  margin: 0;
}

.audio-play {
  width: 36px;
  height: 36px;
  border: 1px solid var(--color-g-3);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.audio-play:hover {
  border: 1px solid var(--color-g-2);
}

.audio-play.pause {
  background: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyBpZD0iTGF5ZXJfMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB2ZXJzaW9uPSIxLjEiIHZpZXdCb3g9IjAgMCAzNiAzNiI+CiAgPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDMwLjEuMCwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDIuMS4xIEJ1aWxkIDEzNikgIC0tPgogIDxkZWZzPgogICAgPHN0eWxlPgogICAgICAuc3QwIHsKICAgICAgICBmaWxsOiBub25lOwogICAgICB9CgogICAgICAuc3QxIHsKICAgICAgICBmaWxsOiByZWQ7CiAgICAgIH0KICAgIDwvc3R5bGU+CiAgPC9kZWZzPgogIDxyZWN0IGNsYXNzPSJzdDAiIHdpZHRoPSIzNiIgaGVpZ2h0PSIzNiIvPgogIDxwYXRoIGNsYXNzPSJzdDEiIGQ9Ik0xNCwyNHYtMTJsMTAsNi0xMCw2WiIvPgo8L3N2Zz4=) no-repeat center center;
  background-size: 100%;
}

.audio-play.playing {
  background: url(data:image/gif;base64,R0lGODlhJAAkAIABAP8AAP///yH/C05FVFNDQVBFMi4wAwEAAAAh/wtYTVAgRGF0YVhNUDw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDEwLjAtYzAwMCA3OS5kMDRjYzE2OTgsIDIwMjUvMDcvMDItMTI6MTg6MTMgICAgICAgICI+IDxyZGY6UkRGIHhtbG5zOnJkZj0iaHR0cDovL3d3dy53My5vcmcvMTk5OS8wMi8yM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GAf359fHt6eXh3dnV0c3JxcG9ubWxramloZ2ZlZGNiYWBfXl1cW1pZWFdWVVRTUlFQT05NTEtKSUhHRkVEQ0JBQD8+PTw7Ojk4NzY1NDMyMTAvLi0sKyopKCcmJSQjIiEgHx4dHBsaGRgXFhUUExIREA8ODQwLCgkIBwYFBAMCAQAAIfkECTIAAQAsAAAAACQAJAAAAkCMj6nL7Q+jnLTai7PevPsPIsAYimRpjEB6eiq7fm8wu2fdzTint/nt4wFjtthu0yOWjrIg6gmNSqfUqvWKbRQAACH5BAUyAAEALAAAAAAkACQAAAI8jI+py+0Po5y02ouz3rz7DzbAGCIjAJ6G+rGs55Kt/HYxOuM1d6e0DPvhgjqgzRjalZbMpvMJjUqn1E4BADs=) no-repeat center center;
  background-size: 100%;
}

.title h1 {
  max-width: 380px;
  font-size: calc(16px + 1vw);
}

.eye-icon{
  max-width: 120px;
  width: calc(60px + 5vw);
}

.cross {
  width: 4vw;
  height: 4vw;
  background: url("data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2254%22%20height%3D%2254%22%20viewBox%3D%220%200%2054%2054%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20d%3D%22M27%200V54%22%20stroke%3D%22%234F4F4F%22%2F%3E%0A%3Cpath%20d%3D%22M54%2027L-1.99676e-06%2027%22%20stroke%3D%22%234F4F4F%22%2F%3E%0A%3C%2Fsvg%3E") no-repeat center center;
}



.crosses {
  display: flex;
  width: 100%;
  align-items: flex-start;
  position: relative;
  padding: var(--padding-main);
  gap: var(--padding-main);
  flex-wrap: nowrap;
  flex-direction: row;
  justify-content: space-between;
}

.paralax-text {
  width: 100%;
  display: flex;
  align-items: center;
  position: relative;
}

.paralax-text p {
    font-family: 'HS_LunaObscura';
    line-height: 100%;
    margin: 0;
    font-size: 15vw;
    white-space: nowrap;
    font-feature-settings: "ss01";
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
/*  will-change: transform;
  transform: translateX(0);      
  transition: transform 0.5s ease;   */
}

.paralax-text p > span{

}
.paralax-text p > span:nth-child(1){
  text-align: left;
}
.paralax-text p > span:nth-child(2){
  text-align: center;
}
.paralax-text p > span:nth-child(3){
  text-align: right;
}

.big-text {
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    position: relative;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 40px
}

.big-text p {
  font-family: 'HS_LunaObscura';
  line-height: 100%;
  margin: 0;
  font-size: calc(24px + 5vw);            
  font-feature-settings: "ss01";
  text-align: center;
  max-width: 1200px;
}

.images-row img, .images-row video {
  width: 50%;
  object-fit: cover;
}

.images-row {
  display: flex;
  flex-direction: row;
  justify-content: center;
  flex-wrap: wrap;
}

.main-text {
  display: flex;
  position: relative;
  overflow: hidden;
  object-fit: cover;
  padding: var(--padding-main);
  flex-direction: column;
}

.row > svg {
  width: 100%;
  height: auto;
  fill: var(--color-g-2);
}

.text-test .text-cyr, .text-test .text-lat {
  width: 100%;
  font-size: calc(7.6vw);
  font-family: "HS_LunaObscura";
  line-height: 110%;
  margin: 0;
  text-wrap: nowrap;
  white-space: nowrap;
}

.text-settings {
  display: flex;
  padding: var(--padding-main);
  flex-wrap: nowrap;
  justify-content: space-between;
  flex-direction: row;
}

.text-settings .button, .text-settings .checkbox {
  position: relative;
  border: 1px solid var(--color-g-3);
  width: 100%;
  padding: var(--padding-main);
  text-wrap: nowrap;
  white-space: nowrap;
  margin-left: -1px;
  margin-top: -1px;
  z-index: 1;
  color: var(--color-g-3);
}

.red-button {
  position: relative;
  box-sizing: content-box;
  padding: 16px 32px;
  text-wrap: nowrap;
  white-space: nowrap;
  color: var(--color-g-1);
  background-color: var(--color-r);
  box-shadow: 0 0 30px rgba(255, 0, 0, 0.5);
}

.red-button:hover {
  box-shadow: 0 0 50px rgba(255, 0, 0, 0.5);
}

.text-settings .checkbox:before {
  content: "";
  font-family: "HS_LunaObscura";
  margin-right: 8px;
}
.text-settings .checkbox.active:before {
  color: var(--color-r);
  content: "";
}

.text-settings .checkbox.active {
  color: var(--color-g-2);

}



.text-settings .button:hover, .text-settings .checkbox:hover {
  border: 1px solid var(--color-g-2) !important;
  z-index: 3;
  color: var(--color-g-2);
}

.text-settings .button.active {
  border: 1px solid var(--color-g-3);
  background-color: var(--color-g-3);
  color: var(--color-g-2);
  z-index: 2;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.text-test {
  font-feature-settings: var(--features, normal);
}

.text-test.ss01 {
  --features: "ss01";
}

.text-test.ss02 {
  --features: "ss02";
}

.text-test.ss01.ss02 {
  --features: "ss01", "ss02";
}

.letters {
  display: flex;
  color: var(--color-g-2);
  font-size: 42px;
  font-family: HS_LunaObscura;
  font-weight: 400;
  line-height: 100%;
  flex-wrap: wrap;
  padding: 8px var(--padding-main);
  justify-content: center;
  gap: var(--padding-main);
}

.letters div {
  display: flex;
  padding: var(--padding-main);
  width: calc(50px + 6vw);
  height: calc(50px + 6vw);
  
  border: 1px solid #222;
  flex-wrap: wrap;
  flex-direction: row;
  justify-content: center;
  align-content: center;
  transition: color ease 5s;
  margin: -1px;
  position: relative;
  font-size: calc(16px + 2vw);
  transition: all 3s ease;
  border-radius: 16px;
}

.letters div:hover {
  color: var(--color-r);
  transition: none;
  border: 1px solid #222;
  font-feature-settings: "ss01", "ss02";
border: 1px solid var(--color-g-3);

}

.letters div:hover:before {
  content: "copy";
  font-family: "Martian Mono", monospace;
  font-size: 10px;
  position: absolute;
  top: 16px;
  margin: 0;
  padding: 0;
  line-height: 0;
  color: var(--color-g-3);
  transition: none;
}

.letters div.copied:before {
  display: none;
  transition: none;
}

.letters div.copied:after {
  opacity: 1;
  transition: none;
}

.letters div:after {
  content: "copied";
  font-family: "Martian Mono", monospace;
  font-size: 10px;
  position: absolute;
  top: 16px;
  margin: 0;
  padding: 0;
  line-height: 0;
  opacity: 0;
  color: var(--color-g-2);
}

.letters-content {
  padding: 80px 0;
}

section.section-text-test {
  background-color: #020202;
}

section .content {
  display: flex;
  width: 100%;
  height: 100%;
  overflow: hidden;
  flex-direction: column;
  justify-content: space-between;
  gap: 4vh;
}

.content p {
  padding: 0;
  margin: 0;
}

header {
  position: sticky;
  top: 0;
  width: 100%;
  overflow: hidden;
  background-color: rgb(15 15 15 / 60%);
  z-index: 10;
  backdrop-filter: blur(30px);
}

.menu {
  padding: calc(var(--padding-main) / 4) var(--padding-main) !important;
  align-items: center !important;
  height: 60px;
  align-content: center;
}

.menu-item {
  text-wrap: nowrap;
  white-space: nowrap;
  height: 60px;
  padding: 0;
}

section.full {
  overflow: hidden;
  position: relative;
}

section.dot-bg {
  background-image: url(../img/bg-dots.png);
}

section.hug {
  overflow: hidden;
  position: relative;
}

section.full .bg {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  width: 100%;
  position: absolute;
  top: 0;
  z-index: -1;

}

section.hug .bg {
  height: 100%;
  width: 100%;
  top: 0;
  z-index: -1;
}

section .bg video, section .bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.h .bg video, .h .bg img {
  min-height: 50vh;
}

.column {
  display: flex;
  align-items: center;
  position: relative;
  flex: 1;
  flex-grow: 1;
  gap: 8px;
}

.row {
  display: flex;
  width: 100%;
  align-items: flex-start;
  position: relative;
  padding: var(--padding-main);
  gap: var(--padding-main);
  flex-wrap: nowrap;
  flex-direction: row;
  justify-content: space-between;
}

.letter-tytle {
  width: 100%;
  text-align: center;
}

.column:nth-child(1) {
  justify-content: left;
  text-align: left;
}

.column:nth-child(2) {
  justify-content: center;
  text-align: center;
}

.column:nth-child(3) {
  justify-content: right;
  text-align: right;
}

.footer-item {
  text-wrap: nowrap;
}

/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden,
[hidden] {
  display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 *
 * 1. For long content, line feeds are not interpreted as spaces and small width
 *    causes content to wrap 1 word per line:
 *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
 */

.visually-hidden {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
  /* 1 */
}

/*
 * Extends the .visually-hidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visually-hidden.focusable:active,
.visually-hidden.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  white-space: inherit;
  width: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
  visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * The use of `table` rather than `block` is only necessary if using
 * `::before` to contain the top-margins of child elements.
 */

.clearfix::before,
.clearfix::after {
  content: "";
  display: table;
}

.clearfix::after {
  clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
  /* Style adjustments for viewports that meet the condition */
}

@media print,
  (-webkit-min-device-pixel-ratio: 1.25),
  (min-resolution: 1.25dppx),
  (min-resolution: 120dpi) {
  /* Style adjustments for high resolution devices */
}

@media only screen and (max-width: 1200px) and (orientation: portrait) {
  .images-row img,
  .images-row video {
    width: 100%;
    object-fit: cover;
  }

}

@media only screen and (max-width: 1000px) {
  .footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-direction: column;
  }
}

@media only screen and (max-width: 900px) {
    .big-text p {
    font-size: 10vw;
  }
       body {
    font-size: calc(8px + 1vw);
  }
}
@media only screen and (max-width: 750px) {
  .text-settings {
    display: flex;
    padding: var(--padding-main);
    flex-wrap: nowrap;
    justify-content: space-between;
    flex-direction: column;
  }
}

@media only screen and (max-width: 620px) {
  .menu-item a .g {
    display: none;
  }

  .audio-play {
    width: calc(12px + 4vw);
    height: calc(12px + 4vw);
  }
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
  *,
  *::before,
  *::after {
    background: #fff !important;
    color: #000 !important;
    /* Black prints faster */
    box-shadow: none !important;
    text-shadow: none !important;
  }

  a,
  a:visited {
    text-decoration: underline;
  }

  a[href]::after {
    content: " (" attr(href) ")";
  }

  abbr[title]::after {
    content: " (" attr(title) ")";
  }

  /*
   * Don't show links that are fragment identifiers,
   * or use the `javascript:` pseudo protocol
   */
  a[href^="#"]::after,
  a[href^="javascript:"]::after {
    content: "";
  }

  pre {
    white-space: pre-wrap !important;
  }

  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }

  tr,
  img {
    page-break-inside: avoid;
  }

  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }

  h2,
  h3 {
    page-break-after: avoid;
  }
}
