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

body {
  background-color: #0d1222;
  color: white;
  position: relative;
  margin: auto;
  padding: 100px 0 0 10px;
  justify-content: start;
}

.wrapper {
  display: grid;
  grid-template-columns: repeat(4, 240px);
  grid-template-rows: repeat(2, 240px);
  gap: 40px;
  padding: 0 50px;
}

.profile-container {
  grid-row-start: 1;
  grid-row-end: 3;
  background-color: hsl(235, 46%, 20%);
  border-radius: 20px;
  width: 260px;
  height: 510px;
  padding: 10px;
}

.person {
  background-color: hsl(246, 80%, 60%);
  border-radius: 20px;
  padding: 30px 30px 60px 30px;
  margin: -10px -10px 0 -10px;
  position: relative;
}

.person h1 {
  font-weight: 300;
  font-size: 44px;
}

.person p {
  font-size: 16px;
  color: hsl(236, 100%, 87%);
}

.jeremy-image {
  width: 35%;
  border: 3px solid white;
  border-radius: 50%;
}

.report-from {
  margin: 50px 0 20px 0;
}

.profile-buttons {
  line-height: 2;
  white-space: pre-line;
}

.profile-buttons a {
  padding: 20px;
  text-decoration: none;
  color: hsl(235, 45%, 61%);
}

.profile-buttons a:hover {
  color: white;
}

.card-container {
  width: 260px;
  height: 230px;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
}

.card-background {
  border-radius: 20px;
  height: 210px;
}

.activity-icon {
  position: absolute;
  top: -12px;
  right: 15px;
  width: 30%;
}

.work {
  background-color: hsl(15, 100%, 70%);
}

.play {
  background-color: hsl(195, 74%, 62%);
}

.study {
  background-color: hsl(348, 100%, 68%);
}

.exercise {
  background-color: hsl(145, 58%, 55%);
}

.social {
  background-color: hsl(264, 64%, 52%);
}

.self-care {
  background-color: hsl(43, 84%, 65%);
}

.card-info {
  background-color: hsl(235, 46%, 20%);
  width: 260px;
  height: 190px;
  padding: 25px;
  border-radius: 20px;
  position: absolute;
  bottom: 0;
}

.card-info:hover {
  background-color:  hsl(246, 80%, 60%);
  cursor: pointer;
}

.card-header {
  width: 50%;
  float: left;
}

.three-dots {
  width: 50%;
  float: right;
  text-align: right;
  font-weight: 800;
  position: relative;
  top: -5px;
}

.hours {
  margin: 40px 0 20px 0;
}

.hours h1 {
  font-size: 48px;
  font-weight: 300px;
}

.previous-hours {
  color: hsl(236, 100%, 87%);
}

.attribution {
  margin-top: 30px;
  text-align: center;
}

/*
  Media query for mobile devices
*/
@media screen and (max-width: 1000px) {

  .wrapper {
    grid-template-columns: repeat(1, 1fr);
    grid-template-rows: minmax(200px, auto);
    justify-content: center;
    justify-items: center;
    gap: 20px;
    padding: 0;
  }

  .profile-container {
    grid-row-start: 1;
    grid-row-end: 2;
    height: fit-content;
    width: 350px;
  }

  .person {
    height: 150px;
    padding-top: 40px;
    padding-bottom: 0;
  }

  .jeremy-image {
    width: 25%;
  }

  .report-from {
    margin: 0;
    position: relative;
    left: 90px;
    bottom: 65px;
  }

  .report-from p {
    font-size: 14px;
  }

  .report-from h1 {
    font-size: 26px;
    white-space: nowrap;
  }

  .profile-buttons {
    margin: 20px 0 10px 0;
    white-space: nowrap;
    text-align: center;
  }

  .profile-buttons a {
    font-size: 20px;
  }

  .card-container {
    width: 350px;
    height: 160px;
  }

  .card-background {
    height: 150px;
  }

  .activity-icon {
    width: 23%;
  }

  .card-info {
    width: 350px;
    height: 120px;
  }

  .card-header p {
    font-size: 20px;
  }

  .hours {
    margin: 0;
    width: 50%;
  }

  .hours h1 {
    font-size: 30px;
  }

  .three-dots {
    top: -20px;
  }

  .three-dots p {
    font-size: 32px;
  }

  .previous-hours {
    width: 50%;
    float: right;
    text-align: right;
    position: relative;
    top: -25px;
  }

  .attribution {
    margin-bottom: 20px;
  }
}