/* Load custom fonts */
@font-face {
  font-family: 'SpecialElite';
  src: url('/cdbewertungen/SpecialElite.ttf') format('truetype');
}

@font-face {
  font-family: 'UbuntuSansMono';
  src: url('/cdbewertungen/UbuntuSansMono.ttf') format('truetype');
}

/* Apply Special Elite only inside the form */
form, 
form .content, 
form .inside, 
form .elegant-box, 
form .summary-banner, 
form .review-box {
  font-family: 'SpecialElite', cursive;
}

/* Apply Ubuntu Sans Mono only to labels inside the form */
form label,
form #songChecklist label,
form .star-rating label,
form .rating-value {
  font-family: 'UbuntuSansMono', monospace;
}

/* Spacing for summary and reviews inside the form */
form .summary-banner {
  margin-top: 25px;
  padding: 15px;
}

form .review-box {
  margin-top: 25px;
  padding: 15px;
}

form .inside {
  padding: 20px;
  margin-bottom: 20px;
}


/* Pencil‑style box */
.elegant-box {
  border: 2px solid #444;
  padding: 20px;
  background: rgba(0,0,0,0.6); /* semi-transparent black */
  box-shadow: 0 0 15px rgba(255,255,255,0.05);
  border-radius: 8px;
  transition: background 0.4s ease, box-shadow 0.4s ease;
}
.elegant-box:hover {
  background: #000; /* solid black */
  box-shadow:
    inset 0 0 20px rgba(255,255,255,0.1), /* inner glow */
    0 0 20px rgba(255,255,255,0.2);       /* outer glow */
}

/* rating */ 
.star-rating {
  display: inline-block;
}

.star-rating input {
  display: none;
}

.star-rating label {
  float: right;
  cursor: pointer;
  transition: color 0.3s;
}

.star-rating label:before {
  content: "\272F";
  font-size: 36px;
}

.star-rating input:checked ~ label,
.star-rating label:hover,
.star-rating label:hover ~ label {
  color: #c41e3a;
  transition: color 0.3s;
}




/* Numeric indicator styling mit Pulse-Animation */
.rating-value {
  font-family: 'StackSans', sans-serif;
  font-size: 1em;
  color: #eee;
}

@keyframes pulseGlow {
  0%   { transform: scale(1); filter: none; }
  50%  { transform: scale(1.3); filter: drop-shadow(0 0 6px #fff); }
  100% { transform: scale(1); filter: none; }
}

.rating-value.pulse {
  animation: pulseGlow 0.3s ease;
}

/* Form layout */
form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* From */
form input[type="text"],
form input[type="email"],
form textarea {
  max-width: 250px;
  height: 2rem;
  background-color: transparent;
  border: 2px solid transparent;
  color: white;
  padding: 1rem;
  box-shadow: 2px 2px 5px black, inset 2px 2px 5px rgb(53, 51, 51),
    -1px -1px 20px rgba(59, 56, 56, 0.781);
  outline: none;
  border-radius: 10px;
  font-size: medium;
  transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

/* Hover state */
form input[type="text"]:hover,
form input[type="email"]:hover,
form textarea:hover {
  background: linear-gradient(to bottom, #000 0%, #111 100%); /* subtle gradient */
  border-color: #aaa;
  box-shadow: 2px 2px 5px black, inset 2px 2px 5px rgb(53, 51, 51),
    -1px -1px 20px rgba(59, 56, 56, 0.781),
    inset 0 0 10px rgba(255,255,255,0.1);
}

/* Focus state */
form input[type="text"]:focus,
form input[type="email"]:focus,
form textarea:focus {
  box-shadow: 2px 2px 5px black, inset 2px 2px 5px black,
    -1px -1px 5px rgba(68, 67, 67, 0.781),
    inset -1px -1px 5px rgba(66, 65, 65, 0.822),
    inset 0 0 12px rgba(255,0,0,0.3);
  border-color: #c41e3a;
  background: #000;
  outline: none;
}

/* Textarea specifics */
form textarea {
  min-height: 80px;
  resize: vertical;
}

/* Song checklist: links bündig */
#songChecklist {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 5px;
  padding-left: 0;
}

#songChecklist label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: #ddd;
}

#songChecklist input[type="checkbox"] {
  margin: 0;
  position: relative;
  left: 0;
}

/* Toast notifications */
.toast {
  visibility: hidden;
  min-width: 250px;
  margin: auto;
  background-color: #222;
  color: #eee;
  text-align: center;
  border-radius: 4px;
  padding: 16px;
  position: fixed;
  bottom: 30px;
  left: 0; right: 0;
  z-index: 1;
  border: 1px solid #444;
}
.toast.show {
  visibility: visible;
  animation: fadein 0.5s, fadeout 0.5s 2.5s;
}
@keyframes fadein { from {bottom: 0; opacity: 0;} to {bottom: 30px; opacity: 1;} }
@keyframes fadeout { from {bottom: 30px; opacity: 1;} to {bottom: 0; opacity: 0;} }

/* Summary banner */
.summary-banner {
  background: rgba(0,0,0,0.6);
  border: 1px solid #444;
  transition: background 0.4s ease, transform 0.4s ease, box-shadow 0.4s ease;
}
.summary-banner:hover {
  background: #000;
  transform: scale(1.02);
  box-shadow: inset 0 0 15px rgba(255,255,255,0.1);
}
}
.summary-banner h3 { margin: 0 0 10px; color: #ccc; font-style: italic; }
.summary-banner p { margin: 5px 0; font-size: 1.1em; }

/* Reviews */
.review-box {
  margin-top: 25px;
  padding: 15px;
  background: rgba(0,0,0,0.6) url('/cdbewertungen/BackgroundReviewBox.png') no-repeat center;
  background-size: cover; /* fills the box */
  border: 1px solid #444;
  transition: background 0.4s ease, transform 0.4s ease, box-shadow 0.4s ease;
}

.review-box:hover {
  background: #000 url('/cdbewertungen/BackgroundReviewBox.png') no-repeat center;
  background-size: cover;
  transform: scale(1.02);
  box-shadow: inset 0 0 15px rgba(255,255,255,0.1);
}

.avatar {
  float: left;
  margin-right: 10px;
  border-radius: 50%;
  border: 2px black;
}

/* Glow effect when a song is selected */
#songChecklist input[type="checkbox"]:checked + label {
  color: #fff;
  font-weight: bold;
  text-shadow:
    -1px -1px 2px #a00,
     1px -1px 2px #c33,
    -1px  1px 2px #c33,
     1px  1px 2px #a00,
     0px  0px 4px #f55;
  animation: scribbleGlow 0.6s ease-in-out;
}

/* Hover preview glow */
#songChecklist label:hover {
  color: #fff;
  text-shadow:
    -1px -1px 2px #666,
     1px  1px 2px #444,
     0px  0px 3px #999;
}

/* Scribble-style glow animation */
@keyframes scribbleGlow {
  0%   { text-shadow: 0 0 2px #f55; transform: rotate(-1deg); }
  25%  { text-shadow: 1px -1px 3px #a00; transform: rotate(1deg); }
  50%  { text-shadow: -1px 1px 3px #c33; transform: rotate(-2deg); }
  75%  { text-shadow: 0 0 4px #f55; transform: rotate(1deg); }
  100% { text-shadow: 0 0 2px #a00; transform: rotate(0deg); }
}
/* Fancy button */
.fancy-btn {
  appearance: none;
  border: none;
  background: transparent; /* transparent base */
  color: #0f1923;
  cursor: pointer;
  position: relative;
  padding: 8px;
  margin-bottom: 20px;
  text-transform: uppercase;
  font-weight: bold;
  font-size: 14px;
  transition: all .15s ease;
}

.fancy-btn::before,
.fancy-btn::after {
  content: '';
  display: block;
  position: absolute;
  right: 0;
  left: 0;
  height: calc(50% - 5px);
  border: 1px solid #7D8082;
  transition: all .15s ease;
}

.fancy-btn::before {
  top: 0;
  border-bottom-width: 0;
}

.fancy-btn::after {
  bottom: 0;
  border-top-width: 0;
}

.fancy-btn:active,
.fancy-btn:focus {
  outline: none;
}

.fancy-btn:active::before,
.fancy-btn:active::after {
  right: 3px;
  left: 3px;
}

.fancy-btn:active::before {
  top: 3px;
}

.fancy-btn:active::after {
  bottom: 3px;
}

/* Inner block */
.fancy-btn .button_lg {
  position: relative;
  display: block;
  padding: 10px 20px;
  color: #fff;
  background-color: transparent; /* transparent base */
  overflow: hidden;
  box-shadow: inset 0px 0px 0px 1px transparent;
}

.fancy-btn .button_lg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 2px;
  height: 2px;
  background-color: transparent;
}

.fancy-btn .button_lg::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
  width: 4px;
  height: 4px;
  background-color: transparent;
  transition: all .2s ease;
}

/* Skewed strip */
.fancy-btn .button_sl {
  position: absolute;
  top: 0;
  bottom: -1px;
  left: -8px;
  width: 0;
  background-color: #4A4949; /* highlight strip */
  transform: skew(-15deg);
  transition: all .2s ease;
}

.fancy-btn .button_text {
  position: relative;
}

/* Hover effect */
.fancy-btn:hover {
  color: #fff;
}

.fancy-btn:hover .button_lg {
  background-color: #1a1a1a; /* dark grey hover background */
}

.fancy-btn:hover .button_sl {
  width: calc(100% + 15px);
}

.fancy-btn:hover .button_lg::after {
  background-color: #4A4949;
}