:root {
  font-family: "Poppins", sans-serif;
  font-size: 62.5%;

  --bg: #241d3b;
  --text: #e9e9e9;
  --active: #2c82dd;

  --heading: 700 2.4rem "Poppins", sans-serif;
}

body {
  display: grid;
  place-items: center;
  margin: 0;
  height: 100vh;

  background-color: var(--bg);
  color: var(--text);

  font-size: 1.6rem;
}

.header {
  text-align: center;
}

.header__title {
  font-size: 2.4rem;
}

.header__link {
  color: var(--text);
}

.counter__label {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-weight: bold;
  font-size: 1.8rem;
}

.counter__span {
  font-size: 3.4rem;
}

.button {
  padding: 0.8rem 2.8rem;
  border: 0;
  border-radius: 0.8rem;

  background-color: var(--active);
  color: var(--text);

  font-weight: bold;
}

.button--alert {
  display: none;
  background-color: #d40b48;
}

.button:hover {
  cursor: pointer;
  transform: scale(1.1);
}

.main {
  display: flex;
  flex-wrap: wrap;
  column-gap: 2rem;

  margin-top: 3rem;
}

/* Planet Cards */
.planet {
  display: flex;
  gap: 2.2rem;
  padding: 1.6rem;
}

@media (min-width: 400px) {
  .main {
    max-width: 1100px;

    justify-content: center;
  }

  .planet {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

.planet__icon {
  height: 11rem;
}

.planet__name {
  margin: 0;
  font-size: 1.8rem;
}

.planet__orbit {
  font-size: 1.4rem;
}

.planet__orbits {
  display: flex;
  flex-direction: column;
  font-weight: bold;
  font-size: 1.4rem;
}

.planet__counter {
  align-self: center;
  font-size: 2.8rem;
}

footer {
  margin: 6rem 0 2rem;
  text-align: center;
}

footer a {
  color: var(--text);
}
