
body{
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
  background: #efeff5;
  color: #333;
}

header {
  position: relative;
  background-image: url('images/cao-bang.png');
  background-size: cover;
  background-position: center;
  color: white;
  text-align: center;
  padding: 60px 20px;
}

header::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.4); /* Lớp phủ đen mờ */
  z-index: 0;
}

header h1 {
  position: relative;
  z-index: 1;
  font-size: 56px;
}

header p {
  position: relative;
  z-index: 1;
  font-size: 28px;
}

.map-title {
  text-align: center;
  margin-bottom: 30px;
}

#map-section {
  overflow: visible;
  position: relative;
  z-index: 1;
}

.map-section {
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.mirror-text {
  font-size: 2.5rem;
  color: rgb(232, 232, 235);
  text-align: center;
  position: relative;
  text-shadow: 0px 10px 10px rgb(233, 232, 232);
}

.mirror-text::after {
  content: attr(data-text);
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  color: rgb(240, 240, 240);
  pointer-events: none;
}

nav { 
  background: #2d9cdb; 
  padding: 10px; 
  text-align: center; 
}

nav button {
  margin: 5px;
  padding: 10px 15px;
  font-size: 16px;
  background-color: #388e3c;
  color: white;
  border: none;
  cursor: pointer;
  border-radius: 5px;
}

nav button:hover {
  background-color: #219653;
}

main {
  padding: 20px;
}

.section {
  margin-top: 20px;
}

footer {
  background: #dbeafe;
  text-align: center;
  padding: 10px;
  margin-top: 30px;
}
#lessons {
  padding: 20px;
  background-color: #f0f8ff;
  border-radius: 10px;
  margin-top: 20px;
}

#lessons h2 {
  color: #2c3e50;
  margin-bottom: 15px;
}

.lesson {
  margin-bottom: 20px;
}

.lesson h3 {
  color: #007acc;
  margin-bottom: 8px;
}

.lesson ul {
  padding-left: 20px;
}

.lesson li {
  line-height: 1.6;
} 

.map-marker {
  --pin-color: red; 
  width: 30px;
  height: 30px;
  background: var(--pin-color);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg) ;
  position: absolute;
  cursor: pointer;
  box-shadow: 0 0 5px rgba(0,0,0,0.3);
  
}

/* Vòng tròn trắng bên trong */
.map-marker::after {
  content: "";
  width: 12px;
  height: 12px;
  background: white;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
}

/* Hộp nổi hiện đại */
.floating-box {
  position: absolute;
  width: 320px;
  background-color: #FF5C5C;
  color: white;
  border-radius: 20px;
  padding: 20px;
  text-align: center;
  font-family: sans-serif;
  font-size: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  z-index: 9999;
  transition: top 0.1s ease, left 0.1s ease;
}

.floating-box::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
 width: 20px;
  height: 20px;
  background-color: #FF5C5C;
  z-index: -1;
}

.floating-box img {
  width: 100%;
  border-radius: 10px;
  margin-top: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  aspect-ratio: 16/9;
}

@media screen and (max-width: 480px) {
   body {
    padding-left: 10px;
    padding-right: 10px;
  }

  .floating-box img {
    aspect-ratio: 4/3;
  }

  .map-marker {
    width: 18px;
    height: 18px;
  }

  .map-marker::after {
    width: 8px;
    height: 8px;
  }
}

#lessons {
  display: block !important;
}

.quiz-box {
  background-color: #e0f2fe;
  border: 2px solid #007bff;
  border-radius: 10px;
  padding: 30px;
  max-width: 600px;
  margin: 0 auto;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  font-family: sans-serif;
}

.quiz-question p,
.quiz-options {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
  font-weight: bold;
}

.quiz-options button {
  background-color: #1976d2;
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
}

.quiz-options button:hover {
  background-color: #125ea5;
}

#result {
  margin-top: 20px;
  font-size: 18px;
  font-weight: bold;
  color: #0d8447;
}

#lesson-section {
  background-color: #e0f2fe;
  border: 2px solid #007bff;
  border-radius: 10px;
  padding: 30px;
  max-width: 600px;
  margin: 0 auto;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.lesson-buttons {
  background-color: #007bff;
  padding: 10px 0;
  border-radius: 10px;
  display: flex;
  justify-content: center;
  gap: 15px;
}

.lesson-buttons button {
  background-color: #c8ff00;
  border: none;
  padding: 10px 20px;
  font-weight: bold;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.lesson-buttons button:hover {
  background-color: #fcd34f
}

.content {
  margin-top: 15px;
  text-align: left;
  color: #000;              
  font-weight: bold;
}

ul {
 padding-left: 20px;
}

@media screen and (max-width: 768px) {
  nav button {
    font-size: 14px;
    padding: 8px 12px;
  }

  header h1 {
    font-size: 36px;
  }

  header p {
    font-size: 20px;
  }

  .quiz-box, #lesson-section {
    padding: 20px;
    max-width: 90%;
  }

  .lesson-buttons {
    flex-wrap: wrap;
    gap: 10px;
  }

  .lesson-buttons button {
    flex: 1 1 100%;
  }
}