
/* Jay Soma Comedy Website - Main Stylesheet */

/* Global Styles */
:root {
  --primary-color: lightblue;
  --secondary-color: #398484;
  --background-color: #000;
  --accent-color: lightblue;
  --text-color: #398484;
  --link-color: lightblue;
  --link-hover-color: lightblue;
  --shadow-color: #398484;
  --selection-color: cyan;
  --header-height: 60px;
  color-scheme: dark;
}
.logo {
  max-height: 40px;
  max-width: min(240px, 42vw);
  width: auto;
  height: auto;
  background: transparent !important;
  display: block;
  filter: drop-shadow(0 0 14px var(--shadow-color));
  object-fit: contain;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {

  font-family: 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--background-color);
  text-shadow: 0 0 10px var(--shadow-color), 0 0 22px var(--shadow-color);
  opacity: 1;
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
  transition: opacity 0.5s ease;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

::selection {
  background: var(--selection-color);
}

p, h1, h2, h3, h4, h5, h6, li, blockquote, .testimonial, .show-item, .about-quote {
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-center {
  text-align: center;
}

.page-center table {
  margin-left: auto;
  margin-right: auto;
}

/* Header Styles */
header {
  background-color: #000000 !important;
  background-color: var(--background-color) !important;
  border-bottom: 1px solid var(--secondary-color);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 0 var(--secondary-color), 0 12px 28px rgba(0, 0, 0, 0.55);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  height: var(--header-height);
}

.header-container nav {
  flex: 1 1 auto;
  min-width: 0;
}

.site-title {
  font-size: 1.5rem;
  font-weight: 400;
}

.site-title a {
  text-decoration: none;
  color: var(--text-color);
  transition: color 0.3s ease;
}

.site-title a:hover {
  color: var(--link-hover-color);
}

/* Navigation */
nav ul {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px clamp(12px, 2.2vw, 24px);
  list-style: none;
}

nav ul li {
  margin-left: 0;
}

nav ul li a {
  display: inline-block;
  text-decoration: none;
  color: var(--text-color);
  font-size: 1rem;
  line-height: 1.25;
  white-space: nowrap;
  transition: color 0.3s ease;
}

nav ul li a:hover {
  color: var(--link-hover-color);
  text-shadow: 0 0 12px var(--shadow-color);
}

nav ul li a.active {
  border-bottom: 2px solid var(--accent-color);
  text-shadow: 0 0 12px var(--shadow-color);
}

/* Main Content */


/* Hero Section (Desktop) */
.hero {
  margin-bottom: 40px;
}


.hero img {
  max-width: 100%;
}

.about-section {
  flex: 1;
  padding-left: 20px;
  text-align: left; /* Align text to the left */
}

/* Links */
p a {
  display: block;
  margin: 10px 0;
}

/* Footer */
footer {
  background-color: var(--background-color);
  padding: 20px 0;
  border-top: 1px solid var(--secondary-color);
  text-align: center;
  font-size: 0.9rem;
  color: var(--secondary-color);
  margin-top: 0;
}

.site-credit {
  margin-top: 6px;
}

.site-credit a {
  display: inline;
  margin: 0;
}

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

.fade-in {
  animation: fadeIn 1s ease-in;
  opacity: 1; /* Ensure fade-in elements are visible */
}

/* Responsive Design (Mobile) */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    justify-content: center;
    height: auto;
    min-height: var(--header-height);
    gap: 12px;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  nav ul {
    justify-content: center;
    gap: 8px 16px;
  }

  nav ul li a {
    font-size: 0.92rem;
  }

  /* Hero Section: Stack vertically on mobile */
  .hero {
  margin-bottom: 40px;
}


  .hero img {
    width: 100%; /* Make the image fill the width */
    height: auto; /* Let the image scale naturally */
    margin-bottom: 20px; /* Space between image and text */
  }

  .about-section {
    text-align: center; /* Center the text */
    padding: 20px;
  }

  /* Social Links */
  .social-links {
    width: 100%;
    padding: 10px;
    text-align: center;
  }

  .social-links p {
    margin: 10px 0;
    word-wrap: break-word; /* Prevent links from overflowing */
  }

  .social-links a {
    display: inline-block;
    width: 100%;
    text-decoration: none;
    color: var(--link-color);
  }
}

/* Very Small Mobile View */
@media (max-width: 480px) {
  nav ul {
    gap: 8px 12px;
  }

  nav ul li a {
    font-size: 0.86rem;
  }

  .about-section {
    padding: 10px;
  }

  .social-links p {
    margin: 5px 0; /* Reduced margin to fit more links */
  }

  .social-links a {
    font-size: 1rem; /* Adjust font size for smaller screens */
  }
}


/* Main Content */
main {
  flex: 1;
  padding: 40px 0;
}

/* Hero layout */
.hero-content {
  display: flex;
  flex-direction: row-reverse; /* image on the right */
  align-items: center;
  justify-content: space-between;
  gap: clamp(24px, 5vw, 56px);
  min-height: min(70vh, 640px);
}

/* image/text sizing */
.image-container, .text-container {
  min-width: 0;
}

.image-container {
  flex: 1 1 54%;
  max-width: 560px;
  background-color: var(--background-color);
}

.text-container {
  flex: 1 1 46%;
  max-width: 520px;
}

.image-container img {
  width: 100%;
  height: clamp(360px, 62vh, 640px);
  display: block;
  object-fit: cover;
  object-position: center;
  background-color: var(--background-color);
}

.hero iframe,
.container iframe[src*="youtube"],
.container iframe[src*="youtu.be"],
.image-container iframe,
.text-container iframe,
.video-container iframe,
.youtube-embed iframe {
  width: 100% !important;
  max-width: 100% !important;
  aspect-ratio: 16 / 9;
  height: auto !important;
  display: block;
  border: 0;
  min-width: 0; /* Ensure iframe can shrink in flex/grid contexts */
  background-color: #000; /* Prevent white background or flash during loading */
}

.about-section {
  text-align: left;
}

.social-links p { margin: 10px 0; }
.social-links a { text-decoration: none; color: var(--link-color); }
.social-links a:hover { color: var(--link-hover-color); }

/* Mobile hero overrides */
@media (max-width: 768px) {
  .hero-content { flex-direction: column; gap: 20px; min-height: auto; }
  .image-container, .text-container { flex: 1 1 auto; width: 100%; }

  .image-container img {
    height: clamp(220px, 58vw, 360px);
    margin-bottom: 0;
  }

  .hero iframe,
  .container iframe[src*="youtube"],
  .container iframe[src*="youtu.be"],
  .image-container iframe,
  .text-container iframe,
  .video-container iframe,
  .youtube-embed iframe {
    width: 100%;
  }
}
