@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@600;800&display=swap");
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: "Manrope", sans-serif;
}

:root {
  --LightCyan: hsl(193, 38%, 86%);
  --NeonGreen: hsl(150, 100%, 66%);
  --GrayishBlue: hsl(217, 19%, 38%);
  --DarkGrayishBlue: hsl(217, 19%, 24%);
  --DarkBlue: hsl(218, 23%, 16%);
}

img {
  display: block;
  max-width: 100%;
}
body {
  width: 100%;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--DarkBlue);
  color: var(--LightCyan);
}

main {
  width: 90%;
  max-width: 400px;
  background-color: var(--DarkGrayishBlue);
  border-radius: 0.5rem;
  padding: 2rem 1rem 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1.5rem;
  text-align: center;
  position: relative;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.tags__holder {
  display: flex;
  gap: 0.5rem;
  position: absolute;
  top: -6%;
  font-style: italic;
  font-size: 0.8rem;
  color: var(--NeonGreen);
}

h3 {
  font-size: 0.8rem;
  color: var(--NeonGreen);
  text-transform: uppercase;
  letter-spacing: 3px;
}

h3 .loading {
  animation: pulse 1s alternate infinite;
}

h1 {
  font-size: 1.5rem;
}

h1.loading {
  font-size: 2rem;
  animation: pulse 1s alternate infinite;
}

.dice {
  background-color: var(--NeonGreen);
  cursor: pointer;
  height: 3.5rem;
  width: 3.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 90%;
}

.nav {
  width: 80%;
  display: flex;
  position: absolute;
  bottom: 1.5rem;
  justify-content: space-between;
  font-size: 1.5rem;
}

.nav > span {
  color: var(--NeonGreen);
  cursor: pointer;
}

@keyframes pulse {
  to {
    opacity: 0.2;
  }
}

section {
  position: fixed;
  display: none;
  z-index: 99999;
  background-color: rgba(48, 140, 193, 0.386);
  backdrop-filter: blur(3px);
  inset: 0;
  place-items: center;
}

section .wrapper {
  display: flex;
  flex-direction: column;
  width: 80%;
  max-width: 380px;
  align-items: center;
  gap: 1rem;
  animation: popup 2s;
}

section.active {
  display: grid;
}

.popup .close_btn {
  font-size: 1.87rem;
  position: absolute;
  top: 3rem;
  right: 3rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  height: 2.5rem;
  width: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
section button {
  background-color: var(--NeonGreen);
  border: none;
  padding: 0.5rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--DarkGrayishBlue);
  border-radius: 0 0.2rem 0.2rem 0;
  cursor: pointer;
}

form {
  display: flex;
  max-width: 150px;
  justify-content: center;
}

form input {
  width: 30%;
  border: none;
  outline: none;
  padding: 0 0 0 0.5rem;
}

@keyframes popup {
  from {
    transform: scale(0);
  }

  50% {
    transform: scale(1.1);
  }

  to {
    transform: scale(1);
  }
}
