@import url("styles/fonts.css");
@import url("styles/shortcuts.css");
@import url("styles/animations.css");
@import url("styles/colors.css");

body {
  margin: 0;
  color: var(--text);
  background-color: var(--bg);
}

nav {
  display: flex;
  position: absolute;
  top: 0;
  left: 0;
  color: var(--starry-night-text);
  width: 100vw;
  justify-content: space-between;
  padding: 20px;
  box-sizing: border-box;
  z-index: 10;
}

nav > div {
  display: flex;
  gap: 20px;
}

nav > div > a {
  color: var(--starry-night-text);
  &:hover {
    color: white;
  }
}

.hero {
  display: flex;
  flex-direction: row;
  min-height: 100vh;
  box-sizing: border-box;
  gap: 50px;
  justify-content: center;
  align-items: center;
  padding: 150px 50px;
  color: var(--starry-night-text);
  z-index: 5;

  @media screen and (max-width: 700px) {
    flex-direction: column;
    padding: 100px 25px;
    justify-content: stretch;
  }
}

#hero-left-column {
  gap: 30px;
}

#hero-right-column {
  gap: 10px;
  width: 500px;
  justify-content: center;
  @media screen and (max-width: 700px) {
    width: 100%;
  }
}

.hero-chara {
  animation: floating 6s ease-in-out infinite;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  width: 100%;
  filter: brightness(0) saturate(100%) invert(90%) sepia(6%) saturate(1348%)
    hue-rotate(202deg) brightness(103%) contrast(98%);
}

.starry-night {
  background: url(resources/images/starry_night.webp), var(--starry-night-bg);
  background-size: 1024px;
  animation: space-infinite-scroll 120s linear infinite;
}

.social-links {
  gap: 10px;
  align-items: center;
  justify-content: center;
}

.social-links img {
  transition: transform 0.2s;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  filter: brightness(0) saturate(100%) invert(90%) sepia(6%) saturate(1348%)
    hue-rotate(202deg) brightness(103%) contrast(98%);
}

.social-links img:hover {
  transform: translateY(-5px) scale(1.1);
}

.scroll-hint {
  position: absolute;
  bottom: 32px;
  width: 64px;
  image-rendering: pixelated;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  filter: brightness(0) saturate(100%) invert(90%) sepia(6%) saturate(1348%)
    hue-rotate(202deg) brightness(103%) contrast(98%);
    opacity: 25%;
    animation: floating 4s ease-in-out infinite;
}

@media screen and (max-width: 700px) {
  .scroll-hint {
    display: none;
  }
}

.bg-title-ref {
  position: relative;
}

.bg-title {
  position: absolute;
  top: 0;
  right: 0;
  z-index: -5;
  height: 144px;
  opacity: 0.05;
  filter: invert(1);
  mix-blend-mode: difference;
  
  @media screen and (max-width: 700px) {
    height: 96px;
    left: 0;
    right: auto;
  }
}

.project-card {
  width: 350px;
  background-color: var(--container-bg);
  box-shadow: var(--secondary-container-bg) 8px 8px 0px;
  @media screen and (max-width: 700px) {
    width: 100%;
  }
}

.link-button, #mailbox-container > form > input[type=submit] {
  display: block;
  text-decoration: none;
  color: white;
  background-color: var(--accent-color);
  padding: 14px 20px 10px 20px;
  align-self: flex-start;
  border: none;
  font-size: 1em;
}

.link-button:hover, #mailbox-container > form > input[type=submit]:hover {
  background-color: var(--accent-color-hover);
}

.link-button:active, #mailbox-container > form > input[type=submit]:active {
  background-color: var(--accent-color-active);
}

.link-button:first-of-type:not(:last-of-type) {
  margin-bottom: 10px;
}

#about-section {
  background-color: var(--dark-container-bg);
  color: var(--dark-text);
  padding: 150px 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 50px;
  overflow-x: hidden;

  @media screen and (max-width: 700px) {
    flex-direction: column;
    padding: 100px 25px;
  }
}

#about-section .bg-title {
  position: absolute;
  z-index: 10;
  top: -50px;
  left: -100px;
  transform: rotate(-1deg);
  animation: about-text-float 6s ease-in-out 1s infinite;

  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;

  @media screen and (max-width: 700px) {
    top: -25px;
    left: -50px;
  }
}

#about-section .bg-title:nth-child(2) {
  top: -65px;
  left: -115px;
  transform: rotate(-2deg);
  animation: about-text-float2 6s ease-in-out 0s infinite;

  @media screen and (max-width: 700px) {
    top: -32.5px;
    left: -57.5px;
  }
}

#about-section > div {
  width: 100%;
  max-width: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#about-illustration {
  width: 100%;

  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
}

#about-section > article {
  width: 100%;
  max-width: 500px;
  font-size: 1.75em;
  z-index: 10;
}

#about-section > article > p {
  margin: 0;
}

.corner-decoration {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 700px;
  filter: invert(1);
  opacity: 0.05;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;

  @media screen and (max-width: 700px) {
    width: 350px;
  }
}

#interest-section {
  display: flex;
  flex-direction: column;
  gap: 80px;

  padding: 80px 0;

  @media screen and (max-width: 700px) {
    gap: 40px;
  }
}

#interest-title {
  height: 128px;
  align-self: center;

  position: relative;

  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;

  @media screen and (max-width: 700px) {
    height: 42px;
  }
}

#interest-title > h2 {
  position: absolute;
  top: -30px;
  left: -100px;

  font-size: 56px;

  opacity: 0.5;

  margin: 0;

  @media screen and (max-width: 700px) {
    font-size: 24px;
    top: -15px;
    left: -15px;
  }
}

#interest-title > img {
  height: 100%;

  filter: drop-shadow(4px 4px 0 var(--accent-color));

  @media screen and (prefers-color-scheme: dark) {
    filter: invert(1) drop-shadow(4px 4px 0 var(--accent-color));
  }
}

#interest-body {
  display: flex;
  justify-content: center;
  gap: 20px;

  font-size: 2em;

  padding: 0 20px;

  @media screen and (max-width: 700px) {
    flex-direction: column;
  }
}

#interest-body p {
  margin: 0;
}

#interest-chara-container {
  width: 100%;
  max-width: 500px;

  align-self: center;

  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
}

#interest-chara-container > img {
  width: 100%;

  @media screen and (prefers-color-scheme: dark) {
    filter: invert(1);
  }
}

#interest-first-column {
  width: 100%;
  text-align: end;

  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;

  @media screen and (max-width:700px) {
    text-align: start;
    align-self: flex-start;
  }
}

#interest-last-column {
  width: 100%;
  text-align: start;

  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;

  @media screen and (max-width:700px) {
    text-align: end;
    align-self: flex-end;
  }
}

#interest-body u {
  color: var(--accent-color)
}

#mailbox-section {
  display: flex;
  justify-content: center;

  overflow-x: hidden;

  padding: 80px;

  background-color: var(--starry-night-bg);
}


#mailbox-container {
  min-width: 800px;
  position: relative;

  margin-left: 250px;
}

#mailbox-container > img {
  width: 100%;

  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;

  filter: invert(1);
}

#mailbox-container > form {
  display: flex;
  flex-direction: column;

  position: absolute;
  top: 270px;
  left: 170px;

  width: 220px;
  height: 170px;

  @media screen and (max-width: 700px) {
    top: 270px;
    left: 170px;
  }
}

#mailbox-container > form > textarea {
  width: 100%;
  height: 100%;

  background: none;
  border: none;
  resize: none;
  padding: 0;

  font-size: 2em;
}

#mailbox-container > form > textarea:focus {
  outline: none;
}

#mailbox-container > form > textarea::placeholder {
  color: var(--starry-night-text);
  opacity: 0.5;
}

footer {
  padding: 3em 1em;
  justify-content: center;
  background-color: #80808080;
}
