* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Arial", sans-serif;
  background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.container {
  max-width: 800px;
  width: 90%;
  padding: 2rem;
}

.header {
  text-align: center;
  margin-bottom: 3rem;
}

.header h1 {
  font-size: 3rem;
  color: #ff6b6b;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  margin-bottom: 0.5rem;
}

.header p {
  font-size: 1.2rem;
  color: #ccc;
  opacity: 0.9;
  margin-bottom: 1rem;
}

/* Added header navigation styling */
.header-nav {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.nav-link {
  color: #4ecdc4;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: bold;
  padding: 0.5rem 1rem;
  border: 1px solid rgba(78, 205, 196, 0.5);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.nav-link:hover {
  background: rgba(78, 205, 196, 0.2);
  border-color: #4ecdc4;
  transform: translateY(-2px);
}

.game-sections {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

.section {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.section:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(255, 107, 107, 0.3);
}

.section h2 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
  color: #ff6b6b;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: bold;
  color: #e0e0e0;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 1rem;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #ff6b6b;
  background: rgba(255, 255, 255, 0.2);
}

.form-group input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.form-group select option {
  background: #16213e;
  color: #fff;
}

.btn {
  width: 100%;
  padding: 1rem;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-create {
  background: linear-gradient(45deg, #ff6b6b, #ee5a52);
  color: white;
}

.btn-create:hover {
  background: linear-gradient(45deg, #ee5a52, #ff6b6b);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
}

.btn-join {
  background: linear-gradient(45deg, #4ecdc4, #44a08d);
  color: white;
}

.btn-join:hover {
  background: linear-gradient(45deg, #44a08d, #4ecdc4);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(78, 205, 196, 0.4);
}

.divider {
  display: flex;
  align-items: center;
  margin: 2rem 0;
  opacity: 0.6;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.3);
}

.divider a {
  padding: 0 1rem;
  font-weight: bold;
  color: #ccc;
  text-decoration: none;
}

.divider a:hover{
  transform: translateY(-1px);
  color: #ff6b6b;
}

.error-message {
  color: #ff6b6b;
  font-size: 0.9rem;
  margin-top: 0.5rem;
  display: none;
}

.success-message {
  color: #4ecdc4;
  padding: 1rem;
  margin-top: 1rem;
  background: rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  margin-top: 0.5rem;
  border: 2px dashed rgba(255, 107, 107, 0.5);
  border-radius: 20px;
  display: none;
  align-items: center;
}

.room-code-display {
  display: none;
  background: rgba(255, 255, 255, 0.1);
  border: 2px dashed rgba(255, 107, 107, 0.5);
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
  margin-top: 1rem;
}

.room-code-display h3 {
  color: #ff6b6b;
  margin-bottom: 0.5rem;
}

.room-code {
  font-size: 1.5rem;
  font-weight: bold;
  color: #4ecdc4;
  letter-spacing: 2px;
}

@media (max-width: 768px) {
  .game-sections {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .header h1 {
    font-size: 2rem;
  }

  .container {
    padding: 1rem;
  }

  .section {
    padding: 1.5rem;
  }

  .header-nav {
    gap: 0.5rem;
  }

  .nav-link {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }
}
