body {
  font-family: Arial, sans-serif;
  background-color: #f0f8ff;
  color: #333;
  padding: 20px;
}

h2 {
  color: #008080;
  text-align: center;
}

#output {
  margin-top: 30px;
  text-align: center;
  color: #555;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.6;
  font-size: unset;
  min-height: 300px;
  margin-bottom: 60px;
}

.sentence-block {
  max-width: 90%;
  width: 100%;
  font-size: 8rem;
  line-height: 1.4;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

#circleWrapper {
  display: flex;
  justify-content: center;
  margin: 16px 0;
}

#circlePlayBtn {
  padding: 18px 32px;
  font-size: 20px;
  font-weight: bold;
  background-color: #10b981;
  color: white;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: background 0.3s ease, transform 0.1s ease;
}

#circlePlayBtn:hover {
  background-color: #059669;
  transform: scale(1.04);
}

@media (max-width: 600px) {
  #circlePlayBtn {
    padding: 24px 40px;
    font-size: 24px;
  }
}

.menu-like-btn {
  width: 95vw;
  max-width: 1100px;
  padding: 16px 24px;
  font-size: 20px;
  font-weight: 500;
  border-radius: 14px;
  border: 2px solid #cbd5e1;
  background: white;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: background 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  position: relative;
  z-index: 1;
}

.control-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin: 20px auto;
  padding: 0 16px;
  max-width: 1600px;
  width: 100%;
  position: relative;
}

.menu-like-btn:hover {
  background: #e0f2fe;
}

.btn-label {
  text-transform: uppercase;
  font-weight: bold;
  font-size: 14px;
  color: #64748b;
  letter-spacing: 0.5px;
}

.btn-value {
  font-size: 22px;
  font-weight: 600;
  color: #0f172a;
}

.two-cols {
  display: flex;
  justify-content: center;
  gap: 2.5%;
  width: 95vw;
  max-width: 1100px;
  flex-wrap: wrap;
  margin: 0 auto;
}

.two-cols > button {
  flex: 1;
  min-width: 40%;
  max-width: 520px;
  margin: 0;
}

.volume-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  width: 95vw;
  max-width: 1100px;
  margin: 0 auto;
}

.volume-grid button {
  padding: 16px 18px;
  font-size: 17px;
  font-weight: 500;
  border-radius: 12px;
  border: 2px solid #cbd5e1;
  background: white;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  cursor: pointer;
  transition: background 0.2s ease;
  width: 100%;
}

.volume-grid button:hover {
  background: #e0f2fe;
}

.full-width-block {
  width: 95vw;
  max-width: 1100px;
  margin: 0 auto;
}

.top-bar {
  position: relative;
  width: 95vw;
  max-width: 1100px;
  margin: 0 auto;
  padding: 12px 20px;
  box-sizing: border-box;
}

#menuToggle {
  position: absolute;
  top: 12px;
  left: 20px;
  z-index: 2;
}

.headline {
  position: relative;
  font-size: 18px;
  font-weight: bold;
  color: #065f46;
  white-space: normal;
  padding: 0 60px;          /* Ez biztosít helyet mindkét oldalon */
  z-index: 1;
  pointer-events: none;
  text-align: center;       /* középre igazítás */
  width: 100%;              /* teljes szélesség, középre igazítva */
  box-sizing: border-box;   /* padding ne lógjon ki */
}

/* Mobilra speciális optimalizáció! */
@media (max-width: 600px) {
  .headline {
    font-size: 15px;       /* kisebb méret mobilra */
    line-height: 1.2;      /* szűkebb sortáv */
    padding: 0 70px;       /* nagyobb padding, hogy ne érjen hozzá a menügombhoz mobilon sem */
    margin-top: 4px;       /* kicsit lentebb */
  }

  #menuToggle {
    top: 10px;             /* marad, ahol van */
  }
}






#menuToggle {
  padding: 14px 22px;
  font-size: 20px;
}

.dropdown {
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: absolute;
  top: 60px;
  left: 20px;
  background: white;
  padding: 10px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 1000;
}

.dropdown button {
  font-size: 15px;
  padding: 8px 14px;
  background: #f9fafb;
  border: 1px solid #ccc;
  border-radius: 6px;
  cursor: pointer;
  text-align: left;
}

.dropdown.hidden {
  display: none;
}

#structureWrapper {
  position: relative;
  width: 100%;
  z-index: 10;
}

#structureContainer {
  position: absolute;

  left: 50%;
  transform: translateX(-50%);
  width: 95vw;
  max-width: 1100px;
  z-index: 999;
  background: #93c5fd;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  display: none;
}

.menu-level {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.menu-level button {
  width: 100%;
  padding: 18px 24px;
  font-size: 18px;
  font-weight: 600;
  border-radius: 14px;
  border: 2px solid #cbd5e1;
  background: white;
  color: #0f172a;
  text-align: center;
  cursor: pointer;
  transition: background 0.2s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.menu-level button:hover {
  background: #e0f2fe;
}








#playbackWrapper {
  position: relative;
  width: 100%;
  z-index: 10;
}

#playbackContainer {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 95vw;
  max-width: 1100px;
  background: #93c5fd;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  display: none;
  z-index: 999;
}

#playbackContainer.active {
  display: block;
}





#dropdownMenu {
  position: absolute;
  top: 60px;
  left: 50%;
  transform: translateX(-50%);
  width: 95vw;
  max-width: 1100px;
  background: #93c5fd;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  z-index: 999;
  display: none;
}

#dropdownMenu.active {
  display: block;
}

#dropdownMenu button {
  width: 100%;
  padding: 18px 24px;
  font-size: 18px;
  font-weight: 600;
  border-radius: 14px;
  border: 2px solid #cbd5e1;
  background: white;
  color: #0f172a;
  text-align: center;
  cursor: pointer;
  transition: background 0.2s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

#dropdownMenu button:hover {
  background: #e0f2fe;
}




/* Alap stílus */
.menu-level.pause-menu {
  background: white;
  border: 1px solid #ccc;
  border-radius: 0.75rem;
  padding: 0.5rem;
  box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.menu-level.pause-menu .menu-btn {
  width: 100%;
  text-align: left;
  padding: 0.5rem;
  font-size: 1rem;
  border-radius: 0.5rem;
  border: none;
  background: #f9f9f9;
  margin-bottom: 0.25rem;
}

.menu-level.pause-menu .menu-btn:hover {
  background: #e5f0ff;
  cursor: pointer;
}









.footer-upper {
  position: relative;
  left: 0;
  right: 0;
  width: 100%;
  height: 90px;
  background-color: #f0f8ff;
  margin-top: 80px; /* megnövelt távolság a gomboktól */
  padding: 0;
}

.footer-lower {
  position: relative;
  left: 0;
  right: 0;
  width: 100%;
  height: 60px;
  background-color: #f0f8ff;
  color: #0f172a;
  font-size: 16px;
  font-weight: 500;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0;
}






#displaySentence {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 12px;
  padding: 20px 0;
  margin-bottom: 40px;
  min-height: 180px;   /* stabil alap */
}



#sentenceLang1 {
  color: #444; /* sötétszürke */
  font-size: 42px;
  font-weight: bold;
  text-align: center;
  width: 100%;
  margin: 0;
}

#sentenceLang2 {
  color: #000; /* fekete */
  font-size: 48px;
  font-weight: bold;
  text-align: center;
  width: 100%;
  margin: 0;
}

/* Mobilon méretarányosan csökken a betűméret */
@media (max-width: 768px) {
  #sentenceLang1, #sentenceLang2 {
    font-size: 9vw;
    padding: 0 20px;
  }
}









.volume-row-single-line {
  display: grid;
  grid-template-columns: repeat(6, 1fr); /* ez a lényeg, így egyenletes lesz a hat oszlop */
  gap: 6px; /* kisebb távolság gombok között */
  width: 95vw;
  max-width: 1100px;
  margin: 20px auto 0;
  align-items: center;
}

.volume-row-single-line button {
  padding: 12px 6px; /* kisebb padding, hogy szűkebbek legyenek a gombok */
  font-size: 14px; /* kisebb betűméret, hogy biztos kiférjen */
  border-radius: 10px;
  border: 1px solid #cbd5e1; /* vékonyabb keret */
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}


.volume-row-single-line button:hover {
  background: #e0f2fe;
}

.volume-row-single-line .vol-value {
  font-weight: bold;
  font-size: 1.3rem;
  text-align: center;
}




