* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  color: #fff;
}
img {
  max-width: 100%;
}

h1 {
  color: white;
  text-align: center;
  padding: 40px;
}

ul {
  list-style: none;
}

.page-header {
  background-color: black;
}

.preview {
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

.preview video {
  background-color: black;
  width: 100%;
  border: 5px solid black;
  margin-top: 80px;
}

.screenshots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  column-gap: 40px;
  row-gap: 40px;
  padding-top: 80px;
  padding-bottom: 80px;
}

.screenshot {
  max-width: 320px;
  min-width: 280px;
  border-radius: 20px;
  border: 5px solid black;
}

.screenshot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 15px;
}

.game-wrapper {
  margin-left: auto;
  margin-right: auto;
  background-color: black;
  margin-bottom: 80px;
}

.webgl {
  outline: none;
}

.page-footer p {
  background-color: black;
  color: white;
  padding: 100px;
  text-align: center;
}
.page-header {
  text-align: center;
  padding: 20px;
}
.page-header {
  background-color: black;
}
.page-main {
  position: relative;
  width: 100%;
  height: 100vh;
}

.game-container {
  width: 100%;
  height: 100%;
}

#game-ui {
  position: absolute;
  z-index: 10;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

#start-button,
#restart-button {
  padding: 15px 35px;
  font-size: 22px;
  background: linear-gradient(135deg, #ff4e50, #f9d423);
  color: white;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 6px 15px rgba(255, 78, 80, 0.4);
  text-transform: uppercase;
  font-weight: bold;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
}

#start-button::before,
#restart-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: 0.5s;
}

#start-button:hover,
#restart-button:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(255, 78, 80, 0.6);
}

#start-button:hover::before,
#restart-button:hover::before {
  left: 100%;
}

#start-button:active,
#restart-button:active {
  transform: translateY(0);
  box-shadow: 0 3px 8px rgba(255, 78, 80, 0.3);
}

#score {
  font-size: 24px;
  color: #fff;
  position: absolute;
  top: 20px;
  left: 20px;
  background-color: rgba(0, 0, 0, 0.7);
  padding: 10px 15px;
  border-radius: 5px;
  z-index: 100;
  font-weight: bold;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

#game-over {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.9),
    rgba(25, 25, 35, 0.95)
  );
  padding: 40px 50px;
  border-radius: 15px;
  text-align: center;
  z-index: 100;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  min-width: 320px;
}

#game-over h2 {
  color: #ff4e50;
  font-size: 32px;
  margin-bottom: 20px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

#game-over p {
  color: white;
  font-size: 22px;
  margin-bottom: 30px;
}

#final-score {
  color: #f9d423;
  font-weight: bold;
  font-size: 26px;
}

.hidden {
  display: none;
}
