#scary-font-generator * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

#scary-font-generator {
  font-family: Arial, sans-serif;
  background: linear-gradient(135deg, #0f0f0f, #1a0000);
  color: #fff;
  padding: 25px;
  border-radius: 20px;
  max-width: 1400px;
  margin: auto;
  box-shadow: 0 0 40px rgba(255,0,0,0.25);
}

.scary-container {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 25px;
}

.scary-panel,
.scary-preview-wrap {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(12px);
  border-radius: 18px;
  padding: 20px;
}

.scary-panel h2,
.scary-preview-wrap h2 {
  color: #ff4444;
  margin-bottom: 20px;
}

.scary-panel label {
  display: block;
  margin-top: 15px;
  margin-bottom: 8px;
  font-weight: bold;
}

.scary-panel input,
.scary-panel button {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: none;
  margin-bottom: 10px;
}

.scary-panel button {
  background: linear-gradient(90deg, #ff0000, #660000);
  color: white;
  cursor: pointer;
  font-weight: bold;
}

.preview-box {
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #111;
  border-radius: 16px;
  padding: 30px;
  font-size: 56px;
  font-weight: bold;
  transition: all .3s ease;
  word-break: break-word;
}

.style-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(180px,1fr));
  gap: 15px;
  margin-top: 25px;
}

.style-card {
  padding: 18px;
  border-radius: 14px;
  background: rgba(255,255,255,0.04);
  text-align: center;
  cursor: pointer;
  transition: 0.3s;
  border: 1px solid rgba(255,255,255,0.06);
}

.style-card:hover {
  transform: translateY(-5px);
  background: rgba(255,0,0,0.15);
}

@keyframes glitch {
  0% { transform: translate(0); }
  20% { transform: translate(-2px,2px); }
  40% { transform: translate(-2px,-2px); }
  60% { transform: translate(2px,2px); }
  80% { transform: translate(2px,-2px); }
  100% { transform: translate(0); }
}

@keyframes pulseGlow {
  0% { text-shadow: 0 0 5px red; }
  50% { text-shadow: 0 0 25px red; }
  100% { text-shadow: 0 0 5px red; }
}

.glitch {
  animation: glitch .3s infinite;
}

.glow {
  animation: pulseGlow 2s infinite;
}

@media(max-width:900px) {
  .scary-container {
    grid-template-columns: 1fr;
  }

  .preview-box {
    font-size: 34px;
  }
}