@font-face {
  font-family: "Remington";
  src: url("../fonts/vtRemingtonPortable.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

body {
  font-family: "Remington", sans-serif !important;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  color: #343434;
  background-color: #fff7d2;
  margin: 0;
  padding: 0;
  min-height: 100%;
}

a {
  cursor: pointer;
}

a:hover {
  text-decoration: none;
}

p {
  font-size: 1.5em;
}

section {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 1em;
}

footer {
  width: 100%;
  height: 100px;
}

[type="radio"]:checked,
[type="radio"]:not(:checked) {
  position: fixed;
  left: -9999px;
  outline: none;
}

input[type="radio"]:focus {
  outline: none;
}

.checkbox:checked + label,
.checkbox:not(:checked) + label {
  position: relative;
  cursor: pointer;
  margin: 0.25em auto;
  text-align: center;
  margin-right: 6px;
  margin-left: 6px;
  display: inline-block;
  width: 80px;
  height: 80px;
  border: 3px solid #30939f;
  background-size: cover;
  background-position: center;
  box-sizing: border-box;
  -webkit-transition: all 0.2s ease;
  transition: all 0.2s ease;
  animation: border-transform 6s linear infinite alternate forwards;
  -webkit-animation-play-state: paused;
  -moz-animation-play-state: paused;
  animation-play-state: paused;
}

.checkbox:checked + label {
  box-shadow: 0 3px 7px 0 rgba(10, 10, 10, 0.5);
  transform: scale(1.3);
  -webkit-animation-play-state: running;
  -moz-animation-play-state: running;
  animation-play-state: running;
}

#image-container,
#thumbnail-container {
  position: relative;
  display: flex;
  flex-wrap: wrap;
}

#thumbnail-container {
  margin-top: min(100vw, 50vh, 1040px);
  max-width: 100%;
  width: 1080px;
  height: auto;
  justify-content: start;
}

#thumbnail-container>h2, section>h2 {
  width: 100%;
  margin: 2em 0 0 0;
  font-size: 2em;
}

#thumbnail-container>p, section>p {
  width: 100%;
  margin: 0 0 1em 0;
  line-height: 1.25em;
}

#thumbnail-container>h2:first-child {
  margin-top: 1em;
}

#thumb-mask {
  position: fixed;
  margin: 0;
  top: 0;
  width: 100%;
  height: 50px;
  background-color: #fff7d2;
  z-index: 998;
}

#image-container {
  width: 1080px;
  position: fixed;
  margin: 1em 0 0 -1em;
  top: 0;
  max-width: 100%;
  height: auto;
  order: -1;
  background-color: #fff7d2;
  z-index: 999;
  display: flex;
  justify-content: center;
  cursor: pointer;
}

#image-container > img {
  position: absolute;
  max-width: 97%;
  max-height: 50vh;
  width: auto;
  height: auto;
  object-fit: contain;
  display: flex;
  list-style: none;
  border: none;
  background-color: unset;
  background-size: cover;
  background-position: center;
  border-radius: 50%;
  font-weight: 900;
  font-size: 16px;
  letter-spacing: 2px;
  line-height: 2.7;
  color: #343434;
  writing-mode: vertical-rl;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 5px 35px 0 rgba(10, 10, 10, 0.8);
  -webkit-transition: all 0.5s ease;
  transition: all 0.5s ease;
}

#image-container > img:first-child {
  position: relative;
}

.logo {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: block;
  z-index: 1000;
  transition: all 250ms linear;
}

.logo img {
  height: 165px;
  width: auto;
  display: block;
  filter: drop-shadow(0 0 10px rgba(255, 247, 210, 1))
          drop-shadow(0 0 15px rgba(255, 247, 210, 0.9))
          drop-shadow(0 0 20px rgba(255, 247, 210, 0.8));
  transition: height 0.3s ease-in-out;
}

@keyframes border-transform {
  0%,
  100% {
    border-radius: 63% 37% 54% 46% / 55% 48% 52% 45%;
  }

  14% {
    border-radius: 40% 60% 54% 46% / 49% 60% 40% 51%;
  }

  28% {
    border-radius: 54% 46% 38% 62% / 49% 70% 30% 51%;
  }

  42% {
    border-radius: 61% 39% 55% 45% / 61% 38% 62% 39%;
  }

  56% {
    border-radius: 61% 39% 67% 33% / 70% 50% 50% 30%;
  }

  70% {
    border-radius: 50% 50% 34% 66% / 56% 68% 32% 44%;
  }

  84% {
    border-radius: 46% 54% 50% 50% / 35% 61% 39% 65%;
  }
}

@media screen and (max-width: 1024px) {
  .logo img {
    height: 120px;
    animation: shrink-logo 0.3s ease-in-out;
  }
}

@media screen and (max-width: 768px), screen and (max-height: 768px) {
  .logo img {
    height: 100px;
    animation: shrink-logo 0.3s ease-in-out;
  }

  p {
    font-size: 1em;
  }

  #thumbnail-container>h2, section>h2 {
    margin: 1.5em 0 0 0;
    font-size: 1.5em;
  }
  .checkbox:checked + label,
  .checkbox:not(:checked) + label {
    width: 70px;
    height: 70px;
  }
}

@media screen and (max-width: 480px), screen and (max-height: 480px) {
  .logo {
    bottom: 20px;
    right: 20px;
  }

  .logo img {
    height: 80px;
    animation: shrink-logo 0.3s ease-in-out;
  }

  p {
    font-size: .75em;
  }

  #thumbnail-container>h2, section>h2 {
    margin: 1em 0 0 0;
    font-size: 1em;
  }

  .checkbox:checked + label,
  .checkbox:not(:checked) + label {
    width: 60px;
    height: 60px;
  }
}

/* @media screen and (min-aspect-ratio: 1/1) {
  #thumbnail-container {
    margin-top: calc(100vh - 3em);
  }
} */

/* @media screen and (min-width: 1115px) {
  #thumbnail-container {
    margin-top: 1112px;
  }
} */

@keyframes shrink-logo {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(0.8);
  }
  100% {
    transform: scale(1);
  }
}