/* --- Fonts --- */

@font-face {
  font-family: 'Inter Tight';
  font-weight: 500;
  src: url('../assets/fonts/inter-tight-latin-500-medium.woff2') format('woff2'),
}

@font-face {
  font-family: 'Inter Tight';
  font-weight: 700;
  src: url('../assets/fonts/inter-tight-latin-700-bold.woff2') format('woff2'),
}

@font-face {
  font-family: 'Inter Tight';
  font-weight: 900;
  src: url('../assets/fonts/inter-tight-latin-900-black.woff2') format('woff2'),
}

@property --angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

/* --- Root Consts --- */

:root {
  --header-clr: #FFF;
  --text-clr: #FFF;
  --text-clr-alt: #F46A9E;
  --bg-clr: #231736;
  --muted-clr: #918B9B;
}

/* --- Selection (Text Highlight) --- */

::selection {
  color: var(--text-clr);
  background: var(--text-clr-alt);
}

/* --- Headings --- */

h1 {
  font-weight: 900;
  padding: 0;
  margin: 0;
}

h2 {
  font-weight: 700;
  padding: 0;
  margin: 0;
}

h3 {
  font-weight: 500;
}

/* --- Header --- */

header {
  background-color: var(--header-clr);
  width: 100vw;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  top: 0;
  z-index: 100;
  animation: slide-in 3s ease-in-out forwards;
}

@keyframes slide-in {
  0%, 50% {
    margin-top: -75px;
  } 100% {
    margin-top: 0;
  }
}

header a {
  color: inherit;
}

.headertext {
  display: block;
  font-size: 1.5em;
  margin-top: 0.83em;
  margin-bottom: 0.83em;
  margin-left: 0;
  margin-right: 0;
  font-weight: 900;
}

nav {
  display: flex;
  padding: 12px;
  margin: auto 0;
  width: 100vw !important;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #F46A9E;
  box-shadow: 0px 20px 25px 0px rgba(0, 0, 0, 0.2);
  animation: opener 3s ease-in-out;
  z-index: 100;
}

@keyframes opener {
  0%, 50% {
    height: 100vh;
  } 100% {
    height: 80px;
  }
}

.logo {
  animation: shrink 3s ease-in-out;
}

@keyframes shrink {
  0% {
    height: 200px;
    opacity: 0;
  } 50% {
    height: 200px;
    opacity: 1;
  } 100% {
    height: 80px;
  }
}

/* --- Spans --- */

.lighter {
  color: var(--muted-clr);
}

.white {
  color: var(--text-clr);
}

.black {
  color: var(--text-clr-alt);
}

/* --- Paragraph --- */

p {
  line-height: 1.5;
}

/* --- Hero Wrapper (Sheepy, Introduction & Links) --- */

.hero-wrapper {
  position: relative;
  display: flex;
  flex-flow: column wrap;
  align-items: center;
  justify-content: center;
  padding-top: 5em;
  margin: 0;
  gap: 4em;
}

.introduction {
  display: flex;
  flex-flow: row wrap;
  align-items: center;
  justify-content: center;
  gap: 4em;
}

.pixelsheepy {
  opacity: 0;
  padding: 0;
  margin: 0;
  user-select: none;
  animation: appearY .5s ease-in-out 3s forwards, float 6s ease-in-out infinite, turn 8s ease-in-out infinite;
}

#booptext {
  opacity: 0;
  animation: appearY .5s ease-in-out 3s forwards;
}

#boopImage {
  transition: transform 0.1s;
}

#boopImage:active {
  transform: scale(0.95);
}

.sheepy-container {
  display: block;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.welcome {
  opacity: 0;
  animation: appearY .5s ease-in-out 3s forwards;
}

.bio {
  opacity: 0;
  animation: appearY .5s ease-in-out 3.1s forwards;
}

.link-youtube {
  opacity: 0;
  animation: appearY .5s ease-in-out 3.2s forwards;
}

.link-bandcamp {
  opacity: 0;
  animation: appearY .5s ease-in-out 3.3s forwards;
}

.link-bsky {
  opacity: 0;
  animation: appearY .5s ease-in-out 3.4s forwards;
}

.link-contact {
  opacity: 0;
  animation: appearY .5s ease-in-out 3.5s forwards;
}

.art-gallery {
  opacity: 0;
  padding-top: 4em;
  text-align: center;
  animation: appearY .5s ease-in-out 3.8s forwards;
}

.art-gallery p {
  margin: 0;
  padding: 0;
}

@keyframes appearY {
  0% {
    opacity: 0;
    transform: translateY(0.6em);
  } 100% {
    opacity: 1;
    transform: none;
  }
}

.music-showcase {
  display: flex;
  flex-flow: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 2em;
}

/* --- Badges --- */

.badges {
  opacity: 0;
  animation: appearY .5s ease-in-out 4s forwards;
  padding-top: 1rem;
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  flex-flow: column wrap;
  align-items: center;
  justify-content: center;
}

.badges-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  image-rendering: pixelated;
}

.badges-grid a {
  transition: transform 0.2s ease;
}

.badges-grid a:hover {
  transform: scale(1.15);
}

/* --- Body --- */

html, body {
  overflow-x: hidden;
  animation: hide-overflow 5s linear;
}

body {
  margin: 0;
  padding: 0 10%;
  background-color: var(--bg-clr);
  color: var(--text-clr);
  font-family: "Inter Tight", sans-serif;
  font-weight: 500;
  font-size: 1.05rem;
  display: flex;
  flex-flow: column;
  justify-content: center;
  align-items: center;
  position: relative;
}

@keyframes hide-overflow {
  0% {
    overflow-y: hidden;
  } 100% {
    overflow-y: scroll;
  }
}

/* --- Lists --- */

ul {
  list-style: none;
  font-size: 1.5rem;
  margin: 0;
  padding: 0;
}

ul a {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0.5em 0.5em;
  margin: 0 -0.5em;
  color: var(--text-clr);
  text-decoration: none;
  overflow: hidden;
  gap: 0.4rem;
  transition: color 0.3s ease;
}

ul a::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--text-clr);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.3s ease;
  z-index: -1;
}

ul a:hover {
  color: var(--bg-clr);
}

ul a:hover::before {
  transform: scaleY(1);
}

li {
  text-decoration: none;
}

/* --- Scroller --- */

.img-list {
  margin: 0;
  padding-inline: 0;
  list-style: none;
}

.img-box {
  padding: 1rem;
  border-radius: 20px;
  text-align: center;
}

.img-box img {
  border-radius: 20px;
  padding-bottom: .5rem;
}

.scroller {
  padding: 0;
  margin: 0;
  max-width: 1200px;
}

.scroller__inner {
  padding: 0;
  margin: 0;
  display: flex; 
  flex-wrap: wrap;
  gap: 1rem;
}

.scroller[data-animated="true"] {
  overflow: visible;
  -webkit-mask: linear-gradient(90deg, transparent, white 20%, white 80%, transparent);
  mask: linear-gradient(90deg, transparent, white 20%, white 80%, transparent);
}

.scroller[data-animated="true"] .scroller__inner {
  width: max-content;
  flex-wrap: nowrap;
  animation: scroll 40s linear infinite;
}

.scroller[data-animated="true"] .scroller__inner:hover {
  animation-play-state: paused;
}

@keyframes scroll {
  to {
    transform: translate(calc(-50% - 0.5em));
  }
}

/* --- Footer --- */

footer {
  padding-top: 1rem;
  display: flex;
  width: 100%;
  color: var(--muted-clr);
  height: 60px;
  text-align: center;
  align-items: center;
  justify-content: center;
  opacity: 0;
  animation: appearY .5s ease-in-out 4.2s forwards;
}

/* --- Keyframes --- */

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

@keyframes turn {
  0%, 50% { rotate: 0deg; }
  25%      { rotate: 2deg; }
  75% {rotate: -2deg;}
}

/* --- Media Queries --- */

@media screen and (max-width: 1151px) {
  .hero-wrapper {
    padding-top: 2em;
    gap: 0;
  }

  .art-gallery {
    padding-top: 2em;
  }
  
  .badges {
    padding-top: 0em;
  }

  .scroller {
    max-width: 100vw;
  }

  .introduction {
    flex-flow: column wrap;
    gap: 0;
  }

  * {
    text-align: center;
  }

  .logo {
    height: 80px !important;
  }

  .pixelsheepy {
    width: 18em;
    height: auto;
  }
}

@media screen and (max-width: 560px) {
  header {
    display: none;
  }

  .headertext {
    font-size: 1em;
  }

  .img-box img {
    height: 200px;
  }

  .badges {
    max-width: 80vw;
  }

  ul {
    font-size: 1.25rem;
  }

  p {
    font-size: .9rem;
  }

  .scroller[data-animated="true"] {
    overflow: visible;
    -webkit-mask: none;
    mask: none;
  }

  .scroller[data-animated="true"] .scroller__inner:hover {
    animation-play-state: running;
  }
}
