html,
body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  background-color: #355135;
  color: white;
  margin: 0;
}

header {
  display: flex;
  justify-content: space-between;
  background-color: #2c442c;
  padding: 1rem;

  img {
    height: 5rem;
  }

  nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;

    a {
      padding: 0.25rem;
    }
  }
}

a {
  color: white;
  text-decoration: none;
}

main {
  padding: 1rem;
  overflow: auto;
}

.cards {
  padding: 0;
  list-style: none;
  gap: 1rem;

  > *:not(:last-child) {
    margin-bottom: 1rem;
  }

  .card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #2c442c;
    padding: 1rem;
    border: solid 1px black;
    border-radius: 0.25rem;

    h2 {
      margin-top: 0;
    }

    &.active {
      box-shadow: inset 0px 0px 5px 5px #182518;
    }

    .body {
      display: flex;
      flex-direction: column;
      text-align: center;
      gap: 0.5rem;
    }
  }
}

@media (min-width: 481px) {
  header {
    nav {
      flex-direction: row;
    }
  }
}

@media (min-width: 768px) {
  .cards {
    display: flex;

    .card {
      flex: 1;
      flex-direction: column;
      margin: 0;

      .head {
        text-align: center;
      }
    }
  }
}
