/* ==========================================
   LEVIAS MUSIC MAIN HUB
   ========================================== */


/* ==========================================
   MAIN PAGE
   ========================================== */

body {
  margin: 0;

  background: #000000;

  color: white;

  font-family: Arial, sans-serif;

  text-align: center;
}


/* ==========================================
   GENERAL TEXT
   ========================================== */

h1 {
  font-size: 60px;
}


p {
  font-size: 20px;
}


/* ==========================================
   HERO / LEVIAS LOGO
   ========================================== */

.hero {
  min-height: 100vh;

  display: flex;

  justify-content: center;
  align-items: center;

  position: relative;

  overflow: hidden;

  background: #000000;
}


/* Main LEVIAS logo */

.main-logo {
  width: 1500px;

  max-width: 100%;

  height: auto;

  position: relative;

  z-index: 1;

  animation:
    dropIn
    1.5s
    ease-out
    forwards;
}


/* Logo entrance animation */

@keyframes dropIn {

  0% {

    transform:
      translateY(-200px);

    opacity: 0;

  }


  100% {

    transform:
      translateY(0);

    opacity: 1;

  }

}


/* ==========================================
   MUSIC SECTION
   ========================================== */

.music-section {
  min-height: 100vh;

  padding:
    80px
    20px;

  text-align: center;

  background:

    radial-gradient(
      circle at 50% 10%,
      rgba(130, 0, 0, 0.12) 0%,
      rgba(70, 0, 0, 0.06) 32%,
      rgba(0, 0, 0, 0) 58%
    ),

    #000000;
}


/* MUSIC heading */

.music-section h2 {
  font-size: 48px;

  letter-spacing: 8px;

  text-shadow:

    0 0 18px
    rgba(180, 0, 0, 0.30),

    0 0 40px
    rgba(100, 0, 0, 0.18);
}


/* ==========================================
   ALBUM GRID
   ========================================== */

.album-grid {
  width: 100%;

  max-width: 1200px;

  margin:
    50px
    auto
    0;

  display: grid;

  grid-template-columns:
    repeat(3, 1fr);

  gap:
    50px
    35px;
}


/* ==========================================
   ALBUM CARD
   ========================================== */

.album-card {
  display: block;

  color: white;

  text-decoration: none;

  transition:
    transform
    0.3s
    ease;
}


.album-card:hover {
  transform:
    translateY(-8px)
    scale(1.03);
}


/* ==========================================
   ALBUM COVER
   ========================================== */

.album-cover {
  width: 100%;

  max-width: 350px;

  aspect-ratio:
    1 / 1;

  object-fit: cover;

  height: auto;

  box-shadow:
    0 15px 35px
    rgba(0, 0, 0, 0.55);

  transition:
    box-shadow
    0.35s
    ease,

    transform
    0.35s
    ease;
}


/* Red glow when hovering over an album */

.album-card:hover .album-cover {
  box-shadow:

    0 20px 60px
    rgba(180, 0, 0, 0.42),

    0 0 35px
    rgba(180, 0, 0, 0.22),

    0 0 0 1px
    rgba(255, 255, 255, 0.08);
}


/* ==========================================
   ALBUM TITLE
   ========================================== */

.album-title {
  font-size: 20px;

  margin-top: 15px;

  letter-spacing: 2px;

  transition:
    text-shadow
    0.3s
    ease;
}


.album-card:hover .album-title {
  text-shadow:
    0 0 15px
    rgba(255, 0, 0, 0.48);
}


/* ==========================================
   PIXEL GUITAR GUY
   BOTTOM-RIGHT CORNER
   ========================================== */

.music-guitar-guy {
  position: fixed;

  right: 22px;

  bottom: -500px;

  width: 180px;

  z-index: 999999;

  cursor: pointer;

  opacity: 0;

  transform:
    translateY(0);

  transition:

    bottom
    0.8s
    cubic-bezier(
      .34,
      1.56,
      .64,
      1
    ),

    opacity
    0.4s
    ease,

    transform
    0.25s
    ease;

  user-select: none;

  -webkit-user-select: none;

  -webkit-tap-highlight-color:
    transparent;

  -webkit-touch-callout:
    none;

  touch-action:
    manipulation;

  outline: none;
}


/* ==========================================
   CHARACTER VISIBLE
   ========================================== */

.music-guitar-guy.show {
  bottom: 20px;

  opacity: 1;
}


/* ==========================================
   CHARACTER IMAGE
   ========================================== */

.music-guitar-image {
  display: block;

  width: 100%;

  height: auto;

  object-fit: contain;

  image-rendering: pixelated;

  pointer-events: none;

  user-select: none;

  -webkit-user-select: none;

  -webkit-user-drag: none;

  -webkit-touch-callout: none;

  -webkit-tap-highlight-color:
    transparent;

  filter:
    drop-shadow(
      0
      8px
      10px
      rgba(0, 0, 0, 0.45)
    );
}


/* ==========================================
   SMALL HOVER MOVEMENT
   ========================================== */

.music-guitar-guy.show:not(.dropped):hover {
  transform:
    translateY(-5px);
}


/* ==========================================
   PERMANENT DROP
   ========================================== */

.music-guitar-guy.dropped {
  bottom: -500px;

  opacity: 0;

  transform:
    translateY(0);

  pointer-events: none;
}


/* ==========================================
   KEYBOARD FOCUS
   ========================================== */

.music-guitar-guy:focus-visible {
  outline:
    2px
    solid
    white;

  outline-offset:
    5px;
}


/* ==========================================
   TABLET
   ========================================== */

@media (max-width: 900px) {

  .album-grid {
    grid-template-columns:
      repeat(2, 1fr);
  }

}


/* ==========================================
   PHONE
   ========================================== */

@media (max-width: 600px) {

  .album-grid {
    grid-template-columns:
      1fr;
  }


  .album-cover {
    max-width:
      85%;
  }


  .music-section h2 {
    font-size:
      38px;

    letter-spacing:
      6px;
  }


  /* Guitar guy */

  .music-guitar-guy {
    right: 10px;

    width: 130px;
  }


  .music-guitar-guy.show {
    bottom: 10px;
  }

}