@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap');

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: linear-gradient(135deg, #3b0066, #ffcc33);
  color: #fff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

header {
  text-align: center;
  padding: 30px 10px;
  background: rgba(0, 0, 0, 0.3);
}

h1 {
  font-size: 2.2rem;
  letter-spacing: 1px;
  margin: 0;
}

main {
  max-width: 900px;
  margin: 30px auto;
  background: rgba(255, 255, 255, 0.12);
  padding: 25px;
  border-radius: 20px;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.3);
  flex: 1;
}

label {
  display: block;
  font-weight: 600;
  margin: 15px 0 5px;
}

select,
textarea {
  width: 100%;
  border: none;
  border-radius: 10px;
  padding: 10px;
  font-size: 1rem;
  outline: none;
}

textarea {
  min-height: 120px;
  resize: vertical;
  margin-top: 10px;
}

.language-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.language-btn,
.main-btn {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.2s;
  font-weight: 500;
}

.language-btn.selected {
  background: #ffcc33;
  color: #3b0066;
  font-weight: 600;
}

.language-btn:hover,
.main-btn:hover {
  opacity: 0.85;
  transform: scale(1.05);
}

.buttons {
  margin-top: 15px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.results-section {
  margin-top: 25px;
  display: grid;
  gap: 15px;
}

.translation-box {
  background: rgba(0, 0, 0, 0.25);
  border-radius: 15px;
  padding: 15px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.25);
}

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

.translation-header h3 {
  margin: 0;
  font-size: 1.2rem;
}

.translation-text {
  margin-top: 10px;
  white-space: pre-wrap;
  font-size: 1rem;
  line-height: 1.5;
}

.translation-actions {
  margin-top: 10px;
  display: flex;
  gap: 10px;
}

footer {
  text-align: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.3);
  margin-top: auto;
  font-size: 0.9rem;
}

footer a {
  color: #ffcc33;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

footer a:hover {
  color: #ffffff;
  text-decoration: underline;
}
