* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: #334155;
  background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
  min-height: 100vh;
} */

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    overflow-x: hidden;
	
}
/* Header Styles */
header {
    text-align: center;
     background: linear-gradient(135deg, #9CA1E2 0%, #4b85e6 50%, #9CA1E2 100%);
    color: white !important;
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 10px;
    box-shadow: 0 10px 30px rgba(30, 58, 138, 0.2);
}




header h1 {
    font-size: 45px !important;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.subtitle {
  color: white;
  font-size: 1.2rem;
  font-weight: 300;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.generator-form {
  background: #ffffff !important;
  padding: 2rem;
  border-radius: 16px !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  border: 2px solid transparent !important;
  background-clip: padding-box;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.form-group label {
  font-weight: 600;
  color: #334155;
  font-size: 1.1rem;
}

.form-group input {
  padding: 1rem;
  border: 2px solid #e2e8f0 !important;
  border-radius: 8px !important;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: #ffffff !important;
}

.form-group input:focus {
  outline: none !important;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.generate-button {
  width: 100%;
  padding: 1.2rem 2rem;
  background: linear-gradient(135deg, #9CA1E2 0%, #4b85e6 50%, #9CA1E2 100%);
  color: #ffffff !important;
  border: none !important;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
	border-radius:10px !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.generate-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
 background: linear-gradient(135deg, #9CA1E2 0%, #4b85e6 50%, #9CA1E2 100%);
}

.generate-button:active {
  transform: translateY(0);
}

.results-section {
  background: #ffffff !important;
  padding: 2rem;
  border-radius: 16px !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  display: none;
}

.results-section.show {
  display: block;
  animation: fadeInUp 0.5s ease;
}

.results-section h2 {
  color: #1e40af;
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  text-align: center;
}

.nouns-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.noun-item {
  background: linear-gradient(135deg, #9CA1E2 0%, #4b85e6 50%, #9CA1E2 100%) !important;
  color: #ffffff !important;
  padding: 1.5rem 1rem;
  border-radius: 12px !important;
  text-align: center !important;
  font-size: 1.1rem;
  font-weight: 500;
  box-shadow: 0 4px 15px rgba(30, 64, 175, 0.2);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.noun-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(30, 64, 175, 0.3);
}

.noun-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s;
}

.noun-item:hover::before {
  left: 100%;
}

footer {
  text-align: center;
  margin-top: 2rem;
  color: #f8fafc;
  font-size: 0.9rem;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Loading animation */
.generate-button.loading {
  pointer-events: none;
  position: relative;
}

.generate-button.loading::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  margin: auto;
  border: 2px solid transparent;
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 1rem 0.5rem;
  }
  
  header h1 {
    font-size: 35px !important;
  }
  
  .subtitle {
    font-size: 1rem;
  }
  
  .generator-form {
    padding: 1.5rem;
  }
  
  .results-section {
    padding: 1.5rem;
  }
  
  .nouns-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.75rem;
  }
  
  .noun-item {
    padding: 1rem 0.75rem;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  header h1 {
    font-size: 2rem;
  }
  
  .generator-form {
    padding: 1rem;
  }
  
  .results-section {
    padding: 1rem;
  }
  
  .nouns-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }
  
  .generate-button {
    font-size: 1rem;
    padding: 1rem;
  }
}
