/* physics.css */
body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background-color: #0a0d25;
  color: white;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background-color: #070b23;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Logo (left) */
.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #0ff;
}

.logo a {
  color: #0ff;
  text-decoration: none;
}

/* Center nav links */
.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
  align-items: center;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 7px;
}

.nav-links a {
  color: whitesmoke;
  text-decoration: none;
  font-size: 17px;
}

.nav-links a:hover {
  color: #0ff;
}

/* Right actions: login, signup, profile */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.signup-btn {
  background-color: #0ff;
  color: #000;
  padding: 6px 12px;
  border-radius: 5px;
  font-weight: bold;
  transition: 0.3s;
}

.nav-actions-links {
  color: whitesmoke;
  font-size: 17px;
}

.nav-actions a {
  text-decoration: none;
  white-space: nowrap;
}

.nav-actions a:hover {
  color: #0ff;
}

.signup-btn:hover {
  background-color: #00c9c9;
}

.hamburger {
  display: none; /* hide by default */
}

@media (max-width: 800px) {
  .hamburger {
    display: block;
    font-size: 28px;
    cursor: pointer;
    color: #0ff;
    z-index: 1001;
  }

  .mobile-nav {
    display: none;
    flex-direction: column;
    background-color: #070b23;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;

  }

  .mobile-nav.active {
    display: flex;
  }

  .mobile-nav .nav-links,
  .mobile-nav .nav-actions {
    display: flex !important; /* force show in mobile dropdown */
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
  }

  
  /* Force vertical layout */
  .nav-links,
  .nav-actions {
    position: static;      /* remove absolute from desktop */
    transform: none;       /* remove translateX from desktop */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
    margin: 0;
    padding: 0;
  }

  .nav-links li {
    width: 100%;
    text-align: center;
  }

  .nav-links a,
  .nav-actions a {
    display: block;
    width: 100%;
    padding: 10px 0;
    color: white;
    text-align: center;
  }

  /* Smaller signup button in mobile */
  .nav-actions .signup-btn {
    width: auto;
    min-width: 120px;
    max-width: 160px;
  }

  .mobile-nav a {
    color: white;
    padding: 0.75rem;
    text-align: center;
  }
}

.main-content {
  padding: 40px 20px;
  text-align: center;
}

#search {
  padding: 8px;
  margin-bottom: 20px;
  width: 50%;
  max-width: 400px;
  border-radius: 5px;
  border: none;
  font-size: 1em;
}


#experiment-list {
    padding-top: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.experiment-item {
  background-color: #161b3bc6;
  padding: 10px 20px;
  border-radius: 8px;
  width: 60%;
  max-width: 500px;
  text-align: center;
  font-size: 1.1em;
  transition: background-color 0.3s ease;
  cursor: pointer;
  margin: 5px
}

.experiment-item:hover {
  background-color: #1b2050;
}

/* Keep existing code... */

/* Center and highlight the heading */
.main-content h1 {
  font-size: 2rem;
  color: #0ff;
  margin-bottom: 15px;
  text-shadow: 0 0 8px rgba(0, 255, 255, 0.6);
}

/* Search box improvement */
#search {
  padding: 10px 14px;
  margin-bottom: 25px;
  width: 60%;
  max-width: 450px;
  border-radius: 8px;
  border: 2px solid #0ff;
  background-color: #0a0d25;
  color: white;
  font-size: 1rem;
  outline: none;
  transition: 0.3s;
}

#search:focus {
  border-color: #00c9c9;
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

/* Experiment card look */
.experiment-item {
  background: linear-gradient(135deg, #161b3bc6, #0a0d25);
  padding: 12px 20px;
  border-radius: 10px;
  width: 65%;
  max-width: 520px;
  text-align: center;
  font-size: 1.1em;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: transform 0.2s ease, background-color 0.3s ease;
  cursor: pointer;
  margin: 6px 0;
  border: 1px solid rgba(0, 255, 255, 0.15);
}

.experiment-item:hover {
  background-color: #1b2050;
  transform: translateY(-3px);
  border-color: rgba(0, 255, 255, 0.4);
}

.experiment-item a {
  text-decoration: none;
  color: #0ff;
  display: block;
  width: 100%;
}
