* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  color: #333;
}

#title {
  color: #ffffff;
  text-align: center;
  margin: 0 auto 30px;
  width: 100%;
  max-width: 900px;
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 700;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  letter-spacing: -0.5px;
  animation: fadeInUp 0.6s ease-out;
}

#description {
  color: #ffffff;
  text-align: center;
  margin: 0 auto 60px;
  width: 100%;
  max-width: 800px;
  font-size: clamp(1.1rem, 3vw, 1.8rem);
  font-weight: 400;
  line-height: 1.6;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
  opacity: 0.95;
  animation: fadeInUp 0.6s ease-out 0.2s both;
}

#actions {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  width: 100%;
  max-width: 500px;
  animation: fadeInUp 0.6s ease-out 0.4s both;
}

button {
  background: rgba(255, 255, 255, 0.95);
  border: none;
  padding: 14px 28px;
  margin: 8px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  color: #667eea;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  font-family: inherit;
}

button:hover {
  background: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

button:active {
  transform: translateY(0);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Popup Styles */
#popwrap, #popwrap * { 
  box-sizing: border-box; 
}

#popwrap {
  position: fixed;
  top: 0; 
  left: 0; 
  z-index: 99;
  width: 100vw; 
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  opacity: 0; 
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

#popwrap.open {
  opacity: 1; 
  visibility: visible;
}

#popbox {
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  min-width: 320px; 
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow: hidden;
  position: relative;
  animation: popIn 0.3s ease-out;
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

#poptitle { 
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #ffffff;
  padding: 20px 25px;
  margin: 0; 
  font-size: 1.5rem;
  font-weight: 600;
}

#poptext { 
  background: #ffffff; 
  padding: 25px;
  margin: 0;
  color: #333;
  line-height: 1.6;
}

#popclose {
  position: absolute;
  top: 15px; 
  right: 15px;
  cursor: pointer;
  font-size: 24px;
  color: #ffffff;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s ease;
  font-weight: 300;
}

#popclose:hover {
  background: rgba(255, 255, 255, 0.2);
}

.popuprow {
  margin-bottom: 15px;
}

.popuprow:last-child {
  margin-bottom: 0;
}

.ideatextdesc {
  margin-bottom: 8px;
  font-weight: 500;
  color: #555;
}

#poptext input {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s ease;
  margin-top: 5px;
}

#poptext input:focus {
  outline: none;
  border-color: #667eea;
}

#poptext button {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #ffffff;
  width: 100%;
  margin: 10px 0 0 0;
  padding: 14px;
}

#poptext button:hover {
  opacity: 0.9;
}
