@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@300..700&display=swap');

body {
  font-family: 'Quicksand', sans-serif;
  font-size: 20px;
  background: #fffaf2;
  color: #333;
  margin: 0;
  padding: 0;
}

a {
  color: #333;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0;
}

header {
  background: #e94e1b;
  color: white;
  padding: 20px;
  text-align: left;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
}

.header-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  background: #e94e1b;
  color: white;
  padding: 20px;
}

.header-text {
  flex: 2;
}

.header-image {
  flex: 1;
}

.header-image picture,
.header-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

h1, h2, h3, h4, h5 {
  color: #d43f00;
}

h1 {font-size: 40px;}
h2 {font-size: 30px;}
h3 {font-size: 24px;}
h4 {font-size: 20px;}
h5 {font-size: 18px;}

header h1 {
  color: rgba(0,0,0,0.6);
}

header h1 span {
  color: rgba(0,0,0,0.75);
}

.responsive-img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 20px auto;
}

.audio {
  margin: 0px;
  background: #f0f0f0;
  padding: 15px 15px 30px 15px;
  font-size: 17px;
}

.audio h3 {
  color: #333;
  font-size: 20px;
  margin-bottom: 5px;
}

.audio p {
  margin-top: 0px;
}

audio {
  border: 2px #04AA6D dashed;
  border-radius: 100px;
}

/* CONVERSATIE */

.conversation {
  background: #fff;
  border-top: 6px solid #f4c542;
  border-bottom: 6px solid #f4c542;
  margin: 20px 0;
  padding: 20px;
  box-shadow: 0 0 5px rgba(0,0,0,0.1);
  font-size: 17px;
}

.conversation-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#toggle-all-btn {
  background-color: rgba(255,153,0,0.9);
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 0.9em;
  color: white;
  cursor: pointer;
}

#toggle-all-btn:hover {
  background-color: rgba(255,153,0,1);
}

.dialogue-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin: 1rem 0;
}

.dialogue-block {
  background-color: #FFF7E6;
  border-left: 4px solid #FF9900;
  border-radius: 6px;
  padding: 1rem;
  cursor: pointer;
  transition: background-color 0.3s;
  position: relative;
  margin-top: 30px;
}

.dialogue-block:hover {
  background-color: #fff2cc;
}

.speaker {
  font-weight: 700;
  color: #333;
  margin-bottom: 0.3rem;
  background: #fff;
  padding: 5px 16px;
  border: 1px rgba(0, 0, 0, 0.05) solid;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
  border-radius: 100px;
  position: absolute;
  top: -25px;
  left: 0px;
}

.response {
  left: initial;
  right: 4px;
}

.line {
  margin: 0.3rem 0;
  position: relative;
}

.spanish::before {
  content: "\1F1EA\1F1F8 "; /* 🇪🇸 */
  margin-right: 5px;
}

.pronunciation::after {
  position: absolute;
  top: 5px;
  right: 5px;
  content: "\01F50A "; /* 🔈 */
  margin-right: 5px;
}

.translation::before {
  content: "\1F1F3\1F1F1 "; /* 🇳🇱 */
  margin-right: 5px;
}

.spanish {
  font-weight: 500;
  color: #222;
}

.pronunciation {
  background-color: #e0f7fa;
  padding: 0.5rem 0.75rem;
  border-left: 4px solid #00acc1;
  border-radius: 4px;
  margin-top: 0.5rem;
  color: #004d40;
  font-style: italic;
}

.translation {
  color: #222;
  margin-top: 0.5rem;
  display: none; /* <-- zorgt dat het standaard verborgen is */
}

/* METHODE */

.method {
  background: #fff3e6;
  padding: 20px;
  margin-top: 40px;
  text-align: center;
  font-size: 20px;
}

.method ul {
  padding-left: 0px;
}

.method ul li {
  list-style: none;
  font-size: 18px;
}

/* LINKS */

.links {
  margin-top: 30px;
  padding: 20px;
  font-size: 17px;
}

.links a {
  display: inline-block;
  margin: 8px 20px 8px 0px;
  text-decoration: none;
  color: #e94e1b;
  border: 1px solid #e94e1b;
  padding: 8px 12px;
  border-radius: 5px;
  background: #fff;
  transition: all 0.3s;
}

.links a:hover {
  background: #e94e1b;
  color: white;
}

.links a.active {
  background: #e94e1b;
  color: white;
}

.links a.inactive {
  background: #EEE;
  color: #333;
  border-color: #333;
  cursor: not-allowed;
  pointer-events: none;
}

/* FOOTER */

.footer {
  margin-top: 30px;
  margin-bottom: 120px;
  padding: 20px;
}

.logo {
  float: none;
  margin-left: auto;
  margin-right: auto;
  max-width: 200px;
}

.logo img {
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.powered_by {
  font-size: 15px;
  text-align: center;
}

/* CTA-BTN */

.cta-btn {
  background: rgba(220,38,38,0.9);
  font-size: 18px;
  font-weight: 500;
  color: #fff;
  padding: 10px 20px;
  text-decoration: none !important;
  border-radius: 5px;
  display: inline-block;
}

.cta-btn:hover {
  background: rgba(185,28,28,1);
}

.cta-btn.green {
  color: #fff;
  background: rgba(28,165,96,0.9);
  border: 1px rgba(28,165,96,0.9) solid;
}

.cta-btn.green:hover {
  background: rgba(28,165,96,1);
  border: 1px rgba(28,165,96,1) solid;
}

/* HAMBURGERMENU */

#hamburger {
  position: fixed;
  top: 10px;
  right: 10px;
  cursor: pointer;
  display: block;
  width: 32px;
  height: 32px;
  padding: 5px 5px 5px 5px;
  background: #562413;
  z-index: 9999;
  border: 0px;
  border-radius: 5px;
  outline: none;
}

#hamburger:focus {
  outline: none;
}

#hamburger span {
  display: block;
  height: 3px;
  background: white;
  margin: 3px 0;
  transition: all 0.3s;
}

#hamburger[aria-expanded="true"] span.one {
  display: block;
  transform: rotate(45deg);
  margin-top: 4px;
}

#hamburger[aria-expanded="true"] span.two {
  display: none;
}

#hamburger[aria-expanded="true"] span.three {
  display: block;
  transform: rotate(135deg);
  margin-top: -6px;
}

.overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: #fff8f0;
  color: #333;
  z-index: 999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transition:
    transform 0.5s ease,
    opacity 0.5s ease;
  transform: translateY(-100%) scale(0.98);
}

.overlay.active {
  transform: translateY(0) scale(1);
  pointer-events: all;
  opacity: 1;
}

.overlay-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  padding: 3rem;
}

.overlay-content h2 {
  font-size: 24px;
}

.overlay-content p {
  font-size: 18px;
}

.topics .links {
  margin-top: 23px;
  padding-top: 0px;
  padding-left: 0px;
  padding-right: 0px;
}

.topics .links a {
  margin: 4px 10px 4px 0px;
  padding: 4px 6px;
  font-size: 17px;
}

/*.overlay-content .cta-btn {
  font-size: 17px;
  padding: 5px 10px;
}*/

/* MOBILE */

/*@media screen and (min-width: 601px) {

}*/

@media screen and (max-width: 768px) {

  body {
    font-size: 18px;
  }

  h1 {font-size: 34px;}
  h2 {font-size: 28px;}
  h3 {font-size: 24px;}
  h4 {font-size: 20px;}
  h5 {font-size: 18px;}

  .conversation-header {
    display: block;
  }

  .dialogue-grid {
    grid-template-columns: 1fr;
  }

  #toggle-all-btn {
    display: block;
    margin-bottom: 20px;
  }

  audio {
    border: 0px;
  }

  .footer {
    margin-bottom: 30px;
  }

}

@media (max-width: 560px) {
  .header-text,
  .header-image {
    flex: 1 1 100%;
  }
}

/* Touchscreen apparaten */
@media (hover: none) and (pointer: coarse) {
  /* Bijv. verberg hover-effecten */
}

/* Hoog contrast modus */
@media (prefers-contrast: more) {
  /* Meer zichtbare stijlen */
}