/* Index page */
@font-face {
  font-family: RubikOne;
  src: url(/static/RubikOne-Regular.ttf);
}

@font-face {
  font-family: MyriadPro;
  src: url(/static/MYRIADPRO-REGULAR.OTF);
}

.pc-snap {
  height: 100vh;
  width: 100%;
  max-width: calc(100vh * 1.8);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-content: center;
  margin: 0 auto;
}

html {
  overflow-x: hidden;
  overflow-y: hidden;
}

body {
  position: relative;
  background: rgb(0, 85, 145);
  background: linear-gradient(180deg, rgba(0, 85, 145, 1) 0%, rgba(31, 189, 233, 1) 100%);
  padding: 0;
  margin: 0;
  font-family: RubikOne;
  font-size: min(.95vw * 2, 1.65vh * 2);
  color: #fff;
  max-width: 100vw;
  overflow-x: hidden;
  overflow-y: hidden;
}

img {
  max-width: 100%;
  height: auto;
  align-self: center;
}

a:hover img,
.search-box:hover {
  transform: scale(1.05);
  transition: all 0.1s;
}

p {
  max-width: 100%;
  height: auto;
  align-self: center;
  text-align: center;
}

#container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  max-width: 70%;
  margin-bottom: 0;
  margin-left: auto;
  margin-right: auto;
  padding-bottom: 0%;
}

.container-margin-top {
  margin-top: -12%;
}

#gospod {
  opacity: 0%;
}

.gospod {
  max-width: 20%;
  padding-bottom: 5%;
}

.gospod-3 {
  max-width: 35%;
  padding-bottom: 0%;
}

.search-box {
  opacity: 0%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  max-width: 70%;
  z-index: 5;
}

.search-img {
  position: relative;
}

.search-img input,
.search-img button {
  position: absolute;
  top: 50%;
  left: 50%;
}

.search-img input {
  width: 80%;
  height: 75%;
  font-family: MyriadPro;
  font-size: min(.95vw * 2, 1.65vh * 2);
  transform: translate(-55%, -57%);
  outline: none;
  border: 0;
  background-color: #f7f7f7;
  padding: 0px 2%;
  box-sizing: border-box;
}

.search-img button {
  width: 12%;
  height: 70%;
  transform: translate(300%, -60%);
  cursor: pointer;
  background-color: transparent;
  border: 0;
}

#quote {
  font-size: min(.95vw * 2.5, 1.65vh * 2.5);
}

#from {
  display: none;
  margin-top: 0%;
  opacity: 75%;
  font-size: min(.95vw * 2.25, 1.65vh * 2.25);
}

#answerText {
  padding-left: 5%;
  padding-right: 5%;
}

#prompt {
  opacity: 0%;
  margin-top: 1%;
}

#neboNad,
#neboPod {
  position: absolute;
  bottom: -40%;
  left: 0%;
  transform-origin: bottom center;
  width: 110vw;
  object-fit: cover;
  z-index: -1;
}

#neboPod picture,
#neboPod img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#neboNad picture,
#neboNad img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#thumbs {
  flex-direction: row;
  justify-content: center;
  align-items: center;
  display: none;
  margin: 0 auto;
  padding-top: 5%;
  max-width: 50%;
}

#thumbs a {
  width: min(.95vw * 8, 1.65vh * 8);
  padding-left: 10%;
  padding-right: 10%;
  z-index: 2;
}

#ray-left {
  position: fixed;
  top: 66vh;
  left: -20vw;
  width: 20%;
  transform-origin: top center;
}

#ray-right {
  position: fixed;
  top: 66vh;
  right: -20vw;
  width: 20%;
  transform-origin: top center;
}

#overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0);
  z-index: -10;
}

.circle-rays {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  filter: brightness(200%) hue-rotate(-32.5deg);
}

#circle-rays {
  scale: 0;
}

/* Animations */
@keyframes reduce_brightness {
  0% {
    background: rgba(0, 0, 0, 0);
    /* Fully transparent */
  }

  100% {
    background: rgba(0, 0, 0, 0.25);
    /* Semi-transparent black */
  }
}

@keyframes light {
  0% {
    filter: brightness(100%);
    transform: scale(1);
  }

  50% {
    filter: brightness(150%) hue-rotate(-32.5deg) drop-shadow(0px 20px 50px black) drop-shadow(0px -5px 10px orange);
    transform: scale(1.05);
  }

  100% {
    filter: brightness(100%);
    transform: scale(1);
  }
}

@keyframes fade_in {
  0% {
    opacity: 0%;
  }

  100% {
    opacity: 100%;
  }
}

@keyframes fade_in_from {
  0% {
    opacity: 0%;
  }

  100% {
    opacity: 75%;
  }
}

@keyframes scale_in {
  0% {
    scale: 0%;
  }

  100% {
    scale: 100%;
  }
}

@keyframes fade_out {
  0% {
    opacity: 100%;
  }

  100% {
    opacity: 0%;
  }
}

@keyframes slide_in {
  0% {
    bottom: -40%;
  }

  100% {
    bottom: -3%;
  }
}

@keyframes slide_out {
  0% {
    bottom: -3%;
  }

  100% {
    bottom: -40%;
  }
}

@keyframes reduce_height {
  0% {
    height: auto;
  }

  100% {
    height: 0;
  }
}

@keyframes rotate_jesus {
  0% {
    transform: rotate(0deg);
  }

  25% {
    transform: rotate(15deg);
  }

  50% {
    transform: rotate(0deg);
  }

  75% {
    transform: rotate(-15deg);
  }

  100% {
    transform: rotate(0deg);
  }
}

.light-anim {
  animation: light 0.7s ease-in-out 1.3s,
    fade_in 0.3s ease-in-out 1.3s 1 forwards;
}

/* Support page */
#container2 {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  max-width: 90%;
  margin: 0 auto;
  margin-top: -7.5%;
}

#restart {
  max-width: 10%;
}

.pozotz {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
}

.pozhertvovanie,
.otziv {
  max-width: 35%;
  padding-top: 5%;
}

.pozertvovanie {
  padding-right: 9.5vw;
}

.otziv {
  padding-left: 9.5vw;
}

#oblakoLeft {
  position: fixed;
  left: -2.5vw;
  top: 20vh;
  width: min(.95vw * 10, 1.65vh * 10);
  height: auto;
  z-index: 0;
}

#oblakoRight {
  position: fixed;
  right: -5vw;
  top: 20vh;
  width: min(.95vw * 10, 1.65vh * 10);
  height: auto;
  z-index: 0;
}

#neboNad2 {
  position: absolute;
  bottom: -3%;
  left: 0%;
  transform-origin: bottom center;
  width: 110vw;
  object-fit: cover;
  z-index: -1;
}

/* VERTICAL VERSION */
@media screen and (max-aspect-ratio: 2/3) and (orientation: portrait) {
  #container {
    max-width: 85%;
    align-self: flex-start;
  }

  .container-margin-top {
    margin-top: -60%;
    align-self: flex-start;
  }

  .search-box {
    max-width: 100%;
  }

  .gospod {
    max-width: 40%;
    padding-bottom: 10vh;
  }

  #prompt {
    padding-top: 3%;
    font-size: min(.95vw * 4.5, 1.65vh * 4.5);
  }

  .search-img input {
    font-size: min(.95vw * 4.5, 1.65vh * 4.5);
  }

  #neboNad,
  #neboNad2,
  #neboPod {
    width: 350vw;
  }

  #ray-left {
    left: -50vw;
  }

  #ray-right {
    right: -50vw;
  }

  .gospod-3 {
    max-width: 80%;
    padding-bottom: 5%;
  }

  #quote {
    font-size: min(.95vw * 6, 1.65vh * 6);
  }

  #from {
    font-size: min(.95vw * 5.0625, 1.65vh * 5.0625);
  }

  #thumbs {
    padding-top: 15%;
    max-width: 80%;
  }

  #thumbs a {
    width: min(.95vw * 20, 1.65vh * 20);
  }

  #oblakoLeft,
  #oblakoRight {
    width: min(.95vw * 30, 1.65vh * 30);
  }

  #oblakoRight {
    right: -15vw;
  }

  #oblakoLeft {
    left: -12vw;
  }

  .pozotz {
    flex-direction: column;
  }

  .pozhertvovanie,
  .otziv {
    padding: 0 0 0 0;
    max-width: 60%;
    padding-top: 15%;
  }

  #restart {
    max-width: 30%;
  }

}
