body, html {
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: #000;
}

#loading-screen {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #f5f0e6;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  font-family: 'Georgia', serif;
  opacity: 1;
  transition: opacity 1s ease;
}

#loading-screen.fade-out {
  opacity: 0;
  pointer-events: none;
}

.loading-content {
  font-size: 2rem;
  color: #443322;
  display: flex;
  align-items: center;
}

.loading-text {
  display: inline-flex;
  align-items: center;
}

.dots {
  display: inline-block;
  width: 2ch; /* Reserve consistent space */
  overflow: hidden;
  text-align: left;
  font-family: monospace;
}

.dots::after {
  content: '...';
  animation: dotsAnim 1.5s steps(5) infinite;
}

@keyframes dotsAnim {
  0%   { content: ''; }
  25%  { content: '.'; }
  50%  { content: '..'; }
  75%  { content: '...'; }
  100% { content: ''; }
}

#announcement-box {
  position: fixed;
  top: 40px;
  right: 20px;
  background-color: rgba(255, 245, 230, 0.75); /* match settings panel */
  color: #333;
  padding: 8px 12px;
  border-radius: 8px;
  font-family: sans-serif;
  font-size: 0.9rem;
  z-index: 1000;
  max-width: 260px;
  text-align: left;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  white-space: pre-line; 
}

#settings-panel {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: rgba(255, 245, 230, 0.75);
  padding: 8px 12px;
  border-radius: 8px;
  font-family: sans-serif;
  font-size: 0.9rem;
  color: #333;
  z-index: 9999;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: opacity 0.3s ease;
}

#settings-panel select {
  margin-left: 6px;
  padding: 2px 6px;
  font-size: 0.9rem;
  background: transparent;
  border: none;
  outline: none;
}
#navigation-bar {
  position: fixed;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 245, 230, 0.75);
  padding: 6px 16px;
  border-radius: 12px;
  font-family: 'Georgia', serif;
  font-size: 0.9rem;
  color: #333;
  z-index: 9999;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  display: flex;
  gap: 20px;
  cursor: pointer;
}

#navigation-bar span {
  transition: color 0.3s, transform 0.2s;
}

#navigation-bar span:hover {
  color: #000;
  transform: scale(1.1);
}
#project-panel {
  position: fixed;
  top: 250px;
  right: 20px;
  background-color: rgba(255, 245, 230, 0.85);
  color: #333;
  padding: 12px 16px;
  border-radius: 10px;
  font-family: sans-serif;
  font-size: 0.9rem;
  z-index: 1001;
  max-width: 280px;
  text-align: left;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);

  display: none;
  transition: opacity 0.3s ease;
  
}

#project-panel img {
  width: 100%;
  border-radius: 6px;
  margin-top: 10px;
}
#close-project-panel {
  position: absolute;
  top: 6px;
  right: 8px;
  background: transparent;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  color: #555;
  z-index: 10;
}

#close-project-panel:hover {
  color: #000;
}
