/* ======================================
 * GENERAL LAYOUT & TYPOGRAPHY
 * ====================================== */
body {
  background-color: #fcffff;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Helvetica", "Arial", sans-serif;
}

.title {
  margin-bottom: 0px;
}

.infobox {
  padding-left: 20px;
}

/* ======================================
 * PAGE-SPECIFIC STYLES
 * ====================================== */

/* Embed page specific styles */
.embed-page {
  font-family: "Lato", sans-serif;
  font-weight: 300;
}

.embed-page strong {
  font-weight: 700;
}

/* ======================================
 * RESPONSIVE TYPOGRAPHY
 * ====================================== */

/* Small screens (Phones) */
@media (max-width: 600px) {
  .current {
    font-size: 24px;
  }
  .note {
    font-size: 12px;
  }
  .tides {
    font-size: 15px;
  }
  .currents-info {
    font-size: 15px; /* Match tide size */
  }
}

/* Large screens */
@media (min-width: 601px) {
  .current {
    font-size: 32px;
  }
  .note {
    font-size: 18px;
  }
  .tides {
    font-size: 24px;
  }
  .currents-info {
    font-size: 24px; /* Match tide size */
  }
}

/* ======================================
 * EMBEDDED CONTENT COMPONENTS
 * ====================================== */

/* Plot component */
.plot {
  width: 100%;
  max-width: 980px;
  display: block;
}

/* Webcam container */
.webcamdiv {
  position: relative;
  overflow: hidden;
  /* Base styles with responsive sizing in media queries */
}

/* Responsive webcam sizing */
@media (max-width: 600px) {
  .webcamdiv {
    max-width: 950px;
    height: 220px; /* Height for phones */
  }
}

@media (min-width: 601px) {
  .webcamdiv {
    max-width: 950px;
    height: 534px; /* Height for desktop */
  }
}

/* Webcam iframe */
.webcamframe {
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  border: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* Windy forecast iframe */
.windyframe {
  width: 100%;
  max-width: 950px;
  display: block;
  height: 350px;
}

/* ======================================
 * STATUS INDICATORS
 * ====================================== */
.status-green {
  color: rgb(46, 204, 64);
}
.status-yellow {
  color: rgb(255, 226, 31);
}
.status-orange {
  color: rgb(255, 133, 27);
}
.status-red {
  color: rgb(255, 105, 94);
}
.status-white {
  color: white;
}

/* ======================================
 * INFO ICON AND TOOLTIP
 * ====================================== */
.info-icon {
  position: relative;
  display: inline-block;
  margin-left: 5px;
  text-decoration: none;
}

.info-icon .icon {
  display: inline-block;
  color: #0066cc;
  font-size: 0.8em;
  vertical-align: super;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.info-icon:hover .icon {
  opacity: 1;
}

.info-icon .tooltip {
  visibility: hidden;
  position: absolute;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  background-color: #333;
  color: white;
  text-align: center;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 1;
  pointer-events: none;
}

.info-icon .tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #333 transparent transparent transparent;
}

.info-icon:hover .tooltip {
  visibility: visible;
  opacity: 0.9;
}

/* ======================================
 * TRANSIT INFORMATION
 * ====================================== */
.transit-div {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.train-div {
  width: 300px;
  margin: 10px;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  background-color: #f8f9fa;
}

.train-header {
  text-align: center;
  margin-bottom: 15px;
}

.train-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.train-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 10px;
}

.train-icon img {
  width: 50px;
  height: 50px;
}

.train-destination {
  font-size: 16px;
  margin-top: 5px;
  font-weight: 500;
}

.train-status-container {
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
}

/* Train status indicators */
.chip {
  margin: 8px 0;
  text-align: center;
  font-weight: bold;
  border-radius: 25px;
  padding: 8px 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.chip svg {
  width: 18px;
  height: 18px;
}

.train-status {
  background-color: #1256ba;
  color: white;
  width: 80%;
  margin: 0 auto;
}

.train-alert-div {
  display: none;
  margin: 12px 0;
  border-left: 3px solid;
  padding-left: 10px;
}

.train-delay {
  color: white;
  background-color: #dc3545;
  border-color: #dc3545;
}

.train-service-change {
  color: black;
  background-color: #ffc107;
  border-color: #ffc107;
}

.train-service-irregularity {
  color: white;
  background-color: #fd7e14;
  border-color: #fd7e14;
}

.alert-details {
  margin-top: 8px;
  padding: 8px;
  font-size: 14px;
  background-color: rgba(0, 0, 0, 0.03);
  border-radius: 4px;
}

/* Style for the active location link */
.active {
  font-weight: bold;
}

/* ======================================
 * CITATION TABLE
 * ====================================== */
/* Citation table styling with icons */
.citation-table {
  border-collapse: collapse;
  width: 100%;
  margin: 0;
}
.citation-table td {
  padding: 0.2em 0;
  vertical-align: top;
}
.citation-table td:first-child {
  width: 1.5em;
  padding-right: 0.3em;
}
.citation-table svg {
  width: 1em;
  height: 1em;
  stroke-width: 2;
  stroke: currentColor;
  vertical-align: middle;
}

/* ======================================
 * SPECIAL EFFECTS
 * ====================================== */
#snow {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 1000;
}
