:root {
  --max-content-width: 425px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
}
body {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  padding: 12px;
  overflow-x: hidden;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: #fff8e1;
  color: #1a2b4c;
}
.scroll-container {
  height: calc(var(--vh, 1vh) * 100);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.scroll-container::-webkit-scrollbar {
  display: none;
}
.layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: var(--max-content-width);
  margin: 0 auto;
}
h2,
h5,
h6 {
  width: 100%;
  margin-bottom: 10px;
  overflow-wrap: anywhere;
}
h2 {
  margin: 0;
  font-size: 22px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}
h5 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 14px;
  font-style: italic;
  text-align: right;
}
input {
  background-color: #f7fbff;
  border: 1px solid #b3d4fc;
  border-radius: 6px;
  width: 120px;
  box-shadow: none;
  padding: 4px 8px;
  font-size: 0.95em;
  text-align: center;
  color: #1a2b4c;
  outline: none;
  transition: background 0.3s;
}
input:hover {
  border-color: #0366d6;
}
input.highlight {
  background-color: #ffffcc;
}
input.hi input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
select {
  background-color: #f7fbff;
  border: 1px solid #b3d4fc;
  border-radius: 6px;
  width: 120px;
  box-shadow: none;
  padding: 4px 8px;
  font-size: 0.95em;
  text-align: center;
  color: #1a2b4c;
  /* outline: none; */
}
select:hover {
  border-color: #0366d6;
}
select:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
label {
  font-weight: 600;
  font-size: 0.95em;
  color: #1a2b4c;
  white-space: nowrap;
}
label.disabled {
  opacity: 0.5;
  pointer-events: none;
  cursor: default;
}
button {
  width: 100%;
  padding: 8px 4px;
  font-size: 0.95em;
  font-weight: 600;
  background: #e3f2fd;
  border: 2px solid #b3d4fc;
  border-radius: 8px;
  color: #1a2b4c;
  cursor: pointer;
  transition: background 0.3s;
}

.section-block-exercises button {
  /* flex: 1; */
  height: 40px;
  font-size: 1.2em;
  padding: 4px 6px;
}

button:hover {
  background: #c5e6ff;
  border-color: #0366d6;
  color: #034078;
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.version {
  display: block;
  margin-top: 0;
  font-size: 12px;
  font-style: italic;
}
.titles-container {
  display: flex;
  align-items: center;
  justify-content: left;
  width: 100%;
}
.title-icon {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  margin-right: 8px;
  filter: drop-shadow(1px 1px 2px rgba(0, 0, 0, 0.2));
}
.setting-row {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-end;
  width: 100%;
  margin-left: 0;
  margin-bottom: 4px;
  padding: 8px 0;
  gap: 12px;
  border-top: 1px solid #cfd8dc;
}
.reset-settings-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  font-size: 22px;
  background: #f9fbe7;
  border: none;
  border-radius: 6px;
  box-shadow: 0 2px 5px rgba(3, 64, 120, 0.2);
  color: #0277bd;
  cursor: pointer;
  outline: none;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.section-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  margin-top: 8px;
  padding: 10px;
  background: #ffffff;
  border: 2px solid #b3d4fc;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(3, 102, 214, 0.1);
}
.section-block-buttons {
  display: flex;
  flex-direction: row;
  flex: 1;
  justify-content: space-between;
  gap: 8px;
}
.setting-button-wrapper {
  display: flex;
  flex-direction: column;
  /* gap: 8px; */
  width: 100%;
}
.speed-delay-wrapper,
.digit-length-count-repeat-wrapper {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  /* padding: 8px; */
  background: #ffffff;
  /* border: 1px solid #b3d4fc; */
  border-radius: 10px;
}
.speed-group,
.delay-group {
  align-items: baseline;
  justify-content: space-between;
}
.speed-group,
.delay-group {
  display: flex;
  flex-direction: row;
  gap: 12px;
}
.speed-group select,
.delay-group select {
  width: 90px;
}
.language-group select,
.voice-group select {
  width: 100%;
  text-align: left;
}

.clock-container {
  display: flex;
  flex-direction: row;
  gap: 12px;
  justify-content: space-between;
  align-items: flex-end;
  width: 100%;
  margin-left: 0;
}
.section-block-exercises input {
  max-width: 120px;
  height: 40px;
  font: 1.8em sans-serif;
  font-weight: 600;
}
.section-block-exercises button {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 15%;
}

.developer {
  display: flex;
  justify-content: left;
  width: 100%;
  gap: 12px;
  margin-top: 14px;
}
.developer button {
  width: 80px;
  padding: 6px 6px;
  font-size: 0.75em;
  background-color: #f0f9ff;
  border: 1px solid #b3d4fc;
  border-radius: 8px;
  color: #5a7899;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}
.developer button:hover {
  background-color: #e2f0fb;
  border-color: #0366d6;
}

@media (min-width: 768px) {
}
