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

body {
  font-family: "Poppins", sans-serif;
  background: linear-gradient(135deg, #f5f7fa 0%, #e4e9f2 100%);
  margin: 0;
  padding: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: #2d3436;
}

#main {
  transition: margin-left 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 20px;
  width: 100%;
}

.container {
  background: rgba(255, 255, 255, 0.95);
  padding: 30px;
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  max-width: 900px;
  width: 95%;
  margin: 20px auto;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition: transform 0.3s ease;
}

.container:hover {
  transform: translateY(-5px);
}

.image {
  position: relative;
  margin: 0 auto 30px;
  border-radius: 16px;
  overflow: hidden;
  max-width: 350px;
  width: 90%;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: center;
}

.image img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 16px;
  transition: transform 0.5s ease;
}

.image:hover img {
  transform: scale(1.02);
}

.sanKName,
.enName {
  font-size: 32px;
  font-weight: 700;
  background: linear-gradient(45deg, #2ecc71, #27ae60);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 10px;
  text-align: center;
  letter-spacing: -0.5px;
}

#timer {
  font-size: 48px;
  font-weight: 700;
  color: #2ecc71;
  text-align: center;
  margin: 20px 0;
  font-family: "DM Mono", monospace;
  text-shadow: 0 2px 4px rgba(46, 204, 113, 0.2);
}

.navigation-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  align-items: center;
  margin: 25px 0;
}

.control-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.prev,
.next {
  background: linear-gradient(45deg, #2ecc71, #27ae60);
  color: white;
  border: none;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 50px;
  transition: all 0.3s ease;
  text-decoration: none;
  text-align: center;
  min-width: 140px;
  box-shadow: 0 4px 15px rgba(46, 204, 113, 0.2);
}

.control-button {
  background: white;
  color: #2ecc71;
  border: 2px solid #2ecc71;
  padding: 10px 20px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 50px;
  transition: all 0.3s ease;
  min-width: 120px;
}

.prev:hover,
.next:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(46, 204, 113, 0.3);
}

.control-button:hover {
  background: #2ecc71;
  color: white;
  transform: translateY(-2px);
}

.description,
.benefits,
.time,
.steps {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 16px;
  margin-bottom: 20px;
  line-height: 1.8;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.steps ol {
  padding-left: 20px;
}

.steps li {
  margin-bottom: 10px;
  padding-left: 10px;
}

.sidenav {
  height: 100%;
  width: 0;
  position: fixed;
  z-index: 1001;
  top: 0;
  left: 0;
  background: linear-gradient(135deg, #27ae60, #2ecc71);
  overflow-x: hidden;
  padding-top: 60px;
  transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 4px 0 15px rgba(0, 0, 0, 0.1);
}

.sidenav a,
#poseNavigation li {
  padding: 15px 25px;
  font-size: 20px;
  color: white;
  display: block;
  transition: 0.3s;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidenav a:hover,
#poseNavigation li:hover {
  background: rgba(255, 255, 255, 0.1);
  padding-left: 35px;
}

.sidenav .closebtn {
  position: absolute;
  top: 0;
  right: 25px;
  font-size: 36px;
  margin-left: 50px;
  color: white;
  text-decoration: none;
}

.open-pose-menu {
  position: fixed;
  top: 20px;
  left: 20px;
  font-size: 24px;
  padding: 10px 15px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  cursor: pointer;
  transition: all 0.3s ease;
}

.open-pose-menu:hover {
  transform: scale(1.1);
}

.toggle-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
}

#languageToggle {
  background: white;
  color: #2ecc71;
  border: 2px solid #2ecc71;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
}

#languageToggle:hover {
  background: #2ecc71;
  color: white;
  transform: translateY(-2px);
}

.bottom-section {
  display: grid;
  gap: 20px;
  margin-top: 30px;
}

.chant {
  background: linear-gradient(135deg, #f5f7fa 0%, #e4e9f2 100%);
  padding: 25px;
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

@media (max-width: 768px) {
  .container {
    padding: 20px;
  }

  .navigation-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .control-buttons {
    order: -1;
    width: 100%;
  }

  .prev,
  .next,
  .control-button {
    width: 100%;
    margin: 5px 0;
  }

  .sanKName,
  .enName {
    font-size: 24px;
  }

  #timer {
    font-size: 36px;
  }

  .toggle-container {
    top: 70px;
  }
}

@media (max-width: 480px) {
  #main {
    padding: 10px;
  }

  .container {
    padding: 15px;
    border-radius: 20px;
  }

  .sanKName,
  .enName {
    font-size: 20px;
  }

  .description,
  .benefits,
  .time,
  .steps {
    padding: 15px;
    font-size: 14px;
  }

  #timer {
    font-size: 32px;
  }

  .sidenav a,
  #poseNavigation li {
    padding: 12px 20px;
    font-size: 14px;
  }

  .open-pose-menu {
    top: 15px;
    left: 15px;
    font-size: 20px;
    padding: 8px 12px;
  }
}