@import url("https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

* {
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
  padding: 0;
  margin: 0;
}

body {
  min-height: 100vh;
  width: 100%;
  background-color: black;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

main {
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  flex: 1;
  padding: 1rem 0;
}

main h1 {
  color: white;
  font-weight: 100;
  font-size: 3rem;
}

main p {
  color: #a5a5a5;
  margin-top: 4px;
}

.channels {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 4rem;
  margin-bottom: 2rem;
  justify-content: center;
  padding: 0 1rem;
}

.channel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: translateY(0);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.channel img {
  margin-bottom: 10px;
  width: 180px;
  max-width: 100%;
  height: auto;
  border-radius: 10%;
  transition: border-radius 220ms ease, transform 220ms ease;
}

.channel h2 {
  color: white;
  font-size: 1.2rem;
  margin-bottom: 5px;
}

.channel p {
  color: #a5a5a5;
}

.channel:hover {
  transform: translateY(-4px);
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.channel:hover img {
  border-radius: 5%;
}

footer {
  text-align: right;
  padding: 1rem 0;
}

footer {
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  padding-right: 1.5rem;
  color: #a5a5a5;
}

footer {
  position: fixed;
  right: 0;
  bottom: 0;
  margin: 0;
  font-size: small;
  z-index: 1000;
}

footer a {
  text-align: right;
  color: #a5a5a5;
  width: fit-content;
  font-weight: 500;
}

footer a:hover {
  text-decoration: underline;
}

.inline-footer {
  position: static;
}

body {
  padding-bottom: 4rem;
}

.subscriber-count {
  margin-bottom: 1px;
}

a {
  text-decoration: none;
}

a:focus,
a:focus-visible,
.channel:focus,
.channel:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(80, 120, 255, 1);
  transition: box-shadow 380ms ease;
}

.footer-email-link:hover {
  text-decoration: underline;
}

@media (max-width: 600px) {
  main h1 {
    margin-top: 5rem;
  }

  main p {
    font-size: 1.2rem;
  }

  .channels {
    gap: 1rem;
    margin-top: 2rem;
    padding: 0 0.75rem;
    flex-direction: column;
    align-items: center;
  }

  .channel {
    width: 100%;
    max-width: 480px;
    padding: 0.5rem;
    text-align: center;
    align-items: center;
    display: flex;
    flex-direction: column;
  }

  .channel img {
    width: 80%;
    height: auto;
    margin-bottom: 0.4rem;
    border-radius: 8%;
    display: block;
  }

  .channel h2 {
    margin-top: 1rem;
    font-size: 2rem;
  }

  .channel .channel-genres,
  .subscriber-count {
    font-size: 1.2rem;
  }

  footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    width: calc(100% - 1rem);
    justify-content: center;
    border-radius: 8px;
    z-index: 1100;
    background: rgba(0, 0, 0, 0.6);
    width: 100%;
    backdrop-filter: blur(4px);
  }

  body {
    padding-bottom: 5.25rem;
  }

  .channel,
  .channel img {
    transition: none !important;
  }

  .channel:hover,
  .channel:active,
  .channel:focus {
    transform: none !important;
    box-shadow: none !important;
    cursor: pointer;
  }

  .channel:hover img,
  .channel:active img,
  .channel:focus img {
    border-radius: 8% !important;
  }
}
