/* styles.css */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
}

body {
  background-color: hsl(0, 0%, 95%);
  display: flex;
  justify-content: center;
  padding: 50px 20px;
}

.container {
  max-width: 1100px;
  text-align: center;
}

.header h1 {
  font-weight: 200;
  color: hsl(234, 12%, 34%);
}

.header h2 {
  font-weight: 600;
  margin-top: 10px;
  color: hsl(234, 12%, 34%);
}

.header p {
  margin-top: 20px;
  color: hsl(229, 6%, 66%);
  font-size: 15px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cards {
  margin-top: 60px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.card {
  background-color: white;
  padding: 30px;
  border-top: 4px solid;
  border-radius: 8px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  flex: 1 1 250px;
  max-width: 350px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card h3 {
  color: hsl(234, 12%, 34%);
  margin-bottom: 10px;
}

.card p {
  color: hsl(229, 6%, 66%);
  font-size: 14px;
  margin-bottom: 20px;
}

.card img {
  align-self: flex-end;
  width: 60px;
  height: 60px;
}

/* Border colors */
.card-supervisor {
  border-top-color: hsl(180, 62%, 55%);
}

.card-team-builder {
  border-top-color: hsl(0, 78%, 62%);
}

.card-karma {
  border-top-color: hsl(34, 97%, 64%);
}

.card-calculator {
  border-top-color: hsl(212, 86%, 64%);
}

.card-group {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

@media (min-width: 900px) {
  .cards {
    align-items: center;
  }
  
  .card-supervisor {
    order: 1;
  }

  .card-group {
    order: 2;
  }

  .card-calculator {
    order: 3;
  }

  .card-group {
    flex-direction: column;
  }
}
