html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  display: block;
}
body {
  line-height: 1;
}
ol,
ul {
  list-style: none;
}
blockquote,
q {
  quotes: none;
}
blockquote:before,
blockquote:after,
q:before,
q:after {
  content: "";
  content: none;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
} /* ================= FONTS ================= */
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@100..900&display=swap");

:root {
  --body-font: "inter, Roboto Condensed", sans-serif;
  --normal-font-size: 0.938rem;
}

@media (min-width: 1150px) {
  :root {
    --normal-font-size: 1rem;
  }
}

/* ================= BASE ================= */

body {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  margin: 0;
  background: #000;
  min-height: 100vh;
}

html {
  scroll-behavior: smooth;
}

/* ================= HEADER ================= */

.header-inner {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-weight: 600;
}

.menu-button {
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
}

/* ================= OVERLAY MENU ================= */
.menu {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;

  width: 20vw; /* ca 1/5 av viewporten */
  max-width: 320px; /* så den inte blir för bred */
  min-width: 240px; /* så den inte blir för smal */

  background: #fafafa;

  display: flex;
  flex-direction: column;
  gap: 1.6rem;

  padding: 6rem 2rem;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 100;
}

.menu.open {
  transform: translateX(0);
}

.menu a {
  color: #3e3e3e;
  text-decoration: none;
  font-size: 1.6rem;
}

/* Stäng-knapp i menyn */
.menu-close {
  position: absolute;
  top: 1rem;
  left: 1.6rem;
  font-size: 2.5rem;
  background: none;
  border: none;
  color: #3e3e3e;
  cursor: pointer;
}
/* Dölj scrollbar men behåll scroll */
.hide-scrollbar {
  -ms-overflow-style: none; /* IE & Edge */
  scrollbar-width: none; /* Firefox */
}

.hide-scrollbar::-webkit-scrollbar {
  display: none; /* Chrome, Safari */
}

/* ================= liv.html ================= */

#startBtn {
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  background-color: #3e3e3e;
  color: white;
  margin-bottom: 24px;
}

.result {
  margin-top: 20px;
  font-weight: 600;
  color: #0f7b2d;
  font-size: 20px;
  opacity: 0;
  transform: scale(0.95);
  animation: reveal 0.6s ease forwards;
}

@keyframes reveal {
  0% {
    opacity: 0;
    transform: scale(0.9);
    text-shadow: none;
  }
  70% {
    text-shadow: 0 0 12px rgba(0, 200, 80, 0.5);
  }
  100% {
    opacity: 1;
    transform: scale(1);
    text-shadow: 0 0 6px rgba(0, 200, 80, 0.3);
  }
}

#choices {
  margin-top: 250px;
  display: flex;
  gap: 12px;
}

#choices button {
  padding: 12px 18px;
  border-radius: 6px;
  border: none;
  background: #222;
  color: white;
  cursor: pointer;
  font-size: 15px;
}

#choices button:hover {
  opacity: 0.9;
}

body {
  margin: 0;
  background: #000;
  height: 100vh;
}

.space {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.space:has(.btn-primary:hover) .star {
  animation: heartbeat 0.9s infinite;

  filter: blur(10px) brightness(1.6);

  transform: scale(1.1);
}
.space:has(.btn-primary:hover) .star {
  animation: heartbeat 0.9s infinite;

  filter: blur(10px) brightness(1.6);

  transform: scale(1.1);
}
.hero-title {
  text-align: center;
  color: white;
  font-family: "Playfair Display", serif;

  font-size: 2.5rem;
  font-weight: 700;

  letter-spacing: 0.08em;

  text-transform: uppercase;
}
.hero-sub {
  font-family: "Great Vibes", cursive;
  text-align: right;
  font-size: 32px;
  padding-right: 1.5rem;
  margin-top: 8px;

  color: #d6d6d6;
}
.star {
  position: relative;

  width: 420px;
  height: 420px;
  transition: all 0.4s ease;
  pointer-events: none;

  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(123, 22, 55, 0.9) 20%,
    rgba(123, 22, 55, 0.6) 40%,
    rgba(123, 22, 55, 0.3) 60%,
    transparent 90%
  );

  filter: blur(8px);

  animation: heartbeat 1.66s infinite;
}

.star::before {
  content: "";
  position: absolute;

  left: 50%;
  top: 50%;

  width: 600px;
  height: 600px;

  transform: translate(-50%, -50%);

  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.9) 0%,
    rgba(123, 22, 55, 0.6) 20%,
    transparent 60%
  );

  filter: blur(20px);

  opacity: 0;

  animation: shockwave 2.2s infinite;
}
@keyframes heartbeat {
  /* vila */
  0% {
    transform: scale(0.95);
    filter: blur(8px) brightness(0.9);
  }

  /* LUB (stora slaget) */
  12% {
    transform: scale(1.22);
    filter: blur(10px) brightness(1.7);
  }

  20% {
    transform: scale(1.05);
  }

  /* DUB (andra slaget) */
  32% {
    transform: scale(1.15);
    filter: blur(9px) brightness(1.3);
  }

  /* vila */
  55% {
    transform: scale(0.95);
  }

  100% {
    transform: scale(0.95);
  }
}
.star::before {
  content: "";
  position: absolute;

  left: 50%;
  top: 50%;

  width: 600px;
  height: 600px;

  transform: translate(-50%, -50%);

  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.9) 0%,
    rgba(123, 22, 55, 0.6) 20%,
    transparent 60%
  );

  filter: blur(20px);

  opacity: 0;

  animation: shockwave 1.66s infinite;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.btn-primary {
  background: #7b1637;
  color: white;

  padding: 14px 36px;

  font-size: 16px;
  border: none;

  border-radius: 30px;

  cursor: pointer;

  transition: all 0.25s ease;
}
.btn-primary:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(123, 22, 55, 0.7);
}
.btn-secondary {
  background: transparent;
  color: #ccc;

  padding: 12px 28px;

  font-size: 14px;

  border: 1px solid rgba(255, 255, 255, 0.2);

  border-radius: 30px;

  cursor: pointer;

  transition: all 0.25s ease;
}
.btn-secondary:hover {
  border-color: #fff;
  color: white;
}

.star.supernova {
  animation: supernova 0.9s ease forwards;
}

@keyframes supernovaFlash {
  0% {
    transform: scale(1);
    filter: blur(8px) brightness(1);
  }

  40% {
    transform: scale(1.6);
    filter: blur(14px) brightness(3);
  }

  70% {
    transform: scale(2.2);
    filter: blur(18px) brightness(4);
    opacity: 1;
  }

  100% {
    transform: scale(3);
    filter: blur(30px) brightness(6);
    opacity: 0;
  }
}

@keyframes orbit1 {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes orbit2 {
  from {
    transform: rotate(360deg);
  }
  to {
    transform: rotate(0deg);
  }
}

/* texten uppstår ur ljuset */
@keyframes textReveal {
  0% {
    opacity: 0;
    transform: translate(-50%, -40%) scale(0.6);
    filter: blur(10px);
  }

  60% {
    opacity: 1;
    filter: blur(0);
  }

  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}
