:root {
  --bg: #0b0a0f;
  --accent: #a77bff;
  --text: #f0e6ff;
  --muted: #b5b2bf;
  --highlight: #ff8300;
}

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

body {
  font-family: "Crimson Text", serif;
  font-size: 1.1rem;
  color: var(--text);
  overflow-x: hidden;
  background-image: url("img/john-bearby-images-v9nU59tgJV0-unsplash.jpg");
  background-size: cover;
  background-position: center;
}

#soundToggle {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin: 5px;
  padding: 0;
  text-align: right;
  z-index: 100;
  position: fixed;
  top: 5px;
  right: 10px;
  color: var(--muted);
}

header {
  text-align: center;
  padding: 6rem 1rem 4rem;
  position: relative;
  background-image: url('img/web.png');
  background-position: top left;
  background-repeat: no-repeat;
}

header h1 {
  font-family: "Cinzel Decorative", cursive;
  font-size: 4rem;
  color: var(--highlight);
  text-shadow: 0 0 25px var(--accent), 0 0 40px var(--accent);
  background-size: 100px;
}

header p {
  margin-top: 1rem;
  font-size: 1.2rem;
  color: var(--muted);
}

#about h2 {
  border-top: solid 1px var(--accent);
  margin-top: 4px;
  padding-top: 1.5rem;
}

#about {
  border-top: solid 1px var(--accent);
  border-bottom: solid 1px var(--accent);
  padding: 0;
}

#about p {
  margin-bottom: 5px;
  border-bottom: solid 1px var(--accent);
  padding-bottom: 2rem;;
}

.btn {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.75rem 2rem;
  border: 2px solid var(--accent);
  color: var(--accent);
  text-decoration: none;
  border-radius: 2rem;
  transition: all 0.3s ease;
}

.btn:hover {
  background: var(--accent);
  color: var(--bg);
  box-shadow: 0 0 15px var(--accent);
}

.btn.submit {
  background-color: transparent;
  color: var(--highlight);
  border-color: #ff8300;
  text-transform: uppercase;
  cursor: pointer;
}

section {
  max-width: 850px;
  margin: 5rem auto;
  padding: 0 1rem;
  text-align: center;
}

h2 {
  font-family: "Cinzel Decorative", cursive;
  color: var(--accent);
  margin-bottom: 1rem;
  font-size: 2rem;
}

.locations {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
  align-items: stretch;
}

.locations p,
.locations h3 {
  margin: 1.5rem;
}

.location-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  padding: 0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: radial-gradient(circle at center, #1a1525, #000);
  cursor: pointer;
}

.location-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 15px rgba(167, 123, 255, 0.3);
}

.locationImage-cemetery {
  background-image: url("img/diane-helentjaris-oNGnQEiqYpU-unsplash.jpg");
  width: 100%;
  height: 300px;
  background-size: cover;
    background-position: center;
  filter: brightness(50%) contrast(110%);
  margin: 0;
  padding: 0;
}

.locationImage-party {
  background-image: url("img/tucker-joenz-A_Upw8XCVoE-unsplash.jpg");
  width: 100%;
  height: 300px;
  background-size: cover;
  background-position: center;
  margin: 0;
  padding: 0;
}

.locationImage-mansion {
  background-image: url("img/jan-jakub-nanista-z9hvkSDWMIM-unsplash.jpg");
  width: 100%;
  height: 300px;
  background-size: cover;
  background-position: center;
  filter: brightness(50%) contrast(110%);
  margin: 0;
  padding: 0;
}

.summary {
  margin: 1.5rem;
  padding: 0;
  color: var(--muted);
}

form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 400px;
  margin: 2rem auto 0;
  text-align: left;
}

label {
  font-weight: bold;
  color: var(--muted);
}

input,
select {
  padding: 0.6rem;
  border-radius: 0.5rem;
  border: none;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

input:focus,
select:focus {
  outline: 2px solid var(--accent);
  background-color: var(--bg);
}

select option {
  color: var(--text);
}

footer {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--muted);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
}

/* Slider toggle thingy */
.switch {
  position: relative;
  display: inline-block;
  width: 30px;
  height: 18px;
}

/* Hide default HTML checkbox */
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* The slider */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--muted);
  -webkit-transition: .4s;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 1px;
  bottom: 1px;
  background-color: var(--text);
  -webkit-transition: .4s;
  transition: .4s;
}

input:checked + .slider {
  background-color: var(--accent);
}

input:focus + .slider {
  box-shadow: 0 0 1px var(--accent);
}

input:checked + .slider:before {
  -webkit-transform: translateX(12px);
  -ms-transform: translateX(12px);
  transform: translateX(12px);
}

.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

/* --- spooky animations --- */
#spooky-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  background: #000;
  color: var(--highlight);
  padding: 2rem 3rem;
  border: 2px solid var(--highlight);
  border-radius: 1rem;
  font-family: "Lacquer", system-ui;
  font-size: 1.2rem;
  text-align: center;
  z-index: 1000;
  box-shadow: 0 0 20px var(--highlight);
  transition: transform 0.5s ease;
}

#spooky-popup.show {
  transform: translate(-50%, -50%) scale(1);
}

/* glitch */
@keyframes glitch {
  0% { transform: translate(0,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,0); }
}

button.glitch {
  animation: glitch 0.5s ease-in-out;
}


