:root {
  --primary-bg: rgb(239, 224, 197);
  --secondary-bg: rgb(241, 236, 226);
  --button-bg: #3498db;
  --primary-color: #333333;
  --accent-color: #09a7e0;
  --text-color: #555555;
  --heading-font: "Montserrat", sans-serif;
  --body-font: "Roboto", sans-serif;
}

body {
  font-family: var(--body-font);
  background-color: var(--primary-bg);
  color: var(--text-color);
  min-height: 100vh;
  margin: 0;
  text-align: center;
}

main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  min-height: 100vh;
  padding: 2rem 1.5rem 3rem;
  box-sizing: border-box;
}

h1 {
  font-family: var(--heading-font);
  font-size: 3.5rem;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.typing-text {
  font-family: var(--body-font);
  font-size: 1.5rem;
  color: var(--text-color);
  min-height: 2.5em;
  margin-bottom: 30px;
  white-space: normal;
  overflow: hidden;
  display: inline-block;
  max-width: 40ch;
  margin-left: auto;
  margin-right: auto;
  animation:
    typing 3.5s steps(40, end);
}

@keyframes typing {
  from { width: 0 }
  to { width: 100% }
}

.back-button {
  display: inline-block;
  margin-top: 30px;
  padding: 12px 25px;
  background-color: var(--button-bg);
  color: white;
  text-decoration: none;
  border-radius: 25px;
  transition: background-color 0.3s ease, transform 0.2s ease;
  font-size: 1.1rem;
  font-weight: 600;
  border: none;
}

.back-button:hover {
  background-color: #2980b9;
  transform: translateY(-3px);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

.skip-link:focus {
  position: fixed;
  left: 20px;
  top: 20px;
  width: auto;
  height: auto;
  clip: auto;
  padding: 10px 16px;
  background: var(--button-bg);
  color: #fff;
  border-radius: 6px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
  z-index: 100;
}

.language-switch {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 20;
}

.language-switch button {
  background: linear-gradient(135deg, var(--button-bg), var(--accent-color));
  color: white;
  border: none;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 700;
  letter-spacing: 0.5px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.language-switch button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.2);
}

.language-switch button:active {
  transform: translateY(0);
  opacity: 0.9;
}