@charset "UTF-8";

/* ============================
   Google Fonts
   ============================ */
@import url('https://fonts.googleapis.com/css2?family=Jost:wght@400;600&family=Work+Sans:wght@300;400;500&display=swap');

/* ============================
   Global Styles
   ============================ */
* {
  box-sizing: border-box;
}

body {
  background:
    linear-gradient(
      rgba(255, 255, 255, 0.75),
      rgba(255, 255, 255, 0.75)
    ),
    url("../assets/piglatin.jpg") center / cover no-repeat fixed;
}

/* ============================
   Layout Container
   ============================ */
.container {
  max-width: 520px;
  margin: 4rem auto;
  padding: 2.5rem;
  background-color: #ffffff;
  border-radius: 18px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* ============================
   Headings
   ============================ */
h1 {
  font-family: 'Jost', sans-serif;
  font-size: 2.5rem;
  text-align: center;
  color: #0f766e;
  margin-bottom: 1.5rem;
}

h2 {
  font-family: 'Jost', sans-serif;
  font-size: 1.3rem;
  color: #0f766e;
  margin-top: 3rem;
}

/* ============================
   Paragraphs
   ============================ */
p {
  line-height: 1.6;
  margin-top: 0.5rem;
}

/* ============================
   Form Layout
   ============================ */
form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* ============================
   Labels
   ============================ */
label {
  font-weight: 500;
  color: #0f766e;
}

/* ============================
   Inputs & Textareas
   ============================ */
input[type="text"],
textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-family: inherit;
  border-radius: 12px;
  border: 1px solid #ccc;
  background-color: #fafafa;
}

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

input:focus,
textarea:focus {
  outline: none;
  border-color: #0f766e;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.15);
}

/* ============================
   Button
   ============================ */
button,
#Translate {
  margin-top: 1rem;
  align-self: flex-start;
  background-color: #0f766e;
  color: #ffffff;
  border: none;
  border-radius: 12px;
  padding: 0.7rem 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s;
}

button:hover,
#Translate:hover {
  background-color: #115e59;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
}

button:active,
#Translate:active {
  transform: translateY(0);
  box-shadow: none;
}

/* ============================
   Disabled Output
   ============================ */
textarea:disabled {
  background-color: #f1f5f9;
  color: #475569;
}

/* ============================
   Footer
   ============================ */
footer {
  margin-top: 3rem;
  text-align: center;
}

footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

footer li {
  display: inline-block;
}

footer a {
  text-decoration: none;
  font-weight: 500;
  color: #0f766e;
  transition: color 0.2s ease;
}

footer a:hover {
  color: #115e59;
}

/* ============================
   Responsive Design
   ============================ */
@media (max-width: 768px) {
  .container {
    margin: 2rem 1rem;
    padding: 2rem 1.5rem;
  }

  h1 {
    font-size: 2rem;
  }
}
