/* .rating {
  grid-template-areas:
    "wel wel title nav ."
    ". . rat . ."
    ". res . go .";
} */

.rating-scroll {
  height: 75%;
  width: 95%;
  position: absolute;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0.5em 1em 0px 1.8em;
  font: italic 500 0.9rem Roboto;
  align-self: flex-end;
  bottom: 5%;
  z-index: 1;
}
.display-result-block {
  /* grid-area: res; */
  grid-column: 2;
  grid-row: 3;
  -ms-grid-column: 2;
  -ms-grid-row: 3;
  -ms-grid-row-align: center;
  -ms-grid-column-align: center;
}
.rating .rating-window {
  /* grid-area: rat; */
  grid-column: 3;
  grid-row: 2;
  -ms-grid-column: 3;
  -ms-grid-row: 2;
}
.rating-window {
  /* grid-area: rat; */
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(7rem, 100%));

  display: -ms-grid;
  -ms-grid-columns: repeat(auto-fit, minmax(7rem, 100%));
  justify-content: space-around;
  align-self: stretch;
  justify-self: stretch;
}

.rating-window-title {
  font-size: 1rem;
  margin-top: 0.5rem;
  margin-bottom: 0;
  align-self: center;
  -ms-grid-row: 1;
  grid-row: 1;
}
p.advice {
  font-size: 0.55rem;
  font-style: italic;
  padding: 0 0.3rem;
  color: #f50516;
  -ms-grid-row: 2;
  grid-row: 2;
}

.rating-window-list {
  margin: 0;
  padding: 0;
  font-size: 0.7rem;
  text-align: start;
}

.rating-window-list li {
  padding: 0.1rem 0.5rem 0;
}

.rating-window-list .current-user {
  background-color: rgba(76, 161, 70, 0.6);
}

.rating-window-list .gray-user {
  background-color: rgb(184, 184, 184);
}

.rating-window-list li span {
  color: red;
}

.btn-bottom-res {
  font: normal 400 0.7rem/1rem Roboto;
  min-width: 15vw;
  white-space: normal;
}

@media (max-width: 1024px) {
  .rating-best {
    display: none;
  }
  /* .rating {
    grid-template-areas:
      "wel nav"
      "title title"
      "rat rat"
      "res go";
  } */
  .rating .rating-window {
    /* grid-area: rat; */
    grid-column: 1/3;
    grid-row: 3;
    -ms-grid-column: 1;
    -ms-grid-column-span: 2;
    -ms-grid-row: 3;
  }
  .display-result-block {
    /* grid-area: res; */
    grid-column: 1;
    grid-row: 4;
    -ms-grid-column: 1;
    -ms-grid-row: 4;
  }
  .content-rating {
    width: 50%;
  }
  .rating-scroll {
    padding: 0 0.5rem 0 2rem;
  }

  .rating-window-list {
    font-size: 0.7rem;
  }
}
/* @media (max-width: 890px) {

  .rating {
    grid-template-areas:
      "wel go"
      "title title"
      "rat rat"
      "res nav";
  }
} */
@media (max-width: 768px) {
  .content-rating {
    width: 60%;
  }
}

@media (max-width: 540px) {
  /* .rating {
    grid-template-areas:
      "wel wel"      
      "title title"
      "rat rat"
      "go nav"
      "res res";
  } */
  .display-result-block {
    /* grid-area: res; */
    grid-column: 1/3;
    grid-row: 5;
    -ms-grid-column: 1;
    -ms-grid-column-span: 2;
    -ms-grid-row: 5;
  }
  .content-rating {
    width: 70%;
  }
  .btn-bottom-res {
    width: 100%;
  }
}
@media (max-width: 520px) {
  .rating {
    grid-template-rows: 7% 10% 53% 10% 10% 10%;
    /* grid-template-areas:
      "wel"      
      "title"
      "rat"
      "res"      
      "go"     
      "nav"; */
    -ms-grid-rows: 7% 10% 53% 10% 10% 10%;
  }
  .display-result-block {
    /* grid-area: res; */
    grid-column: 1/2;
    grid-row: 6;
    -ms-grid-column-span: 1;
    -ms-grid-row: 6;
  }
  .rating .go {
    /* grid-area: go; */
    grid-row: 5;
    -ms-grid-row: 5;
  }
  .rating .wrapper-dropdown-2 {
    /* grid-area: nav; */
    grid-row: 4;
    -ms-grid-row: 4;
  }
  .btn-bottom-res {
    width: 11.88rem;
  }
  .content-rating {
    width: 80%;
  }
}
@media (max-width: 414px) {
  .rating-window {
    margin-bottom: 0.5rem;
  }
}

@media (max-width: 280px) {
  .btn-bottom-res {
    font: normal 400 0.65rem/1rem Roboto;
  }

  .rating-window-list {
    font-size: 0.5rem;
  }
}
