* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

@font-face {
  font-family: "PressStart"; 
  src: url("assets/font/gamefont.ttf") format("truetype");
}

body {
  min-height: 100vh; 
  margin: 0;
  padding: 0;
  overflow: hidden; 
}

/* bg settings starts --------------------------- */
section {
  position: relative;
  width: 100%; 
  height: 100vh; 
  background: #000000; 
  display: flex; 
  flex-direction: column; 
  overflow: hidden; 
}

section .catsbg {
  position: relative; 
  top: -600px; 
  width: 100%; 
  display: flex; 
  padding: 10px 0; 
  white-space: nowrap; 
  font-size: 64px; 
  transform: rotate(-30deg); 
  justify-content: center; 
  align-items: center; 
}

i {
  color: rgba(61, 58, 59, 0.3);
  transition: 1s; 
  padding: 0 5px; 
  user-select: none; 
  cursor: default; 
}

i:hover {
  transition: 0s;
  color: #ff5277;
  text-shadow: 0 0 120px#FF5277;
}

section .catsbg div {
  animation: animate1 80s linear infinite;
  animation-delay: -80s;
}

section .catsbg div:nth-child(2) {
  animation: animate2 80s linear infinite;
  animation-delay: -40s;
}

@keyframes animate1 {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}

@keyframes animate2 {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-200%);
  }
}

section .catsbg:nth-child(even) div {
  animation: animate3 80s linear infinite;
  animation-delay: -80s;
}

section .catsbg:nth-child(even) div:nth-child(2) {
  animation: animate4 80s linear infinite;
  animation-delay: -40s;
}

@keyframes animate3 {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

@keyframes animate4 {
  0% {
    transform: translateX(-200%);
  }
  100% {
    transform: translateX(-0%);
  }
}

/* bg settings over --------------------------- */

.header {
  position: fixed;
  top: auto;
  left: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 50px;
  width: 100%;
  z-index: 0; 
}

.playfield {
  display: none;
  border: 3px;
  border-radius: 10px;
  position: relative;
  justify-content: center;
  background-color: rgb(199, 199, 199);
  width: 1000px;
  height: 500px;
  margin: 0 auto;
  overflow: hidden;
  z-index: 3;
}

.game-info {
  padding: 20px;
}

.games-info-all {
  display: none;
}

#content-top-screen {
  display: flex;
  justify-content: space-between;
  position: absolute;
  top:0;
  width: 100vw;
}
#sound-controller{
  width:40px;
  height:40px;
  background-size: cover;
  align-self: center;
  margin-right: 20px;
  background-image: url('/assets/playfield/volume.png');
  cursor: pointer;
}

#lives-display {
  font-family: "PressStart";
  font-size: 20px;
  color: white;
}

#score-display {
  font-family: "PressStart";
  font-size: 20px;
  color: white;
}

.kitten {
  z-index: 99;
}

.item {
  z-index: 90;
  background-size: "cover";
  background-repeat: "no-repeat";
}

.gamebg {
  background-position: bottom;
  background-repeat: repeat-x;
  background-size: cover;
  width: 100%;
  height: 100%;
  position: absolute;
}

.container {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  margin: 50px auto;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
  z-index: 3;
}

.container2 {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  margin: 50px auto;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
  z-index: 3;
}

.content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.intro {
  display: block;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
}

.game-start {
  background-color: #0a979c;
  margin: 10% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 70%;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 60%;
}

h1 {
  font-family: "PressStart";
  font-size: 50px;
  color: #ffffff;
  padding: 10px;
  text-align: center;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

p {
  font-family: "PressStart";
  text-align: center;
}

#start-button {
  padding: 20px 60px;
  background-color: #ff5277;
  color: #fff;
  font-size: 20px;
  font-family: "PressStart";
  text-decoration: solid;
  border-radius: 5px;
  transition: background-color 0.3s ease;
  cursor: pointer;
}

#start-button:hover {
  background-color: #fff;
  color: black;
}

#game-over {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  z-index: 2;
  display: none;
  flex-direction: column;
  align-items: center;

  justify-content: center;
}

#game-won {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  z-index: 2;
  display: none;
  flex-direction: column;
  align-items: center;

  justify-content: center;
}

#game-over img {
  width: 100%;
  height: auto;
  max-width: 500px;
  max-height: 300px;
  border-radius: 10px;
}

#game-won img {
  width: 500px;
  height: 100%;
  max-width: 500px;
  max-height: 700px;
  border-radius: 10px;
}

#game-over h1 {
  font-size: 48px;
  font-weight: bold;
  color: white;
  text-shadow: 2px 2px 4px black;
  margin: 10px 0;
}

#restart-button {
  padding: 20px 30px;
  background-color: #fff;
  color: black;
  font-size: 20px;
  font-family: "PressStart";
  text-decoration: solid;
  border-radius: 5px;
  transition: background-color 0.3s ease;
  cursor: pointer;
}

#restart-button:hover {
  background-color: #ff5277;
  color: white;
}
