/* Import custom fonts */
@font-face {
  font-family: 'Stylish';
  src: url('/keine-stummen-worte/fonts/Stylish-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'SpecialElite';
  src: url('/keine-stummen-worte/fonts/SpecialElite-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

body {
  background: #000;
  color: #aaa;
  font-family: "Segoe UI", Arial, sans-serif;
  margin: 0;
  padding: 20px;
}

/* Wrapper */
.guestbook-wrapper {
  max-width: 700px;
  margin: auto;
  background: rgba(0,0,0,0.85);
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 0 25px rgba(255,255,255,0.05);
  backdrop-filter: blur(6px);
  animation: fadeIn 1s ease;
}

/* Labels use Stylish */
h2, h3, label {
  color: #ccc;
  font-family: 'Stylish', sans-serif;
}

/* Inputs use Special Elite */
input, select, textarea {
  width: 100%;
  padding: 10px;
  background: rgba(20,20,20,0.7);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  color: #ddd;
  transition: all 0.3s ease;
  font-family: 'SpecialElite', monospace;
}

/* Focus effect with glow pulse */
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: #444;
  background: rgba(30,30,30,0.9);
  animation: pulseGlowInput 1.5s infinite;
}

/* Smooth fade-out when losing focus */
input:not(:focus), select:not(:focus), textarea:not(:focus) {
  animation: fadeOutGlow 0.5s forwards;
}

/* Buttons */
button {
  background: rgba(0,0,0,0.9);
  color: #eee;
  border: 1px solid rgba(255,255,255,0.2);
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

button:hover {
  background: rgba(20,20,20,1);
  box-shadow: 0 0 12px rgba(255,255,255,0.4);
  animation: pulseGlow 1.5s infinite;
}

/* Flag preview beside name */
#flagPreview {
  width: 30px;
  height: auto;
  margin-left: 10px;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(0,0,0,0.6);
  box-shadow: 0 0 6px rgba(255,255,255,0.1);
  transition: all 0.3s ease;
  opacity: 0; /* start hidden */
}

/* Hover effect */
#flagPreview:hover {
  transform: scale(1.05);
  box-shadow: 0 0 12px rgba(255,255,255,0.4);
}

/* Fade-in with glowing pulse */
.fade-in {
  animation: fadeInFlag 0.6s forwards, pulseBorder 1.5s 0.6s infinite;
}

/* Entries list */
#entriesList {
  margin-top: 20px;
}

/* Entry styling */
.entry {
  background: rgba(10,10,10,0.8);
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 15px;
  color: #bbb;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  opacity: 0;
  animation: fadeGlowIn 0.8s forwards;

  /* Background image */
  background-image: url("/keine-stummen-worte/HintergrundKeineStummenWorte.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.entry:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 15px rgba(255,255,255,0.15);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeGlowIn {
  0% { opacity: 0; transform: translateY(10px); box-shadow: 0 0 0 rgba(255,255,255,0); }
  50% { opacity: 0.5; transform: translateY(5px); box-shadow: 0 0 10px rgba(255,255,255,0.1); }
  100% { opacity: 1; transform: translateY(0); box-shadow: 0 0 15px rgba(255,255,255,0.15); }
}

@keyframes fadeInFlag {
  from { opacity: 0; transform: scale(0.9); box-shadow: 0 0 0 rgba(255,255,255,0); }
  to   { opacity: 1; transform: scale(1); box-shadow: 0 0 8px rgba(255,255,255,0.3); }
}

@keyframes pulseBorder {
  0%   { box-shadow: 0 0 5px rgba(255,255,255,0.2); }
  50%  { box-shadow: 0 0 15px rgba(255,255,255,0.5); }
  100% { box-shadow: 0 0 5px rgba(255,255,255,0.2); }
}

@keyframes pulseGlow {
  0%   { box-shadow: 0 0 5px rgba(255,255,255,0.2); }
  50%  { box-shadow: 0 0 15px rgba(255,255,255,0.5); }
  100% { box-shadow: 0 0 5px rgba(255,255,255,0.2); }
}

@keyframes pulseGlowInput {
  0%   { box-shadow: 0 0 5px rgba(255,255,255,0.2); }
  50%  { box-shadow: 0 0 12px rgba(255,255,255,0.4); }
  100% { box-shadow: 0 0 5px rgba(255,255,255,0.2); }
}

@keyframes fadeOutGlow {
  from { box-shadow: 0 0 12px rgba(255,255,255,0.4); }
  to   { box-shadow: 0 0 0 rgba(255,255,255,0); }
}
