@layer vendor, base, components;
@import url('https://fonts.bunny.net/css?family=special-elite:400') layer(vendor);
@import url('./lite-yt.css') layer(base);

@layer base {
  *,
  *::before,
  *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  html {
    font-family: 'Special Elite', serif;
  }

  body {
    background-image: url('bg.png');
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
  }

  h1 {
    font-size: 2.5rem;
    margin-block-start: 2rem;
    padding-block: 1rem;
    text-align: center;
    transform: rotate(-5deg);
    & span {
      background-color: hsl(305deg 76% 63% / .4);
      padding: .5rem;
    }
  }
}

.videos {
  height: 100%;
  isolation: isolate;
  margin-inline: auto;
  margin-block-start: 8rem;
  position: relative;
  width: clamp(400px, 80%, 760px);
}

lite-youtube {
  border: .85rem solid hsl(350deg 100% 88% / 1);
  box-shadow: 2px 2px 2rem hsl(0deg 0% 0% / .5);
  max-width: 100%;
  padding: 1rem;
  isolation: isolate;

  & .delete-btn {
    background-color: red;
    border-radius: 8px;
    border: none;
    color: white;
    padding: .5rem 1rem;
    position: absolute;
    top: 2%;
    right: 2%;
    z-index: 10;
  }
}
@media screen and (min-width: 768px) {
  lite-youtube {
    border: 2rem solid hsl(350deg 100% 88% / 1);
  }
}
lite-youtube::before { display: none; }

lite-youtube:nth-of-type(odd) {
  transform: rotate(var(--rotate, 6deg));
}
lite-youtube:nth-of-type(even) {
  transform: rotate(var(--rotate, -3deg));
}


@layer components {
  form {
    margin-inline: auto;
    margin-block-start: 1rem;
    max-width: 400px;
    width: 100%
  }

  label {
    background-color: hsl(58deg 100% 50% / .5);
    display: inline-block;
    margin-block-start: .5rem;
    padding: .5rem;
  }

  input {
    border: 1px solid hsl(0deg 0% 0% / .5);
    border-radius: 8px;
    padding: .85rem;
    width: 100%;
  }
}
