@charset "utf-8";

@media screen and (min-width: 1024px) {

    body {
        min-height: 100vh;
        position: relative;
        background-image: url('../images/bg-pattern-top-desktop.svg'), url('../images/bg-pattern-bottom-desktop.svg');
        background-position: top left, bottom right;
        background-attachment: fixed;
        background-repeat: no-repeat, no-repeat;
        background-size: 30% 40%, 80% 80%;
    }
    
    main {
      max-width: 1110px;
      margin: 0 auto;
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 30px;
      padding-top: 80px;
    }

    div#intro {
        text-align: left;
        grid-column: 1;
      }

    div#intro h1 {
      font-size: 35px;
      max-width: 18ch;
      padding: 0px 70px;
    }

    div#intro p {
      padding: 0px 50px;
    }
    
    section#rates {
      grid-column: 2;
      justify-content: center;
    }
      
    section#rates div.block-rate {
      display: flex;
      justify-content: center;
      align-items: center;
      padding: 15px 15px;
      width: 450px;
      gap: 30px;
    }
    
    section#rates div.block-rate div.star-container {
      margin-bottom: 0px;
    }
      
    div#block1 {
      align-self: flex-start;
      margin-left: 0;
    }

    div#block2 {
      align-self: center;
      margin-left: 50px;
    }

    div#block3 {
      align-self: flex-end;
      margin-left: 100px;
    }

    section#comments {
      grid-column: 1 / span 2;
      display: flex;
      flex-direction: row;
      align-items: flex-start;
      height: 300px;
      gap: 30px;
      margin: 0px 50px 60px 50px;
    }
    
    section#comments article.block-comment {
      flex: 1;
    }
    
    section#comments article#comment1 {
      align-self: flex-start; 
      transform: translateY(0);
    }

    section#comments article#comment2 {
      align-self: center; 
      transform: translateY(20px);
    }

    section#comments article#comment3 {
      align-self: flex-end;
      transform: translateY(40px);
    }
  }

  @media screen and (min-width: 1200px) {
    * {
      font-size: 18px;
    }

    div#intro h1 {
      font-size: 40px;
      line-height: 35px;
      max-width: 18ch;
      padding: 0px 40px 0px 30px;
    }

    div#intro p {
      padding: 0px 70px 0px 10px;
    }

    section#comments {
      margin: 0px 15px 60px 15px;
    }

    section#comments .block-comment {
      width: auto;
      height: 250px;
    }
  }
  