* {
  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: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
}

.card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 3rem;
  backdrop-filter: blur(10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

h1 {
  color: #2c3e50;
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2.5rem;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

h2 {
  color: #34495e;
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-size: 1.5rem;
  font-weight: 600;
  border-left: 4px solid #667eea;
  padding-left: 1rem;
}

.languages-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 2rem 0;
}

.language-card {
  padding: 1.5rem;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

/* Country-specific color schemes with high contrast text */
.language-card.english {
  background: linear-gradient(135deg, #012169 0%, #c8102e 50%, #ffffff 100%);
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9), 0 0 8px rgba(0, 0, 0, 0.8);
}

.language-card.french {
  background: linear-gradient(135deg, #002395 0%, #ffffff 50%, #ed2939 100%);
  color: #001f7a;
  text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.9),
    0 0 8px rgba(255, 255, 255, 0.8), -1px -1px 2px rgba(255, 255, 255, 0.6);
}

.language-card.german {
  background: linear-gradient(135deg, #000000 0%, #dd0000 50%, #ffcc00 100%);
  color: #000000;
  text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.9),
    0 0 8px rgba(255, 255, 255, 0.8), -1px -1px 2px rgba(255, 255, 255, 0.6);
}

.language-card.italian {
  background: linear-gradient(135deg, #009246 0%, #ffffff 50%, #ce2b37 100%);
  color: #006633;
  text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.9),
    0 0 8px rgba(255, 255, 255, 0.8), -1px -1px 2px rgba(255, 255, 255, 0.6);
}

.language-card.japanese {
  background: linear-gradient(135deg, #bc002d 0%, #ffffff 50%, #bc002d 100%);
  color: #8b0021;
  text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.9),
    0 0 8px rgba(255, 255, 255, 0.8), -1px -1px 2px rgba(255, 255, 255, 0.6);
}

.language-card.korean {
  background: linear-gradient(
    135deg,
    #003478 0%,
    #cd2e3a 25%,
    #ffffff 50%,
    #cd2e3a 75%,
    #003478 100%
  );
  color: #002856;
  text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.9),
    0 0 8px rgba(255, 255, 255, 0.8), -1px -1px 2px rgba(255, 255, 255, 0.6);
}

.language-card.russian {
  background: linear-gradient(135deg, #ffffff 0%, #0039a6 50%, #d52b1e 100%);
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9), 0 0 8px rgba(0, 0, 0, 0.8),
    -1px -1px 2px rgba(0, 0, 0, 0.7);
}

.language-card.spanish {
  background: linear-gradient(135deg, #aa151b 0%, #f1bf00 50%, #aa151b 100%);
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9), 0 0 8px rgba(0, 0, 0, 0.8),
    -1px -1px 2px rgba(0, 0, 0, 0.7);
}

.language-card.thai {
  background: linear-gradient(
    135deg,
    #a51931 0%,
    #ffffff 25%,
    #2d2a4a 50%,
    #ffffff 75%,
    #a51931 100%
  );
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9), 0 0 8px rgba(0, 0, 0, 0.8),
    -1px -1px 2px rgba(0, 0, 0, 0.7);
}

.language-card.brazilianportuguese {
  background: linear-gradient(135deg, #009739 0%, #fedd00 50%, #012169 100%);
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9), 0 0 8px rgba(0, 0, 0, 0.8),
    -1px -1px 2px rgba(0, 0, 0, 0.7);
}

.language-card.chinesetraditional {
  background: linear-gradient(135deg, #de2910 0%, #ffde00 50%, #de2910 100%);
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9), 0 0 8px rgba(0, 0, 0, 0.8),
    -1px -1px 2px rgba(0, 0, 0, 0.7);
}

.language-card.hindi {
  background: linear-gradient(135deg, #ff9933 0%, #ffffff 33%, #138808 66%, #000080 100%);
  color: #000080;
  text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.9),
    0 0 8px rgba(255, 255, 255, 0.8), -1px -1px 2px rgba(255, 255, 255, 0.6);
}

.language-card.indonesian {
  background: linear-gradient(135deg, #ce1126 0%, #ffffff 50%, #ce1126 100%);
  color: #9d0e1f;
  text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.9),
    0 0 8px rgba(255, 255, 255, 0.8), -1px -1px 2px rgba(255, 255, 255, 0.6);
}

.language-card.latinamericanspanish {
  background: linear-gradient(135deg, #006847 0%, #ffffff 33%, #ce1126 66%, #006847 100%);
  color: #004a33;
  text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.9),
    0 0 8px rgba(255, 255, 255, 0.8), -1px -1px 2px rgba(255, 255, 255, 0.6);
}

.language-card.turkish {
  background: linear-gradient(135deg, #e30a17 0%, #ffffff 50%, #e30a17 100%);
  color: #b50812;
  text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.9),
    0 0 8px rgba(255, 255, 255, 0.8), -1px -1px 2px rgba(255, 255, 255, 0.6);
}

.language-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  text-decoration: none;
}

.language-name {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0;
  flex-grow: 1;
  text-align: left;
}

.copy-button {
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(0, 0, 0, 0.8);
  color: white;
  padding: 0.8rem;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: 600;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
  text-shadow: none;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.copy-button:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: scale(1.05);
  border-color: rgba(0, 0, 0, 0.9);
}

.copy-button.copied {
  background: rgba(76, 175, 80, 0.9);
  border-color: rgba(76, 175, 80, 1);
  color: white;
}

.instructions {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 2rem;
  margin: 2rem 0;
}

.instructions.hidden {
  display: none;
}

.device-toggle {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0;
}

.device-button {
  padding: 0.75rem 1.5rem;
  border: 2px solid #667eea;
  background: white;
  color: #667eea;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
}

.device-button.active {
  background: #667eea;
  color: white;
}

.device-button:hover {
  background: #667eea;
  color: white;
  text-decoration: none;
}

.instructions ol {
  padding-left: 1.5rem;
}

.instructions li {
  margin-bottom: 0.8rem;
  line-height: 1.6;
}

.instructions li strong {
  color: #495057;
}

.pokeball {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(to bottom, #ff4444 50%, white 50%);
  border: 3px solid #333;
  margin: 0 auto 2rem;
  position: relative;
}

.pokeball::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  background: white;
  border-radius: 50%;
  border: 2px solid #333;
}

@media (max-width: 768px) {
  .container {
    padding: 0.5rem;
  }

  .card {
    padding: 1rem;
  }

  h1 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
  }

  .languages-grid {
    gap: 0.5rem;
  }

  .language-card {
    padding: 1rem;
  }

  .language-name {
    font-size: 1.1rem;
  }

  .copy-button {
    width: 2.5rem;
    height: 2.5rem;
    padding: 0.6rem;
    font-size: 1rem;
  }

  .instructions {
    padding: 1rem;
    margin: 1.5rem 0;
  }

  .device-toggle {
    gap: 0.5rem;
    margin: 1.5rem 0;
  }

  .device-button {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }

  h2 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
  }
}
