:root {
  --motionObjectSize: 15svh;
  --motionObjectLeft: 10%;
  --clipPathChange: 100%;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  color: #ffffff;
}

body {
  background-color: rgb(15, 15, 15);
}

a {
  text-decoration: none;
  color: black;
  transition: 0.25s;
}

a:hover {
  color: rgba(255, 255, 255, 0.9);
}

img {
  height: clamp(10vh, 20vh, 12vw);
  z-index: 1;
}

#scroll {
  position: fixed;
  top: 48%;
  left: -3vw;
  font-size: clamp(0.75em, 1.75em, 1.75vw);
  rotate: -90deg;
  user-select: none;
  animation-duration: 0.5s;
  animation-delay: 1s;
}

#scroll::before {
  content: "<< ";
  height: 100%;
  position: relative;
  top: 1px;
  animation: scrollMoveBottom 1s ease-in-out 1s 3 forwards;
}

#scroll::after {
  content: " >>";
  position: relative;
  top: 3px;
  height: 100%;
  animation: scrollMoveTop 1s ease-in-out 1s 3 forwards;
}

.otaznik{
  width: 100%;
  font-size: clamp(1em, 2em, 3vw);
  display: flex;
  justify-content: space-between;
}

@keyframes scrollMoveBottom {
  0% {
    left: 0px;
  }
  50% {
    left: -10px;
  }
  100% {
    left: 0px;
  }
}

@keyframes scrollMoveTop {
  0% {
    left: 0px;
  }
  50% {
    left: 10px;
  }
  100% {
    left: 0px;
  }
}

#fixedText {
  position: fixed;
  width: 100%;
  height: 100%;
  left: 50vw;
  top: 47.5%;
  font-size: 5vh;
  z-index: 5;
}

.displayNone {
  display: none;
}

#motionObject {
  width: var(--motionObjectSize);
  height: var(--motionObjectSize);
  background-image: url(./img/flashlight.png);
  background-size: cover;
  top: calc(50% - var(--motionObjectSize) / 2);
  left: var(--motionObjectLeft);
  cursor: pointer;
  position: fixed;
  z-index: 2;
}

#motionObject::before {
  content: "";
  position: absolute;
  width: 100vw;
  height: 100vh;
  left: 100%;
  top: calc(-50vh + var(--motionObjectSize) / 2);
  clip-path: polygon(0% 0%, 100% 0%, var(--clipPathChange) 50%, 100% 100%, 0% 100%);
  background-color: black;
}

.section {
  height: 100svh;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: clamp(1em, 2em, 1.5vw);
  gap: 2em;
  margin-top: 2%;
  padding-left: 15%;
  padding-right: 5%;
  color: rgb(15, 14, 14);
  scroll-snap-align: center;
}

#snap{
  height: 100svh;
  width: 100%;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
  user-select: none;
}

#snap #container {
  width: calc(100% - calc(var(--motionObjectLeft) + calc(var(--motionObjectSize) + 0.5vh)));
  margin-left: auto;
}

.letThereBeLight {
  background: linear-gradient(90deg, rgb(255, 255, 0), rgb(61, 61, 0));
}

@media (max-width: 767px) {
  .letThereBeLight {
    background: linear-gradient(180deg, rgb(255, 255, 0), rgb(61, 61, 0));
  }

  #scroll {
    position: fixed;
    top: 3%;
    left: 70%;
    rotate: 0deg;
  }

  #motionObject {
    background-size: cover;
    left: calc(50% - var(--motionObjectSize) / 2);
    top: 0;
    rotate: 90deg;
  }

  #motionObject::before {
    width: 100svh;
    height: 100vw;
    clip-path: polygon(0% 0%, 100% 0%, var(--clipPathChange) 50%, 100% 100%, 0% 100%);
    background-color: black;
    top: calc(-50vw + var(--motionObjectSize) / 2);
  }

  #fixedText {
    position: fixed;
    width: 100%;
    height: 100%;
    left: 32%;
    top: 47.5%;
    font-size: 5vw;
    z-index: 5;
  }

  #container {
    margin-left: 0 !important;
    display: flex;
    margin-top: var(--motionObjectSize);
  }

  .section {
    flex-direction: column;
    min-width: 100vw;
    height: calc(100svh - var(--motionObjectSize));
    padding: 0;
    padding-top: 30vh;
    padding-bottom: 5vh;
    margin-top: 0;
  }

  #snap {
    overflow-y: hidden;
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
    white-space: nowrap;
  }

  a {
    max-width: 85px;
    text-wrap: balance;
    text-align: center;
  }

  .otaznik{
    flex-direction: column;
    height: 100%;
    width: auto;
  }
}
