@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@200;400;600&display=swap");

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

body {
  font-family: "Poppins", sans-serif;
  background-color: hsl(0, 0%, 92%);
}

.chest {
  margin-left: auto;
  margin-right: auto;
  margin-top: 40px;
  width: 450px;
  height: 300px;
}

.chest_p {
  font-size: 2em;
  text-align: center;
  color: hsl(229, 6%, 66%);
  font-weight: 200;
}

.chest_h {
  text-align: center;
  color: hsl(234, 12%, 34%);
  margin-top: -5px;
  font-weight: 600;
}

.chest_p2 {
  text-align: center;
  color: hsl(229, 6%, 66%);
  font-size: 0.8em;
  margin-top: 15px;
}

.container {
  margin-left: auto;
  margin-right: auto;
  margin-top: -110px;
  width: 750px;
  height: 85%;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-areas: 100px;
  gap: 30px;
}

.card_cyan {
  margin-left: -120px;
  margin-top: 130px;
  background-color: hsl(0, 0%, 98%);
  box-shadow:0px -5px 0 hsl(180, 62%, 55%), 5px 10px 20px rgba(0, 0, 0, 0.2);
  padding: 30px;
  width: 310px;
  height: 220px;
  border-radius:  5px ;
  position: relative;
  transition: 0.5s ease;
}

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

.cyan_head {
  font-size: 1.5em;
  color: hsl(234, 12%, 34%);
  font-weight: 600;
  margin-bottom: 5px;
}

.cyan_p {
  color: hsl(229, 6%, 66%);
  font-size: 0.7em;
  line-height: 2;
}

.cyan_img {
  position: absolute;
  bottom: 25px;
  right: 25px;
}

.card_red {
  background-color: hsl(0, 0%, 98%);
  padding: 30px;
  width: 310px;
  height: 220px;
  box-shadow: 0px -5px  0px hsl(0, 78%, 62%),5px 10px 20px rgba(0, 0, 0, 0.2);
  border-radius:  5px ;
  position: relative;
  transition: 0.5s ease;
}

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

.red_head {
  font-size: 1.5em;
  color: hsl(234, 12%, 34%);
  font-weight: 600;
  margin-bottom: 5px;
}

.red_p {
  color: hsl(229, 6%, 66%);
  font-size: 0.7em;
  line-height: 2;
}

.red_img {
  position: absolute;
  bottom: 25px;
  right: 25px;
}

.card_blue {
  margin-top: 130px;
  background-color: hsl(0, 0%, 98%);
  padding: 30px;
  width: 310px;
  height: 220px;
  box-shadow: 0px -5px  0px hsl(212, 86%, 64%), 5px 10px 20px rgba(0, 0, 0, 0.2);
  border-radius:  5px ;
  grid-column: 3/4;
  grid-row-start: -1;
  position: relative;
  transition: 0.5s ease;
}

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

.blue_head {
  font-size: 1.5em;
  color: hsl(234, 12%, 34%);
  font-weight: 600;
  margin-bottom: 5px;
}

.blue_p {
  color: hsl(229, 6%, 66%);
  font-size: 0.7em;
  line-height: 2;
}

.blue_img {
  position: absolute;
  bottom: 25px;
  right: 25px;
}

.card_yellow {
  margin-top: -120px;
  grid-column: 2/3;
  background-color: hsl(0, 0%, 98%);
  padding: 30px;
  width: 310px;
  height: 220px;
  box-shadow: 0px -5px  0px hsl(34, 97%, 64%), 5px 10px 20px rgba(0, 0, 0, 0.2);
  border-radius:  5px ;
  position: relative;
  transition: 0.5s ease;
}

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

.yellow_head {
  font-size: 1.5em;
  color: hsl(234, 12%, 34%);
  font-weight: 600;
  margin-bottom: 5px;
}

.yellow_p {
  color: hsl(229, 6%, 66%);
  font-size: 0.7em;
  line-height: 2;
}

.yellow_img {
  position: absolute;
  bottom: 25px;
  right: 25px;
}

.fack {
  display: none;
}

.attribution {
  margin-top: 15px;
  font-size: 1em;
  color: hsl(234, 12%, 34%);
  text-align: center;
}
.attribution a {
  text-decoration: none;
  color:hsl(234, 12%, 34%);
  transition: 0.5s ease;
}

.attribution a:hover {
  transform: scale(1.1);
  font-size: 1.1em;
  color: hsl(229, 6%, 66%);
  text-decoration: dashed underline hsl(229, 6%, 66%);
}

@media (max-width:375px) {

  .chest {
    margin-left: auto;
    margin-right: auto;
    margin-top: 60px;
    width: 370px;
    height: 300px;
  }
  
  .chest_p {
    font-size: 1.3em;
    text-align: center;
    color: hsl(229, 6%, 66%);
    font-weight: 200;
    margin-bottom: 5px;
  }
  
  .chest_h {
    text-align: center;
    color: hsl(234, 12%, 34%);
    margin-top: -5px;
    font-size: 1.3em;
    font-weight: 600;
  }
  
  .chest_p2 {
    width: 275px;
    text-align: center;
    color: hsl(229, 6%, 66%);
    font-size: 0.8em;
    margin-top: 10px;
    margin-left: 45px;
  }

  .container {
    margin-left: auto;
    margin-right: auto;
    display: block;
    max-height: 950px;
    max-width: 375px;
  }

  .card_cyan {
    margin-top: -15px;
    margin-left: 42.5px;
    background-color: hsl(0, 0%, 98%);
    box-shadow: 0px -5px  0px hsl(180, 62%, 55%), 5px 10px 20px rgba(0, 0, 0, 0.2);
    padding: 30px;
    width: 280px;
    height: 220px;
    border-radius:  5px ;
    position: relative;
    transition: 0.5s ease;
  }

  .card_cyan:hover {
    transform: scale(1.1);
  }

  .card_red {
    background-color: hsl(0, 0%, 98%);
    margin-left: 42.5px;
    margin-top: 20px;
    padding: 30px;
    width: 280px;
    height: 220px;
    box-shadow: 0px -5px  0px hsl(0, 78%, 62%), 5px 10px 20px rgba(0, 0, 0, 0.2);
    border-radius:  5px ;
    position: relative;
    transition: 0.5s ease;
  }
  
  .card_red:hover {
    transform: scale(1.1);
  }

  .card_yellow {
    margin-top: 20px;
    margin-left: 42.5px;
    background-color: hsl(0, 0%, 98%);
    padding: 30px;
    width: 280px;
    height: 220px;
    box-shadow: 0px -5px  0px hsl(34, 97%, 64%), 5px 10px 20px rgba(0, 0, 0, 0.2);
    border-radius:  5px ;
    position: relative;
    transition: 0.5s ease;
  }
  
  .card_yellow:hover {
    transform: scale(1.1);
  }
  .card_blue {
    margin-top: 20px;
    margin-left: 42.5px;
    background-color: hsl(0, 0%, 98%);
    padding: 30px;
    width: 280px;
    height: 220px;
    box-shadow: 0px -5px  0px hsl(212, 86%, 64%), 5px 10px 20px rgba(0, 0, 0, 0.2);
    border-radius:  5px ;
    position: relative;
    transition: 0.5s ease;
  }
  
  .card_blue:hover {
    transform: scale(1.1);
  }

  .attribution {
    margin-top: 15px;
    margin-bottom: 15px;
    margin-left: -8px;
    font-size: 0.7em;
    color: hsl(234, 12%, 34%);
    text-align: center;
  }
  .attribution a {
    text-decoration: none;
    color:hsl(234, 12%, 34%);
    transition: 0.5s ease;
  }
  
  .attribution a:hover {
    transform: scale(1.1);
    font-size: 1em;
    color: hsl(229, 6%, 66%);
    text-decoration: dashed underline hsl(229, 6%, 66%);
  }
  
}