@import url("https://fonts.googleapis.com/css2?family=Barlow+Semi+Condensed:wght@500;600&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Barlow Semi Condensed", sans-serif;
}

.container {
  width: 1000px;
  height: 600px;
  margin-top: 90px;
  margin-right: auto;
  margin-left: auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  grid-template-rows: 300px 100px 300px;
  align-items: start;
  gap: 25px;
}

body {
  background-color: hsl(0, 0%, 81%);
}

.purple-side {
  background-color: hsl(263, 55%, 52%);
  grid-column: 1 / 3;
  padding: 20px;
  position: relative;
  border-radius: 10px;
  line-height: 1.4;
  box-shadow: 5px 10px 20px rgba(0, 0, 0, 0.2);
  background-image: url(images/bg-pattern-quotation.svg);
  background-repeat: no-repeat;
  background-position: 70% 2%;
  background-size: 115px;
}

.purple-img {
  display: inline;
  border-radius: 100%;
  border: 1px solid white;
  transition: 0.3s ease-in;
}

.purple-img:hover {
  transform: scale(1.1);
  cursor: pointer;
}

.purple-name1 {
  color: hsl(0, 0%, 100%);
  display: inline-block;
  position: absolute;
  margin-left: 15px;
  margin-top: 10px;
  font-size: 13px;
  transition: 0.3s ease-in;
}

.purple-name1:hover {
  transform: scale(1.1);
  cursor: pointer;
}

.purple-name2 {
  color: hsl(0, 0%, 100%);
  display: inline-block;
  position: absolute;
  margin-left: 15px;
  margin-top: 30px;
  font-size: 12px;
  opacity: 50%;
  transition: 0.3s ease-in;
}

.purple-name2:hover {
  transform: scale(1.1);
  cursor: pointer;
}

.purple-head {
  width: 370px;
  color: hsl(0, 0%, 100%);
  font-size: 16px;
  margin-bottom: 20px;
  margin-top: 10px;
}

.purple-main {
  width: 420px;
  font-size: 11.5px;
  color: hsl(0, 0%, 81%);
  opacity: 70%;
}

.gray-side {
  background-color: hsl(217, 19%, 35%);
  grid-column: 3 / 4;
  grid-row-start: -4;
  padding: 20px;
  border-radius: 10px;
  line-height: 1.4;
  box-shadow: 5px 10px 20px rgba(0, 0, 0, 0.2);
}

.gray-img {
  display: inline;
  border-radius: 100%;
  border: 1px solid white;
  transition: 0.3s ease-in;
}

.gray-img:hover {
  transform: scale(1.1);
  cursor: pointer;
}

.gray-name1 {
  color: hsl(0, 0%, 100%);
  display: inline-block;
  position: absolute;
  margin-left: 15px;
  margin-top: 10px;
  font-size: 13px;
  transition: 0.3s ease-in;
}

.gray-name1:hover {
  transform: scale(1.1);
  cursor: pointer;
}

.gray-name2 {
  color: hsl(0, 0%, 100%);
  display: inline-block;
  position: absolute;
  margin-left: 15px;
  margin-top: 30px;
  font-size: 12px;
  opacity: 50%;
  transition: 0.3s ease-in;
}

.gray-name2:hover {
  transform: scale(1.1);
  cursor: pointer;
}

.gray-head {
  width: 150px;
  color: hsl(0, 0%, 100%);
  font-size: 16px;
  margin-bottom: 20px;
  margin-top: 10px;
}

.gray-main {
  width: 160px;
  font-size: 11.5px;
  color: hsl(0, 0%, 81%);
  opacity: 70%;
}

.white-small-side {
  background-color: hsl(0, 0%, 100%);
  grid-column: 1/2;
  grid-row: 2/3;
  padding: 22px;
  margin-top: -20px;
  border-radius: 10px;
  line-height: 1.4;
  box-shadow: 5px 10px 20px rgba(0, 0, 0, 0.2);
}

.white-small-img {
  display: inline;
  border-radius: 100%;
  transition: 0.3s ease-in;
}

.white-small-img:hover {
  transform: scale(1.1);
  cursor: pointer;
}

.white-small-name1 {
  color: hsl(219, 29%, 14%);
  display: inline-block;
  position: absolute;
  margin-left: 15px;
  margin-top: 10px;
  font-size: 13px;
  transition: 0.3s ease-in;
}

.white-small-name1:hover {
  transform: scale(1.1);
  cursor: pointer;
}

.white-small-name2 {
  color: hsl(217, 19%, 35%);
  display: inline-block;
  position: absolute;
  margin-left: 15px;
  margin-top: 30px;
  font-size: 12px;
  opacity: 50%;
  transition: 0.3s ease-in;
}

.white-small-name2:hover {
  transform: scale(1.1);
  cursor: pointer;
}

.white-small-head {
  width: 130px;
  color: hsl(219, 29%, 14%);
  font-size: 16px;
  margin-bottom: 20px;
  margin-top: 10px;
}

.white-small-main {
  width: 160px;
  font-size: 11.5px;
  color: hsl(217, 19%, 35%);
  opacity: 70%;
}

.black-side {
  background-color: hsl(219, 29%, 14%);
  grid-column: 2 /4;
  grid-row-start: 2;
  padding: 20px;
  margin-top: 10px;
  margin-top: -20px;
  border-radius: 10px;
  line-height: 1.4;
  box-shadow: 5px 10px 20px rgba(0, 0, 0, 0.2);
}

.black-img {
  display: inline;
  border-radius: 100%;
  transition: 0.3s ease-in;
  border: 1px solid white;
}

.black-img:hover {
  transform: scale(1.1);
  cursor: pointer;
}

.black-name1 {
  color: hsl(0, 0%, 100%);
  display: inline-block;
  position: absolute;
  margin-left: 15px;
  margin-top: 10px;
  transition: 0.3s ease-in;
  font-size: 13px;
}

.black-name1:hover {
  transform: scale(1.1);
  cursor: pointer;
}

.black-name2 {
  color: hsl(0, 0%, 100%);
  display: inline-block;
  position: absolute;
  margin-left: 15px;
  margin-top: 30px;
  font-size: 12px;
  transition: 0.3s ease-in;
  opacity: 50%;
}

.black-name2:hover {
  transform: scale(1.1);
  cursor: pointer;
}

.black-head {
  width: 390px;
  color: hsl(0, 0%, 100%);
  font-size: 16px;
  margin-bottom: 20px;
  margin-top: 10px;
}

.black-main {
  width: 430px;
  font-size: 12px;
  color: hsl(0, 0%, 81%);
  opacity: 70%;
}

.white-side {
  background-color: hsl(0, 0%, 100%);
  grid-column-start: 4;
  grid-column-end: 5;
  grid-row-start: -4;
  padding: 20px;
  line-height: 111%;
  border-radius: 10px;
  box-shadow: 5px 10px 20px rgba(0, 0, 0, 0.2);
}

.white-img {
  display: inline;
  transition: 0.3s ease-in;
  border-radius: 100%;
}

.white-img:hover {
  transform: scale(1.1);
  cursor: pointer;
}

.white-name1 {
  color: hsl(219, 29%, 14%);
  display: inline-block;
  position: absolute;
  margin-left: 15px;
  margin-top: 10px;
  transition: 0.3s ease-in;
  font-size: 13px;
}

.white-name1:hover {
  transform: scale(1.1);
  cursor: pointer;
}

.white-name2 {
  color: hsl(217, 19%, 35%);
  display: inline-block;
  position: absolute;
  margin-left: 15px;
  margin-top: 30px;
  font-size: 12px;
  transition: 0.3s ease-in;
  opacity: 50%;
}

.white-name2:hover {
  transform: scale(1.1);
  cursor: pointer;
}

.white-head {
  width: 130px;
  color: hsl(219, 29%, 14%);
  font-size: 16px;
  margin-bottom: 20px;
  margin-top: 10px;
}

.white-main {
  width: 160px;
  font-size: 11.5px;
  color: hsl(217, 19%, 35%);
  opacity: 70%;
}

.n {
  display: none;
}

.attribution {
  font-size: 20px;
  text-align: center;
  color: hsl(219, 29%, 14%);
}
.attribution a {
  color: hsl(217, 19%, 35%);
  font-size: 20px;
  text-decoration: none;
  transition: 0.3s ease-in;
}

.attribution a:hover{
  font-size: 24px;
  transform: scale(1.1);
  cursor: pointer;
  color: hsl(263, 55%, 52%);
  text-transform: uppercase;
}


@media (max-width:375px) {
  .container {
    display: block;
    max-width: 375px;
    margin-top: 50px;
    margin-left: auto;
    margin-right: auto;
  }

  .purple-side {
    background-color: hsl(263, 55%, 52%);
    grid-column: 1 / 3;
    padding: 20px;
    position: relative;
    border-radius: 10px;
    margin-left: 10px;
    margin-right: 10px;
    max-width: 365px;
    max-height: 520px;
    background-image: url(images/bg-pattern-quotation.svg);
    background-repeat: no-repeat;
    background-position: 90% 2%;
    background-size: 105px;
    margin-bottom: 20px;
  }
  .purple-head {
    max-width: 303px;
    color: hsl(0, 0%, 100%);
    font-size: 25px;
    margin-bottom: 20px;
    margin-top: 3px;
  }
  
  .purple-main {
    width: 278px;
    font-size: 13px;
    color: hsl(0, 0%, 81%);
    opacity: 70%;
    margin-top: -10px;
  }

  .gray-side {
    background-color: hsl(217, 19%, 35%);
    grid-column: 3 / 4;
    grid-row-start: -4;
    margin-left: 10px;
    margin-right: 10px;
    max-width: 365px;
    max-height: 520px;
    margin-bottom: 40px;
    padding: 20px;
    border-radius: 10px;
    line-height: 1.4;
    box-shadow: 5px 10px 20px rgba(0, 0, 0, 0.2);
  }
    
  .gray-head {
    width: 250px;
    color: hsl(0, 0%, 100%);
    font-size: 20px;
    margin-bottom: 20px;
  }
  
  .gray-main {
    width: 250px;
    font-size: 11.5px;
    color: hsl(0, 0%, 81%);
    margin-top: -5px;
    opacity: 70%;
  }

  .white-small-side {
    background-color: hsl(0, 0%, 100%);
    grid-column: 1/2;
    grid-row: 2/3;
    padding: 22px;
    max-height: 520px;
    margin-left: 10px;
    margin-right: 10px;
    margin-bottom: 40px;
    max-width: 365px;
    border-radius: 10px;
    line-height: 1.4;
    box-shadow: 5px 10px 20px rgba(0, 0, 0, 0.2);
  }
  
  .white-small-head {
    width: 200px;
    color: hsl(219, 29%, 14%);
    font-size: 20px;
    margin-bottom: 20px;
  }
  
  .white-small-main {
    width: 230px;
    font-size: 11.5px;
    color: hsl(217, 19%, 35%);
    margin-top: -5px;
    opacity: 70%;
  }

  .black-side {
    background-color: hsl(219, 29%, 14%);
    grid-column: 2 /4;
    grid-row-start: 2;
    margin-left: 10px;
    margin-right: 10px;
    margin-bottom: 20px;
    max-width: 365px;
    max-height: 520px;
    padding: 20px;
    border-radius: 10px;
    line-height: 1.4;
    box-shadow: 5px 10px 20px rgba(0, 0, 0, 0.2);
  }

  .black-head {
    width: 260px;
    color: hsl(0, 0%, 100%);
    font-size: 20px;
    margin-bottom: 20px;
    margin-top: 10px;
  }
  
  .black-main {
    width: 240px;
    font-size: 12px;
    color: hsl(0, 0%, 81%);
    opacity: 70%;
  }

  .white-side {
    background-color: hsl(0, 0%, 100%);
    grid-column-start: 4;
    grid-column-end: 5;
    grid-row-start: -4;
    padding: 20px;
    line-height: 111%;
    border-radius: 10px;
    margin-left: 10px;
    margin-right: 10px;
    margin-bottom: 20px;
    max-width: 365px;
    max-height: 560px;
    box-shadow: 5px 10px 20px rgba(0, 0, 0, 0.2);
  }

  .white-head {
    width: 260px;
    color: hsl(219, 29%, 14%);
    font-size: 20px;
    margin-bottom: 20px;
    line-height: 1.2;
  }
  
  .white-main {
    width: 264px;
    font-size: 11.5px;
    color: hsl(217, 19%, 35%);
    opacity: 70%;
  }

  .attribution {
    font-size: 13px;
    text-align: center;
    color: hsl(219, 29%, 14%);
    position: absolute;
    top: 1930px;
    margin-left: 45px;
    margin-bottom: 10px;
  }
  .attribution a {
    color: hsl(217, 19%, 35%);
    font-size: 13px;
    text-decoration: none;
    transition: 0.3s ease-in;
    margin-bottom: 10px;
  }
  
  .attribution a:hover{
    font-size: 15px;
    transform: scale(1.1);
    cursor: pointer;
    color: hsl(263, 55%, 52%);
    text-transform: uppercase;
    margin-bottom: 20px;
  }
}