body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #f9f9f9;
  animation: fadeIn 2s ease-in-out;
}

header {
  background-color: #fff;
  padding: 15px;
  text-align: center;
  border-bottom: 1px solid #ccc;
  animation: slideDown 1s ease-out;
}

header h1 {
  margin: 0;
  font-size: 24px;
  background: black;
  color: white;
  display: inline-block;
  padding: 8px 20px;
  border-radius: 5px;
  animation: bounce 1s infinite alternate;
}

nav {
  margin-top: 10px;
}

nav a {
  margin: 0 10px;
  text-decoration: none;
  color: #000;
  font-weight: bold;
  transition: color 0.3s ease;
}

nav a:hover {
  color: #f4a261;
  transform: scale(1.1);
}

.flags {
  width: 90px;
  margin: 0;
  padding: 0;
  animation: fadeInUp 2s ease-out;
}

main {
  padding: 20px;
  animation: fadeIn 2s ease-in-out;
}

.card {
  background-color: #fde276;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 10px;
  opacity: 0;
  animation: fadeInUp 1.5s forwards;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.card.blue {
  background-color: #2d3f94;
  color: white;
}

.card.yellow {
  background-color: #fde276;
}

.card h2 {
  margin-top: 0;
  animation: slideInLeft 1s ease-out;
}

button {
  margin-top: 10px;
  padding: 10px 20px;
  background: white;
  border: 1px solid #000;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #f4a261;
  transform: scale(1.1);
}

.red {
  color: red;
  font-weight: bold;
}

footer {
  background: #fff;
  padding: 10px;
  text-align: center;
  color: red;
  font-weight: bold;
  border-top: 1px solid #ccc;
  animation: fadeIn 1s ease-in-out;
}

.blinking {
  animation: blink 1.5s linear infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideDown {
  from { transform: translateY(-20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes bounce {
  0% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInLeft {
  from { transform: translateX(-100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
