@charset "UTF-8";

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

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: #1a0f00;
  font-family: 'Roboto', sans-serif;
}

#site {
  width: 100%;
  height: 100%;
  position: relative;
}

#main {
  width: 100%;
  height: calc(100% - 50px);
  position: relative;
}

#canvas-container {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

#canvas-container canvas {
  width: 100% !important;
  height: 100% !important;
}

.grungy {
  background: transparent;
}

.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #1a0f00;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #d4a855;
  font-size: 24px;
  font-weight: bold;
  letter-spacing: 2px;
  text-transform: uppercase;
  z-index: 9999;
}

.loader.loading-page-in {
  animation: fadeInLoader 0.5s ease-out;
}

@keyframes fadeInLoader {
  from { opacity: 0; }
  to { opacity: 1; }
}

.please-rotate {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #1a0f00;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.please-rotate .inner {
  color: #d4a855;
  font-size: 24px;
  text-align: center;
  padding: 20px;
}

.social-global {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  display: flex;
  gap: 10px;
}

.social-global .facebook,
.social-global .twitter {
  background: rgba(0, 0, 0, 0.5);
  padding: 8px 12px;
  border-radius: 4px;
}

.museum-title {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #d4a855;
  font-size: 48px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 8px;
  text-shadow: 0 0 20px rgba(212, 168, 85, 0.5);
  text-align: center;
  z-index: 100;
}

.species-card {
  position: absolute;
  background: rgba(26, 15, 0, 0.9);
  border: 2px solid #d4a855;
  border-radius: 8px;
  padding: 20px;
  color: #fff;
  max-width: 300px;
  z-index: 50;
}

.species-card h2 {
  color: #d4a855;
  font-size: 24px;
  margin-bottom: 10px;
}

.species-card p {
  font-size: 14px;
  line-height: 1.6;
  color: #ccc;
}

.species-card .era {
  display: inline-block;
  background: #d4a855;
  color: #1a0f00;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: bold;
  margin-bottom: 10px;
}

.species-card .stats {
  display: flex;
  gap: 15px;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #333;
}

.species-card .stat {
  text-align: center;
}

.species-card .stat-value {
  font-size: 20px;
  font-weight: bold;
  color: #d4a855;
}

.species-card .stat-label {
  font-size: 10px;
  color: #888;
  text-transform: uppercase;
}

.nav-arrow {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 60px;
  height: 60px;
  background: rgba(212, 168, 85, 0.2);
  border: 2px solid #d4a855;
  border-radius: 50%;
  cursor: pointer;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}

.nav-arrow:hover {
  background: rgba(212, 168, 85, 0.4);
}

.nav-arrow.prev {
  left: 30px;
}

.nav-arrow.next {
  right: 30px;
}

.nav-arrow svg {
  width: 24px;
  height: 24px;
  fill: #d4a855;
}

.progress-bar {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  overflow: hidden;
  z-index: 100;
}

.progress-bar-fill {
  height: 100%;
  background: #d4a855;
  width: 0%;
  transition: width 0.3s ease;
}

.species-nav {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 100;
}

.species-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  border: 2px solid #d4a855;
  cursor: pointer;
  transition: all 0.3s;
}

.species-dot.active {
  background: #d4a855;
  transform: scale(1.2);
}

.species-dot:hover {
  background: rgba(212, 168, 85, 0.5);
}

@media (max-width: 768px) {
  .museum-title {
    font-size: 28px;
    letter-spacing: 4px;
  }
  
  .species-card {
    max-width: 250px;
    padding: 15px;
  }
  
  .nav-arrow {
    width: 45px;
    height: 45px;
  }
  
  .nav-arrow.prev {
    left: 15px;
  }
  
  .nav-arrow.next {
    right: 15px;
  }
}

@media (orientation: portrait) {
  .please-rotate {
    display: flex;
  }
  
  #main {
    display: none;
  }
}