/* RMIT University Vietnam
Course: COSC2430 Web Programming
Semester: 2023B
Assessment: Assignment 1
Author: Ton That Huu Luan
ID: s3958304
Acknowledgement: 
Hover underline animation: https://www.youtube.com/shorts/56u9BpFywq4
Responsive nav bar: https://www.youtube.com/watch?v=oLgtucwjVII
*/

html {
  scroll-behavior: smooth;
  background-color: #fff;
  font-family: "Lato", sans-serif;
  background-color: #18191a;
  color: #e4e6eb;
}
/* Start of nav bar */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
header {
  background-color: rgb(38, 37, 38);
  border-radius: 0 0 40px 40px;
  color: white;
}
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.category-header {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 0 10px 0;
}
.category-header img {
  width: 100%;
}
.logo a img {
  width: 200px;
}
.navbar-links ul {
  display: flex;
  margin: 0;
  padding: 0;
}
.navbar-links li {
  list-style: none;
}
.navbar-links li a {
  position: relative;
  text-decoration: none;
  color: white;
  font-weight: 900;
  padding: 10px;
  margin: 10px;
  display: inline-block;
}
.navbar-links li a:after {
  content: "";
  position: absolute;
  background-color: white;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  transition: 0.25s;
}
.navbar-links li a:hover:after {
  width: 100%;
}
.checkbtn {
  display: none;
}
#check {
  display: none;
}

/* End of nav bar */

/* Start of mobile nav bar */
@media screen and (max-width: 768px) {
  .checkbtn {
    display: flex;
  }
  .navbar-links {
    display: none;
    width: 100%;
  }
  #check:checked ~ .navbar-links {
    display: flex;
  }
  .navbar-links ul {
    flex-direction: column;
    width: 100%;
  }
  .navbar {
    flex-direction: column;
    align-items: flex-start;
  }
  .navbar-links li {
    text-align: center;
  }
  .navbar-links li a {
    padding: 20px;
    border-radius: 20px;
    background-color: #3a3b3c;
  }
  .checkbtn {
    font-size: 30px;
    color: white;
    position: absolute;
    top: 43px;
    right: 30px;
    display: flex;
    align-items: center;
    cursor: pointer;
  }
  .logo a img {
    width: 120px;
    height: 120px;
  }
}
@media screen and (min-width: 768px) and (max-width: 992px) {
  .navbar-links li a {
    padding: 10px;
    border-radius: 20px;
    background-color: #3a3b3c;
  }
}
/* End of mobile nav bar */

/* Start of footer*/
.ft {
  background-color: rgb(38, 37, 38);
  color: white;
  border-radius: 40px 40px 0 0;
}
.ft-container {
  text-align: center;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.foot-nav ul {
  list-style: none;
}
.foot-nav li a {
  position: relative;
  text-decoration: none;
  color: white;
  padding: 10px;
  margin: 10px;
  display: inline-block;
}
.foot-nav li a:after {
  content: "";
  position: absolute;
  background-color: white;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  transition: 0.25s;
}
.foot-nav li a:hover:after {
  width: 100%;
}
.payment_method h3 {
  text-align: center;
  margin-bottom: 30px;
}
.video h3 {
  text-align: center;
  margin-bottom: 50px;
}
.payment-gallery img {
  width: 100px;
  padding: 10px;
  display: block;
  margin: auto;
}
hr {
  color: white;
}
.ft h4 {
  text-align: center;
  padding: 20px;
  color: white;
}
/* End of footer */

/* Start of mobile footer*/
@media screen and (max-width: 768px) {
  .ft-container {
    flex-direction: column;
  }
  .foot-nav {
    margin-bottom: 20px;
  }
}
/* End of mobile footer */

/* Start of breadcrumb */
.breadcrumb {
  display: flex;
  margin: 20px;
}
.breadcrumb ul {
  display: flex;
  list-style: none;
}
.breadcrumb li {
  font-size: 20px;
  font-weight: bold;
}
.breadcrumb li a {
  margin: 0 10px 0 10px;
  text-decoration: none;
  color: white;
  position: relative;
}
.breadcrumb li + li::before {
  content: ">";
  color: white;
}
.breadcrumb li a:after {
  content: "";
  position: absolute;
  background-color: white;
  bottom: -5px;
  left: 0;
  width: 0%;
  height: 2px;
  transition: 0.25s;
}
.breadcrumb li a:hover:after {
  width: 100%;
}
/* End of breadcrumb */

/* Start of mobile breadcrumb */
@media screen and (max-width: 768px) {
  .breadcrumb li {
    font-size: 15px;
  }
}

/* Start of book details */
.book-container {
  display: flex;
  justify-content: space-evenly;
  padding-bottom: 100px;
}
.product-details {
  width: 750px;
}
.product-details h2 {
  font-size: 80px;
  margin-bottom: 20px;
}
.product-details h3 {
  text-align: center;
}
.product-details button {
  margin-top: 20px;
  margin-bottom: 20px;
  padding: 10px;
  background-color: red;
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 20px;
}
.product-details button:hover {
  transform: scale(1.1);
  cursor: pointer;
}
#main-price {
  font-size: 50px;
  font-weight: bold;
}
#author {
  font-size: 20px;
  font-weight: bold;
  padding-bottom: 10px;
}
#desc {
  font-size: 20px;
  line-height: 1.5;
  border-radius: 20px;
  background-color: #3a3b3c;
  padding: 10px 20px 10px 20px;
  margin-top: 10px;
}
.smaller-gallery img {
  width: 50%;
  height: 250px;
  padding: 5px;
}
.smaller-gallery {
  display: flex;
  justify-content: space-evenly;
}
.main-image {
  display: flex;
  justify-content: center;
  padding: 15px;
}
.main-image img {
  width: 400px;
}
/* End of book details */

/* Start of mobile book details */
@media screen and (max-width: 768px) {
  .book-container {
    flex-direction: column;
  }
  .product-details {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 20px 0 20px;
  }
  .book-images {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .main-image img {
    width: 250px;
  }
  .smaller-gallery img {
    width: 100px;
    height: 150px;
    padding-bottom: 10px;
  }
  .smaller-gallery {
    flex-direction: row;
    justify-content: space-evenly;
  }
  .product-details h2 {
    margin: 20px 0 20px 0;
    font-size: 50px;
    text-align: center;
  }
  .product-details button {
    font-size: 30px;
  }
  #author {
    text-align: center;
  }
}
@media screen and (min-width: 768px) and (max-width: 992px) {
  #desc {
    text-align: center;
  }
  .product-details h2 {
    text-align: center;
  }
  .product-details {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .product-details button {
    margin-top: 10px;
  }
  .smaller-gallery {
    flex-direction: column;
    align-items: center;
  }
  #author {
    text-align: center;
  }
  #main-price {
    text-align: center;
  }
  #desc {
    margin: 15px;
  }
}
/* End of mobile book details */

/* Start of contact form */
.contact-form {
  max-width: 1000px;
  margin: auto;
  padding-bottom: 20px;
}
.contact-form label {
  font-family: "Lato", sans-serif;
}
.contact-form h1 {
  text-align: center;
  margin-bottom: 20px;
  padding-top: 20px;
}
.contact-form form {
  border-radius: 20px;
  background-color: #3a3b3c;
  padding: 20px;
}
input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  margin-top: 6px;
  margin-bottom: 16px;
  font-family: "Lato", sans-serif;
}
#submit {
  background-color: red;
  border: none;
  color: white;
  border-radius: 5px;
  padding: 12px 20px;
  cursor: pointer;
}
#reset {
  background-color: white;
  color: black;
  border: none;
  border-radius: 5px;
  padding: 12px 20px;
  cursor: pointer;
}
/* End of contact form */

/* Start of mobile contact form */
@media screen and (max-width: 768px) {
  .contact-form {
    padding: 0 20px 20px 20px;
  }
  #submit {
    width: 150px;
    height: 70px;
    font-size: larger;
  }
  #reset {
    margin-top: 10px;
    width: 150px;
    height: 70px;
    font-size: larger;
  }
}
@media screen and (min-width: 768px) and (max-width: 992px) {
  .contact-form {
    padding: 0 20px 20px 20px;
  }
  #submit {
    width: 150px;
    height: 70px;
    font-size: larger;
  }
  #reset {
    width: 150px;
    height: 70px;
    font-size: larger;
  }
}

/* End of mobile contact form */

/* Start of home page */
.container {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-evenly;
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
}
.product img {
  width: 200px;
  height: 300px;
}
.product {
  border-radius: 10px;
  padding: 10px 20px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: rgb(38, 37, 38);
  color: white;
  text-align: center;
}
.product button {
  background-color: red;
  color: white;
  border: none;
  border-radius: 10px;
  padding: 10px;
  cursor: pointer;
}
.product a {
  text-decoration: none;
  color: #e4e6eb;
}
.product h2 {
  max-width: 200px;
  padding: 10px;
  text-align: center;
}
.product:hover {
  transform: translateY(-10px);
  transition: 0.25s;
  cursor: pointer;
}
#price {
  font-size: 30px;
  font-weight: bold;
  padding: 10px;
}
.store-header {
  background-color: #3a3b3c;
  color: white;
  border-radius: 20px;
  padding: 10px;
  max-width: 1000px;
  display: flex;
  align-items: center;
  margin: 10px auto;
  justify-content: space-between;
}
.store-header a {
  position: relative;
  text-decoration: none;
  color: white;
  margin-right: 10px;
  padding-bottom: 5px;
  display: inline-block;
}

.store-header h1 {
  margin-left: 10px;
}

/* End of home page */

/* Start of mobile home page */
@media screen and (max-width: 768px) {
  .container {
    flex-direction: column;
    justify-content: center;
    max-width: 700px;
  }
  .product {
    margin: 0 auto 20px auto;
  }
  .store-header {
    margin-left: 50px;
    margin-right: 50px;
  }
}
@media screen and (min-width: 768px) and (max-width: 992px) {
  .store-header {
    width: 700px;
  }
}
@media screen and (min-width: 992px) {
  .store-header a:after {
    content: "";
    position: absolute;
    background-color: white;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    transition: 0.25s;
  }
  .store-header a:hover:after {
    width: 100%;
  }
}
/* End of mobile home page */

/* Start of legal pages */
.legal {
  margin: 20px auto;
  max-width: 1000px;
  padding: 20px;
  background-color: #3a3b3c;
  border-radius: 20px;
}
.legal h1 {
  text-align: center;
  margin: 20px;
}
.legal h2 {
  text-align: center;
  margin: 20px;
}
.legal p {
  margin: 20px;
}
.legal li {
  list-style: none;
  margin: 20px;
}
