/* ===== General Body & Page Layout ===== */
body {
  font-family: 'Times New Roman', serif;
  font-size: 20px;
  margin: 40px 120px;
}

#wrapper {
  max-width: 1200px;
  margin: auto;
}

.content-box {
  background: rgba(255, 255, 255, 0.85);
  padding: 30px;
  border-radius: 15px;
}

/* ===== Navigation ===== */
nav {
  background-color: #1e88e5;
  padding: 15px;
  text-align: center;
}

nav a {
  color: white;
  text-decoration: none;
  margin: 0 15px;
  font-size: 18px;
  font-weight: bold;
}

nav a:hover {
  text-decoration: underline;
}

/* ===== Navigation Selected Page ===== */
nav a.current {
  background-color: white;
  color: #1e88e5;
  padding: 8px 14px;
  border-radius: 6px;
}

/* ===== Section Divider ===== */
.section-divider {
  width: 80%;
  border: 6px solid #54575b;
  border-radius: 6px;
  margin: 20px auto;
}

/* ===== Grid Layout ===== */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  max-width: 800px;
  margin: 20px auto;
}

.trip-box {
  padding: 8px;
  border: 1px solid #1e88e5;
  text-align: center;
  background: #1e88e5;
  color: white;
  border-radius: 6px;
}

.trip-box:hover {
  background-color: #10b9e4;
  cursor: pointer;
}

/* ===== Back to Top Fishing Rod ===== */
.rod{
  text-align: center;       /* center the rod horizontally */
  margin-top: 20px;         /* space above the rod */
  margin-bottom: 10px;      /* optional spacing below */
}

.rod {
  width: 50px;              /* adjust size */
  transform: rotate(25deg); /* tilt it */
  display: inline-block;    /* ensures it centers inside the container */
  cursor: pointer;          /* shows it’s clickable */
}


/* ===== Footer ===== */
footer {
  text-align: center;
  margin-top: 40px;
  font-size: 14px;
}

/* ===== Page-specific styles ===== */

/* Home page */
body.home {
  background-image: url("images/boat.avif");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

/* ===== Blue Charter Box ===== */
.blue-box {
  background-color: #1e88e5;
  color: white;
  padding: 30px;
  border-radius: 15px;
  margin-bottom: 20px;
  
}

/* ===== Blue Content Box Text ===== */
.blue-box, 
.blue-box p, 
.blue-box h1, 
.blue-box h2, 
.blue-box h3, 
.blue-box span, 
.blue-box a {
    color: white;  /* Make all text inside blue-box white */
}


/* ===== Flex intro section inside blue box ===== */
.flex-intro {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1000px;
  margin: auto;
  gap: 20px;
  flex-wrap: wrap;
  text-align: center;
}

.flex-intro p {
  flex: 1;
  padding: 0 20px;
}

/* ===== Fish images ===== */
.fish-img {
  width: 25%;
  max-width: 200px;
}

.fish-img.flip {
  transform: scaleX(-1);
}

/* ===== Fish Grid (for Home page) ===== */
.fish-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  max-width: 900px;
  margin: 20px auto;
}

.fish-grid div {
  background-color: #1e88e5;
  color: white;
  padding: 15px;
  text-align: center;
  border-radius: 8px;
  font-weight: bold;
  border: 1px solid #6495ED;
}

/* ===== Grid Boxes Hover Effect ===== */
.grid div {
    background-color: #1e88e5; /* default blue */
    color: white;
    padding: 20px;
    text-align: center;
    border-radius: 6px;
    border: 1px solid #6495ED;
    transition: background-color 0.3s, transform 0.3s; /* smooth transition */
}

.grid div:hover {
    background-color: #10b9e4;  /* lighter blue on hover */
    transform: scale(1.05);      /* slight grow effect */
    cursor: pointer;
}

/* ===== Footer Box ===== */
.footer-box {
  text-align: center;
  background-color: #1e88e5;
  padding: 20px;
  margin-top: 40px;
  border-radius: 15px;
  color: white;
  font-size: 16px;
}

.footer-box a {
  color: white;
  text-decoration: underline;
}

.footer-name {
  font-size: 30px;
  font-family: 'Brush Script MT', cursive;
  margin: 5px 0; 
}

.footer-rod {
  width: 250px;
  transform: rotate(25deg);
  margin-top: 10px;
}

/* Trips page */
body.trips {
  background-image: url("images/dock.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

/* ===== Intro text ===== */
.intro-text {
  text-align: center;
  margin-bottom: 20px;
}

.charter-title {
  text-align: center;
  font-size: 40px;
  color: #1e88e5;
  margin-bottom: 20px;
}

/* ===== Cost Page Background ===== */
body.cost {
  background-image: url("images/deck.webp");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

/* ===== Info Page Background ===== */
body.info {
  background-image: url("images/beach.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

/* ===== Fish Hover Cards ===== */
.fish-card {
  position: relative;
  background-color: #1e88e5;
  color: white;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  border: 1px solid #6495ED;
  overflow: hidden;
  cursor: pointer;
}

/* Fish name (default view) */
.fish-name {
  font-weight: bold;
  font-size: 18px;
}

/* ===== Fish Card Hover Effect ===== */
.fish-card {
  position: relative;
  background-color: #1e88e5;
  color: white;
  text-align: center;
  border-radius: 8px;
  padding: 15px;
  font-weight: bold;
  border: 1px solid #6495ED;
  transition: transform 0.3s, background-color 0.3s;
  overflow: hidden; /* keeps borders neat */
}

.fish-card:hover {
  background-color: #10b9e4;
  transform: scale(1.05);
  cursor: pointer;
}

/* Show image and description below the name */
.fish-hover {
  display: none;
  margin-top: 10px;
  text-align: center;
}

.fish-card:hover .fish-hover {
  display: block;
}

.fish-hover img {
  width: 100%; /* or adjust max-width if needed */
  max-width: 200px;
  border-radius: 6px;
  margin-bottom: 8px;
}

.fish-hover p {
  font-weight: normal;
  font-size: 16px;
  color: white;
  line-height: 1.4;
}

/* Image inside hover */
.fish-hover img {
  max-width: 90%;
  height: auto;
  border-radius: 6px;
  margin-bottom: 8px;
}

/* Show hover on mouseover */
.fish-card:hover .fish-hover {
  opacity: 1;
}

/* Optional slight zoom effect */
.fish-card:hover {
  transform: scale(1.05);
  transition: transform 0.3s;
}

/* ===== Fish Grid (Responsive) ===== */
.fish-grid {
  display: grid;
  grid-template-columns: 1fr; /* Mobile: single column */
  gap: 16px;
  max-width: 900px;
  margin: 20px auto;
  padding: 0 10px; /* Optional padding for small screens */
}

/* Tablet: 2 columns */
@media only screen and (min-width: 720px) {
  .fish-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Desktop: 3 columns */
@media only screen and (min-width: 1000px) {
  .fish-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Large Desktop: 4 columns */
@media only screen and (min-width: 1300px) {
  .fish-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ===== Mobile-specific fixes ===== */
@media only screen and (max-width: 720px) {

  /* Make grid single-column and full width */
  .fish-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 0 10px;
  }

  /* Expand fish cards full width */
  .fish-card {
    padding: 15px;
    font-size: 16px;
    text-align: center;
  }

  /* Show images and descriptions by default (no hover) */
  .fish-hover {
    display: block;
    margin-top: 8px;
  }

  /* Images scale to container */
  .fish-hover img {
    max-width: 100%;
    height: auto;
  }

  /* Reduce text size for readability */
  .fish-hover p {
    font-size: 14px;
    line-height: 1.5;
  }

  /* Remove hover scaling on mobile to avoid overflow */
  .fish-card:hover {
    transform: none;
  }
}

/* =======================
   About Page Styles
   ======================= */
body.about {
  background-image: url("images/sea.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.about-section h2 {
  color: #1e88e5;
  margin-top: 30px;
}

.about-section p {
  line-height: 1.6;
}
 /* Center text on About page */
body.about {
  text-align: center;
}



/* ===== Transcript Styles ===== */

body.transcript {
  background-image: url("images/sea.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

nav li {
  display: block;
}

/* ===== Fish Bullet List (Transcript Page) ===== */
.fish-list {
  list-style: none;
  padding-left: 0;
}

.fish-list li {
  background-image: url("images/fishbp.png");
  background-repeat: no-repeat;
  background-size: 18px 18px;
  background-position: 0 6px;
  padding-left: 30px;
  margin-bottom: 10px;
}

/* ===== Responsive Navigation ===== */
/* Mobile first */
nav a {
  display: block;
}

/* Desktop */
@media only screen and (min-width: 640px) {
  nav li {
    display: inline;
  }

  nav a {
    display: inline;
  }
}