@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Niconne&display=swap');

*, *::before, *::after { box-sizing: border-box; }
body {
  width:90%;
  padding-left: 10%;
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding-top: 10%;
    background-color: #c7b2d4e0;
    color:rgb(30, 8, 31)
}
.invis {
    display: none;
}
h1 {
    font-family: Niconne, cursive;
    font-size: 3em;
    display: grid;
    color: #1f012b;
    text-shadow: 1px 1px 7px #ffffff;
    font-size: clamp(1.8rem, 5vw, 4.2rem);
}

h2 {
    font-family: Niconne, cursive;
    font-size: 3em;
    color: #1f012b;
    text-shadow: 1px 1px 7px #ffffff;
    font-size: clamp(1.8rem, 4vw, 4.2rem);
    padding-bottom: 1px;
    margin: 4px 0 0;      /* mindre luft under text */
  line-height: 1.3;
}

h3{
    font-family: Niconne, cursive;
    font-size: 2em;
    color: #1f012b;
    text-shadow: 1px 1px 7px #ffffff;
    font-size: clamp(1.4rem, vw, 3.2rem);
}

.centrerad{    display: grid;
    place-items: center;
    align-content: center;
}

p {
    color: #1f012b;
    text-shadow: 1px 1px 3px #ffffff; 
    font-size: clamp(0.95rem, 1.1vw, 1.25rem);
    line-height: 1.5;
}

section {
    display: grid;;
    place-items: center;
    align-content: center;
    min-height: 100vh;
}

.blommor {
    padding-top: 5%;
    padding-left: 10%;
    background-image: url('bakgrunder/bildram2.webp');
    background-size: cover;
    border-radius: 2px;
    margin-bottom: 40px;
    min-height:80vh;
    padding-bottom: 40px;
    border-radius: 20px;
}

.savethedate {
    background-image: url('bakgrunder/bildram2.webp');
    background-size: cover;
    border-radius: 10px;
    height:90vh;
}

.inforuta {
    display: grid;
    place-items: center;
    align-content: center;
    padding-left: 10%;
    padding-right: 10%;
    min-height: 40vh;
    margin: 30px;
    padding-bottom: 40px;
    border-radius: 20px;
    background-image: url('bakgrunder/bildram2.webp');
    background-size: cover;
    font-weight: 500;      
}

.login_info{
    border-radius: 20px;
}
.login_info h1 {
    font-family: Niconne, cursive;
    font-size: 3em;
    display: grid;
    color: #1f012b;
    text-shadow: 1px 1px 7px #ffffff;
    font-size: clamp(1.8rem, 4vw, 4.2rem);
}

.login_info h2 {
    font-family: Niconne, cursive;
    font-size: 2em;
    color: #1f012b;
    text-shadow: 1px 1px 7px #ffffff;
    font-size: clamp(1.8rem, 3vw, 4.2rem);
}

.login_info h3{
    font-family: Niconne, cursive;
    color: #1f012b;
    text-shadow: 1px 1px 7px #ffffff;
    font-size: clamp(1.4rem, 2vw, 3.2rem);
}

.login_info p {
    color: #1f012b;
    text-shadow: 1px 1px 3px #ffffff; 
    font-size: clamp(1rem, 1vw, 2.25rem);
    line-height: 1.5;
}

.normal {
    padding-left: 10%;
    padding-right: 10%;
    border-radius: 30px;
}

.bg1 {
    background-image: url('bakgrunder/bg9-sep.webp');
    padding-left: 5%;
    padding-right: 5%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: black;
}
.bg2 {
    background-image: url('bakgrunder/bg8-sep.webp');
    padding-top: 110px;
    padding-left: 5%;
    padding-right: 5%;
    padding-bottom: 40px;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    border-radius: 30px;
    color: black;
    font-weight: 700;
}

.bg2 p {
font-size: 2rem;
}

.bg3 {
    background-image: url('bakgrunder/bg3.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.input{
  font-size: 24px;
}
.menu-toggle {
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
    color: #b38ac7;
}

.follow {
    position: fixed;
    top: 20px;
    left: 20px;
}
#topnav{
  width:100%;
}

html { scroll-behavior: smooth; }

.navbar {
  position: fixed;
  top: 10px;
  left: 0;
  width: 100%;
  z-index: 1000;

  display: flex;
  justify-content: center;

  overflow: visible; /* 🔥 viktigt */
}

.quick-menu{
  position: relative; /* 🔥 behövs för absolute child */
  width: 80%;
  margin: 14px auto 0;
  padding: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr;  /* en rad med X columner */
  gap: 10px;
  background: rgba(255, 250, 252, 0.72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border-radius: 14px;
  box-shadow: 0 10px 25px rgba(0,0,0,.10);
  box-sizing: border-box;
  justify-self: center;  /* grid-item centras i hero om hero är grid någonstans */
  margin-left: auto;
  margin-right: auto;
}

.quick-menu__item{
  display: block;
  width: 100%;
  text-align: center;
  text-decoration: none;
  font-weight: 700;
  color: #1f012b;
  background: #e7d8ef;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.08);
  box-sizing: border-box;
  font-family: Niconne, cursive;
    font-size: 2em;
    color: #1f012b;
    text-shadow: 1px 1px 7px #ffffff;
}


.show {
  opacity: 1 !important;
  filter: blur(0) !important;
  transform: translateX(0) !important;
}
.quick-menu__item--add-guest{
  width: auto;           /* tar bort 100% */
  max-width: 220px;      /* välj själv */
  padding: 10px 14px;    /* valfritt */
  white-space: nowrap;   /* så den inte radbryter */
}

.title-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px; /* avstånd mellan h2 och badge */
  flex-wrap: wrap; /* snyggt på mobil */
}

.osa-badge {
  width: 120px;
  height: 120px;

  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;

  border-radius: 50%; /* gör den helt rund */
  border: 4px solid #1f012b;

  font-family: Niconne, cursive;
  font-size: 1.6rem;
    font-weight: 600;
  color: #1f012b;

  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(4px);

  box-shadow: 2px 6px 10px rgba(0,0,0,0.08);
  padding: 10px; /* lite luft för text */
}

.osa-blur {
  position: absolute;
  inset: 0;
  width: 180px; /* större än badgen */
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(12px);
  transform: translate(-15px, -15px); /* centrerar bakom */
  z-index: 1;
}

.osa-wrapper {
  position: absolute;
  right: 0; 
  transform: translateX(10px); 
}

.osa-badge-topmenu {
  position: relative;
  z-index: 2;
  width: 150px;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: 50%;
  border: 4px solid #1f012b;
  font-family: Niconne, cursive;
  font-size: 1.9rem;
  font-weight: 800;
  color: #1f012b;
  background: white;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}
.quick-menu__item {
  cursor: pointer;
}

.quick-menu__item:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    background: linear-gradient(
    120deg,
    transparent,
    rgba(255,255,255,0.3),
    transparent
  );
  transition: left 0.6s cubic-bezier(0.22, 1, 0.36, 1)
}

.menu-toggle {
  cursor: pointer;
  padding:10px 14px; border-radius:10px;color:rgb(0, 0, 0);
  
}

.menu-toggle p{
  font-size: 1rem;
}

.menu-toggle:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    background: linear-gradient(
    120deg,
    transparent,
    rgba(255,255,255,0.3),
    transparent
  );
  transition: left 0.6s cubic-bezier(0.22, 1, 0.36, 1)
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.tcard{
  /* nästan genomskinlig lilagrå “glas”-yta */
  background: linear-gradient(
    135deg,
    rgba(178, 164, 196, 0.18) 0%,
    rgba(142, 126, 166, 0.12) 55%,
    rgba(120, 105, 150, 0.08) 100%
  );

  /* subtil kant som fångar ljus */
  border: 1px solid rgba(210, 200, 230, 0.22);

  /* skuggor (en mjuk + en lite djupare) */
  box-shadow:
    0 18px 50px rgba(34, 22, 52, 0.30),
    0 2px 10px rgba(34, 22, 52, 0.18);

  /* “frosted glass” om det stöds */
  -webkit-backdrop-filter: blur(12px) saturate(120%);
  backdrop-filter: blur(12px) saturate(120%);

  border-radius: 14px;

  /* layout */
  padding: 14px 14px 20px;
  min-height: 260px;
  display: grid;
  place-items: center;
  gap: 6px;

  /* text (lilagrå istället för kritvit för att kännas mjukare) */
  color: rgba(245, 242, 255, 0.92);
  text-align: center;

  /* liten “glöd” uppåt för premiumkänsla */
  position: relative;
  overflow: hidden;
}

.tcard::before{
  content:"";
  position:absolute;
  inset:-40%;
  background: radial-gradient(
    circle at 30% 20%,
    rgba(230, 220, 255, 0.22) 0%,
    rgba(230, 220, 255, 0.10) 30%,
    rgba(230, 220, 255, 0.00) 60%
  );
  pointer-events:none;
}

.card h3 {
  margin: 4px 0;        /* tajtare rubrik */
}

.card p {
  margin: 4px 0 0;      /* mindre luft under text */
  font-size: 1.6rem;   /* lite mindre text */
}

.toastmaster-img {
  width: 60%;              /* fast bredd */
  height: auto;       /* perfekt fyrkant */
  object-fit: cover;

  border-radius: 10px;       /* mer fyrkantig känsla */
  margin: 10px 0;
}
.input{
padding:10px 12px; border-radius:10px; border:2px solid rgba(0,0,0,.15)
}
.buttonwrapper{
display:flex; gap:10px; flex-wrap:wrap;
}
.button{
  max-height: 40px;
}
/* Dölj toggle-checkboxen helt (men behåll funktion) */
#menuToggle.menu-toggle__checkbox{
  position: fixed !important;
  left: -9999px !important;
  top: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
  appearance: none !important;
  -webkit-appearance: none !important;
}

/* Säkerhet: om någon global regel stylar alla input */
input[type="checkbox"].menu-toggle__checkbox{
  appearance: none !important;
  -webkit-appearance: none !important;
}

.header{
  padding-top: 10%;
  width:80%;
  padding-left: 18%;
}

.headerimg{
  width: 80%;
  height: auto;
  filter: blur(50%);
  display: block;  
  margin: 0 auto;
}

html, body { overflow-x: hidden; }

/* Centrera karusellramen i hero */
.carousel-container{
  width: min(900px, 90%);   /* välj maxbredd själv */
  margin: 0 auto;             /* <-- centrerar */
  height: 400px;              /* din höjd */
  overflow: clip;
  display: grid;              /* <-- gör att vi kan centrera bilden lätt */
  place-items: center;        /* <-- centrerar barnet */
}

/* Centrera själva bilden i ramen */
.hero-image{
  max-width: 50%;
  max-height: 80%;
  width: 100%;
  height: 100%;
  object-fit: contain;        /* behåller hela bilden */
  object-position: center;    /* <-- centrerar bilden */
  display: none;
  opacity: 0;
  transition: opacity 2s ease-in-out;
  border-radius: 12px;
}

.hero-image.active{
  display: block;
  opacity: 1;
}
h1,h2,h3 { line-height: 1.5; } 

#hero-carousel {
  background-image: url('bakgrunder/bildram2.webp');
  background-size: cover;
  margin-bottom: 30px;
  border-radius: 20px;
}

.hero{
  padding-bottom: 60px;
}

.menu-fab{
  display: none;
}