/* google font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

:root {
  --text-font: 32px;
  --text-fontSize: 15px;
  --text-color: #181616;
  --background-color: #fdf7f7;
  --font-family: "Poppins", sans-serif;
  --font-weight: 400;
  
  /* Color */
  --red: hsl(0, 78%, 62%);
  --cyan: hsl(180, 62%, 55%);
  --orange: hsl(34, 97%, 64%);
  --blue: hsl(212, 86%, 64%);
  --dark-blue: hsl(234, 12%, 34%);
  --gray-blue: hsl(229, 6%, 66%);
  --white: hsl(0, 0%, 100%);

  /* Font */
  --fs-title: clamp(23px, 7vw, 40px);
  --fs-footer: clamp(12px, 3vw, 16px);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Base Styles (Mobile) */

body {
  font-family: var(--font-family);
  background-color: hsl(0, 0%, 100%);
  color: var(--gray-blue);
  font-size: 15px;
  margin: 0;
  padding: 4rem 1rem;
}

.header {
  text-align: center;
  max-width: 500px;
  margin: 0 auto 4rem;
}

.header h1 {
  font-size: var(--fs-title);
  font-weight: 200;
  color: var(--dark-blue);
  margin-bottom: 0;
}

.header h2 {
  font-size: var(--fs-title);
  font-weight: 600;
  color: var(--dark-blue);
  margin: 0;
}

.header p {
  color: var(--dark-blue);
  margin-top: 1rem;
}

.card {
  background-color: var(--white);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  padding: 2rem;
  margin-bottom: 2.5rem;
  position: relative;
  max-width: 500px;
  margin: 0 auto;
}

.card {
  margin-bottom: 20px;
}

.card-supervisor {
  border-top: 4px solid var(--cyan);
}

.card-team-builder {
  border-top: 4px solid var(--red);
}

.card-karma {
  border-top: 4px solid var(--orange);
}

.card-calculator {
  border-top: 4px solid var(--blue);
}

.card h3 {
  color: var(--dark-blue);
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.card p {
  margin-bottom: 2rem;
}

.card .card-icon {
  display: block;
  margin-left: auto;
}

/* Desktop Design */

@media (min-width: 992px) {
  .cards-container {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    gap: 2rem;
  }

  .middle-cards {
    display: flex;
    flex-direction: column;
    gap: 2rem;
  }
}

@media (min-width: 425px) {
  .card {
    transition: ease-in-out 500ms;
  }

  .card:hover {
    transform: scale(0.95);
  }
}

/* Footer */

.attribution {
  font-size: var(--fs-footer);
  text-align: center;
  color: var(--dark-blue);
  margin-top: 2rem;
}

.attribution a {
  color: hsl(228, 45%, 44%);
  text-decoration: none;
  transition: background-color 0.3s ease;
  font-weight: 600;
}

.attribution a:hover {
  background-color: var(--dark-blue);
  color: var(--white);
}
