* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  border: none;
}

:root {
  --link-img-left-offset: 0px;
  --drag-container-width: 0px;
  --landing-padding-top: 32px;
  --landing-padding-bottom: 0px;
  --arrow-container-height: 0px;
  
  --clr-primary: #0054ac;
  --clr-secondary: #fff;
  --clr-accent: #d8e5e1;
  --clr-neutral: #fff;
}

.dark-mode {
  --clr-primary: #d4efee;
  --clr-secondary: #222;
  --clr-accent: #000;
  --clr-neutral: #000;
}

body {
  min-width: 348px;
  overflow-x: auto;
}

.loader {
  position: fixed;
  height: 100%;
  width: 100vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  background-color: #000;
  z-index: 1000;
}

.loading-star {
  position: relative;
  color: #1996f8;
  font-size: 50px;
  -webkit-text-stroke: 2px #7cfaff;
  animation: spin 1.5s infinite cubic-bezier(.72,-0.27,.35,1.32);
}

.loading-star::before {
  content: '\f005';
  font-family: fontAwesome;
}

@keyframes spin {
  0% {
    transform: rotate(0turn);
    text-shadow: none;
  }
  50% {
    text-shadow: 0 0 10px #1996f8, 0 0 20px #1996f8, 0 0 50px #1996f8;
  }
  100% {
    transform: rotate(1turn);
    text-shadow: none;
  }
}

.loading-text {
  position: relative;
  color: #fff;
  font-family: "Protest Riot", sans-serif;
  font-style: normal;
  font-weight: 100;  
  letter-spacing: 0.25rem;
  padding-top: 10px;
}

.star-background {
  position: relative;
  background-image: linear-gradient(#E7FFFF, #6EECFE, #15A7FA);
  background-attachment: fixed;
  min-height: 100dvh;
  overflow: hidden;
}

.star-background::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(#000d5b, #19108b, #322ca1, #6d55bb, #b592cc);
  background-attachment: fixed;
  opacity: 0;
  transition: opacity 2s ease;
}

.dark-mode .star-background::before {
  opacity: 1;
}

.star {
  position: absolute;
  top: -15vh;
  color: #1996f8;
  text-shadow: 0 0 5px #1996f8, 0 0 20px #1996f8, 0 0 50px #1996f8;
  -webkit-text-stroke: 2px #7cfaff;
  z-index: 2;
  cursor: pointer;
}

.star::before {
  content: '\f005';
  font-family: fontAwesome;
}

.pop {
  position: absolute;
  color: #ffa;
  z-index: 2;
  animation: poof 0.5s ease-out forwards;
}

.pop::before {
  content: '\f005';
  font-family: fontAwesome;
}

.trail {
  position: absolute;
  color: #ffa;
  font-size: 5px;
  z-index: 1;
  animation: poof 1s ease-out forwards;
}

.trail::before {
  content: '\f005';
  font-family: fontAwesome;
}

@keyframes poof {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: scale(2);
  }
}

.main-container {
  position: relative;
  min-height: 100svh;
}

#toggle-theme {
  position: fixed;
  font-size: 1.8rem;
  cursor: pointer;
  top: 20px;
  left: 24px;
  border-radius: 100%;
  z-index: 101;
  color: var(--clr-primary);
  transition: color 2s ease, transform 0.2s ease;
}

#toggle-theme:hover {
  transform: scale(1.1);
}

.landing-container {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: calc(100dvh - var(--arrow-container-height));
  padding-top: var(--landing-padding-top);
  padding-bottom: var(--landing-padding-bottom);
  transition: all 0.5s linear;
  z-index: 10;
  pointer-events: none;
}

.landing-container > * {
  z-index: 11;
}

.pfp-img {
  width: 110px;
  aspect-ratio: 1;
  border-radius: 100%;
  transition: transform 0.2s ease-in-out;
  pointer-events: auto;
}

.pfp-img:hover {
  transform: scale(1.1);
  cursor: pointer;
}

.name {
  font-family: "Protest Riot", sans-serif;
  font-style: normal;
  font-weight: 100;
  letter-spacing: 2px;
  margin-top: 0.7rem;
  margin-bottom: -2.75rem;
  color: var(--clr-primary);
  transition: color 2s ease;
}

.drag-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  width: var(--drag-container-width);
  height: 102px;
  margin-top: 8px;
  margin-bottom: -8px;
  z-index: 12;
}

.toothless {
  position: relative;
  height: 100px;
  transform: scaleX(-1);
  filter: drop-shadow(0px 0px 15px #000);
}

.luna {
  position: relative;
  height: 100px;
  bottom: 1.5px;
  filter: drop-shadow(0px 0px 15px #fff);
}

@media (max-width: 386px) {
  .toothless, .luna {
    height: 90px;
  }
}

.link-container {
  position: relative;
  text-decoration: none;
  background-color: var(--clr-secondary);
  box-shadow: 0 0 2px var(--clr-secondary), 0 0 5px var(--clr-secondary), 0 0 15px var(--clr-secondary);
  border-radius: 12px;
  padding: 0.9rem 0px;
  margin-bottom: 1rem;
  width: 95%;
  max-width: 500px;
  display: flex;
  align-items: center;
  text-align: center;
  pointer-events: auto;
}

.link-container:hover {
  background-color: var(--clr-accent);
  cursor: pointer;
}

.link-container:hover .link-text {
  transform: scale(1.1);
}

.link-container:last-of-type {
  margin-bottom: 2rem;
}

.link-img {
  position: absolute;
  display: flex;
  height: 80%;
  aspect-ratio: 1;
  left: var(--link-img-left-offset);
  border-radius: 12px;
}

.link-text {
  font-family: "Raleway", sans-serif;
  font-optical-sizing: auto;
  font-weight: 600;
  font-style: normal;
  flex-grow: 1;
  color: var(--clr-primary);
  transition: transform 0.2s ease-in-out, color 2s ease;
}

.link-text .title {
  letter-spacing: 1px;
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.link-text .description {
  letter-spacing: 0.7px;
  font-size: 0.6rem;
}

.nightlights {
  position: relative;
  height: 100px;
  filter: drop-shadow(0px 0px 15px #d4efee);
}

.popup-background-pfp, .popup-background-status {
  position: fixed;
  top: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.8);
  height: 100%;
  width: 100%;
  display: none;
  z-index: 103;
}

.popup-background-pfp span {
  position: absolute;
  top: 12px;
  right: 22px;
  font-size: 2.5rem;
  font-weight: bolder;
  color: #fff;
  cursor: pointer;
  border-radius: 100%;
  transition: transform 0.2s ease;
}

.popup-background-pfp span:hover {
  transform: scale(1.1);
}

.popup-background-pfp img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 5px solid #fff;
  width: 80vh;
  object-fit: cover;
}

@media (max-width: 450px) {
  .popup-background-pfp img {
    width: 95vw;
  }
}

.arrow-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 30px 0;
  z-index: 100;
}

.arrow {
  position: relative;
  animation: bounce 1s ease-in-out infinite;
  transition: rotate 0.5s ease, transform 0.2s ease;
}

.arrow:hover {
  transform: scale(1.1);
}

.arrow::before {
  content: '';
  position: relative;
  display: inline-block;
  height: 3px;
  width: 15px;
  background-color: var(--clr-primary);
  transform: rotate(45deg);
  transform-origin: bottom right;
  border-radius: 10px;
  transition: background-color 2s ease;
}

.arrow::after {
  content: '';
  position: relative;
  display: inline-block;
  height: 3px;
  width: 15px;
  background-color: var(--clr-primary);
  transform: rotate(-45deg);
  transform-origin: bottom left;
  border-radius: 10px;
  transition: background-color 2s ease;
}

@keyframes bounce {
  0% {
    top: 0;
  }
  50% {
    top: 5px;
  }
  100% {
    top: 0;
  }
}

.contact-container {
  position: relative;
  display: none;
  min-height: calc(100dvh - var(--arrow-container-height));
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding-bottom: 2rem;
  z-index: 10;
  pointer-events: none;
  transition: all 0.5s linear;
}

.contact-container > * {
  z-index: 11;
}

.httyd-container {
  position: relative;
  width: 95%;
  max-width: 450px;
}

.httyd-color {
  position: absolute;
  inset: 0;
  background-image: url("/assets/httyd-color.png");
  background-size: cover;

  mask-image: url("/assets/httyd-mask.png");
  mask-size: cover;
  mask-position: 0% 0%;
  mask-repeat: no-repeat;
  -webkit-mask-image: url("/assets/httyd-mask.png");
  -webkit-mask-size: cover;
  -webkit-mask-position: 0% 0%;
  -webkit-mask-repeat: no-repeat;
}

.mask-animation {
  animation: addColor 1600ms steps(45) forwards;
  animation-delay: 700ms;
}

@keyframes addColor {
  0% {
    mask-position: 0% 0%;
    -webkit-mask-position: 0% 0%;
  }
  100% {
    mask-position: 100% 0%;
    -webkit-mask-position: 100% 0%;
  }
}

.httyd-container img {
  display: block;
  width: 100%;
  max-width: 450px;
}

.form-text {
  font-family: "Protest Riot", sans-serif;
  font-style: normal;
  font-weight: 100;
  font-size: 1.4rem;
  letter-spacing: 2px;
  margin: 2rem 0 1rem;
  color: var(--clr-primary);
  transition: color 2s ease;
}

.form-container {
  position: relative;
  width: 90%;
  max-width: 500px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

#bot {
  display: none;
}

#name-input, #message-input, #send-btn {
  position: relative;
  font-family: "Raleway", sans-serif;
  font-optical-sizing: auto;
  font-weight: 600;
  font-style: normal;
  width: 100%;
  max-width: 500px;
  margin: 0.25rem 0;
  padding: 0.5rem;
  border-radius: 12px;
  outline: none;
  pointer-events: auto;
  color: var(--clr-primary);
  background-color: var(--clr-secondary);
  transition: background-color 2s ease, color 2s ease;
}

.message-container {
  width: 100%;
  margin: 0.25rem 0;
}

#message-input {
  resize: none;
  margin: 0;
}

.tool-tip {
  position: absolute;
  top: 162px;
  left: 0;
  visibility: hidden;
  background-color: var(--clr-neutral);
  text-align: center;
  border-radius: 6px;
  padding: 5px 10px;
  filter: drop-shadow(0px 0px 2px var(--clr-neutral));
  transition: background-color 2s ease, filter 2s ease;
}

.tool-tip::after {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 15px;
  border-width: 5px;
  border-style: solid;
  border-color: transparent transparent var(--clr-neutral) transparent;
  transition: border-color 2s ease;
}

.tool-tip > * {
  color: var(--clr-primary);
  transition: color 2s ease;
}

.char-count {
  align-self: end;
  font-size: smaller;
  color: var(--clr-primary);
  transition: color 2s ease;
}

#send-btn {
  width: 100px;
  cursor: pointer;
  align-self: end;
  transition: background-color 0s;
}

#send-btn:hover {
  background-color: var(--clr-accent);
}

#send-btn p {
  transition: color 2s ease, transform 0.2s ease;
}

#send-btn:hover p {
  transform: scale(1.1);
}

.status-container {
  position: absolute;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  top: 0%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.1);
  background-color: var(--clr-secondary);
  width: 95%;
  max-width: 400px;
  border-radius: 6px;
  padding: 30px;
  transition: transform 0.4s, top 0.4s;
}

.anim-status-container {
  top: 50%;
  transform: translate(-50%, -50%) scale(1);
}

.status-container > * {
  font-family: "Raleway", sans-serif;
  font-optical-sizing: auto;
  font-weight: 600;
  font-style: normal;
  color: var(--clr-primary);
}

.crosscheck-container {
  position: absolute;
  width: 100px;
  height: 100px;
  top: 0;
  transform: translateY(-50%);
  border-radius: 50%;
  background-color: #0054ac;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.check {
  position: absolute;
  left: 25px;
  top: 55px;
  height: 25px;
  width: 50px;
  display: block;
  border-left: 5px solid #fff;
  border-bottom: 5px solid #fff;
  transform-origin: top left;
  transform: rotate(-45deg);
  opacity: 0;
  animation: check-anim ease-out 0.5s forwards;
  animation-delay: 0.3s;
}

@keyframes check-anim {
  0% {
    height: 0px;
    width: 0px;
    opacity: 0;
  }
  33% {
    height: 25px;
    width: 0px;
    opacity: 1;
  }
  100% {
    height: 25px;
    width: 50px;
    opacity: 1;
  }
}

.cross {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
  transform-origin: center;
  height: 0px;
  width: 5px;
  background-color: #fff;
  animation: cross-anim cubic-bezier(.73,.01,.37,1.49) 0.5s forwards;
  animation-delay: 0.3s;
}

.cross::after {
  content: '';
  position: absolute;
  background-color: #fff;
  height: 0px;
  width: 5px;
  left: 1px;
  transform: rotate(90deg);
  animation: cross-anim cubic-bezier(.73,.01,.37,1.49) 0.5s forwards;
  animation-delay: 0.3s;
}

@keyframes cross-anim {
  0% {
    height: 0px;
  }
  100% {
    height: 50px;
  }
}

.status-container h2 {
  font-size: 2.5rem;
  margin: 40px 0 10px;
}

.status-container h2 img {
  height: 1em;
  vertical-align: middle;
}

.status-container button {
  width: 100%;
  margin-top: 40px;
  padding: 10px 0;
  background-color: #0054ac;
  color: #fff;
  outline: none;
  font-size: 18px;
  border-radius: 4px;
  cursor: pointer;
  box-shadow: 0 5px 5px rgba(0, 0, 0, 0.2);
}

.status-container button:hover {
  background-color: #0054dd;
}

.status-container button:hover p {
  transition: transform 0.2s ease;
  transform: scale(1.1);
}