body { background-color: #FFFFFF; } 

hr {margin: 6.5px 0;}

a
div#tab_menu {
    position: absolute;
    margin: 0;
    width: 100%;
    margin-top: 0;
    z-index: 100;
    left: 0;
}

canvas#serviceChart, canvas#productChart {max-width: 300px; max-height: 300px; z-index: 2;}

.reviews_area {
    display: grid;
    grid-template-columns: [first] 30px [line2] calc(100% - 50px);
    margin: 10px;
    column-gap: 20px;
}

.serrate-flex, .prorate-flex {
    width: calc(50% - 7px);
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-evenly;
}

/* Track */
.reviews_area::-webkit-scrollbar-track {
  background: #f1f1f1; 
}

/* Handle */
.reviews_area::-webkit-scrollbar-thumb {
  background: #888; 
}

/* Handle on hover */
.reviews_area::-webkit-scrollbar-thumb:hover {
  background: #555; 
}

.reviews_box, .ans_box {
  padding: 15px;
  border-radius: 5px;
  margin: 0 0 15px;
  background: #f3f3f3;
  opacity: 0.9;
  transition: all 0.3s ease;
  cursor: context-menu;
  position: relative;
}

.ansuser_box {
    grid-column-start: 2;
    width: 100%;
    display: grid;
    grid-template-columns: [first] 30px [line2] calc(100% - 50px);
    margin: 0 10px 0 0;
    column-gap: 20px;
    cursor: context-menu;
}

.ans_box {background: #deefff;}

.reviews_box:after, .ans_box:after {
    content: "";
    position: absolute;
    top: 0;
    left: -15px;
    width: 0;
    border-width: 0 40px 35px 0;
    border-style: solid;
    border-color: #f3f3f3 transparent;
    transform: rotate(180deg);
    z-index: -1;
}

.ans_box:after {border-color: #deefff transparent;}

.reviews_box:hover, .ans_box:hover {opacity:1; box-shadow: 3px 3px 3px #ccc;}

.reviews_box span {
  padding-left: 10px;
  padding: 0 10px;
}

p.comment {
  font-size: 15px;
  margin: 0;
  padding: 0;
  line-break: anywhere;
}

p.star {
  font-size: 15px;
  padding: 0;
  margin: 0;
}

p.date {
  color: gray;
  font-size: 11px;
  padding: 0;
  margin: 0;
}

.score{
  background: -webkit-linear-gradient(#ffe000, #ffa600, #e27d00);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.user_icon, .ansuser_icon {
  width: 30px;
  height: fit-content;
  border-radius: 50%;
  box-shadow: 0 0 5px 0px #999;
}

.user_icon img, .ansuser_icon img {max-width: 30px;}

/* width */
.reviews_area::-webkit-scrollbar {
  width: 10px;
}

textarea, input{
  width: 100%;
}

.ans_box p.date {
  color: white;
}

.option_area {
  display: flex;
  float: right;
}

.pages {
  width: 50%;
  display: flex;
  margin-left: 10px;
  align-items: center;
  justify-content: stretch;
}

.atm_show {
  width: 50%;
  text-align: right;
  margin-right: 10px;
  padding: 5px;
}

.atm_show a{
  color: #12426b;
  text-decoration: none;
}

.pages a {
  text-align: center;
  background: white;
  border: solid 1px lightgray;
  width: 20px;
  color: #12426b!important;
  text-decoration: none!important;
  padding: 5px;
  transition: all 0.3s ease-in-out;
  border-radius: 4px;
  margin: 3px 5px;
  /*font-size: 13px;*/
}

.pages a:hover {
  background: #666666;
  color: white!important;
}

.pages .active_l{
  background: #666666;
  color: white;
  cursor: auto;
  text-align: center;
  border: solid 1px lightgray;
  width: 20px;
  text-decoration: none;
  padding: 5px;
  transition-delay: 0.02s;
  border-radius: 4px;
  margin: 3px 5px;
}

/*Rating*/

body {
  background-color: #FFFFFF;
}

.container-rating {margin: 0 auto;}

.inner {
  padding-bottom: 1em;
  background-color: white;
  overflow: hidden;
  position: relative;
  display: flex;
  box-shadow: 1px 1px 6px #808080ba;
  border: 2px solid #cccc;
  margin: 10px;
  justify-content: space-evenly;
  border-radius: 10px;
  align-items: center;
}

.rating {
  text-align: center;
  position: relative;
  width: 100%;
  display: flex;
  align-content: center;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.chart-box {
    position: absolute;
}

.chart-box h3 {padding: 0px; text-align: center; padding-bottom: 10px;}

.rating-num {
  color: #333333;
  font-size: 40px;
  font-weight: 100;
  line-height: 1em; 
}

.rating-stars {
  font-size: 20px;
  color: #E3E3E3;
  margin-bottom: .5em;
}
.rating-stars .active {
  color: #737373;
}

.rating-users {
  font-size: 14px;
}

.histo {
  width: 100%;
  font-size: 13px;
}

.histo-star {
  float: left;
  padding: 3px;
  width: calc(20% - 5px);
}

.histo-rate {
  width: 100%;
  display: flex;
  clear: both;
  padding: 3px 0px;
}

.bar-block {
  color: black;
  display: block;
  float: left;
  width: calc(80% - 5px);
  position: relative;
  background: #f2f2f2;
  border-radius: 5px;
}

.bar {
  padding: 4px;
  display: block;
}

#bar-five {
  width: 0;
  background-color: #9FC05A;
}

#bar-four {
  width: 0;
  background-color: #ADD633;
}

#bar-three {
  width: 0;
  background-color: #FFD834;
}

#bar-two {
  width: 0;
  background-color: #FFB234;
}

#bar-one {
  width: 0;
  background-color: #FF8B5A;
}

.star-rating {
  display: inline-block;
  unicode-bidi: bidi-override;
  color: #888888;
  font-size: 25px;
  height: 25px;
  width: auto;
  margin: 0;
  position: relative;
  padding: 0;
  margin-top: 5px;
}

.rating-upper {
  color: #c52b2f;
  padding: 0;
  position: absolute;
  z-index: 1;
  display: flex;
  top: 0;
  left: 0;
  overflow: hidden;
}

.rating-lower {
  padding: 0;
  display: flex;
  z-index: 0;
}

.line{
  border-left: 2px solid #cccc;
  height: 280px;
  margin: 0.9em 10px 0;
  align-items: center;
}

.pages{margin-right: 10px; margin-left: 0px;width: 100%;}

@media(max-width: 576px){
  p.star {display: grid;}
  .line{ display: none; }
  .inner{-ms-flex-wrap: wrap; flex-wrap: wrap; padding: 1em;}
  .star-rating{font-size: 20px;}   
  .rating{justify-content: space-evenly; flex-direction: row-reverse;}
  #rating_01{flex-direction: row;}
  .chart-box{position: unset; width: calc(40% - 5px);}
  canvas#serviceChart, canvas#productChart{width: calc(60% - 5px)!important; height: auto!important;}
}

@media(max-width: 425px){
    .ansuser_box{grid-column-start: 1; grid-column-end: 3;}
    .inner{margin: 10px 4px;}
    .pages{margin-right: 0;}
    .reviews_area{margin: 10px 5px;}

}