@font-face {
  font-family: "Comic Relief";
  src: url(../type/ComicRelief-Regular.woff2);
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "Goldman";
  src: url(../type/Goldman/Goldman-Bold.ttf);
  src: url(../type/Goldman/Goldman-Regular.ttf);
  font-weight: 400;
  font-style: normal;
}

#light,
#dark {
  display: none;
}

#cookie-close {
  display: none;
}

#cookie-close:checked + .cookie-popup {
  display: none;
}

.cookie-popup {
  position: fixed;
  bottom: 1vw;
  left: 50%;
  transform: translateX(-50%);

  aspect-ratio: 16 / 9;
  padding: 2vw;
  width: 20vw;
  min-width: 300px;

  background-image: url("cookies.png");
  background-size: cover;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;

  z-index: 100;
}

.cookie-popup label {
  font-family: goldman;

  display: inline-block;
  padding: 7px;

  margin-top: 150px;
  margin-left: 2vw;
  font-size: 15px;

  background-color: #fdfdfd;
  border: 2px solid #3e3e3e;
  border-radius: 20px;

  cursor: pointer;
  transition: 0.2s;
}

.cookie-popup label:hover {
  background-color: #d9d8d8;
}

:root {
  --background: #08131d;
  --text: rgb(0, 0, 0);
}

body {
  background: var(--background);
  color: var(--text);
}

body:has(#dark:checked) {
  --background: #1d0217;
}

body:has(#dark:checked) .test2 {
  content: url("test2dark.jpg");
}

.theme-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
}

label[for="light"],
label[for="dark"] {
  position: relative;
  left: 35vw;
  top: 0.625vw;
  display: inline-block;
  font-family: Goldman;
  color: white;
  padding: 0.625vw 0.938vw;
  transition: transform 0.3s ease;
  font-size: calc(10px + 0.5vw);
}

label[for="light"]:hover,
label[for="dark"]:hover {
  animation: glitch 0.25s infinite;
}

h1 {
  position: absolute;
  font-family: Impact, "Arial Bold", sans-serif;
  font-size: calc(12px + 5.5vw);
  color: #cca01d;
  text-transform: uppercase;
  letter-spacing: -0.2vw;

  -webkit-text-stroke: 0.2vw #000000;

  text-shadow:
    0.313vw 0.313vw 0 #870606,
    0.5vw 0.5vw 0 #000000;

  margin-top: 0.5vw;
  left: 1.875rem;
  transform: rotate(-7deg);
  z-index: 10;
}

body {
  margin: auto;

  .home {
    display: flex;
    justify-content: center;
    margin-top: 4vw;
    margin-left: auto;
    margin-right: auto;
    height: 35vw;
    width: 80vw;
    max-width: 100%;
    max-height: 100%;
    aspect-ratio: 1 / 1;
    border: 0.625rem solid #e2ad0d;
  }
}

.test2 {
  position: absolute;
  max-width: 80vw;
  z-index: 0;
}

ul {
  position: relative;
  justify-content: center;
  margin-top: 5vw;
  font-size: calc(12px + 2.3vw);
  list-style: none;
  color: aliceblue;
  z-index: 2;
}

li a {
  background-image: url("pijl.png");
  background-size: 3vw 3vw;
  background-repeat: no-repeat;
  background-position: left center;
  padding-left: 3.3vw;
}

.test {
  position: absolute;
  width: 26.875vw;
  top: 6.25vw;
  left: 4.5vw;
  z-index: 9;
}

a:link {
  font-family: Goldman;
  color: #ffffff;
  text-decoration: none;
}

a:visited {
  color: #ffffff;
}

nav a {
  position: relative;
  display: inline-block;
  transition: transform 0.2s;
}

nav a:hover {
  animation: glitch 0.25s infinite;
}

.grid {
  padding-top: 5vw;
  width: 95%;
  margin: 20px auto;

  display: grid;
  grid-template-columns: 3fr 1.8fr;
  gap: 20px;
}

.box {
  min-height: 210px;
  border: 3px solid black;
  box-sizing: border-box;
  padding: 20px;
  background: white;
}
.top {
  text-align: center;
  font-size: 3vw;
  grid-column: 1 / -1;
  min-height: 5vw;
}

footer {
  color: #ccc;
}

@keyframes glitch {
  0% {
    transform: translate(0);
  }

  33% {
    transform: translate(-1px, 0.5px);
    color: rgba(255, 255, 255, 0.9);
  }

  66% {
    transform: translate(1px, -0.5px);
  }

  100% {
    transform: translate(-0.5px, -1px);
    color: rgba(255, 255, 255, 0.9);
  }
}
