* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  font-family: 'Vazirmatn', sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 40px 20px;
  background:
    radial-gradient(circle at 15% 20%, #b8ffa6 0 140px, transparent 141px),
    radial-gradient(circle at 85% 25%, #ffe8d3 0 160px, transparent 161px),
    radial-gradient(circle at 25% 85%, #ffc7e9 0 180px, transparent 181px),
    linear-gradient(180deg, #b7ecff 0%, #d8fff0 60%, #fff5d6 100%);
}

.level-container {
  display: flex;
  gap: 30px;
  margin-top: 110px;
  flex-wrap: wrap;
  justify-content: center;
}

.level-btn {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 1.4rem;
  font-weight: bold;
  color: #fff;
  box-shadow: 0 15px 30px rgba(0,0,0,0.2);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.level-btn.easy {
  background: linear-gradient(135deg, #4caf50, #81c784);
}

.level-btn.medium {
  background: linear-gradient(135deg, #ff9800, #ffb74d);
}

.level-btn.hard {
  background: linear-gradient(135deg, #f44336, #e57373);
}

.level-btn:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 25px 40px rgba(0,0,0,0.25);
}

.back-btn {
  position: fixed;
  top: 20px;
  right: 20px;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(6px);
  padding: 10px 18px;
  border-radius: 999px;
  text-decoration: none;
  color: #333;
  font-weight: bold;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.back-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.2);
}

h1 {
  font-size: 1.1rem;
  font-weight: 400;
  color: #4caf50;
  opacity: 0.85;
}

h2 {
  margin: 10px 0 30px;
  font-size: 2.4rem;
  color: #333;
}

.frame-wrapper {
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(6px);
  border-radius: 24px;
  padding: 18px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.12), 0 0 0 6px rgba(255,255,255,0.6);
}

iframe {
  width: 800px;
  height: 600px;
  border: none;
  border-radius: 18px;
  background: #fff;
  box-shadow: inset 0 0 0 3px #2aeb44;
}

@media (max-width: 860px) {
  iframe {
    width: 95vw;
    height: 520px;
  }
}

@media (max-width: 500px) {
  iframe {
    height: 440px;
  }

  h2 {
    font-size: 1.8rem;
  }
}

.axis-container {
  position: relative;
  width: 100%;
  max-width: 900px;
  height: 300px;
  margin-top: 80px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.axis-center {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #f5d45c;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.8rem;
  font-weight: bold;
  z-index: 2;
}

.axis-btn {
  width: 60px;
  height: 40px;
  background: #f5d45c;
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  cursor: pointer;
  position: absolute;
  transition: all 0.3s ease;
  z-index: 1;
}

.axis-btn.right { left: calc(100% - 80px); top: 50%; transform: translateY(-50%); }
.axis-btn.left  { left: 0; top: 50%; transform: translateY(-50%); }
.axis-btn.up    { left: 50%; top: 0; transform: translateX(-50%); }
.axis-btn.down  { left: 50%; bottom: 0; transform: translateX(-50%); }

.move-right { transform: translateX(120vw); }
.move-left  { transform: translateX(-120vw); }
.move-up    { transform: translateY(-120vh); }
.move-down  { transform: translateY(120vh); }

@media (max-width: 600px) {
  .axis-container {
    height: 250px;
  }

  .axis-btn {
    width: 50px;
    height: 35px;
    font-size: 0.9rem;
  }

  .axis-center {
    width: 60px;
    height: 60px;
    font-size: 1.4rem;
  }
}

::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: #ffd3e7;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background-color: #c7f7ff;
  border-radius: 10px; 
  border: 3px solid #f0f0f0;
}

::-webkit-scrollbar-thumb:hover {
  background-color: #fff6a6;
}

