* {
  box-sizing: border-box;
  margin: 0;
  color: white;
  padding: 0;
}

body {
  font-family: 'Poppins';
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;

}

:root {
  --color-primary: #00cccc;
  --color-border: #707070;
}

header {
  background-color: var(--color-primary);
  padding: 10px 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

a {
  text-decoration: none;
  color: black;
}

#ciko {
aspect-ratio: auto; 
height: 200px;
}

h1 {
  font-size: 1.75rem;
  color: black;
}

@media (max-width: 767px) {
  .language-cards {
    flex-direction: column;
  }

  #ciko {
    height: 50px;
  }
}

section.main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

section.main > p {
  font-size: 1.5rem;
  margin: 2rem;
}

.language-cards {
  display: flex;
  gap: 2rem;
}

.card {
  display: grid;
  justify-content: center;
  align-items: center;
  grid-template-rows: 1fr 1fr;
  text-align: center;
  padding: 1.1rem 3rem 1rem 3rem;
  cursor: pointer;
  transition: transform 200ms linear;
}

.card:hover {
  transform: scale(0.9);
  background-color: #205ea1;
}

.flag {
  width: 60px;
  height: 60px;
  justify-self: center;
}

@media (max-width: 480px) {
  section.main > p {
    font-size: 1.25rem;
  }

  .card {
    padding: 0.8rem 1.5rem 0.5rem 1.5rem;
  }
}

@media (max-width: 370px) {
  .card {
    padding: 0.6rem 0.9rem 0.3rem 0.9rem;
  }
  .flag {
    width: 50px;
    height: 50px;
  }
  section.main > p {
    font-size: 1rem;
  }
  .card p {
    font-size: 0.75rem;
  }
  .card h3 {
    font-size: 1rem;
  }
}
