@font-face {
  font-family: Retro;
  src: url(../fonts/retro_computer.ttf);
}

@font-face {
  font-family: Minecraft;
  src: url(../fonts/Minecraft-Regular.otf);
}

@font-face {
  font-family: Nokia;
  src: url(../fonts/nokia.ttf);
}

* {
  scrollbar-width: none;
  image-rendering: pixelated;
}

body {
  background-color: black;
  background-image: url(../images/teppich-bg.png);
  background-size: 100%;
  background-repeat: repeat-y;
  z-index: -1;
  aspect-ratio: 16 / 9;
}

a {
  text-decoration: none;
}

h1 {
  font-family: Retro;
  color: white;
}

#title-container {
  height: 10vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

#title-center {
  position: relative;
}

#title-center h1 {
  font-size: 3vw;
  text-align: center;
  text-shadow: 3px 3px 5px black;
}

#splashtext {
  position: absolute;
  text-align: center;
  bottom: 0.5vw;
  right: -6vw;
  width: fit-content;
  rotate: -25deg;
  transform-origin: 50% 50%;
  color: #f4f443;
  text-shadow: 3px 3px 0 #413f0a;
  font-size: 1.5vw;
  font-family: Minecraft;
  animation-name: splashtext;
  animation-duration: 0.5s;
  animation-timing-function: ease-out;
  animation-iteration-count: infinite;
  animation-direction: alternate;
}

@keyframes splashtext {
  from {transform: scale(1.1);}
  to {transform: scale(1.0);}
}

.thingy {
  position: absolute;
  filter: drop-shadow(5px 5px 5px black);
  cursor: pointer;
}

.thingy h1 {
  display: none;
  position: relative;
  color: white;
  font-weight: normal;
  text-shadow: 2px 2px 3px black;
}

.thingy img {
  width: 100%;
}

.thingy:hover {
  rotate: -20deg;
  filter: drop-shadow(5px 5px 10px white);
}

.thingy:hover h1 {
  display: initial;
  transform: rotate(0deg);
}

#sketchbook {
  top: 140px;
  left: 150px;
  width: 250px;
}

#sketchbook h1 {
  top: -150px;
  left: 20px;
}

#secret {
  top: 70px;
  right: 150px;
  width: 120px;
  transform: rotate(20deg);
}

#secret h1 {
  top: -150px;
  left: 0px;
}

#dvd {
  top: 533px;
  left: 512px;
  background-image: url(../images/dvd.png);
  background-size: contain;
  background-repeat: no-repeat;
  width: 160px;
  height: 180px;
  transform: rotate(-20deg);
}

#dvd:hover {
  background-image: url(../images/dvd-open.png);
}

#dvd h1 {
  top: 50px;
  left: 20px;
}

#todolist {
  bottom: 150px;
  right: 120px;
  width: 150px;
}

#todolist h1 {
  top: -100px;
  left: -30px;
}

#todolist-popup {
  display: none;
  position: absolute;
  background-color: #00000096;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%; 
  height: 100%;
}

#todolist-popup-close {
  position: absolute;
  width: 100%; 
  height: 100%;
}

#todolist-popup-content {
  margin-top: 10%;
  margin-left: auto;
  margin-right: auto;
  background-image: url(../images/book-bg.png);
  background-size: 100%;
  width: 500px;
  height: 615px;
  font-size: 32px;
}

#todolist-popup-content p {
  position: relative;
  top: 40px;
  left: -60px;
  text-align: right;
  list-style: none;
  font-family: Minecraft;
  overflow-wrap: break-word;
}

#todolist-popup-content ul {
  width: 380px;
}

#todolist-popup-content li {
  position: relative;
  top: 20px;
  left: 20px;
  list-style: none;
  font-family: Minecraft;
  line-height: 33px;
}

#mc-server-container {
  position: absolute;
  bottom: 10px;
  width: 250px;
  height: 110px;
  border: white;
  border-width: 4px;
  border-style: solid;
  background-color: #0000006f;
}

#mc-server-icon {
  padding: 5px;
  width: 100px;
}

#mc-server-container p {
  position: absolute;
  right: 20px;
  top: -20px;
  color: #a8a8a8;
  text-shadow: 3px 3px 0 #575757;
  font-size: 30px;
  font-family: minecraft;
}

#mc-server-ping {
  width: 30px;
}

#doom-container {
  position: absolute;
  bottom: 0px;
  left: 120px; 
  width: 100px;
  height: 235px;
  background-image: url(/assets/images/nokia.png);
}

#doom-container p {
  position: relative;
  top: 52px;
  left: 25px;
  font-size: 11px;
  font-family: Nokia;
  font-weight: normal;
  color: #6a284a;
}

#doom-container h1 {
  position: relative;
  top: 30px;
  left: 38px;
  font-size: 30px;
  font-family: Nokia;
  font-weight: normal;
  color: #6a284a;
}

#footer-container {
  position: absolute;
  width: 100%;
  bottom: 10px;
  height: 3vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

#footer-container h1 {
  text-align: center;
  font-size: 20px;
  text-shadow: 2px 2px 3px black;
  font-weight: normal;
}

#footer-container span {
  text-decoration: underline;
  text-decoration-style: wavy;
}

#footer-container a {
  color: #cad4a0;
  text-shadow: 2px 2px 3px black;
  text-decoration: underline;
  text-decoration-style: wavy;
  background-image: url(../images/garfriend.png);
  background-size: 100%;
  background-position-x: -8px;
  background-position-y: 10px;
  background-repeat: no-repeat;
  background-clip: padding-box;
  padding: 30px 20px 30px 20px;
}

@media only screen and (max-width: 600px) {
  body {
    background-image: url(../images/teppich-bg-phone.png);
    background-position: 50% 0;
  }

  #main-title {
    margin-top: 50px;
    font-size: 35px;
  }

  #sketchbook {
    top: 140px;
    left: 30px;
    width: 200px;
  }
}