

/* ===== Modal ===== */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.modal-backdrop.open { display: flex; }

.modal {
  background: #fff;
  max-width: 720px;
  width: 92%;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
  overflow: hidden;
}

@media (max-width: 640px){
  .modal-body { grid-template-columns: 1fr; }
}
.modal-body { max-height: 60vh; overflow: auto; }

.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; background: #4CAF50; color: #fff;
}
.modal-title { font-size: 1.25rem; margin: 0; }
.modal-close {
  background: transparent; border: none; color: #fff; font-size: 1.5rem; cursor: pointer;
}

.modal-body {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  padding: 20px;
}
.modal-body img {
  width: 100%; height: auto; border-radius: 8px; object-fit: cover;
}
.modal-desc { line-height: 1.6; font-size: 1rem; }

.modal-footer {
  display: flex; justify-content: flex-end; gap: 10px; padding: 16px 20px; border-top: 1px solid #eee;
}
.modal-footer .btn-primary {
  background: #4CAF50; color: #fff; border: none; border-radius: 8px; padding: 10px 16px; cursor: pointer; font-weight: 600;
}
.modal-footer .btn-secondary {
  background: #f1f1f1; color: #333; border: none; border-radius: 8px; padding: 10px 16px; cursor: pointer;
}

/* Make your existing buy-now look like a button still */
.buy-now {
  border: none; cursor: pointer; font-weight: 600;
}

        body {
            margin: 0;
            font-family: 'Roboto', sans-serif;
            background-color: #f8f8f8;
            color: #333;
        }
		header {
    position: relative;
    height: 18vh;
    color: white;
    text-align: center;
    display: flex;
    padding: 100px 0; /* Adjust padding for spacing */
    flex-direction: column;
    justify-content: center;
    align-items: center;
	padding-top: 300px; 
    width: 100vw; /* Ensure it takes up the full viewport width */
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../rsc/image.jpg') no-repeat center center;
    background-size: cover;
    opacity: 0.75; /* Makes the image slightly transparent */
    background-color: rgba(255, 255, 255, 0.5); /* Light wash overlay */
    z-index: -1;
}

header h1 {
    position: relative;
	display: initial; 
	font-weight: 700; 
	font-size: 3em;
	text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
    padding: 10px 20px;
    border-radius: 5px; /* Optional to make it look softer */
}
header p { 	
    position: relative;
	color: #4CAF50;
	text-shadow: 2px 2px 5px rgba(0, 0, 0, 1);   
    padding: 10px 20px;
    border-radius: 5px; /* Optional to make it look softer */
	font-weight: 600;
    font-size: 2em;
}
header .btn {
    background-color: #4CAF50;
    color: white;
    padding: 15px 30px;
    font-size: 1.5em;
    font-weight: bold;
    border-radius: 10px; /* Optional for rounded corners */
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3); /* Adds depth */
}

@media only screen and (max-width: 768px) {
    .vanitypress {
        display: none;
    }
	.content-text {
		width: 100% !important;
	}
}

        header p {
            margin-top: 10px;
        }
        .btn {
            background-color: #4CAF50;
            color: white;
            padding: 10px 20px;
            border: none;
            border-radius: 5px;
            font-size: 1.2em;
            cursor: pointer;
            text-decoration: none;
        }
        section {
            padding: 50px;
        }
        .intro-text {
            text-align: center;
            margin-bottom: 50px;
        }
        .intro-text h2 {
            font-family: 'Playfair Display', serif;
            font-size: 2.5rem;
            color: #4CAF50;
        }
        .content {
            display: flex;
            align-items: center;
            justify-content: space-around;
        }
        .content img {
            width: 45%;
            border-radius: 10px;
        }
        .content-text {
            width: 45%;
        }
        footer {
            background-color: #333;
            color: white;
            text-align: center;
            padding: 20px 0;
        }
        footer a {
            color: #4CAF50;
            text-decoration: none;
        }
		
/* Style the navigation bar */
nav#scrollNav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* Semi-transparent background */
    color: white;
    padding: 15px;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease-in-out; /* Smooth transition for height */
}

/* Ensure the logo stays on the left */
nav#scrollNav .logo {
    position: absolute;
    left: 20px; /* Logo stays on the left */
    top: 50%; /* Vertically center the logo */
    transform: translateY(-50%);
    transition: opacity 0.3s ease-in-out; /* Smooth transition for hiding the logo */
}

nav#scrollNav .logo img {
    height: 155px; /* Adjust the size as needed */
    width: auto;
    display: block;
}

/* Style the links in the navbar */
nav#scrollNav ul {
    margin: 0;
    padding: 0;
    list-style-type: none;
    text-align: center;
    display: flex; /* Ensures links are in a row */
}

nav#scrollNav ul li {
    margin: 0 20px; /* Adds spacing between links */
}

nav#scrollNav ul li a {
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: bold;
}

nav#scrollNav ul li a:hover {
    color: #4CAF50; /* Highlight on hover */
}

/* Smaller screens */
@media screen and (max-width: 650px) {
    nav#scrollNav .logo {
        display: none; /* Hides the logo when screen width is less than 650px */
    }
}

/* Add class when scrolled to shrink the navbar and hide the logo */
nav#scrollNav.shrink {
    height: 50px;
    padding: 5px;
}

nav#scrollNav.shrink .logo {
    opacity: 0; /* Hides the logo */
}

nav#scrollNav.shrink ul li a {
    font-size: 1rem; /* Make the links slightly smaller */
}

h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    color: #4CAF50;
    margin-bottom: 20px;
}

 p {
	text-align: left;
    line-height: 1.7;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

ul {
    list-style: disc;
    margin-left: 20px;
    padding-left: 20px; /* Adds space between bullet points and text */
    margin-bottom: 20px;
	text-align: left;
}

ol {
    margin-left: 20px;
    padding-left: 20px; /* Adds space between bullet points and text */
    margin-bottom: 20px;
	text-align: left;
}

ul li {
    margin-bottom: 10px; /* Adds space between bullet points */
}

p strong {
    font-weight: bold;
}

p em {
    font-style: italic;
}

/* Optional styling for lists if used */
ul {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 20px;
}



#books {
    text-align: center;
    padding: 50px 0;
}

.book-section-title h2 {
    font-size: 32px;
    color: #4CAF50; /* Customize the color as you like */
    margin-bottom: 20px;
}

.book-container {
    display: flex;
	flex-wrap:wrap;
    justify-content: center;
    gap: 20px;
}

.book-circle {
	flex: 0 1 calc(33.333% - 2rem);
	max-width:220px;
    position: relative;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background-color: #ccc;
    overflow: hidden;
    transition: transform 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.book-circle:hover {
    transform: scale(1.05);
}

.book-circle::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: opacity 0.3s ease, filter 0.3s ease;
}

.book-circle:hover::before {
    opacity: 0.5;
    filter: blur(4px); /* Apply slight blur effect */
	-webkit-filter: blur(8px)
}

.book-info {
    position: absolute;
    text-align: center;
    color: transparent;
    z-index: 1;
    transition: color 0.3s ease;
}

.book-circle:hover .book-info {
    color: white;
	background-color: rgb(0,0,0); /* Fallback color */
	background-color: rgba(0,0,0, 0.4); /* Black w/opacity/see-through */
}

.buy-now {
    position: absolute;
    bottom: 10px;
    background-color: white;
    color: black;
    padding: 10px 15px;
    border-radius: 20px;
    text-decoration: none;
    opacity: 0;
    z-index: 2;
    transition: opacity 0.3s ease;
}

.book-circle:hover .buy-now {
    opacity: 1;
}

footer p {
    text-align: center;
}

#contact {
	text-align: center;
}

/* Roll-in animation */
@keyframes roll-in {
    0% {
        transform: rotate(-360deg) scale(0.5);
        opacity: 0;
    }
    100% {
        transform: rotate(0deg) scale(1);
        opacity: 1;
    }
}

/* Hidden by default, visible when scrolled into view */
.hidden {
    visibility: hidden;
}

.visible {
    visibility: visible;
    animation: roll-in 1s ease forwards;
}

.book-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

/* Default: 3 per row */
.book-circle {
  flex: 0 1 calc(33.333% - 2rem);
  max-width: 220px; /* keeps circles from getting huge */
}

/* Tablet: 2 per row */
@media (max-width: 1024px) {
  .book-circle {
    flex: 0 1 calc(50% - 2rem);
  }
}

/* Mobile: 1 per row */
@media (max-width: 600px) {
  .book-circle {
    flex: 0 1 100%;
  }
}

.book-circle {
  aspect-ratio: 1 / 1;
}

@media (max-width: 600px) {
  .buy-now {
    font-size: 0.9rem;
  }
}

.book-modal-links{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.nav-center{
  display: flex;
  justify-content: center;
  align-items: center;
  height: 155px;
}

.book-circle{
  background-size: cover;
  background-repeat: no-repeat;
}

.cover-mrd { background-image: url('../rsc/MRD.jpg'); }
.cover-plc { background-image: url('../rsc/PLC.jpg'); }
.cover-ttg { background-image: url('../rsc/TTG.jpg'); }
.cover-ww  { background-image: url('../rsc/WW.jpg');  }
.cover-mtp { background-image: url('../rsc/MTP.jpg'); }
.cover-pmh { background-image: url('../rsc/PMH.jpg'); }


.intro-text h2::after {
  content: "";
  display: block;
  width: 120px;
  height: 3px;
  margin: 14px auto 0;
  background: #4CAF50;
  opacity: 0.6;
  border-radius: 999px;
}

@media (prefers-reduced-motion: reduce) {
  .visible { animation: none; }
}
