:root {
  --bs-font-sans-serif: 'Roboto', sans-serif;
}

body {
  padding: 10px;
  padding-bottom: 50px;
}

.roboto-medium {
  font-family: "Roboto", serif;
  font-weight: 500;
  font-style: normal;
}


h1 {
  margin-bottom: 2000px;
}

/* For Demo only */
.cd__main {
  position: relative;
  width: 360px !important;
  height: 720px;
  border: 2px solid #bbb;
}

/* end demo only */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;

  z-index: 1000;
  will-change: transform;
  transform: translateZ(0);
  display: flex;
  height: 50px;
  box-shadow: 0 -2px 5px -2px #333;
  background-color: #fff;
}

.mobile-bottom-nav__item {
  flex-grow: 1;
  text-align: center;
  font-size: 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.mobile-bottom-nav__item--active {
  color: #0D6EFD;
}

.mobile-bottom-nav__item-content {
  display: flex;
  flex-direction: column;
}

.floating-button {
  position: fixed;
  bottom: 60px;
  right: 20px;
  width: 60px;
  height: 60px;
  background-color: #007bff;
  border-radius: 50%;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3);
}

.floating-button button {
  width: 100%;
  height: 100%;
  border: none;
  background-color: transparent;
  color: #fff;
  font-size: 24px;
  border-radius: 50%;
  cursor: pointer;
  outline: none;
}

.floating-button button:hover {
  background-color: rgba(0, 123, 255, 0.8);
}

.back-button {
  position: fixed;
  top: 60px;
  left: 20px;
  width: 40px;
  height: 40px;
  background-color: #f2f2f2;
  border-radius: 50%;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3);
  z-index: 999;
}

.back-button button {
  width: 100%;
  height: 100%;
  border: none;
  background-color: transparent;
  color: #333;
  font-size: 24px;
  border-radius: 50%;
  cursor: pointer;
  outline: none;
}

.back-button button:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

body {
  background: linear-gradient(to bottom, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0.5));
  background-image: url('../img/blue.jpg');
  background-position: center top;
  background-size: contain;
  background-repeat: no-repeat;
  margin: 0;
  padding: 0;
  font-family: sans-serif;
}

header {
  background-color: transparent;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-container {
  display: flex;
  align-items: center;
}

.logo {
  margin-right: 20px;
}

.logo img {
  height: 40px;
  border-radius: 50%;
}

.search-bar {
  position: absolute;
  top: 20px;
  /* atur posisi vertikal sesuai kebutuhan */
  right: 20px;
  /* atur posisi horizontal untuk paling kanan */
  display: flex;
  align-items: center;
}

.search-bar input {
  width: 30vw;
  border-radius: 10px;
  /* Ubah sesuai kebutuhan */
  padding: 5px 10px;
  /* Atur padding sesuai kebutuhan */
  border: 1px solid #ccc;
  /* Atur warna dan ketebalan border sesuai kebutuhan */
  font-size: 14px;
  /* Atur ukuran font sesuai kebutuhan */
}

.search-bar button {
  background-color: transparent;
  border: none;
  cursor: pointer;
  font-size: 16px;
}

.title {
  padding-left: 5vw;
}

.cover-book {
  width: 30vw;
  height: auto;
  border-radius: 10px;
}

.flyer {
  width: 90vw;
  height: auto;
  border-radius: 20px;
}

.btn-round {
  border-radius: 50px;
}

.gradient-background {
  background: hsla(233, 13%, 86%, 1);

  background: radial-gradient(circle, hsla(233, 13%, 86%, 1) 20%, hsla(222, 28%, 65%, 1) 100%);

  background: -moz-radial-gradient(circle, hsla(233, 13%, 86%, 1) 20%, hsla(222, 28%, 65%, 1) 100%);

  background: -webkit-radial-gradient(circle, hsla(233, 13%, 86%, 1) 20%, hsla(222, 28%, 65%, 1) 100%);

  filter: progid: DXImageTransform.Microsoft.gradient(startColorstr="#D8D9E1", endColorstr="#8E9DBF", GradientType=1);
  border-radius: 10px;
  box-shadow: 0px 0px 10px 2px rgba(0, 0, 0, 0.2);
}

.box-details {
  background-color: #f2f2f2;
  border-radius: 50px;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3);

}

.btn-read {
  width: 200px;
}

.a-nostyle {
  text-decoration: none;
  color: inherit;
}

.star-rating {
  direction: rtl;
  display: flex;
  justify-content: center;
}

.star-rating input[type="radio"] {
  display: none;
}

.star-rating label {
  font-size: 2rem;
  color: #ddd;
  cursor: pointer;
  transition: color 0.3s;
}

.star-rating input[type="radio"]:checked~label {
  color: #ffc107;
}

.star-rating label:hover,
.star-rating label:hover~label {
  color: #ffc107;
}

.profile-card {
  max-width: 400px;
  margin: auto;
  margin-top: 50px;
  border-radius: 15px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1)
}

.profile-card img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 50%;
  margin-top: -10vh;
}

.preloader {
  position: fixed;
  /* Tetap di tempat meskipun halaman di-scroll */
  top: 0;
  left: 0;
  width: 100vw;
  /* Menutupi seluruh lebar layar */
  height: 100vh;
  /* Menutupi seluruh tinggi layar */
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(255, 255, 255, 0.5);
  /* Latar belakang semi-transparan */
  backdrop-filter: blur(5px);
  /* Efek blur pada latar belakang */
  z-index: 9999;
  /* Pastikan berada di depan semua elemen lain */
}

.modal-content {
  border-radius: 1rem;
  overflow: hidden;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 10;
}

/* Styling for subscription-icon (Mobile Optimized) */
.subscription-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f8f9fa;
  /* Light background */
  border: 2px solid #007bff;
  /* Blue border */
  border-radius: 30px;
  /* Smaller rounded corners */
  padding: 8px 12px;
  /* Reduced padding for mobile */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  /* Subtle shadow */
  transition: all 0.3s ease;
  /* Smooth hover effect */
  cursor: pointer;
}

.subscription-icon a {
  text-decoration: none;
  color: #007bff;
  /* Blue text color */
  font-weight: 500;
  /* Slightly lighter text */
  font-family: 'Poppins', sans-serif;
  /* Consistent font */
  display: flex;
  align-items: center;
  gap: 6px;
  /* Reduced space between text and icon */
  font-size: 14px;
  /* Smaller font size for mobile */
}

.subscription-icon a:hover {
  color: #0056b3;
  /* Darker blue on hover */
}

.subscription-icon:hover {
  background-color: #007bff;
  /* Blue background on hover */
  color: #fff;
  /* White text on hover */
  transform: translateY(-2px);
  /* Slight lift effect */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
  /* Enhanced shadow */
}

.subscription-icon .material-symbols-outlined {
  font-size: 20px;
  /* Smaller icon size */
  color: inherit;
  /* Inherit text color */
}

/* Modern Navbar Bottom */
.mobile-bottom-nav-modern {
  display: flex;
  justify-content: space-around;
  align-items: center;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #ffffff;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  padding: 10px 0;
  z-index: 1000;
}

.mobile-bottom-nav-modern__item {
  flex: 1;
  text-align: center;
  color: #6c757d;
  transition: color 0.3s ease;
}

.mobile-bottom-nav-modern__item:hover {
  color: #007bff;
}

.mobile-bottom-nav-modern__item-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 14px;
}

.mobile-bottom-nav-modern__item-content span.material-symbols-outlined {
  font-size: 24px;
  margin-bottom: 5px;
}