@font-face {
  font-family: Nosutaru;
  src: url(../assets/Nosutaru-dotMPlusH-10-Regular.ttf);
}

:root {
  --white: rgb(217, 222, 255);
  --black: rgb(11, 15, 22);
  --black2: rgb(24, 35, 54);
  --gray: rgba(217, 222, 255, 0.5);
  --dark-gray: rgba(217, 222, 255, 0.25);
  --main: rgb(82, 105, 255);
  --main2: rgb(126, 141, 255);
  --main3: rgb(155, 168, 255);
  --font: "Space Grotesk", sans-serif;

  --img-glow: 0px 0px 25px var(--dark-gray);

  --bounce: cubic-bezier(0.32, 3, 0.51, 0.57);
  --overshoot: cubic-bezier(0.31, 1.67, 0.4, 0.98);
  font-size: 18px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;

  font-size: 1rem;
  line-height: 1rem;
  font-family: var(--font);
  color: var(--white);

  background-color: unset;
  border: none;
}

div,
input,
textarea,
button,
select,
a {
  -webkit-tap-highlight-color: transparent;
}

#loading {
  height: 100vh;
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  content: "";
  inset: 0;
  background-color: var(--black);
  transition: opacity 500ms ease;
}

body {
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 96px;
  background-color: black;
  padding: 64px;
}

body::before {
  width: 100vw;
  height: 100vh;
  position: fixed;
  z-index: -50;
  content: "";
  inset: 0;
  background-image: radial-gradient(
    115% 100% at center top,
    rgba(0, 0, 0, 1) 0%,
    rgba(12, 15, 22, 1) 50%,
    rgba(41, 53, 75, 1) 115%
  );
  background-repeat: no-repeat;
}

:focus-visible {
  outline: 1px solid var(--white);
}

::selection {
  background-color: #d9deff;
  color: #0c0f16;
}

footer {
  margin-top: 128px;
  opacity: 50%;
  display: flex;
  gap: 8px;
  align-items: center;
}

button {
  cursor: pointer;
}

.button1 {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--black);
  font-size: 1.5rem;
  background-color: var(--white);
  padding: 24px;
}

.reaction-box {
  display: flex;
  gap: 8px;
}

.reaction-button {
  min-width: 99px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 0.5rem 1rem 0.5rem 1rem;
  border: 1px solid var(--white);

  transition: all 150ms ease, width 500ms ease-out;
}

.reaction-button:hover {
  background-color: var(--dark-gray);
}

.reaction-number {
  display: flex;
  transition: width 500ms ease-out;
}

.toggleButton input {
  opacity: 0;
  height: 0;
  width: 0;
}

.toggleSlider {
  opacity: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  width: 2.5rem;
  padding: 4px;

  border-radius: 1000px;
  outline: 1px solid var(--white);

  transition: all 100ms ease;
}

.toggleSlider::after {
  content: "";
  inset: 0;
  width: 1rem;
  height: 1rem;
  border-radius: 1000px;
  background-color: var(--white);
  transition: all 100ms ease;
}

input:checked + .toggleSlider {
  opacity: 100%;
  outline-color: red;
}

input:checked + .toggleSlider::after {
  transform: translateX(calc(1.5rem - 8px));
  background-color: red;
}

img {
  user-select: none;
  image-rendering: smooth;
}

.img {
  display: block;
  width: 100%;

  border-style: solid;
  border-color: var(--white);
  border-width: 1px;
  box-shadow: var(--img-glow);
}

.img-box {
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

main {
  width: 100%;
  display: none;
  flex-direction: column;
  gap: 96px;
  align-items: center;
  max-width: 1024px;
}

nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  column-gap: 24px;
  row-gap: 8px;
}

.button {
  font-weight: bold;
  display: flex;
  justify-content: center;
  align-items: center;

  padding: 0.5rem 1rem 0.5rem 1rem;
  display: flex;
  text-wrap: nowrap;
  position: relative;

  user-select: none;
  transition: all 250ms var(--bounce);
}

.button:active {
  transform: scale(0.95);
}

.button::after,
.button::before {
  display: flex;
  position: absolute;
  content: "[";
  inset: 0;
  justify-content: flex-start;
  align-items: center;

  transition: transform 250ms ease-out;
}

.button::after {
  content: "]";
  justify-content: flex-end;
}

.button:hover::before {
  transform: translateX(-8px);
}

.button:hover::after {
  transform: translateX(8px);
}

.close {
  font-size: 1.5rem;
  line-height: 1.5rem;
}

.locked-button {
  color: var(--dark-gray);
}

.locked-button:active {
  transform: unset;
}

.locked-button:hover::before,
.locked-button:hover::after {
  transform: unset;
}

.lock-wrapper {
  display: flex;
  position: absolute;
}

.lock {
  opacity: 0;
  image-rendering: pixelated;
  transition: all 150ms ease-out;
}

.title {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;

  gap: 16px;
}

.title-text {
  display: flex;
  column-gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.left {
  justify-content: left;
}

.title-decoration-wrapper {
  width: 100%;
  max-width: 192px;
  flex-shrink: 0;
}

.title-decoration {
  image-rendering: pixelated;
  height: auto;
  width: 100%;
}

.mirror {
  transform: scaleX(-1);
}

.overlay {
  z-index: 10;
  position: fixed;
  display: none;
  inset: 0;

  justify-content: center;
  align-items: center;

  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  cursor: pointer;
}

.overlay-border {
  position: fixed;
  inset: 0;
  z-index: 11;
}

.content-open {
  transform: translateY(-25px);
  opacity: 0%;
  transition: 0ms;
}

.overlay-content {
  display: grid;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  z-index: 12;
  cursor: default;
  margin: 64px;
}

.overlay-title {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 32px;
  align-items: center;
}

.img-overlay-wrapper {
  height: 70vh;
  display: flex;
  justify-content: center;
  z-index: 12;
}

.img-overlay {
  width: unset;
  height: 100%;
}

.img-open {
  width: 100%;
  transform: translateY(-25px);
  opacity: 0%;
  transition: 0ms;
}

.icon {
  width: 32px;
  height: 32px;
  image-rendering: pixelated;
  pointer-events: none;
}

.inline-icon {
  display: inline-block;
  height: 1rem;
  font-size: 1rem;
  line-height: 1rem;
  vertical-align: text-bottom;
  width: 32px;
}

.yt-embed {
  aspect-ratio: 16 / 9;
  display: flex;
  width: 100%;
}

.yt-embed-wrapper {
  z-index: 1;
  border-style: solid;
  border-color: var(--white);
  border-width: 1px;
  overflow: hidden;

  box-shadow: var(--img-glow);
}

#aviso {
  position: fixed;
  overflow: hidden;
  width: 100vw;
  height: 100vh;
  display: none;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding: 32px;
  gap: 32px;
  background-color: black;
  cursor: default;
}

/* Tablet grande */
@media (max-width: 1024px) {
  .img-box {
    gap: 8px;
  }

  .img-overlay-wrapper {
    width: 100%;
    height: unset;
  }
  .img-overlay {
    width: 100%;
    height: unset;
  }
  main {
    max-width: 700px;
  }
}

@media (max-width: 800px) {
  .title {
    display: grid;
    grid-template-columns: 100%;
    grid-template-rows: auto auto auto;
    place-items: center;
  }
  .img-box {
    flex-direction: column;
    align-items: center;
    gap: 32px;
    margin-top: 1rem;
    margin-bottom: 1rem;
  }
}

@media (max-width: 500px) {
  body {
    padding: 32px;
  }
  .overlay-content {
    margin: 16px;
  }
}
