* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #2c3e50;
  background: linear-gradient(135deg, #4ecdc4 0%, #44a08d 100%);
  min-height: 100vh;
}

/* Custom container for hero and dashboard */
.container {
  max-width: 1200px;
}

/* Custom card shadow for dashboard and forms */
.card.shadow-lg {
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1) !important;
}

/* Custom navbar styles override Bootstrap */
.navbar {
  background: rgba(255, 255, 255, 0.15) !important;
  backdrop-filter: blur(10px);
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.nav-logo {
  color: #ffffff;
  font-size: 1.8rem;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.nav-menu a {
  color: #ffffff !important;
  text-decoration: none;
  margin-left: 2rem;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.nav-menu a:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}

.navbar {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  color: #ffffff;
  font-size: 1.8rem;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.nav-menu a {
  color: #ffffff;
  text-decoration: none;
  margin-left: 2rem;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.nav-menu a:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}

.main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.hero {
  text-align: center;
  color: white;
  padding: 4rem 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  color: #ffffff;
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  opacity: 0.95;
}

.auth-container {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 15px;
  padding: 2.5rem;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  max-width: 400px;
  margin: 2rem auto;
  border: 1px solid rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
}

.auth-container h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  color: #2c3e50;
  font-size: 2rem;
}

.text-center {
  text-align: center;
}

.mt-2 {
  margin-top: 2rem;
}

.dashboard {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 15px;
  padding: 2.5rem;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.dashboard h2 {
  color: #2c3e50;
  margin-bottom: 1.5rem;
  font-size: 2.2rem;
}

.dashboard p {
  color: #34495e;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.dashboard ul {
  margin: 1.5rem 0;
  padding-left: 2rem;
}

.dashboard ul li {
  margin-bottom: 0.8rem;
  color: #34495e;
  font-size: 1.1rem;
}

/* Beach-themed decorative elements */
.beach-wave {
  height: 100px;
  background: linear-gradient(180deg, #4ecdc4 0%, #44a08d 50%, #ffffff 50%);
  margin-top: 2rem;
  border-radius: 0 0 50% 50% / 0 0 100% 100%;
}

.sand-texture {
  background: linear-gradient(135deg, #e6b89c 0%, #d9a57a 100%);
  height: 20px;
  border-radius: 10px;
  margin: 1rem 0;
  color: brown;
}

.dashboard-progress {
  height: 30px;
}

.question-board {
  max-width: 960px;
  display: grid;
  gap: 1rem;
}

.question-part {
  background: #ffffff;
  border: 1px solid #1f7d7b;
  border-radius: 16px;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.1);
}

.question-part-1 {
  padding: 1.4rem;
}

.question-title {
  margin-bottom: 0.6rem;
  color: #1e3b53;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

.question-text {
  font-size: 1.3rem;
  font-weight: 600;
  color: #263848;
  text-align: center;
}

.question-image {
  width: 100%;
  max-height: 340px;
  object-fit: contain;
  border-radius: 12px;
  background: #ffffff;
  
}

.question-parts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.answer-tile {
  border: 1px solid #1f7d7b;
  border-radius: 16px;
  min-height: 135px;
  padding: 1rem;
  font-size: 1.2rem;
  font-weight: 600;
  text-align: left;
  background: rgba(255, 255, 255, 0.96);
  color: #1f2f3d;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.1);
  transition: transform 0.16s ease, box-shadow 0.16s ease, outline-color 0.16s ease;
  outline: 3px solid transparent;
}

.answer-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.14);
}

.answer-tile:focus-visible {
  outline-color: #1889a3;
}

.answer-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #1f7d7b;
  color: #ffffff;
  font-weight: 700;
}

.answer-tile.correct {
  background: #dff6e8;
}

.answer-tile.wrong {
  background: #ffe6e6;
}

.question-part-6 {
  padding: 1rem 1.4rem;
}

.feedback-result {
  font-weight: 600;
  font-size: 4rem;
  text-align: center;
}
#feedback-correct {
  font-weight: 600;
  font-size: 1.25rem;
  text-align: center;
}

#next-question-btn,
#next-question-btn:hover,
#next-question-btn:focus,
#next-question-btn:active {
  background: #1f7d7b;
  border-color: #1f7d7b;
  color: #ffffff;
}

@media (max-width: 767px) {
  .question-board {
    gap: 0.65rem;
  }

  .question-part {
    border-radius: 12px;
  }

  .question-part-1 {
    padding: 0.9rem;
  }

  .question-title {
    font-size: 1rem;
    margin-bottom: 0.45rem;
  }

  .question-text {
    font-size: 1.05rem;
  }

  .question-image {
    max-height: 60px;
    margin-bottom: 0.65rem;
  }

  .question-parts-grid {
    grid-template-columns: 1fr;
    gap: 0.65rem;
    padding: 0.35rem 0.5rem;
  }

  .answer-tile {
    min-height: 40px;
    padding: 0.35rem 0.5rem;
    font-size: 0.98rem;
    border-radius: 12px;
    gap: 0.55rem;
  }

  .answer-label {
    width: 28px;
    height: 28px;
    font-size: 0.40rem;
  }

  .question-part-6 {
    padding: 0.8rem 0.9rem;
  }

  .feedback-result {
    font-size: 1rem;
    padding: 0.2rem 0.2rem;
  }

  #feedback-correct {
    font-size: 1rem;
    padding: 0.2rem 0.2rem;
  }

  #next-question-btn {
    font-size: 1rem;
    padding: 0.2rem 0.2rem;
  }
}
