@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Jersey+20&display=swap');


body, html {
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif; 
  background-color: #404EED;
  color: #ffffff;
  height: 100%;
  overflow-x: hidden;
}

.app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.app-content {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 72px 24px;
  gap: 40px;
}

.left-column, .right-column {
  flex: 1;
  max-width: 500px;
  background: rgba(255, 255, 255, 0.1);
  padding: 24px;
  border-radius: 24px;
  transition: transform 0.3s ease;
}

.left-column:hover, .right-column:hover {
  transform: translateY(-5px);
}

h1 {
  font-size: 80px;
  font-weight: 800;
  line-height: 100%;
  text-transform: uppercase;
  margin-bottom: 24px;
  letter-spacing: 2px;
  font-family: 'Jersey 20', sans-serif; 
  animation: textPop 1s ease;
}

@keyframes textPop {
  0% { transform: scale(0.9); }
  100% { transform: scale(1); }
}

.subtitle {
  font-size: 20px;
  line-height: 1.625;
  margin-bottom: 24px;
  animation: fadeIn 0.8s ease;
}

.input-group {
  margin-bottom: 20px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
}

input {
  width: 90%;
  padding: 12px 16px;
  border-radius: 8px;
  border: none;
  background-color: #ffffff;
  color: #2c2f33;
  font-size: 16px;
  transition: box-shadow 0.3s ease, transform 0.2s ease;
}

input:focus {
  outline: none;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
  transform: scale(1.02);
}

.btn {
  font-size: 16px;
  padding: 16px 32px;
  border: none;
  border-radius: 28px;
  cursor: pointer;
  font-weight: 500;
  line-height: 24px;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.btn-primary {
  background-color: #ffffff;
  color: #404EED;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.btn-primary:hover {
  background-color: #f6f6f6;
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

#result {
  background-color: #ffffff;
  border-radius: 16px;
  padding: 24px;
  color: #2c2f33;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

#result:hover {
  transform: scale(1.02);
}

.overall-rating {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 16px;
}

.component-rating {
  background-color: #f6f6f6;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
  transition: background-color 0.2s ease;
}

.component-rating:hover {
  background-color: #e0e0e0;
}

.component-rating h3 {
  margin-top: 0;
  font-size: 18px;
  font-weight: 700;
}

.hidden {
  display: none;
}

.autocomplete {
  position: relative;
}

.autocomplete-items {
  position: absolute;
  border-top: none;
  z-index: 99;
  top: 100%;
  left: 0;
  right: 0;
  background-color: #ffffff;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  0% { opacity: 0; transform: translateY(-10px); }
  100% { opacity: 1; transform: translateY(0); }
}

.autocomplete-items div {
  padding: 10px 16px;
  cursor: pointer;
  color: #2c2f33;
  transition: background-color 0.2s ease;
}

.autocomplete-items div:hover {
  background-color: #f6f6f6;
}

@media (max-width: 1024px) {
  .app-content {
    flex-direction: column;
    padding: 40px 24px;
  }

  .left-column, .right-column {
    max-width: 100%;
  }
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.animate__pulse {
  animation-name: pulse;
  animation-duration: 1s;
  animation-iteration-count: infinite;
}

@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
