* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f5f5f5;
  padding: 20px;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  background-color: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

h1 {
  color: #2c3e50;
  margin-bottom: 10px;
  font-size: 2em;
}

.intro {
  margin-bottom: 30px;
  padding: 15px;
  background-color: #e8f4f8;
  border-left: 4px solid #3498db;
}

.search-box {
  margin-bottom: 30px;
}

.search-box label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  font-size: 1.1em;
}

.search-box input {
  width: 100%;
  padding: 12px;
  font-size: 1em;
  border: 2px solid #ddd;
  border-radius: 4px;
}

.search-box input:focus {
  outline: none;
  border-color: #3498db;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.search-results {
  margin-top: 10px;
  padding: 8px 12px;
  background-color: #e8f4f8;
  border-radius: 4px;
  color: #2c3e50;
  font-size: 0.95em;
}

.search-results:empty {
  display: none;
}

.glossary {
  margin-top: 20px;
}

dt {
  margin-top: 25px;
  padding: 20px;
  background-color: #fafafa;
  border-left: 4px solid #3498db;
  border-radius: 4px;
  font-weight: normal;
}

dt:first-of-type {
  margin-top: 0;
}

dt:focus-within {
  outline: 3px solid #3498db;
  outline-offset: 2px;
}

.term-header {
  margin-bottom: 10px;
}

.abbreviation {
  font-size: 1.4em;
  font-weight: bold;
  color: #2c3e50;
}

.full-term {
  font-size: 1.1em;
  color: #555;
  margin-top: 5px;
}

.turkish-term {
  font-size: 1em;
  color: #4a5c5e;
  font-style: italic;
  margin-top: 3px;
}

dd {
  margin-left: 0;
  padding: 12px 20px 20px 44px;
  color: #444;
  line-height: 1.7;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #1f618d;
  color: white;
  padding: 8px;
  text-decoration: none;
  z-index: 100;
}

.skip-link:focus {
  top: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.speak-btn {
  display: inline-block;
  margin-left: 8px;
  padding: 4px 8px;
  background-color: #3498db;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.85em;
  transition: background-color 0.2s;
}

.speak-btn:hover {
  background-color: #2980b9;
}

.speak-btn:focus {
  outline: 2px solid #2980b9;
  outline-offset: 2px;
}

.speak-btn:active {
  background-color: #21618c;
}

.speak-btn.speaking {
  background-color: #e74c3c;
}

@media (max-width: 600px) {
  .container {
    padding: 15px;
  }

  h1 {
    font-size: 1.5em;
  }

  dd {
    padding-left: 20px;
  }
}
