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

:root {
  /* Primary */
  --clr-red: hsl(0, 78%, 62%);
  --clr-cyan: hsl(180, 62%, 55%);
  --clr-orange: hsl(34, 97%, 64%);
  --clr-blue: hsl(212, 86%, 64%);

  /* Neutral */
  --clr-veryDarkBlue: hsl(234, 12%, 34%);
  --clr-grayishBlue: hsl(229, 6%, 66%);
  --clr-veryLightGray: hsl(0, 0%, 98%);
}

/* ***************************** */
/*          GENERAL              */
/* ***************************** */

body {
  font-size: 15px;
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  width: 100%;
  min-height: 100vh;
  background: var(--clr-veryLightGray);

  padding: 0 10%;
}

.title {
  color: var(--clr-veryDarkBlue);
  font-weight: 600;
}

.details {
  color: var(--clr-grayishBlue);
  font-weight: 400;
}

/* ***************************** */
/*            HEADER             */
/* ***************************** */

header {
  width: 100%;
  padding: 80px 0;
  text-align: center;
  margin: 0;
}

.slogan {
  color: var(--clr-grayishBlue);
  font-size: 1.5rem;
  font-weight: 200;
}

header .title {
  font-size: 1.5rem;
  margin-top: 0.5em;
}

header .details {
  margin-top: 1rem;
  line-height: 1.5rem;
}

/* ***************************** */
/*         CONTAINER             */
/* ***************************** */

.container {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.section {
  margin-top: 2em;
  position: relative;
  border: solid 1px transparent;
  box-shadow: 0px 7px 13px -6px rgba(0, 0, 0, 0.63);
  border-radius: 5px;
  height: 70vw;

  background: white;
}

.supervisor {
  border-top: solid 0.5em var(--clr-cyan);
}

.team-builder {
  border-top: solid 0.5em var(--clr-red);
}

.karma {
  border-top: solid 0.5em var(--clr-orange);
}

.calculator {
  border-top: solid 0.5em var(--clr-blue);
}

.section .title {
  position: absolute;
  top: 10%;
  left: 10%;

  font-size: 1.5rem;
}

.section .details {
  width: 85%;
  position: absolute;
  top: 25%;
  left: 10%;

  font-size: 1rem;
}

.section img {
  width: 15%;

  position: absolute;
  bottom: 15%;
  right: 10%;
}

footer {
  margin-top: 3rem;
}

.attribution {
  font-size: 11px;
  text-align: center;
}
.attribution a {
  color: hsl(228, 45%, 44%);
}

/* ***************************** */
/*            LAPTOP             */
/* ***************************** */

@media (min-width: 768px) {
  body {
    height: 100%;
    padding: 0 5%;
    margin: 0;
  }

  /* ***************************** */
  /*            HEADER             */
  /* ***************************** */
  header {
    width: 80%;
    height: 30%;
    padding: 30px 0;
    text-align: center;
    margin: 0 auto;
  }

  .slogan {
    font-size: 2rem;
  }

  header .title {
    font-size: 2rem;
    margin-top: 0.3em;
  }

  header .details {
    display: block;
    width: 60%;
    margin: 0 auto;
  }

  /* ***************************** */
  /*         CONTAINER             */
  /* ***************************** */

  .container {
    width: 100%;
    /* height: 70%; */
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;

    margin: 0 auto;
  }

  .section {
    height: 28vh;
    width: 23vw;
    margin: 0 auto;
    background: white;
  }

  .middle {
    height: 90%;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: space-around;
  }

  .karma {
    margin-top: 2rem;
  }

  .section .title {
    position: absolute;
    top: 10%;
    left: 10%;

    font-size: 1.2rem;
  }

  .section .details {
    width: 85%;
    position: absolute;
    top: 30%;
    left: 10%;

    font-size: 0.7rem;
  }

  .section img {
    width: 15%;

    position: absolute;
    bottom: 15%;
    right: 10%;
  }

  /* ***************************** */
  /*            FOOTER             */
  /* ***************************** */

  footer {
    position: absolute;
    bottom: 0px;
    left: 50%;
    transform: translateX(-50%);
  }
}
