/* Font definitions - using local files instead of Google Fonts */
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 300;
  src: url('../fonts/roboto-v47-latin-300.woff2') format('woff2'),
       url('../fonts/roboto-v47-latin-300.woff') format('woff');
}

@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/roboto-v47-latin-regular.woff2') format('woff2'),
       url('../fonts/roboto-v47-latin-regular.woff') format('woff');
}

@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 700;
  src: url('../fonts/roboto-v47-latin-700.woff2') format('woff2'),
       url('../fonts/roboto-v47-latin-700.woff') format('woff');
}

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

body {
  font-family: 'Roboto', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #e0e0e0;
  background-color: #121212;
  padding: 0;
  max-width: 1400px;
  margin: 0 auto;
}

/* Header Styling */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background-color: rgba(0, 0, 0, 0.6);
  border-bottom: 1px solid #333;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 1rem;
}

h1 {
  font-size: 2.5rem;
  margin: 0;
}

.main-title {
  font-size: 2.5rem;
  margin: 1rem 0;
  color: #8bb8e8;
  text-align: center;
}

h3 {
  color: #66b3ff;
  margin: 1.5rem 0 0.5rem 0;
  font-size: 1.5rem;
}

/* Main Content Container */
.container {
  padding: 1.5rem;
}

/* Earth Visualization Section */
.earth-section {
  margin-bottom: 2rem;
  text-align: center;
}

.earth-main {
  position: relative;
  margin: 1rem auto;
  max-width: 100%;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 50, 0.5);
  background-color: #000;
}

.earth-main img {
  display: block;
  max-width: 100%;
  height: auto;
  transition: transform 0.3s ease;
}

.earth-main:hover img {
  transform: scale(1.02);
}

.projection-link {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.9rem;
}

/* Sensor Data Section */
.sensor-section {
  background-color: rgba(0, 30, 60, 0.3);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  border: 1px solid #334455;
}

.sensor-graphics {
  display: block;
  margin: 1rem auto;
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* Weather Section */
.weather-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.weather-card {
  background-color: rgba(20, 40, 80, 0.3);
  border-radius: 8px;
  padding: 1.5rem;
  border: 1px solid #334455;
}

/* Day/Night Map Sections */
.map-section {
  margin: 2rem 0;
  text-align: center;
}

#sunlight-container, 
.map-container {
  max-width: 100%;
  border-radius: 8px;
  overflow: hidden;
  background-color: #000;
  margin: 1rem auto;
  border: 1px solid #334455;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.map-caption {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: #aaa;
}

/* Interactive Map Promo */
.interactive-map-promo {
  background: linear-gradient(to right, #000428, #004e92);
  border-radius: 8px;
  padding: 2rem;
  margin: 2rem 0;
  color: #fff;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.interactive-map-promo h3 {
  color: #ffcc00;
  margin-bottom: 1rem;
}

.map-button {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  background-color: rgba(255, 204, 0, 0.2);
  color: #ffcc00;
  text-decoration: none;
  border-radius: 4px;
  border: 1px solid #ffcc00;
  margin: 1rem 0;
  font-weight: bold;
  transition: all 0.3s ease;
}

.map-button:hover {
  background-color: rgba(255, 204, 0, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(255, 204, 0, 0.3);
}

/* Alternative Methods Section */
.alternatives-section {
  background-color: rgba(30, 30, 40, 0.3);
  border-radius: 8px;
  padding: 1.5rem;
  margin: 2rem 0;
  border: 1px solid #334455;
}

.alternatives-section ul {
  list-style-type: none;
  margin: 1rem 0;
}

.alternatives-section li {
  margin: 0.8rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.alternatives-section li::before {
  content: "•";
  color: #66b3ff;
  font-weight: bold;
  position: absolute;
  left: 0;
}

/* Footer Section */
footer {
  margin-top: 3rem;
  padding: 2rem 1rem;
  text-align: center;
  border-top: 1px solid #333;
  background-color: rgba(0, 0, 0, 0.4);
}

.credits {
  margin: 1rem 0;
  font-style: italic;
  font-size: 0.9rem;
  color: #999;
}

/* Utility Classes */
.timestamp {
  background-color: rgba(0, 0, 0, 0.3);
  display: inline-block;
  padding: 0.5rem 0.8rem;
  border-radius: 4px;
  margin: 1rem 0;
  border: 1px solid #334455;
  font-family: monospace;
  font-size: 0.9rem;
}

.divider {
  height: 1px;
  background: linear-gradient(to right, transparent, #334455, transparent);
  margin: 2rem 0;
  border: none;
}

/* Images */
img {
  max-width: 100%;
  height: auto;
}

/* Links Styling */
a {
  color: #66b3ff;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #99ccff;
  text-decoration: underline;
}

/* Local sensors values table */
#weather2 {
  font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
  border-collapse: collapse;
  width: 40%;
}

#weather2 td, 
#weather2 tr {
  border: 1px solid #ddd; 
  padding: 8px;
  text-align: center;
  background-color: #020232;
  color: white;
}

#weather2 th { 
  padding-top: 12px;
  padding-bottom: 12px;
  text-align: center;
  background-color: #000050;
  color: white;
}

/* Center sensors table header */
h3[style="text-align:center;"] {
  text-align: center;
}

/* Sensors table container */
div[style="display:flex; justify-content:center;"] {
  display: flex;
  justify-content: center;
}

/* Sensors table width */
table[style="width:55%"] {
  width: 55%;
}

/* Styles for integrated weathermoon content */
/* Force sections to display vertically */
.weather-section,
.astronomy-section {
  display: block;
  width: 100%;
  margin-bottom: 20px;
  padding: 10px;
  overflow-x: auto;
}

.weather-section table,
.astronomy-section table {
  min-width: unset;
  background-color: #1e1e1e;
  border-collapse: collapse;
  width: 100%;
  margin: 20px 0;
  display: table; /* Force tables to be blocks */
  min-width: 800px;
  max-width: 1200px;
  margin: 20px auto;
  table-layout: fixed;
}

.weather-section table td,
.weather-section table th,
.astronomy-section table td,
.astronomy-section table th {
  border: 1px solid #444;
  padding: 8px;
  text-align: center;
  font-size: 0.9em;
  overflow: hidden;
}

.weather-section table th,
.astronomy-section table th {
  padding-top: 12px;
  padding-bottom: 12px;
  background-color: #000050;
  color: white;
}

.weather-section table tr:nth-child(even),
.astronomy-section table tr:nth-child(even) {
  background-color: #252525;
}

/* Additional weather page styles */
.weather-section h1, 
.weather-section h2,
.astronomy-section h1,
.astronomy-section h2 {
  text-align: center;
  color: #e0e0e0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .weather-section {
    grid-template-columns: 1fr;
  }
  
  header {
    flex-direction: column;
    gap: 1rem;
  }
  
  /* Make tables scroll horizontally on small screens */
  .weather-section,
  .astronomy-section {
    overflow-x: auto;
  }
}