@font-face {
  font-family: 'Molot';
  font-weight: bold;
  src: url("./fonts/Molot.otf") format("opentype");
}

@font-face {
  font-family: 'Xarovv';
  src: url("./fonts/xarrovv.regular.otf") format("opentype");
}

body {
  background-color: #000;
  font-size: 16pt;
  color: #fff;
  margin: 0;
  padding: 0;
}

a {
  color: inherit;
}

main {
  container-name: page;
  container-type: inline-size;
  margin: auto;
  max-width: 1280px;
  width: 100%;
}

/* --- Title --- */

#title {
  background-color: #333;
  background-image: url('./images/ks.jpg');
  background-repeat: no-repeat;
  background-size: 100%;
  container-type: size;
  height: 56.25cqi;
  position: relative;
  perspective: 1px;
  overflow: hidden;
}

#title .flicker {
  animation: ks-flicker 2s infinite;
  height: 100%;
  left: 0;
  mix-blend-mode: overlay;
  opacity: 0;
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 1;
}

@keyframes ks-flicker {
  0% { opacity: 0; }
  50% { opacity: 0; }
  55% { opacity: 0.75; }
  60% { opacity: 0; }
}

#title .title {
  position: absolute;
  right: 1em;
  top: 0;
  z-index: 2;
}

#title .title h1 {
  animation: title-flicker 5s infinite;
  background-image: url('./images/rust.jpg');
  background-size: cover;
  background-clip: text;
  color: #d32800;
  filter: drop-shadow(0 0 5px rgba(140, 255, 255, 0.5));
  font-size: 11cqw;
  font-family: 'Molot';
  margin: 0;
  padding: 0;
  text-align: right;
  -moz-text-fill-color: transparent;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 0.05em #7f0f09;
}

#title .title h1>small {
  color: #7f0f09;
  display: block;
  font-size: 0.5em;
  -webkit-text-stroke-width: 0.05em;
}

#title .title h2 {
  font-family: 'Xarovv';
  font-size: 4cqw;
  margin: 1em 0 0 0;
  padding: 0;
  text-align: right;
  text-shadow: 0 0 10px #7f0f09;
}

@container page (min-width: 1024px) {
  #title .title {
    max-width: 70%;
  }

  #title .title h1 {
    font-size: 12cqw;
    max-width: 100%;
  }

  #title .title h2 {
    font-size: 2.5cqw;
  }
}

@keyframes title-flicker {
  0% { filter: drop-shadow(0 0 5px rgba(140, 255, 255, 0.5)); }
  33% { filter: drop-shadow(0 0 5px rgba(140, 255, 255, 0)); }
  66% { filter: drop-shadow(0 0 5px rgba(140, 255, 255, 0.75)); }
}

/* --- Synopsis --- */

#synopsis {
  background-color: rgb(34, 52, 88);
  background: linear-gradient(0deg, rgb(34, 52, 88) 0%, rgb(86, 156, 162) 100%);
  font-family: 'Xarovv';
  overflow: hidden;
  padding: 1em 1em 0 1em;
  position: relative;
  text-shadow: 0 0 10px #7f0f09;
}

#synopsis .decoration {
  background-repeat: no-repeat;
  position: absolute;
  height: 500px;
  opacity: 0.5;
  top: 0;
}

#synopsis .decoration.left {
  background-image: url('./images/russia_left.png');
  left: calc(-500px + 20cqw);
  mask-image: linear-gradient(to right, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0));
  min-width: 870px;
  z-index: 2;
}

#synopsis .decoration.right {
  background-image: url('./images/russia_right.png');
  right: calc(-385px + 30cqw);
  mask-image: linear-gradient(to left, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0));
  min-width: 270px;
  z-index: 1;
}

.fog-container {
  filter: blur(1px) grayscale(0.2) saturate(1.2) sepia(0.2);
  height: 500px;
  left: 0;
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 3;
  -webkit-filter: blur(1px) grayscale(0.2) saturate(1.2) sepia(0.2);
}

#synopsis #foglayer_01,
#synopsis #foglayer_02,
#synopsis #foglayer_03 {
  height: 100%;
  position: absolute;
  width: 200%;
}

#synopsis #foglayer_01 .image01,
#synopsis #foglayer_01 .image02,
#synopsis #foglayer_02 .image01,
#synopsis #foglayer_02 .image02,
#synopsis #foglayer_03 .image01,
#synopsis #foglayer_03 .image02 {
  float: left;
  height: 100%;
  width: 50%;
}

#synopsis #foglayer_01 {
  -webkit-animation: foglayer_01_opacity 10s linear infinite, foglayer_moveme 15s linear infinite;
  -moz-animation: foglayer_01_opacity 10s linear infinite, foglayer_moveme 15s linear infinite;
  animation: foglayer_01_opacity 10s linear infinite, foglayer_moveme 15s linear infinite;
}

#synopsis #foglayer_02,
#synopsis #foglayer_03 {
  -webkit-animation: foglayer_02_opacity 21s linear infinite, foglayer_moveme 13s linear infinite;
  -moz-animation: foglayer_02_opacity 21s linear infinite, foglayer_moveme 13s linear infinite;
  animation: foglayer_02_opacity 21s linear infinite, foglayer_moveme 13s linear infinite;
}

#synopsis #foglayer_01 .image01,
#synopsis #foglayer_01 .image02 {
  background: url("./images/fog1.png") center center/cover no-repeat transparent;
}

#synopsis #foglayer_02 .image01,
#synopsis #foglayer_02 .image02,
#synopsis #foglayer_03 .image01,
#synopsis #foglayer_03 .image02 {
  background: url("./images/fog2.png") center center/cover no-repeat transparent;
}

@-webkit-keyframes foglayer_01_opacity {
  0% { opacity: .1; }
  22% { opacity: .5; }
  40% { opacity: .28; }
  58% { opacity: .4; }
  80% { opacity: .16; }
  100% { opacity: .1; }
}

@-moz-keyframes foglayer_01_opacity {
  0% { opacity: .1; }
  22% { opacity: .5; }
  40% { opacity: .28; }
  58% { opacity: .4; }
  80% { opacity: .16; }
  100% { opacity: .1; }
}

@-o-keyframes foglayer_01_opacity {
  0% { opacity: .1; }
  22% { opacity: .5; }
  40% { opacity: .28; }
  58% { opacity: .4; }
  80% { opacity: .16; }
  100% { opacity: .1; }
}

@keyframes foglayer_01_opacity {
  0% { opacity: .1; }
  22% { opacity: .5; }
  40% { opacity: .28; }
  58% { opacity: .4; }
  80% { opacity: .16; }
  100% { opacity: .1; }
}

@-webkit-keyframes foglayer_02_opacity {
  0% { opacity: .5; }
  25% { opacity: .2; }
  50% { opacity: .1; }
  80% { opacity: .3; }
  100% { opacity: .5; }
}

@-moz-keyframes foglayer_02_opacity {
  0% { opacity: .5; }
  25% { opacity: .2; }
  50% { opacity: .1; }
  80% { opacity: .3; }
  100% { opacity: .5; }
}

@-o-keyframes foglayer_02_opacity {
  0% { opacity: .5; }
  25% { opacity: .2; }
  50% { opacity: .1; }
  80% { opacity: .3; }
  100% { opacity: .5; }
}

@keyframes foglayer_02_opacity {
  0% { opacity: .5; }
  25% { opacity: .2; }
  50% { opacity: .1; }
  80% { opacity: .3; }
  100% { opacity: .5; }
}

@-webkit-keyframes foglayer_03_opacity {
  0% { opacity: .8 }
  27% { opacity: .2; }
  52% { opacity: .6; }
  68% { opacity: .3; }
  100% { opacity: .8; }
}

@-moz-keyframes foglayer_03_opacity {
  0% { opacity: .8; }
  27% { opacity: .2; }
  52% { opacity: .6; }
  68% { opacity: .3; }
}

@-o-keyframes foglayer_03_opacity {
  0% { opacity: .8; }
  27% { opacity: .2; }
  52% { opacity: .6; }
  68% { opacity: .3; }
  100% { opacity: .8; }
}

@keyframes foglayer_03_opacity {
  0% { opacity: .8; }
  27% { opacity: .2; }
  52% { opacity: .6; }
  68% { opacity: .3; }
  100% { opacity: .8; }
}

@-webkit-keyframes foglayer_moveme {
  0% { left: 0; }
  100% { left: -100%; }
}

@-moz-keyframes foglayer_moveme {
  0% { left: 0; }
  100% { left: -100%; }
}

@-o-keyframes foglayer_moveme {
  0% { left: 0; }
  100% { left: -100%; }
}

@keyframes foglayer_moveme {
  0% { left: 0; }
  100% { left: -100%; }
}

@media only screen and (min-width: 280px) and (max-width: 767px) {
  #synopsis #foglayer_01 .image01,
  #synopsis #foglayer_01 .image02,
  #synopsis #foglayer_02 .image01,
  #synopsis #foglayer_02 .image02,
  #synopsis #foglayer_03 .image01,
  #synopsis #foglayer_03 .image02 {
    width: 100%;
  }
}

#synopsis .content {
  position: relative;
  z-index: 2;
}

#synopsis h2 {
  font-family: 'Molot';
  margin: 0 auto;
  text-align: center;
  width: 100%;
}

#synopsis p {
  margin: 1em auto;
  max-width: 768px;
}

/* --- Disclaimer --- */

#disclaimer {
  animation: psy 10s infinite;
  background-color: #7f0f09;
  background-image: url('./images/psy.jpg');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: 40% 30%;
  color: #fff;
  font-family: 'Xarovv';
  padding: 1em;
  text-shadow: 0 0 10px #000;
}

@keyframes psy {
  50% { filter: hue-rotate(25deg); }
}

#disclaimer h2 {
  font-family: 'Molot';
  margin: 0 auto;
  text-align: center;
  width: 100%;
}

#disclaimer p {
  margin: 1em auto;
  max-width: 768px;
}

/* --- Frames --- */

#frames h2 {
  font-family: 'Molot';
  margin: 0 auto;
  margin-top: 1em;
  text-align: center;
  width: 100%;
}

ul.gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  list-style: none;
  margin: 0;
  max-width: 100%;
}

ul.gallery>li {
  display: block;
  margin: 0;
  max-width: 100%;
}

ul.gallery>li img {
  height: auto;
  width: 100%;
}

@container page (min-width: 578px) {
  ul.gallery>li {
    margin: 0.5em;
    max-width: calc(50% - 1em);
  }

  ul.gallery>li img {
    max-height: 324.75px;
  }
}

/* --- Production --- */

#production {
  background-color: #000;
  background-position: 0 -100px;
  background-repeat: no-repeat;
  color: #fff;
  font-family: 'Xarovv';
  padding: 1em;
}

#production h2 {
  font-family: 'Molot';
  margin: 0 auto;
  text-align: center;
  width: 100%;
}

#production p {
  margin: 1em auto;
  max-width: 768px;
}

/* --- Backstage --- */

#backstage h2 {
  font-family: 'Molot';
  margin: 0 auto;
  text-align: center;
  width: 100%;
}

/* --- Footer --- */

#footer {
  background-color: #000;
  background-image: url('./images/footer.jpg');
  background-repeat: no-repeat;
  background-size: contain;
  background-position: 0 0;
  height: 350px;
  position: relative;
  width: 100%;
}

#footer .flicker {
  animation: fire-flicker 0.2s infinite;
  background: radial-gradient(circle, rgba(255, 255, 70, 1), rgba(255, 107, 0, 0.5), rgba(0, 0, 0, 0) 50%);
  height: 300px;
  left: 365px;
  opacity: 0;
  position: absolute;
  top: 40px;
  width: 200px;
}

@keyframes fire-flicker {
  0% { opacity: 0; }
  15% { opacity: 0; }
  50% { opacity: 0.1; }
  75% { opacity: 0; }
  100% { opacity: 0; }
}