/* Base styles */
body {
  margin: 0;
  padding: 0;
  font-family: 'Exo 2', sans-serif;
  background-color: #fef7ed;
  color: #2f0f00;
}

h1, h2 {
  font-family: 'Orbitron', sans-serif;
  margin: 0;
}

/* App layout */
.app {
  max-width: 100%;
  padding: 0 16px;
  box-sizing: border-box;
}

/* About page specific app container */
.about-page .app {
  padding: 0 16px;
}

/* Header */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 24px 0;
}

.title {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 500;
  font-family: 'Orbitron', sans-serif;
  color: #2f0f00;
  text-decoration: none;
}

.about {
  font-size: 14px;
  text-transform: uppercase;
  color: #ff412b;
  text-decoration: underline;
  font-weight: 500;
}

.about.active {
  cursor: default;
  text-decoration: none;
  opacity: 0.7;
}

/* Main content area */
.main-content {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  margin-bottom: 48px;
  width: 100%;
}

/* Navigation arrows */
.nav-arrow {
  background: none;
  border: none;
  font-size: 48px;
  color: #ff412b;
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-family: 'Inter', sans-serif;
  font-weight: 100;
  line-height: 1;
  padding: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10; /* Ensure arrows are above the image frame */
}

.left {
  left: 0;
}

.right {
  right: 0;
}

.nav-arrow.disabled {
  opacity: 0.3;
  pointer-events: none;
}

/* Image frame */
.image-frame {
  width: calc(100% - 8px);
  height: 540px;
  background-color: #fef7ed;
  border: 1px solid #826c5f;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  margin: 0 4px;
  z-index: 1; /* Lower than the navigation arrows */
}

.sat-image {
  width: 100%;
  height: 100%;
  object-fit: contain; /* This maintains aspect ratio */
  filter: blur(8px);
  transition: filter 3s ease;
}

/* Decode button */
.decode-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(254, 247, 237, 0.15);
  border: none;
  padding: 6px 12px;
  font-size: 14px;
  font-family: 'Exo 2';
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  color: #2f0f00;
  z-index: 2;
}

.play-icon {
  font-size: 14px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  margin-top: 0;
}

/* Timeline wrapper */
.timeline-wrapper {
  width: 100%;
  margin-top: 40px;
  position: relative;
  display: block;
  height: 48px; /* Ensure consistent height */
}

.timeline-track.half-width-left {
  position: absolute;
  left: 0;
  top: 0;
  width: 50%;
  max-width: none;
  min-width: 0;
  height: 48px;
  margin-left: 0;
  margin-right: 0;
}

/* Media query for mobile screens */
@media screen and (max-width: 768px) {
  .timeline-track.half-width-left {
    width: 100%;
  }

  .sat-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .image-frame {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }

  /* Mobile metadata layout adjustments */
  .meta-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .timestamp-location {
    text-align: left;
    margin-top: 4px;
  }

  /* About page specific app container */
  .about-page .app {
    padding: 0 24px;
}

  .about-image-container {
    padding-left: 0;
    padding-right: 0;
    justify-content: flex-start;
  }
}

/* Position the timeline line in the center of its container */
.timeline {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: #2f0f00;
  top: 50%; /* Center vertically */
  transform: translateY(-50%); /* Ensure perfect centering */
}


/* Fix the tick wrapper positioning */
.tick-wrapper {
  position: absolute;
  width: 24px;
  height: 24px;
  left: 0; /* This gets overridden by inline style in JS */
  top: 50%; /* Center vertically within timeline wrapper */
  transform: translateY(-50%); /* Ensure perfect vertical centering */
  pointer-events: auto;
}

.timeline-tick {
  position: absolute;
  left: 50%;
  top: 0;
  width: 2px;
  height: 48px;
  background-color: #2f0f00;
  transform: translateX(-50%);
  margin: 0;
}

/* Style the dots to be centered on the line */
.timeline-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 12px;
  background:#fef7ed; /* Changed to match the app background color */
  border: 2px solid #2f0f00;
  border-radius: 50%;
  box-sizing: border-box;
  transform: translate(-50%, -50%); /* Center both horizontally and vertically */
  margin: 0;
  transition: border-color 0.2s;
  cursor: pointer;
}

.timeline-dot:hover {
  border-color: #ff412b;
}

/* Style the satellite icon to be centered on the line */
.satellite-icon {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%); /* Center both horizontally and vertically */
  width: 24px;
  height: 24px;
  pointer-events: none;
}


/* Metadata section */
.metadata {
  margin-top: 20px;
  font-size: 14px;
  padding: 0 16px;
}

.meta-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}

.metadata h2 {
  font-size: 24px;
}

.timestamp-location {
  font-size: 14px;
  color: rgba(47, 15, 0, 0.7);
  font-family: 'Exo 2';
  line-height: 1.2;
  text-align: right;
}

#satDetails,
#description {
  margin: 12px 0;
  color: rgba(47, 15, 0, 0.85);
  line-height: 1.5;
  max-width: 900px;
}

#wikiLink {
  color: #ff412b;
  text-decoration: underline;
  display: inline-block;
  margin-top: 8px;
}

.zoom-controls {
  position: absolute;
  bottom: 12px;
  right: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 3;
}

.zoom-controls button {
  background: none;
  border: none;
  color: #ff412b;
  font-size: 24px;
  cursor: pointer;
  font-family: 'Orbitron', sans-serif;
  padding: 0;
  line-height: 1;
}

/* About page specific styles */
.about-content {
  padding-top: 0;
  padding-bottom: 0;
}

.about-article {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 0;
}

.about-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 32px;
  color: #2f0f00;
  margin-bottom: 16px;
  line-height: 1.2;
}

.about-date {
  display: block;
  font-family: 'Exo 2', sans-serif;
  font-size: 14px;
  color: rgba(47, 15, 0, 0.7);
  margin-bottom: 32px;
}

.about-image-container {
  width: 100%;
  margin: 32px 0;
  display: flex;
  justify-content: center;
  
  padding-right: 28px;
}

.about-image {
  width: 100%;
  height: auto;
  display: block;
  max-width: 100%;
  border-radius: 4px;
}

.about-subtitle {
  font-family: 'Orbitron', sans-serif;
  font-size: 24px;
  color: #2f0f00;
  margin-bottom: 24px;
}

.about-text {
  font-family: 'Exo 2', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: rgba(47, 15, 0, 0.85);
}

.about-text p {
  margin-bottom: 24px;
}

.about-text p:last-child {
  margin-bottom: 0;
}

/* Media query for mobile screens */
@media screen and (max-width: 768px) {
  .about-title {
    font-size: 24px;
  }

  .about-subtitle {
    font-size: 20px;
  }

  .about-image-container {
    padding: 12px;
    margin: 0 0 32px;
  }

  .about-content {
    padding: 0 24px;
  }
}

/* About page footer */
.about-footer {
  max-width: 800px;
  margin: 0 auto;
  padding-top: 40px;
  padding-bottom: 40px;
  border-top: 1px solid rgba(130, 108, 95, 0.2);
}

.creator-credits {
  font-family: 'Exo 2', sans-serif;
  font-size: 14px;
  color: rgba(47, 15, 0, 0.7);
  text-align: center;
  line-height: 1.5;
}

.creator-link {
  color: #ff412b;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.creator-link:hover {
  opacity: 0.7;
}

.class-info {
  color: rgba(47, 15, 0, 0.7);
  margin-left: 4px;
}

/* Media query for mobile screens */
@media screen and (max-width: 768px) {
  .about-footer {
    padding-top: 32px;
    padding-bottom: 32px;
  }
  
  .creator-credits {
    font-size: 13px;
  }
}

/* About page specific content padding */
.about-page .about-content,
.about-page .about-footer {
  padding-left: 80px;
  padding-right: 80px;
}

/* Media query for mobile screens */
@media screen and (max-width: 768px) {
  .about-page .about-content,
  .about-page .about-footer {
    padding-left: 24px;
    padding-right: 24px;
  }
}
