body.home {
  background-image: url("../images/sketch.png");
  font-family: "FreeUniversal" Sans-serif;
  color: RGBA(0, 0, 0, 0.87);
  overflow: visible;
}

body {
  padding-top: 100px;
  padding-bottom: 0;
}

body.home h2,
body.home h3 {
  text-align: center;
  color: #fff;
}

nav.navbar {
  top: 0 !important;
  position: absolute;
  width: 100vw;
  padding: 10px;
  z-index: 9999;
}

.navbar-brand {
  color: rgba(0, 0, 0, 0.9) !important;
}

.navbar-brand:hover {
  color: rgba(0, 0, 0, 0.9) !important;
}

body.about {
  background-image: url("../images/sketch_2.png");
}
body.why {
  background-image: url("../images/bg/why.gif");
}

body.contact {
  background-image: url("../images/sketch_3.png");
}

body.cast {
  background-image: url("../images/sketch_5.png");
}

.nav-item.active a {
  color: green;
}

.nav-link:hover {
  color: #28a745;
}

#bio {
  font-family: "FreeUniversal";
  width: 600px;
  margin: auto;
}

#bio div {
  color: #fff;
  display: flex;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.2);
}

.card {
  margin: 0 auto;
}

#bio a {
  color: #28a745;
  display: contents;
}

#bio em {
  display: contents;
}

.why-article a,
.why-text a {
  color: #28a745;
}

.why ul {
  margin-bottom: 2rem;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Apply animation to text elements */
h2,
h3 {
  opacity: 1; /* Ensure visible after animation */
  animation: fadeIn 1.5s ease-in-out; /* Apply the fade-in animation */
}

/* Styling for the sketch credit text */
.sketch-credit {
  font-size: 1.2em; /* Slightly larger text for emphasis */
  font-style: italic; /* Italic for a handwritten feel */
  color: #e0e0e0; /* Light gray for a subtle look */
  text-align: center;
  margin: 10px auto; /* Centered with some spacing */
  display: block; /* Ensures it behaves as a block for centering */
  max-width: 80%; /* Prevents it from stretching too wide */
  line-height: 1.4; /* Improved readability */
}

.form-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: 20px;
}
input,
textarea {
  background-color: rgba(0, 0, 0, 0.2) !important;
}

@media (max-width: 576px) {
  .form-container {
    padding: 10px;
    width: 100%;
  }
  textarea.form-control {
    height: 150px;
  }
  .navbar-nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
  }
  .nav-link {
    white-space: nowrap; /* Prevents link text from wrapping */
  }

  nav a {
    font-size: 18px !important;
  }

  nav img {
    width: 50px;
    height: auto;
  }
  footer {
    padding: 0 !important;
    margin: 0 !important;
  }
}

form {
  width: 50%;
}

body.funding {
  background-image: url("../images/sketch_4.png");
}

body.links {
  background-image: url("../images/sketch_5.png");
}

body {
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  background-attachment: fixed;
  background-size: cover;
}

h1 {
  color: #333;
}

h2 {
  font-family: FreeUniversal-Italic;
}

.footer {
  padding-top: 60px;
  background-color: rgba(0, 0, 0, 0.2);
  margin-top: auto;
  width: 100%;
}
.footer a {
  color: #fff;
}

.footer a {
  text-decoration: none;
}

.footer p a {
  text-decoration: underline;
}

input.transparent-input {
  background-color: rgba(0, 0, 0, 0) !important;
  border: none !important;
}

.navbar-nav .dropdown-menu {
  left: auto;
  right: 0;
}

#cast {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;

  padding: 25px 80px 100px 80px;
}

.cast-member {
  color: #fff;
  background-color: RGBA(0, 0, 0, 0.15);
  border: 1px solid #ddd;
  border-radius: 5px;
  padding: 15px;
}

.cast-member img {
  width: 100%;
  height: auto;
  margin-bottom: 10px;
}

.cast-member h4 {
  margin: 0;
  font-size: 1.2em;
}

.cast-member p {
  margin: 5px 0;
  color: #fff;
}

.cast-header p {
  color: #fff;
}

.cast-member p a {
  color: #fff;
}

.cast-header h2 {
  text-align: center;
  margin-bottom: 50px;
  color: #fff;
}

.cast-header p {
  text-align: center;
  width: 50%;
  margin-left: auto;
  margin-right: auto;
}

.cast-header a {
  color: #fff;
}

.why h2 {
  text-align: center;
  color: #fff;
  font-size: 2.5rem;
  margin: 40px auto 30px;
  padding: 20px;
  max-width: 1200px;
  background-color: rgba(0, 0, 0, 0.7);
  border-radius: 10px;
}

/* Why page article layout */
.why-article {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.why-section {
  margin-bottom: 40px;
  background-color: rgba(0, 0, 0, 0.8);
  border-radius: 10px;
  padding: 30px;
  backdrop-filter: blur(5px);
}

.why-content {
  display: flex;
  gap: 30px;
  align-items: flex-start;
}

.why-images {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
}

.why-images img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.why-images img:hover {
  transform: scale(1.05);
}

.why-text {
  flex: 1.5;
  color: #fff;
  line-height: 1.6;
}

.why-text p {
  margin-bottom: 15px;
  font-size: 16px;
  padding: 0;
}

.why-text blockquote {
  background-color: rgba(255, 255, 255, 0.1);
  border-left: 4px solid #28a745;
  padding: 20px;
  margin: 20px 0;
  border-radius: 5px;
  font-style: italic;
}

.why-text blockquote p {
  margin-bottom: 15px;
  font-size: 15px;
}

.quote-section .why-content {
  flex-direction: column;
  text-align: center;
}

.quote-section .why-images {
  margin-bottom: 20px;
}

.column-layout .why-content {
  flex-direction: column;
}

/* Responsive design for why page */
@media (max-width: 768px) {
  .why-content {
    flex-direction: column;
    gap: 20px;
  }
  
  .why-section {
    padding: 20px;
    margin-bottom: 20px;
  }
  
  .why-text {
    flex: 1;
  }
  
  .why-images {
    flex: 1;
  }
  
  .why-article {
    padding: 10px;
  }
}

.image-container {
  position: relative;
  display: inline-block; /* Adjusts to the size of the image */
}

.hover-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  background-color: rgba(0, 0, 0, 0.7); /* Semi-transparent background */
  padding: 10px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none; /* Ensures the text doesn’t interfere with hovering */
}

.image-container:hover .hover-text {
  opacity: 1;
}

@media (max-width: 572px) {
  .hover-text {
    opacity: 1 !important;
  }
}


.form-container h3 {
  color: #fff;
  text-align: center;
  margin-bottom: 20px;
}

form {
  background-color: rgba(255, 255, 255, 0.85);
  padding: 20px;
  border-radius: 10px;
  width: 100%;
  max-width: 500px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.form-group {
  margin-bottom: 15px;
}

.form-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.col-auto {
  flex: 1;
  min-width: 200px;
}

.form-control {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-sizing: border-box;
}

textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

.btn {
  background-color: #343a40;
  color: #fff;
  padding: 10px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  width: 100%;
}

.btn:hover {
  background-color: #23272b;
}

@media (max-width: 600px) {
  .form-row {
    flex-direction: column;
  }
  .col-auto {
    min-width: 100%;
  }
}

.sketch-credit {
  display: block;
  text-align: center;
  margin-bottom: 20px;
  font-size: 0.8em;
  color: #fff;
  text-decoration: none;
}

.sketch-credit:hover {
  color: #fff;
  text-decoration: underline;
}

article p {
  padding: 25px;
}

#immerseButton {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #28a745;
  color: #fff;
  border: 2px solid #fff;
  padding: 12px 24px;
  font-size: 16px;
  font-family: 'FreeUniversal-Bold', sans-serif;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  z-index: 10000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

#immerseButton:hover {
  background-color: #218838;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

#immerseButton:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

@media (max-width: 576px) {
  #immerseButton {
    bottom: 10px;
    right: 10px;
    padding: 10px 20px;
    font-size: 14px;
  }
}
