html {
  font-size: 18px;
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: smooth;

  background-color: var(--body-bg);
  color: var(--body-color);

  --accent-color: #00a2ff;
  --dark-color: #202124;
  --body-bg: #F7F7F7;
  --body-color: #202124;
}

body {
  margin: 0;

  font-family: "e-Ukraine", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  font-size: 1rem;
  font-weight: lighter;
  line-height: 1.5;
  text-align: left;
}

::selection {
  background-color: var(--dark-color);
  color: var(--accent-color);
}

::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}

::-webkit-scrollbar-track {
  background-color: inherit;
  border-left: 0;
}

::-webkit-scrollbar-thumb {
  background-color: currentColor;
}

::-webkit-scrollbar-thumb:hover {
  background-color: currentColor;
}

* {
  transition-duration: 0.4s;
  transition-property: box-shadow, text-shadow, background, opacity, transform;
  box-sizing: border-box;
}

@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after {
    animation: none !important;
    transition: none !important;
  }
}

h1, h2, h3, h4, h5, h6 {
  font-family: "e-Ukraine Head Thin", Arial, serif;
  font-weight: 400;
  line-height: 1.2;
}

h1, h2, h3, h4, h5, h6, p, li {
  margin: 0 0 1rem 0;
}

h1:last-child, h2:last-child, h3:last-child, p:last-child, li:last-child {
  margin: 0;
}

a {
  text-decoration: none;
  color: inherit;
}

b, strong, .strong {
  font-weight: bolder;
}

img {
  max-width: 100%;
}

img.i, svg.i {
  height: 1em;
  line-height: 0.75em;
  vertical-align: -15%;
}

img.emoji {
  height: 1em;
  width: 1em;
  margin: 0 .05em 0 .1em;
  vertical-align: -0.1em;
}

img.emoji:only-child {
  margin: 0;
}

.loading {
  position: relative;
  pointer-events: none;
  z-index: 1;
  --spinner-size: 2rem;
}

.loading > * {
  opacity: 0.7;
}

.loading:after {
  content: '';
  position: absolute;
  top: calc(50% - (var(--spinner-size, 4rem) / 2));
  left: calc(50% - (var(--spinner-size, 4rem) / 2));
  display: inline-block;
  text-align: center;
  border: 0.125rem solid transparent;
  border-color: #ffffff #000000;
  border-radius: 50%;
  width: var(--spinner-size, 4rem);
  height: var(--spinner-size, 4rem);
  animation: spin 0.8s linear infinite;
  opacity: 1;
  z-index: 100;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.loading .loading:after {
  display: none;
}


.background {
  pointer-events: none;
  overflow: hidden;

  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;

  width: 100%;
  height: 100vh;

  opacity: 0.25;
  background-repeat: repeat;
  background-size: 200px 200px;
  background-image: url("/assets/images/noise.png");
  filter: invert(0.5);
}


a.link-with-padding {
  padding: 0.125rem 0.25em;
}


section {
  position: relative;
  display: block;
  width: 100%;
  margin: 0 auto 10vh auto;
  padding: 1rem 4vw 1rem 4vw;
}

section.copyright {
  margin-bottom: 0;
  font-size: 0.9rem;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  align-content: center;
  flex-wrap: wrap;

  position: relative;
  width: 100%;
  margin: 0 auto 1rem auto;
  padding: 1rem 4vw 1rem 4vw;
}

.logo {
  flex: 1 0 50%;
}

.logo-link {
  box-shadow: none;
}

.logo-link img {
  height: 4rem;
}

nav {
  flex: 1 1 50%;
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  align-content: center;
  align-items: center;
  font-size: 0.8em;
  gap: 1rem;
}

@media (max-width: 768px) {
  header {
    align-items: flex-start;
    align-content: flex-start;
  }

  nav {
    flex-direction: column;
    justify-content: flex-end;
    align-content: flex-end;
    align-items: flex-end;
  }
}

nav a {
  padding: 0.125rem 0.25em;
}

h1 {
  font-size: calc(1rem + 1.5vw);
}

a {
  box-shadow: 0 -1px currentColor inset;
}


/* HERO */
.hero-content {
  display: flex;
  justify-content: center;
  align-items: center;

  width: 100%;
  height: 40vh;
  margin: 5vh 0 5vh 0;
}

.hero-content-align {
  flex-grow: 1;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  /*justify-content: space-between;*/
  /*align-items: center;*/
  align-content: start;
}

.hero-content-side {
  flex: 1 0 50%;
  padding: 1rem 0
}

.hero-content-side.text-small {
  font-size: 0.75em;
}

@media (max-width: 768px) {
  .hero-content {
    margin-top: 0;
  }

  .hero-content-side {
    flex: 1 0 100%;
  }
}


/* PORTFOLIO */
.portfolio-box {
  position: relative;
  height: 75vh;
}

.portfolio-box-background {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 0;
  pointer-events: none;
}

.portfolio-box-background:after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;

  background: rgba(32, 33, 36, 0.75);
}

.portfolio-box-background youtube-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: block;
  background-position: center center;
  background-size: cover;
}

.portfolio-box-background youtube-background iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.portfolio-box-content {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;

  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 1rem;
  color: #ffffff;
}

.portfolio-box-content a {
  display: inline-block;
  box-shadow: none;
  background-color: var(--body-bg);
  color: var(--body-color);
  padding: 0.5rem 1.5rem
}


.apps-icons {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 8rem;
  margin: 2rem 0;
}

.apps-icons img {
  --size: 4rem;
  width: var(--size);
  height: var(--size);

  filter: drop-shadow(0 1rem 1rem var(--glow-color, #aafffc));
}

@media (max-width: 768px) {
  .apps-icons {
    justify-content: space-around;
    align-items: center;
    gap: 2rem;
  }
}

/* films category */
.films-category {
  display: grid;
  grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr));
  /*grid-auto-rows: minmax(0, 1fr);*/
  /*justify-content: space-between;*/
  /*align-items: flex-start;*/
  gap: 2rem;
}

.films-category-text {
  flex: 1 0 50%;
}

.films-category-example {
  display: grid;
  gap: 1rem;
}


.films-category-example {
  position: relative;
  flex: 1 0 50%;

  grid-template-columns: repeat(var(--cols, 1), minmax(0, 1fr));
  grid-auto-rows: minmax(0, 1fr);
}


@media (max-width: 768px) {
  .films-category {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }

  .films-category-example {
    grid-template-columns: repeat(var(--cols-mobile, var(--cols, 1)), minmax(0, 1fr));
  }
}


@media print {
  body {
    background-color: #ffffff;
    color: #000000;
  }

  .no-print {
    display: none;
  }

  h1 {
    font-size: 5rem;
  }


  a {
    box-shadow: none;
    outline: none;
    text-decoration: underline;
  }

  a[href]:after {
    content: " (" attr(href) ")";
    color: rgba(0, 0, 0, 0.8);
    text-decoration: none;
  }
}




.text-right {
  text-align: right;
}

.arrow-left, .arrow-right {
  position: relative;
  display: inline-block;
  width: 100%;
  height: 1em;
  line-height: inherit;
  vertical-align: -15%;
}

.arrow-left:before, .arrow-right:before {
  content: "";
  position: relative;
  top: 0;
  display: inline-block;
  width: 100%;
  height: 100%;
}

.arrow-left {
  background: url('data:image/svg+xml,<svg width="100" height="244" viewBox="0 0 100 243.6" xmlns="http://www.w3.org/2000/svg"><path fill="rgba(255,255,255,1)" d="m99.95 136.7-99.94 0.42v-31.75l100-0.41z" fill-rule="nonzero"/></svg>') center/auto 1em repeat-x;
}

.arrow-right {
  background: url('data:image/svg+xml,<svg width="100" height="244" viewBox="0 0 100 243.6" xmlns="http://www.w3.org/2000/svg"><path fill="rgba(255,255,255,1)" d="m99.95 136.7-99.94 0.42v-31.75l100-0.41z" fill-rule="nonzero"/></svg>') center/auto 1em repeat-x;
}

.arrow-left:before {
  left: -0.25rem;
  background: url('data:image/svg+xml,<svg width="1012" height="244" viewBox="0 0 1012 243.6" xmlns="http://www.w3.org/2000/svg"><path fill="rgba(255,255,255,1)" d="m138.4 0-138.4 120.8 140.5 122.8 20.92-23.91-94.93-83 945.5 0.42v-31.75l-945.6-0.41 92.89-81.02z" fill-rule="nonzero"/></svg>') left/auto 1em no-repeat;
}

.arrow-right:before {
  right: -0.25rem;
  background: url('data:image/svg+xml,<svg width="1012" height="244" viewBox="0 0 1012 243.6" xmlns="http://www.w3.org/2000/svg"><path fill="rgba(255,255,255,1)" d="m873.6 0 138.4 120.8-140.5 122.8-20.92-23.91 94.93-83-945.5 0.42v-31.75l945.6-0.41-92.89-81.02z" fill-rule="nonzero"/></svg>') right/auto 1em no-repeat;
}


.text-small {
  font-size: 0.8em;
}


