/* Defining custom fonts */
@font-face {
  font-family: "Poppins Thick";
  src: url('font/Poppins-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "Poppins Regular";
  src: url('font/Poppins-Light.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "Poppins Light";
  src: url('font/Poppins-Thin.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

/* Global body styles */
body {
    background: linear-gradient(#F4CCCC, white); 
    min-height: 100%; 
    margin: 0;
    text-align: center; /* Center content */
}

/* Navigation bar styles */
.topnav {
    background-color: #fbfcd9;
    overflow: hidden;
    position: absolute;
    top: 0;
    right: 0; /* Position on the right */
    padding: 10px 0;
    display: flex; /* Use flexbox for horizontal alignment */
    justify-content: flex-end; /* Align items to the right */
    width: 100%; /* Allow width to adjust to content */
}

/* Navigation link styles */
.topnav a {
    float: left;
    display: block;
    color: black; 
    text-align: center;
    padding: 16px 20px; /* Adjusted padding */
    text-decoration: none;
    font-family: "Poppins Regular", sans-serif;
    font-size: 18px; 
}

/* Hover effect for navigation links */
.topnav a:hover {
    background-color: #ddd; 
    color: black;
}

/* Style for active navigation link */
.topnav a.active {
    background-color: #F4CCCC; 
    color: black;
}

/* Main heading styles */
h1 {
    margin-top: 100px; 
    font-family: "Poppins Thick", sans-serif;
    font-size: 8vw; /* Responsive font size */
    color: white;
}

/* Styles for different section headings */
.description-heading, .cast-heading, .film-heading {
    font-family: "Poppins Regular", sans-serif;
    font-size: 3vw; 
    color: black;
}

.cast-heading {
    margin-bottom: 100px;
}

.film-heading {
    margin-top: -20px;
}

/* Paragraph styles */
p {
    font-size: 1.2em;
    font-family: "Poppins Light", sans-serif;
    line-height: 1.6;
    margin: 20px;
    font-weight: bolder;
}

/* Container for the main stem image */
.stem-container {
  margin-top: 50px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 1200px; 
  margin: 0 auto; 
}

/* Stem image styles */
.stem-image {
  max-width: 100%;
  width: auto; 
  height: auto;
  max-height: 100vh; 
}

/* Styles for rectangles containing flower images */
.rectangle {
  position: absolute;
  background-color: white;
  border: 2px solid #ccc;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2); /* Shadow effect */
  cursor: pointer;
}

/* Image styles within rectangles */
.rect-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Hover text styles for rectangles */
.rectangle .hover-text {
  display: none;
  position: absolute;
  top: 0px;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.9);
  padding: 10px;
  text-align: center;
  font-size: 15px;
}

/* Show hover text on rectangle hover */
.rectangle:hover .hover-text {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Fade image on hover */
.rectangle:hover .rect-image {
  opacity: 0.3;
}

/* Styles for horizontal and vertical rectangles */
.horizontal {
  width: 40vw;
  height: 15vw;
  max-width: 500px;
  max-height: 200px;
}

.vertical {
  width: 15vw;
  height: 40vw;
  max-width: 200px;
  max-height: 400px;
}

/* Positioning for individual rectangles */
.rect1 { top: -10%; left: 1%; }
.rect2 { top: 22%; right: 15%; }
.rect3 { top: -10%; right: -2%; }
.rect4 { top: 22%; left: 18%; }

/* Video container styles */
.video-container {
  width: 100%;
  max-width: 1200px;
  margin: 10px auto;
}

/* Video wrapper for responsive embedding */
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
}

.video-wrapper video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Author page content layout */
.author-content {
  display: flex;
  align-items: flex-start;
  margin-top: 100px;
  padding: 20px;
}

/* Author portrait container */
.portrait-container {
  flex: 0 0 300px;
  margin-right: 30px;
}

/* Author image styles */
.author-image {
  width: 100%;
  height: auto;
  border: 5px solid #F4CCCC;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

/* Author text content styles */
.author-text {
  flex: 1;
  text-align: justify;
}

.author-text h1 {
  text-align: left;
  margin-top: 0;
}

/* Contact form container styles */
.contact-container {
    max-width: 1000px;
    margin: 100px auto;
    padding: 20px;
    border-radius: 8px;
}

/* Contact form layout */
#contact-form {
    display: flex;
    flex-direction: column;
}

/* Label styles for form inputs */
#contact-form label {
    margin-top: 10px;
    font-family: "Poppins Regular", sans-serif;
}

/* Input and textarea styles */
#contact-form input,
#contact-form textarea {
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: "Poppins Light", sans-serif;
}

/* Textarea specific styles */
#contact-form textarea {
    height: 150px;
    resize: vertical;
}

/* Submit button styles */
#contact-form button {
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #F4CCCC;
    color: black;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-family: "Poppins Regular", sans-serif;
    transition: background-color 0.3s;
}

/* Hover effect for submit button */
#contact-form button:hover {
    background-color: #e6b3b3;
}