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

body {
  display: flex;
  justify-content: center;
  margin-top: 10vh;
  background-color: #000;
  font-family: "Raleway", sans-serif;
}

#main-page {
  width: 80vw;
  height: 80vh;
  background-image: url("/images/landscape.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
}

#main-page h1 {
  font-size: 100px;
  font-weight: 900;
  color: #ffffff;
  background-color: #d5552388; 
  padding: 20px 40px;
  border-radius: 15px;
  box-shadow:4px 4px 0 #333;
  text-align: center;
}

#main-page h2 {
  font-size: 38px;
  margin-bottom: 30px;
  color: #110f0fef;
  text-shadow: 1px 1px 5px rgba(0,0,0,0.7);
  letter-spacing: 2px;
}

#container {
  width: 600px;
  height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 20px auto;
  border-radius: 25px;
  background: #d5552388; 
  box-shadow: 0 0 20px rgba(255, 105, 180, 0.2);
  backdrop-filter: blur;
  border: 2px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#container:hover {
  transform: scale(1.02);
  box-shadow: 0 0 30px rgba(255, 105, 180, 0.4);
}

#start-btn {
  padding: 15px 40px;
  font-size: 22px;
  cursor: pointer;
  background: linear-gradient(90deg, #00c9ff 0%, #92fe9d 100%);
  border: none;
  color: #fff;
  border-radius: 30px;
  transition: all 0.3s ease;
  font-weight: bold;
  box-shadow: 0 5px 15px rgba(0, 201, 255, 0.4);
}

#start-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(0, 201, 255, 0.6);
}

#game {
  width: 80vw;
  height: 80vh;
  background-image: url("/images/landscape.jpg");
  background-repeat: repeat-x;
  background-size: cover;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  display: none;
}

#player {
  position: absolute;
  left: 20px;
  bottom: 20px;
  width: 120px;
  height: auto;
  z-index: 2;
}

#player img {
  width: 100%;
  height: auto;
  display: block;
}

.jump {
  animation: jump 0.8s ease-out;
}

.obstacle {
  position: absolute;
  bottom: 20px;
  width: 50px;
  height: 80px;
  background-color: rgb(30, 169, 55);
  z-index: 1;
}

#score {
  position: absolute;
  top: 20px;
  left: 20px;
  font-size: 32px;
  color: white;
  font-weight: bold;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 10px 20px;
  border-radius: 10px;
  z-index: 10;
}

#game-over-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

#popup-content {
  background: #222;
  color: white;
  padding: 30px 50px;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 0 15px #ff3366;
}

#popup-content button {
  margin: 10px 15px;
  padding: 10px 25px;
  font-size: 18px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

#btn-yes {
  background-color: #4CAF50;
  color: white;
}

#btn-yes:hover {
  background-color: #45a049;
}

#btn-no {
  background-color: #f44336;
  color: white;
}

#btn-no:hover {
  background-color: #da190b;
}

.music-toggle {
  position: absolute;
  top: 15px;
  right: 15px;
  background-color: white;
  border-radius: 50%;
  border: none;
  padding: 5px;
  cursor: pointer;
  z-index: 100;
}

.music-toggle img {
  width: 24px;
  height: 24px;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.music-toggle:hover img {
  opacity: 1;
}
#instruction-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

#instruction-content {
  background: #333;
  color: white;
  padding: 40px;
  border-radius: 15px;
  text-align: center;
  max-width: 600px;
  box-shadow: 0 0 20px #00c9ff;
}

#instruction-content h2 {
  margin-bottom: 20px;
  font-size: 28px;
}

#instruction-content p {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 30px;
}

#start-game-btn {
  padding: 12px 30px;
  font-size: 18px;
  background-color: #00c9ff;
  border: none;
  border-radius: 8px;
  color: white;
  cursor: pointer;
}

#start-game-btn:hover {
  background-color: #009ec3;
}


@keyframes jump {
  0% { bottom: 20px; }
  50% { bottom: 260px; }
  100% { bottom: 20px; }
}