@font-face {
  font-family: "Pixellari";
  src: url("./fonts/Pixellari.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

@keyframes scroll-diag {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 440px 360px;
  }
}
@keyframes appear {
  from {
      filter: blur(10px);
      color: black;
      opacity: 0;
  }
}

/* Background and image settings */
body {
  font-family: "Pixellari", sans-serif;
  font-size: 20px;
}
.Background {
  background-image: url(./images/bg-downscaled.png);
  background-repeat: repeat;
  animation: scroll-diag 12s linear infinite;
  will-change: background-position;
}

/* Styles for the panels */
.PanelContainer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 10px;
  width: 100%;
}
.Panel {
  animation-name: appear;
  animation-duration: 2s;
  position: relative;

  color: white;
  
  border: 20px solid transparent;
  border-image: url("./images/panel.png") 5 fill stretch;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;

  width: fit-content;

  padding-top: 30px;
  padding-bottom: 30px;

  padding-left: 15px;
  padding-right: 15px;

  margin: 20px;

  display: flex;
  flex-direction: column; 
  
  flex: 1;
  min-width: 550px;
  max-width: 600px;

  text-align: center;
}

/* Button animations */
Button {
  cursor: pointer;
  color: white;

  font-family: "Pixellari", sans-serif;
  font-size: 23px;

  border: 20px solid transparent;
  border-image: url("./images/panel.png") 5 fill stretch;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;

  padding: 8px;
  margin: 15px;

  background-color:rgba(0, 0, 0, 0);

  width: fit-content;
  height: fit-content;
} a {
  cursor: pointer;
} a:hover {
  opacity: 0.65;
  transform: scale(1.1);
} a:active {
  opacity: 0.65;
  transform: scale(0.8);
}

/* Stuff for game buttons */
.GameButton {
  position: relative;
  display: inline-block;

  margin: 15px;
}
.game_text {
  position: absolute; 
  top: 50%; 
  left: 50%; 
  transform: translate(-50%, -50%); 
  margin: 0; 
  color: white;
  text-shadow: 3px 3px 0px rgb(0, 0, 0);
}

/* The logo on top of the page */
#logo {
  cursor: pointer;
  max-width: 100%;
}

/* Yellow holding animation */
@keyframes red-holding {
  0% {
    transform: rotate(-15deg);
  }
  50% {
    transform: rotate(15deg);
  }
  100% {
    transform: rotate(-15deg);
  }
}
.RedHolding {
  position: absolute;
  width: 200px;
  height: auto;

  top: 100%;
  left: 75%;

  transform-origin: top center;
  animation: red-holding 12s ease-in-out infinite;

  pointer-events: none;
}

/* Yellow sitting animation */
@keyframes yellow-sitting {
  0% {
    transform: scaleY(1);
  }
  50% {
    transform: scaleY(0.95)
  }
  100% {
    transform: scaleY(1);
  }
}
.YellowSitting {
  position: absolute;
  width: 150px;
  height: auto;

  top: -155px;
  left: 5%;

  transform-origin: bottom center;
  animation: yellow-sitting 4s cubic-bezier(0.42, 0, 0.58, 1) infinite;

  pointer-events: none;
}