/* style.css — shared across index.html and dashboard.html */

body {
  margin: 0;
  padding: 0;
  font-family: 'Georgia', serif;
  background-color: #1a1a1a;
  color: #f0f0f0;
  line-height: 1.6;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
  text-align: center;
}

h1, h2 {
  font-weight: normal;
  margin-bottom: 10px;
}

p {
  margin-bottom: 20px;
}

button {
  background-color: #444;
  color: #f0f0f0;
  border: none;
  padding: 10px 20px;
  font-size: 16px;
  margin: 10px;
  cursor: pointer;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #666;
}

input[type="text"] {
  padding: 10px;
  font-size: 16px;
  width: 60%;
  border: 1px solid #ccc;
  border-radius: 5px;
  margin-bottom: 20px;
}

.news-item {
  background-color: #2a2a2a;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 5px;
  box-shadow: 0 0 5px rgba(255,255,255,0.1);
  transition: opacity 0.5s ease-in-out;
}

.news-item h3 {
  margin: 0 0 10px;
  color: #fff;
}

.news-item p {
  margin: 0 0 10px;
  color: #ccc;
}

.news-item small {
  color: #999;
}

#timestamp {
  font-size: 14px;
  color: #aaa;
  margin-bottom: 20px;
}

#loading-screen {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: url("/data/landing.jpg") center center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2em;
  z-index: 9999;
}

#loading-screen::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;

  /* Fallback solid background first */
  background: #000;

  /* Then the semi-transparent overlay */
  background: rgba(0, 0, 0, 0.4);

  z-index: -1;
}

#loading-screen {
  transition: opacity 0.5s ease-out;
}

#loading-screen.hidden {
  opacity: 0;
  pointer-events: none;
}

