/* Core styles that apply regardless of theme */

/* Default shell before theme CSS loads (avoids white-on-white if JS/CSS is slow or fails). */
html {
  background-color: #000000;
}

body {
  background-color: #000000;
  color: #e5e5e5;
}
.content-container {
  position: relative;
  z-index: 10;
  /* Add core styling for content */
}

.projects-list {
  /* Core project list styling */
}

/* Add more core styles... */

.credits-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
}

.credits-button {
  padding: 10px 20px;
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
}

.credits-button:hover {
  background-color: rgba(0, 0, 0, 0.7);
}

.credits-content {
  display: none;
  position: absolute;
  bottom: 100%;
  right: 0;
  margin-bottom: 10px;
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 20px;
  border-radius: 5px;
  width: 300px;
  max-height: 400px;
  overflow-y: auto;
}

.credits-content.show {
  display: block;
}

.credits-content h3 {
  margin-top: 0;
  margin-bottom: 10px;
}

.credits-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.credits-content li {
  margin-bottom: 15px;
  font-size: 12px;
  line-height: 1.4;
}

.credits-content a {
  color: #66ccff;
  text-decoration: none;
}

.credits-content a:hover {
  text-decoration: underline;
}

/* Theme selection menu */
.theme-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.theme-menu-overlay.show {
  opacity: 1;
  visibility: visible;
}

.theme-menu {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(20, 20, 20, 0.95);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 0;
  z-index: 9999;
  min-width: 400px;
  max-width: 90vw;
  max-height: 90vh;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -50%) scale(0.9);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.theme-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.theme-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.theme-menu-header h2 {
  margin: 0;
  color: #fff;
  font-size: 24px;
  font-weight: 600;
}

.theme-menu-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.theme-menu-close:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.theme-menu-content {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.theme-option {
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 16px 20px;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.theme-option:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateX(4px);
}

.theme-option:active {
  transform: translateX(2px);
}

.theme-name {
  color: #fff;
  font-size: 18px;
  font-weight: 600;
}

.theme-description {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
}

.theme-id {
  color: rgba(255, 255, 255, 0.4);
  font-size: 12px;
  font-family: monospace;
  margin-top: 4px;
}

.theme-menu-footer {
  padding: 16px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.theme-menu-footer p {
  margin: 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
}

.theme-menu-footer kbd {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  padding: 2px 6px;
  font-family: monospace;
  font-size: 12px;
  color: #fff;
}

/* Hide theme menu on mobile devices */
@media (max-width: 768px) {
  .theme-menu,
  .theme-menu-overlay {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
  }
  
  /* Hide 3D model credits button on mobile devices */
  .credits-container {
    display: none !important;
  }
} 