* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  background-color: black;
  background-image: url(img/background3.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%;
padding: 20px;
color: aliceblue;

}

h1 {
  color: rgb(0, 0, 0);
font-size: clamp(1.75rem, 8vw, 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;
}

.tvThing {
  position: relative;
  width: min(90vw, 65vh, 930px);
}

#supportTV {
  display: block;
  width: 100%;
  height: auto;
}

.bildruta {
  top: 15%;
  left: 20%;
  position: absolute;
  height: auto;
  width: 60%;
  aspect-ratio: 1.2 / 1;
  overflow: hidden;
  /* border: 5px solid yellow; */

}

.stacked {
  position: absolute;
  top: 0;
  left: 0;
  /* border: 5px solid white; */
}

#patreonlink {
  /* grid-column: 1;
  grid-row: 1; */
  overflow: hidden;
  width: 65%;
  z-index: 1;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

#kppatreonimg {
  height: auto;
  width: 100%;
}

#startUpVideo {
  width: 150%;
  height: 100%;
  left: -25%;
  object-fit: cover;
}

#patreonlink:hover {
  /* transform: scale(1.05, 1.05); */
  filter: brightness(110%);
}

#start-button, #next-button, #prew-button {
  position: absolute;
}

#start-button {
  left: 74.55%;
  top: 86.5%;
  width: 7%;
  height: 8%;
  z-index: 2;
  border-radius: 50%;
  opacity: 0%;
  /* background-color: #00ff15; */
}

#next-button {
  left: 43.3%;
  top: 88.5%;
  width: 5%;
  height: 4%;
  z-index: 2;
  border-radius: 0 50% 50% 0;
  opacity: 0%;
  /* background-color: #ff0000; */
}

#prew-button {
  left: 38.5%;
  top: 88.5%;
  width: 5%;
  height: 4%;
  z-index: 2;
  border-radius: 50% 0 0 50% ;
  opacity: 0%;
  /* background-color: #0059ff; */
}

#start-button:hover,
#start-button:focus-visible,
#start-button:active,
#next-button:hover,
#next-button:focus-visible,
#next-button:active,
#prew-button:hover,
#prew-button:focus-visible,
#prew-button:active {
  opacity: 0.15;
  outline: 2px solid white;
}

#patreonlink:focus-visible {
  outline: 3px solid white;
}

@media (max-width: 600px) {
  .header {
    gap: 10px;
    padding: 10px;
  }

  .main {
    padding: 10px;
  }

  h1 {
    margin: 10px 0;
  }

  .tvThing {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
  }

  #supportTV {
    display: none;
  }

  .bildruta {
    position: relative;
    inset: auto;
    width: 100%;
    aspect-ratio: 1.2 / 1;
    background: #111;
    border: 2px solid #555;
  }

  #patreonlink {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transform: none;
  }

  #kppatreonimg {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  #startUpVideo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

.tvThing #start-button,
.tvThing #next-button,
.tvThing #prew-button {
  position: relative;
  inset: auto;
  width: 48px;
  height: 48px;
  opacity: 1;
  background-color: transparent;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  color: #111;
  border: none;
  border-radius: 8px;
  font-size: 24px;
  cursor: pointer;
  }

.tvThing #start-button:is(:hover, :focus-visible, :active),
.tvThing #next-button:is(:hover, :focus-visible, :active),
.tvThing #prew-button:is(:hover, :focus-visible, :active) {
    opacity: 1;
    outline: 2px solid white;
  }

#start-button {
  background-image: url("img/powerbutton.png");
}

#prew-button {
  background-image: url("img/prevnextbutton.png");
}

#next-button {
  background-image: url("img/prevnextbutton.png");
}

  #prew-button { order: 1; }
  #start-button { order: 2; }
  #next-button { order: 3; }
}