
body {
   margin: 0;
   font-family: Arial, sans-serif;
   background-color: hsl(233, 47%, 7%);
   color: white;
   display: flex;
   justify-content: center;
   align-items: center;
   min-height: 100vh;
}

.rectangle {
   background-color: hsl(244, 38%, 16%);
   border-radius: 10px;
   max-width: 1250px;
   display: grid;
   overflow: hidden;
   box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.text-content {
   padding: 40px;
   display: flex;
   flex-direction: column;
   justify-content: center;
}

.text-content h1 {
   font-size: 2rem;
   line-height: 1.4;
   margin-bottom: 20px;
   font-weight: bold;
}

.text-content h1 span {
   color: hsl(277, 64%, 61%);
}

.text-content p {
   font-size: 1rem;
   line-height: 1.8;
   color: hsl(0, 0%, 75%);
   margin-bottom: 40px;
}

.rating {
   display: flex;
   justify-content: space-between;
   gap: 20px;
}

.stat {
   text-align: center;
}

.stat h2 {
   font-size: 1.5rem;
   font-weight: bold;
   color: hsl(0, 0%, 100%);
   margin-bottom: 10px;
}

.stat p {
   font-size: 0.85rem;
   color: hsl(0, 0%, 75%);
}

.image-content {
   position: relative;
}

.image-content img {
   width: 100%;
   height: 100%;
   object-fit: cover;
}

.image-content::after {
   content: '';
   position: absolute;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   background-color: hsl(277, 64%, 61%);
   mix-blend-mode: multiply;
}

@media (max-width: 768px) {
   .rectangle {
      display: flex;
      flex-direction: column;
   }

   .text-content {
      order: 2; 
   }

   .image-content {
      order: 1; 
   }

   .text-content h1 {
      font-size: 1.5rem; 
   }

   .text-content p {
      font-size: 0.9rem;
   }

   .rating {
      flex-direction: column;
      
   }
}

@media (min-width: 768px) {
   .rectangle {
      display: grid;
      grid-template-columns: 1fr 1fr; 
   }

   .image-content {
      order: 2; 
   }

   .text-content {
      order: 1; 
   }

   .text-content h1 {
      font-size: 2rem;
   }

   .text-content p {
      font-size: 1rem;
   }

   .rating {
      flex-direction: row;
   }
}
