/* STAR */
.rate {
  height: 46px;
  padding: 0;
  transition: 0.3s;
}

.rate:not(:checked) > input {
  position: absolute;
  top: -9999px;
}

.rate:not(:checked) > label {
  float: right;
  width: 1em;
  overflow: hidden;
  white-space: nowrap;
  cursor: pointer;
  font-size: 2.8vw;
  color: #ccc;
}

.rate:not(:checked) > label:before {
  content: "★ ";
}

.rate > input:checked ~ label {
  color: black;
}

.rate:not(:checked) > label:hover,
.rate:not(:checked) > label:hover ~ label {
  color: black;
}

.rate > input:checked + label:hover,
.rate > input:checked + label:hover ~ label,
.rate > input:checked ~ label:hover,
.rate > input:checked ~ label:hover ~ label,
.rate > label:hover ~ input:checked ~ label {
  color: black;
}

/*main*/

.detail-container {
  display: flex;
  height: 100vh;
  justify-content: center;
  align-items: center;
}

.information,
.sample,
.comment {
  flex: 2 1 35%;
  padding: 0 8vw;
}

.sample {
  padding: 0;
}

.detail-container img {
  width: 30vw;
}

.information {
  padding-right: 5vw;
}

.comment {
  display: flex;
  flex-direction: column;
  padding-left: 5vw;
  align-items: baseline;
}

.comment p {
  width: 100%;
  margin-top: 20px;
  margin-bottom: 0px;
  opacity: 0.5;
  font-size: 15px;
  font-style: italic;
}

h1 {
  margin: 0;
  font-size: 40px;
  line-height: 35px;
}

h2 {
  margin-top: 0;
}

.information h3 {
  font-size: 20px;
  margin-bottom: 5px;
}

#add-to-cart {
  position: relative;
  float: right;
  right: 8vw;
  top: -15vh;
  background-color: transparent;
  font-size: 3vw;
  padding: 1vw;
}

#add-to-cart:hover {
  color: white;
  background-color: var(--black);
}
#review {
  width: 100%;
  padding: 10px 10px;
  background-color: #fbf3f3;
  border: none;
  border-bottom: 1px solid black;
  opacity: 0.5;
  margin-top: 10px;
  transition: 0.2s;
}

#review:hover {
  opacity: 1;
}

#review:focus {
  outline: none;
  opacity: 1;
}

.comment h4 {
  margin-bottom: 10px;
}

footer {
  margin: 0;
}

#post {
  border: 2px solid black;
}

/*Responsive*/
@media (max-width: 800px) {
  .detail-container {
    flex-wrap: wrap;
    flex-direction: column;
    position: relative;
    top: 90px;
    height: auto;
  }

  .information,
  .comment,
  .sample {
    flex: 1 1 100%;
    margin: 20px 0;
  }

  .information {
    order: 2;
    padding-top: 0;
    margin-top: 0;
  }

  .sample {
    order: 1;
  }

  .detail-container img {
    height: 270px;
    width: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
  }

  .comment {
    order: 3;
    padding: 0 8vw;
    margin-bottom: 90px;
    margin-top: 60px;
  }

  .information h3 {
    margin-bottom: 10px;
    font-size: 16px;
  }

  .information h2 {
    font-size: 20px;
  }

  .information h1 {
    font-size: 25px;
    line-height: normal;
  }

  .information p {
    font-size: 16px;
  }

  #add-to-cart {
    font-size: 16px;
    top: -330px;
    right: 0;
    background: black;
    color: white;
    opacity: 1;
    text-align: center;
    width: 100%;
    padding: 10px;
    margin-bottom: 60px;
  }

  .add-to-cart {
    padding: 0 30px;
  }

  #post {
    width: 100%;
    text-align: center;
    font-size: 15px;
  }

  .rate:not(:checked) > label {
    float: right;
    width: 1em;
    overflow: hidden;
    white-space: nowrap;
    cursor: pointer;
    font-size: 30px;
    color: #ccc;
  }
}
