* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  background-color: black;
  background-image: url(img/backgroundbasement.png);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.grid-container {
  display: grid;
  grid-template-areas:
  'header'
  'main';
  gap: 10px;
  align-items: center;
  text-align: center;
  min-height: 100vh;
  grid-template-rows: auto 1fr;
}

.header {
  grid-area: header;

  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;

  gap: 20px;
  padding: 15px;

  background-image: repeating-linear-gradient(red, yellow 10%, green 20%);
  opacity: 90%;
  font-family: "audiowide", sans-serif;
  font-size: clamp(1.2rem, 4vw, 3.125rem);
  text-align: center;
}

.header a{
  text-decoration: none;
  padding: 0;
  color: #a200ff;
}

.header p{
margin: 0;
}

.header p:hover{
color: rgb(9, 10, 9);
font-weight: bolder;
text-shadow: 0 0 3px #00ff2a, 0 0 5px #078a18;
}


.main {
  grid-area: main;

  display: flex;
  flex-direction: column;
  align-items: center;

  width: 100%;
  min-width: 0;
  padding: 5px 10px 20px;
}

h1 {
  color: rgb(0, 0, 0);
  font-size: clamp(2.5rem, 10vw, 6.25rem);
  font-family:"audiowide", sans-serif;
  text-shadow: -2px -2px 0 #a200ff, 2px -2px 0 #a200ff,  -2px 2px 0 #a200ff, 2px 2px 0 #a200ff;
  text-align: center;
  width: 100%;
  margin: 20px 0;
}

.video-player {
  position: relative;
  width: min(100%, 800px);
  margin: 0 auto;
}

.video-tv {
  display: block;
  position: relative;
  width: 100%;
  height:auto;
  z-index: 2;
  pointer-events: none;
  margin: 0px 0;
  /* background-color: black;
  border: 5px solid yellow;
  border-radius: 25px; */
}

#youtube-player {
    position: absolute;

    top: 22%;      /* Adjust */
    left: 7%;     /* Adjust */

    width: 66%;    /* Adjust */
    height: 52%;   /* Adjust */

    border: none;
    z-index: 1;
}

#youtube-player iframe {
    width: 100% !important;
    height: 100% !important;
}

.video-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;

    gap: 10px;
    margin-top: 5px;

    font-family: "audiowide", sans-serif;
    color: white;
    z-index: 1;

    width: min(100%, 800px);
    padding: 0 5px;
}

.video-controls button {
  padding:
    clamp(0.25rem, 1vw, 0.625rem)
    clamp(0.5rem, 1.5vw, 1.125rem);

  border: 0;
  background-color: transparent;
  color: white;
  font-family: "audiowide", sans-serif;
  cursor: pointer;
}

.video-controls button img {
  display: block;
  width: auto;
  height: clamp(2rem, 6vw, 3.125rem);
}





.video-controls button:hover {
  transform: scale(110%);
}


#volume-control {
  appearance: none;
  -webkit-appearance: none;

  background: transparent;
  cursor: pointer;

  width: clamp(7.5rem, 25vw, 12.5rem);
  max-width: 100%;
}

#volume-control:hover {
    transform: scale(110%);
}

#volume-control::-webkit-slider-runnable-track {
    width: 100%;
    height: 30px;

    background-image: url("img/volume.png");
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;

    border: none;
}

#volume-control::-webkit-slider-thumb {
    appearance: none;
    -webkit-appearance: none;

    width: 40px;
    height: 40px;

    background-image: url("img/volumebutton.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;

    border: none;

    /* Centers the button vertically on the track */
    margin-top: -5px;
}


#volume-control::-moz-range-track {
    width: 100%;
    height: 30px;

    background-image: url("img/volume.png");
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;

    border: none;
}

#volume-control::-moz-range-thumb {
    width: 40px;
    height: 40px;

    background-image: url("img/volumebutton.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;

    border: none;
    border-radius: 0;
}


@media (max-width: 600px) {
  .header {
    gap: 10px;
    padding: 10px;
  }

  .main {
    padding: 10px;
  }

  h1 {
    margin: 10px 0;
  }
}
