/* =========================================================
   DEBUG: slå AV/PÅ block genom att ändra 0 -> 1
   ========================================================= */
:root { --DBG_DISABLE_BLOCK: 0; }

/* När DBG=1 så neutraliserar vi regler som kan skapa "glapp" */
html[dbg="1"] body,
html[dbg="1"] main,
html[dbg="1"] #page-content,
html[dbg="1"] body#index main.container,
html[dbg="1"] .container,
html[dbg="1"] .section-box.first {
  margin-top: 0 !important;
  padding-top: 0 !important;
  top: auto !important;
}


:root{
  --header-height: 180px; /* samma som .top-banner height */
}



@font-face {
  font-family: 'Indie Flower';
  src: url('../fonts/IndieFlower/IndieFlower-Regular.ttf') format('truetype');
}


/* Grundläggande styling */
body {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;                /* ← fet stil */
  background-color: #333;
  color: rgb(165, 203, 225);
  margin: 0;
  padding: 0;
  text-align: center;
}


/* Header och navigering */
header {
    background: #111;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.logo {
    height: 160px !important;
    width: auto;
}

.container {
    max-width: 800px; /* ⬅️ gör boxen smalare – justera t.ex. 700px om du vill ännu smalare */
    margin: 0 auto;
    padding: 20px;
    margin-bottom: 120px;
    background: rgba(255, 255, 255, 0.066);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 30px;
    border: 1px solid rgba(121, 96, 34, 0.345);
    box-shadow: 
      -3px -3px 10px rgba(255, 255, 255, 0.5),
       5px  5px 10px rgba(0, 0, 0, 0.1);
}

h2 {
    font-family: 'Oxanium', sans-serif;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: none;
    margin: 18px 0 12px 0;
}


.top-banner {
  display: flex;
  align-items: center;
  padding: 15px 20px;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #000000;
  z-index: 1000;
}

.floating-nav-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  position: relative;
}



/* Justera fälten så att alla är lika breda */
input, textarea, button, select {
    width: 100%;
    max-width: 400px;
    padding: 10px;
    margin-top: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}





/* 🔹 Omdömessektion */
.review-section {
    background-color: #f9f9f9;
    padding: 30px;
    border-top: 2px solid #ddd;
    margin-top: 50px;
    text-align: center;
    font-family: sans-serif;
  }
  
  /* 🔸 Rubrik */
  .review-section h2, .review-section h3 {
    margin-bottom: 20px;
    color: #333;
  }
  
  /* 🔹 Formulär */
  #reviewForm {
    max-width: 500px;
    margin: 0 auto 30px;
    text-align: left;
  }
  
  #reviewForm label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
  }
  
 /* 🔵 Stjärnvalet (select) */
#reviewForm select {
    background-color: #6d91b3; /* ljusare blå grundfärg */
    color: white;
    padding: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    text-align: center;
    text-align-last: center;
    width: 100%;
    margin-bottom: 15px;
    transition: background-color 0.3s ease;
  }
  
  /* 🔷 Hover-effekt */
  #reviewForm select:hover {
    background-color: #426381; /* mörkare blå på hover */
  }
  
  /* 📝 Kommentarsfält */
  #reviewForm textarea {
    width: 100%;
    padding: 10px;
    font-size: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    resize: vertical;
    margin-bottom: 15px;
  }
  

  
  /* 💬 Visade omdömen */
  .review {
    background-color: white;
    border: 1px solid #ccc;
    border-left: 5px solid #007bff;
    padding: 15px;
    margin-bottom: 15px;
    text-align: left;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .review p {
    margin: 5px 0;
  }
  
  .review small {
    color: #777;
    font-size: 13px;
  }




/* Tar bort webbläsares standardutseende på rullgardinsmenyer */
select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}


.content-wrapper {
    display: flex;
    justify-content: space-between; /* Ser till att rutorna hamnar jämnt fördelade */
    align-items: flex-start;
    gap: 20px;
    max-width: 1200px;
    margin: auto;
    width: 100%;
}


/* Huvudinnehållet (vänster ruta) */
.main-content {
    flex: 2;
    display: flex;
    justify-content: center;
}

/* Huvudinnehållets box */
.content-box {
    background: #add8e662; !important; /* Ljusblå bakgrund */
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    color: black !important; /* Gör all text i boxen svart */
    max-width: 600px;
}


/* Sidokolumnen (höger ruta, ny) */
.sidebar {
    flex: 1; /* Ändra från 1 till 2 för att göra den bredare */
    background: #222;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    color: white;
    text-align: center;
    min-height: 600px; /* Höjd på rutan */
    max-width: 600px; /* Gör rutan lika bred som den första */
    width: 100%;
}

h2, p {
    color: black !important; /* Gör texten svart */
}

.latest-reports-section {
    background: #d3dcf3; /* Ljusblå bakgrund */
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    color: black !important; /* Gör texten vit */
    max-width: 600px;
    margin: auto; /* Centrerar sektionen */
}

.report-box {
    max-width: 600px;
    margin: 20px auto;
    padding: 15px;
    background-color: #f9f9f9;
    border-left: 5px solid #007bff;
    border-radius: 10px;
    box-shadow: 0 0 5px rgba(0,0,0,0.1);
    color: black;
    text-align: left;
}



.file-container {
    display: flex; /* Aktiverar flexbox */
    justify-content: center; /* Centrerar bilderna horisontellt */
    flex-wrap: wrap; /* Tillåter att bilder radbryts om de är många */
    gap: 10px; /* Skapar lite mellanrum mellan bilder */
}

.file-container img {
    display: block;
    margin: 10px auto; /* Centrerar bilden horisontellt */
    max-width: 100%; /* Säkerställer att bilden inte blir för bred */
    height: auto;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.report-box {
    border: 2px solid #ccc; /* Grå ram */
    border-radius: 10px; /* Rundade hörn */
    padding: 15px;
    margin: 15px 0;
    background-color: #d3dcf3; /* rapporter på profilsida användare */
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1); /* Liten skugga */
    color: black !important; /* Gör texten svart */
}



.menu-toggle {
    display: inline-block;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
  }
  
  .menu-toggle img {
    width: 60px;
    height: auto;
  }
  



/* Grundläggande fixar för hela sidan */
body, html {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    height: 100%;
    overflow: auto; /* Tillåt scrollning */
}


body.search-users .container {
    margin-top: 150px !important;
}
body.friends-page .container {
    margin-top: 200px !important;
}
body#index .container {
  margin-top: 50px !important;
}

body.profile-page .container {
    margin-top: 100px !important;
}

/* Se till att ALLA sidor hamnar under bannern */
main.container {
    margin-top: 0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    padding: 20px;
}

body.profile-page .container {
    margin-top: 180px; /* eller vad som passar bäst där */
}

body#index main.container {
    margin-top: 0 !important;
}



/* Meddelandelistan - liknande design som fordonsprofilen */
.message-box {
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 10px;
    word-wrap: break-word; /* Långa ord bryts korrekt */
    max-width: 100%;
}

/* Olästa meddelanden får fetstil */
.unread {
    font-weight: bold;
}

/* 📨 Inkorgsfixar */
.inbox-container {
    margin-top: 120px; /* Skjut ner inkorgen under bannern */
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    padding: 20px;
    background: #444; /* Samma bakgrund som andra boxar */
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    color: white; /* Vit text */
    overflow-y: auto; /* Scrollbar om det behövs */
    max-height: calc(100vh - 140px); /* Gör att inkorgen anpassas till skärmen */
}

/* Meddelandelista */
.message-box {
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 10px;
    word-wrap: break-word;
    color: black; /* Gör texten svart för bättre synlighet */
}

/* Olästa meddelanden */
.unread {
    font-weight: bold;
}

/* 📨 Se till att inkorgen syns och går att scrolla */
.inbox-container {
    margin-top: 140px; /* Justera så att den hamnar under bannern */
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    padding: 20px;
    background: #444; /* Matchar resten av sidan */
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    color: white;
    max-height: calc(100vh - 160px); /* Anpassa höjden efter skärmen */
    overflow-y: auto; /* Låt inkorgen scrollas om den är lång */
}

/* 📨 Meddelandelista */
.message-box {
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 10px;
    word-wrap: break-word;
    color: black; /* Svart text */
}

/* 📌 Olästa meddelanden */
.unread {
    font-weight: bold;
}

/* 📨 Inkorgen - ser till att den inte täcks av bannern */
.inbox-container {
    margin-top: 160px; /* Skjut ner inkorgen under bannern */
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    padding: 20px;
    background: #444; /* Matchar resten av sidan */
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    color: white;
    min-height: calc(100vh - 200px); /* Se till att inkorgen fyller sidan */
    display: flex;
    flex-direction: column;
}

/* 📨 Meddelandelista */
.message-box {
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 10px;
    word-wrap: break-word;
    color: black; /* Svart text */
}

/* 📌 Olästa meddelanden */
.unread {
    font-weight: bold;
}



.top-banner nav ul {
    list-style: none;
    padding: 0;
}

.top-banner nav ul li {
    display: inline;
    margin: 0 15px;
}



.bottom-banner p {
    font-size: 14px;
}


.top-banner {
    background-color: #ffffff;
    background-image: none;
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-weight: bold;
    text-shadow: none;
}

.top-banner * {
    color: #000000 !important; /* 🔥 Ser till att alla element i bannern blir orange */
}


body, html {
    margin: 0;
    padding: 0;
}

header {
    margin-bottom: 0;
}


/* Lägg till mellanrum ovanför och under checkbox-rutan */
.form-group {
    margin-top: 30px;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    justify-content: center; /* Centrera hela sektionen */
    gap: 10px; /* Skapar jämnt mellanrum mellan checkbox, text och ikon */
    width: 100%; /* Se till att sektionen sträcker sig över hela bredden */
}

/* Tvinga checkboxen att vara exakt kvadratisk */
.large-checkbox,
input[type="checkbox"] {
    width: 24px !important;
    height: 24px !important;
    cursor: pointer;
    appearance: none; /* Tar bort webbläsarens standardstil */
    -webkit-appearance: none;
    -moz-appearance: none;
    border: 2px solid black;
    background: white;
    display: inline-flex; /* Säkerställer att den håller sin form */
    align-items: center;
    justify-content: center;
    box-sizing: border-box; /* Säkerställer att ingen extra padding påverkar storleken */
}

/* Stil för ikryssad checkbox */
.large-checkbox:checked,
input[type="checkbox"]:checked {
    background: black;
}

/* Placera checkbox, text och ikon i en rak linje */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 5px; /* Litet mellanrum mellan checkbox och text */
}

/* Anpassa flaggikonen */
.flag-icon {
    width: 35px;
    height: auto;
    margin-left: 5px; /* Ger lite luft mellan text och ikon */
}

.point-box {
    background-color: #f0f8ff; /* Ljusblå bakgrund – ändra vid behov */
    border-left: 5px solid #007bff; /* En blå vänsterkant för att markera boxen */
    padding: 15px;
    margin: 10px 0;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: left; /* text i vänstermarginal */
}

h3 {
    color: #000000; /* svart */
}

.review-scrollbox {
    background: #ADD8E6;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    color: black;
    margin-top: 15px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.post-image-preview {
    max-width: 100%;
    max-height: 200px;
    object-fit: cover;
    border-radius: 5px;
    display: block;
    margin: 10px auto;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.post-image-preview:hover {
    transform: scale(1.02);
}

.custom-file-upload {
    display: inline-block;
    background-color: #6d91b3;
    color: white;
    padding: 10px 16px;
    font-size: 14px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    text-align: center;
    margin-top: 10px;
}

.custom-file-upload input[type="file"] {
    display: none;
}

.review-box {
    background-color: #3588a3;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin: 20px auto;
    max-width: 600px;
    text-align: left;
    color: black;
}

body.search-users .container {
    margin-top: 200px !important;
}

body.friends-page .container {
    margin-top: 200px !important;
}

.friend-item {
    padding: 10px;
    border-bottom: 1px solid #ccc;
    color: black;
}

.friend-item:last-child {
    border-bottom: none;
}

.intro-section {
    margin-top: 10px;
    text-align: center;
    font-family: Georgia, serif;
    font-size: 1.2em;
}

.image-section {
    margin-top: 5px; /* Mindre glapp mot texten ovan */
    text-align: center;
}

.image-section img {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    display: block;
}

#goodbyeMessage {
    margin-top: 250px;
    background-color: #fff0f0;
    border: 1px solid #ffcccc;
    color: #b30000;
    padding: 30px 20px; /* lite mer padding upptill och nedtill */
    border-radius: 10px;
    font-size: 1.3em;
    text-align: center;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1s ease-out;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.cry-emoji {
    font-size: 3rem;
    animation: cryBounce 1s ease-in-out infinite;
    margin-bottom: 20px;
    display: block;
}

@keyframes slideFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#deleteForm {
    animation: slideFadeIn 0.5s ease-out;
}

.delete-report-btn {
    background-color: #dc3545; /* 🔴 Ändra denna rad för bakgrundsfärg */
    color: white; /* 🔤 Textfärg */
    border: none;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 14px;
    cursor: pointer;
}

.cart-row {
    display: flex;
    justify-content: left;
    margin-top: 10px;
    margin-bottom: 10px;
    position: relative;
    z-index: 700;
}

.cart-icon {
    font-size: 40px !important;
    color: rgb(0, 0, 0);
    text-decoration: none;
    transition: transform 0.2s ease;
}


.cart-icon:hover {
    transform: scale(1.2);
}

    .cart-icon {
        font-size: 50px;
    }

    @media (max-width: 1024px) {
        .cart-row {
            justify-content: flex-end;
            margin: 10px 15px 0 auto;
            position: absolute;
            right: 5%;
            top: 40px;
        }
    
        .cart-icon {
            font-size: 50px !important;
        }
    }
    
.qr-sticker {
    display: block;             /* Gör bilden till ett block-element */
    margin: 20px auto;          /* Centrerar bilden och ger 20px marginal ovan och under */
    max-width: 100px;           /* Begränsar bildens bredd */
    border: 3px solid #ccc;     /* Lägger till en grå kant */
    border-radius: 10px;        /* Ger rundade hörn */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Lägg till en subtil skugga */
}


.cart-icon-img {
    width: 50px;
    height: auto;
    transition: transform 0.2s ease;
}

.cart-icon-img:hover {
    transform: scale(1.1);
}

.menu-icon-img {
    width: 40px;
    height: auto;
    pointer-events: none; /* Så att klicket fortfarande går till knappen, inte bilden */
}

body.custom-background {
  background-image: url('../images/bg_gray.webp');
  background-size: 150px;
  background-position: center;
  background-attachment: fixed;
  background-repeat: repeat;
}

body.custom-background .hypno-background {
  display: none;
}

body.friends-page {
  background-image: url('../images/bg_gray.webp');
  background-size: 150px;
  background-position: center;
  background-repeat: repeat;
  background-attachment: fixed;
}


body.friends-page .hypno-background {
  display: none !important;
}






/* 🔮 Bakgrundens blobbas */
.hypno-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
    background: radial-gradient(circle at center, #416293, #000000);
}

/* 🌀 Stora "blobbar" */
.blob {
  position: absolute;
  width: 2000px;
  height: 2000px;
  background: radial-gradient(circle, rgba(158, 3, 230, 0.148), rgba(0, 250, 117, 0.153));
  border-radius: 50%;
  mix-blend-mode: screen;
  filter: blur(1px);
  transform-style: preserve-3d;
  /* 👇 TA BORT DENNA RAD: */
  /* animation: blobFloat 40s ease-in-out infinite; */
}

.blob1 {
  top: -51%;
  left: -90%;
  animation: blobFloat1 45s ease-in-out infinite;
}
.blob2 {
  top: 20%;
  left: -60%;
  animation: blobFloat2 45s ease-in-out infinite;
}
.blob3 {
  top: 45%;
  left: 30%;
  animation: blobFloat3 45s ease-in-out infinite;
}





.star {
  position: absolute;
  background: radial-gradient(circle, rgba(16, 55, 210, 0.731), rgba(3, 36, 143, 0.6));
  border-radius: 50%;
  mix-blend-mode: screen;
  filter: blur(10px);
  opacity: 1;
  z-index: 2;
  box-shadow: 0 0 20px rgba(2, 127, 204, 0.233);
  animation: floatFree 25s ease-in-out infinite;

}

  



/* ✨ Twinkle-effekt */
@keyframes twinkle {
    0% { opacity: 0.3; transform: scale(1); }
    100% { opacity: 1; transform: scale(1.3); }
}

  

  
  /* 🔲 Menylista */
  .floating-nav ul {
    background: rgba(255, 255, 255, 0.619);
    display: flex;
    padding: 10px 20px;
    border-radius: 50px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    list-style: none;
    position: relative;
    margin: 0;
  }
  
  /* 🔗 Menyval */
  .floating-nav ul li {
    position: relative;
    margin: 0 10px;
    transition: 0.3s ease;
  }
  
  /* 🖱️ Länkstil */
  .floating-nav ul li a {
    text-decoration: none;
    color: rgb(0, 0, 0);
    font-weight: 500;
    font-family: 'Rajdhani', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
    position: relative;
    z-index: 1;
  }
  
  
  /* 🧷 Ikonplats (används bara för att hålla src-info) */
  .floating-nav ul li .icon {
    width: 24px;
    height: 24px;
    margin-bottom: 4px;
  }
  
  /* 🔤 Länktext */
  .floating-nav ul li .text {
    font-size: 14px;
  }
  
  .floating-nav ul .indicator {
    position: absolute;
    top: 50%;
    left: 0;
    width: 60px;
    height: 60px;
    background: #26508e52;
    border-radius: 50%;
    z-index: 0;
    transform: translate(-50%, -100%);
    transition: left 0.3s ease;
  }
  
  
  
  /* 🟠 Ikonen i bollen */
  .floating-nav .indicator img {
    width: 24px;
    height: 24px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
  }
  
  
    .logo-container {
      flex: 1;
    }
  
    .menu-toggle {
      display: inline-block;
      background: none;
      border: none;
      cursor: pointer;
      padding: 0;
    }
  
    .menu-icon-img {
      width: 40px;
      height: auto;
    }
  

  
  .section-box {
    background: rgba(209, 205, 205, 0.925);        /* glas-effekt */
    backdrop-filter: blur(4px);                 
    -webkit-backdrop-filter: blur(6px);
    border-radius: 4px;
    padding: 25px;
    margin: 30px auto;
    max-width: 500px;
    text-align: center;
  
    /* 💡 Glödande kant och ljusglas-effekt */
    border: 1px solid rgba(246, 195, 236, 0.087);
   box-shadow: none;
  }
  
  

 .section-box.first {
  margin-top: 0;
}
  
  .section-box {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
  }
  
  .section-box.visible {
    opacity: 1;
    transform: translateY(0);
  }
  
  .latest-reports-section ul {
    list-style: none;
    padding-left: 0;
    margin-left: 0;
}

@keyframes floatFree {
    0% {
      transform: translate3d(0px, 0px, 0px) rotate(0deg);
    }
    25% {
      transform: translate3d(30px, -40px, 0px) rotate(5deg);
    }
    50% {
      transform: translate3d(-50px, 20px, 0px) rotate(-3deg);
    }
    75% {
      transform: translate3d(25px, 35px, 0px) rotate(4deg);
    }
    100% {
      transform: translate3d(0px, 0px, 0px) rotate(0deg);
    }
  }
  
  @keyframes blobFloat {
    0% {
      transform: translate(0, 0) scale(1) rotate(0deg);
    }
    25% {
      transform: translate(30px, -20px) scale(1.05) rotate(2deg);
    }
    50% {
      transform: translate(-40px, 30px) scale(0.98) rotate(-2deg);
    }
    75% {
      transform: translate(20px, -25px) scale(1.02) rotate(3deg);
    }
    100% {
      transform: translate(0, 0) scale(1) rotate(0deg);
    }
  }
  
  @keyframes blobFloat1 {
    0% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(100px, -80px) scale(1.05); }
    50% { transform: translate(-120px, 100px) scale(0.95); }
    75% { transform: translate(80px, -120px) scale(1.03); }
    100% { transform: translate(0, 0) scale(1); }
  }
  
  @keyframes blobFloat2 {
    0% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(-150px, 90px) scale(1.1); }
    50% { transform: translate(130px, -110px) scale(0.9); }
    75% { transform: translate(-90px, 70px) scale(1.05); }
    100% { transform: translate(0, 0) scale(1); }
  }
  
  @keyframes blobFloat3 {
    0% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(80px, 140px) scale(1.07); }
    50% { transform: translate(-160px, -90px) scale(0.92); }
    75% { transform: translate(100px, 100px) scale(1.08); }
    100% { transform: translate(0, 0) scale(1); }
  }
  
  @keyframes twinkle {
    0% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
    100% { opacity: 0.3; transform: scale(1); }
  }

  
  body, p, h1, h2, h3, h4, h5, h6, label, li, span, a {
    color: rgb(0, 0, 0) !important;
    text-shadow:
  
  }
  
  .chart-box {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 1px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow:
      -3px -3px 10px rgba(255, 255, 255, 0.2),
       5px  5px 15px rgba(0, 0, 0, 0.2);
    padding: 20px;
    margin: 20px auto;
    max-width: 600px;
  }
  
main {
  margin-top: 0;
  padding: 20px;
}



input[type="text"],
input[type="number"],
input[type="file"],
select,
textarea,
button.glow-button,
a.glow-button {
  width: 100%;
  max-width: 400px;
  display: block;
  margin: 10px auto;
  padding: 10px;
  font-size: 16px;
  border-radius: 5px;
  box-sizing: border-box;
}


/* Ikonens utseende */
.rating-icon {
    width: 24px;
    height: 24px;
    margin: 0 2px;
    pointer-events: none; /* hindrar att bara en ikon klickas */
}

/* Wrapper runt menyn */
.custom-select-wrapper {
    position: relative;
    width: 260px;
    margin-bottom: 15px;
    font-family: inherit;
    z-index: 100; /* Lägg till denna rad */
}


.custom-select {
    background-color: #f1eded;
    border: 3px solid #a7a2a2;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center; /* ✅ centrerar innehållet */
    position: relative;
    text-align: center;
}


.custom-options {
    position: absolute;
    z-index: 1000; /* Viktigt att denna är högre än andra element på sidan */
}

/* Pil-symbolen */
.custom-select::after {
    content: '▼';
    position: absolute;
    right: 14px;
    font-size: 14px;
    color: #888;
}


/* Dropdown-menyn */
.custom-options {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    border: 2px solid #bbb;
    border-radius: 8px;
    width: 100%;
    margin-top: 5px;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Varje alternativ i listan */
.custom-options div {
    padding: 10px;
    text-align: left; /* ändra från center till vänster */
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: flex;
    justify-content: flex-start; /* ikoner till vänster */
}


/* Hover-effekt */
.custom-options div:hover {
    background-color: #f0f0f0;
}

.rating-label {
    display: block;
    text-align: center;
    margin-bottom: 10px;
    font-weight: bold;
}

.top-banner {
  display: flex;
  justify-content: center;
  align-items: center;
  height: var(--header-height);
  padding: 0 20px;
  box-sizing: border-box;

  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: #ffffff;
}



.header-center {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}



.floating-nav {
  display: flex;
  justify-content: center;
  width: auto;
}

.floating-nav ul {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 20px;
  border-radius: 50px;
  background: rgba(5, 114, 114, 0);
  list-style: none;
  margin: 0;
}

body.troubleshoot-page .troubleshoot-container {
    margin-top: 1px !important;
}

.menu-toggle {
  position: absolute;
  top: -8px;
  right: -140px;
  display: block;
  z-index: 2000;
}

.floating-nav ul li a {
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

.mobile-icon {
  margin-bottom: 0 !important;
}


  /* 2. Gör wrappern position: relative så underliggande nav kan vara absolut */
  .floating-nav-wrapper {
    position: relative;
    width: 100%;
  }

  /* 3. Dölj menyn tills den öppnas (har inte klassen mobile-hidden) */
  .floating-nav.mobile-hidden {
    display: none;
  }

  /* 4. När menyn öppnas (saknar mobile-hidden) – placera under knappen */
  .floating-nav:not(.mobile-hidden) {
    position: absolute;
    top: -10px;             /* justera höjd efter knappens storlek */
    right: -160px;           /* aligna med knappens högerkant */
    display: flex;
    flex-direction: column;
    background: rgba(152, 228, 198, 0);
    border-radius: px;1
    box-shadow: 8 2px 10px rgba(0, 136, 247, 0.16);
    padding: 10px;
    z-index: 1500;
  }
 
.floating-nav:not(.mobile-hidden) ul {
  background: rgba(255, 255, 255, 0.653);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 1px;
  padding: 10px 20px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}


  /* 5. Stapla länkarna vertikalt */
  .floating-nav ul {
    flex-direction: column;
    align-items: flex-start;
    margin: 0;
    padding: 0;
  }
  .floating-nav ul li {
    margin: 8px 0;
  }

  /* 6. Dölj indikatorsbollen på mobil */
  .floating-nav ul .indicator {
    display: none;
  }


.floating-nav:not(.mobile-hidden) ul li a {
  display: flex;
  align-items: center;
  gap: 8px; /* mellanrum mellan ikon och text */
}

.floating-nav:not(.mobile-hidden) ul li .icon {
  width: 24px;
  height: 24px;
  display: inline-block;
  background-size: contain;
  background-repeat: no-repeat;
}

/* Visa/dölj ikoner beroende på skärmstorlek */
.desktop-icon {
  display: inline-block;
}
.mobile-icon {
  display: none;
}

@media (max-width: 1024px) {
  .desktop-icon {
    display: none;
  }
  .mobile-icon {
    display: inline-block;
    width: 24px;
    height: 24px;
    margin-bottom: 4px;
  }
}

@media screen and (min-width: 1025px) {
  .floating-nav ul li a {
    flex-direction: row;
    align-items: center;
    gap: 8px;
  }

  .menu-toggle {
    display: none !important;
  }
}

  .desktop-icon {
    display: inline-block;
  }

  .mobile-icon {
    display: none;
  }

  @media screen and (min-width: 1025px) {
  .menu-toggle {
    display: none !important;
  }

  .floating-nav-wrapper {
    display: flex !important;
    justify-content: center;
  }

 .floating-nav {
  display: inline-flex !important;
  flex-direction: row;
  position: static !important;

  background: transparent;
  border-radius: 0;
  box-shadow: none;

  padding: 0;
  width: fit-content;
  z-index: 1000;
}


  .floating-nav ul {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
  }

  .floating-nav ul li {
  position: relative;
  padding: 0 12px;
  margin: 0;
}

.floating-nav ul li + li .text::before {
  content: "|";
  margin-right: 8px;
  color: rgba(13, 40, 66, 0.45);
}



  .floating-nav ul li a {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .desktop-icon {
    display: inline-block;
  }

  .mobile-icon {
    display: none !important;
  }
}

@media screen and (min-width: 1025px) {
  .floating-nav ul .indicator {
    display: block;
    position: absolute;
    top: 50%;
    left: 0;
    width: 60px;
    height: 60px;
    background: #26508ea8;
    border-radius: 50%;
    z-index: 0;
    transform: translate(-50%, -100%);
    transition: left 0.3s ease;
  }

  .floating-nav .indicator img {
    width: 24px;
    height: 24px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
  }
}

.calendar-container {
  width: 100%;
  max-width: 700px;   /* Maxbredd för större skärmar */
  margin: 0 auto;     /* Centrerar kalendern */
  padding: 10px;
  box-sizing: border-box;
}

body.calendar-page main.container {
  margin-top: 560px !important;
}

.calendar-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  background: white;
  border-radius: 15px;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

#calendar-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

#calendar-table th,
#calendar-table td {
  border: 1px solid #ccc;
  padding: 10px;
  text-align: center;
  font-size: 16px;
}

#calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

#calendar-header h3 {
  margin: 0;
}

body.calendar-page button {
  background: none;
  border: none;
  cursor: pointer;
}

#eventOutput div {
  font-family: 'Indie Flower', cursive;
  font-size: 1.2rem;
}

/* Alla händelsekort (post-it-lappar) får handskrivet typsnitt automatiskt */
#eventOutput > div {
  font-family: 'Indie Flower', cursive !important;
  font-size: 1.1rem;
  color: #333;
}

.indie-text {
  font-family: 'Indie Flower', cursive !important;
}

@media screen and (min-width: 1024px) {
  .floating-nav ul li .text {
    font-size: 18px; /* Ändra till den storlek du vill ha */
    font-weight: bold;
  }
}

#car-profile {
  display: block;
  margin: 20px auto;
  max-width: 300px;
  border-radius: 10px;
}

/* ─────────────────────────────────────────────────────────────────
   Layout: wrapper, main och footer för fäst footer längst ner
───────────────────────────────────────────────────────────────── */

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-wrapper {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

footer.bottom-banner {
  flex-shrink: 0;
  width: 100%;
  background: #fff;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  box-shadow: 0 -1px 8px rgba(0,0,0,0.04);
  padding: 16px 0;
}

/* Specifikt för Webshop-sidan */
body#webshop .site-wrapper {
  /* Om site-wrapper är display:flex med min-height:100vh så låter vi den bli auto */
  min-height: auto !important;
}

/* Se till att main.container inte växer till hela höjden */
body#webshop main.container {
  flex: 0 0 auto !important;      /* Inget flex-grow */
  height: auto !important;        /* Automatisk höjd */
  min-height: auto !important;    /* Automatisk min-höjd */
  margin: 200px auto 20px !important; /* 200px upp, 20px ner */
  padding-bottom: 20px !important;    /* Lite extra luft under */
}

/* Gör hela sidan till en flex-kolumn så footer alltid hamnar längst ner */
html, body {
    height: 100%;
    margin: 0;
}
.site-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
main.container {
    flex: 1 0 auto; /* Tar all kvarvarande höjd */
}
footer {
    flex-shrink: 0; /* Trycker inte ihop footern */
    margin-top: auto; /* Skjuts till botten */
}

/* På Cart-sidan: låt huvudcontainern krympa till sitt innehåll */
body#cart main.container {
  flex: 0 0 auto !important;
  height: auto !important;
  min-height: auto !important;
  margin: 20px auto 20px !important; /* justera topp- och bottentröskel efter behov */
}

body#cart .cart-item {
  margin-bottom: 30px;
}

/* Samma blå knappar i kundvagnen */
body#cart .remove-button,
body#cart .checkout-btn {
  background: #007bff;
  color: #fff;
  padding: 12px 18px;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.2s ease;
}

body#cart .remove-button:hover,
body#cart .checkout-btn:hover {
  background: #0056b3;
}

/* På kalender­sidan: låt <main> bara bli så högt som innehållet */
body#calendar main.calendar-container {
  display: block;           /* Bryt eventuellt flex från wrapper */
  flex: 0 0 auto !important;/* Inget flex-grow */
  height: auto !important;  /* Automatisk höjd */
  min-height: auto !important;
  margin: 20px auto 20px;  /* Behåll topp-padding och lite botten-marginal */
}

.error-message {
    background: rgba(255, 0, 0, 0.1);
    border: 2px solid red;
    color: red;
    font-weight: bold;
    padding: 15px;
    border-radius: 12px;
    width: 80%;
    margin: 0 auto 20px auto;
    text-align: center;
}

.switch {
  position: relative;
  display: inline-block;
  width: 54px;
  height: 30px;
  vertical-align: middle;
}
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #ccc;
  transition: .3s;
  border-radius: 34px;
}
.slider:before {
  position: absolute;
  content: "";
  height: 24px;
  width: 24px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,.18);
}
input:checked + .slider {
  background-color: #2676e3;
}
input:checked + .slider:before {
  transform: translateX(24px);
}

#loading-text {
  font-family: 'Press Start 2P', monospace;
  font-size: 20px;
  opacity: 0.8;
}

#odometerChart {
  background-color: #2c2c2c;
  border-radius: 10px;
  padding: 10px;
  height: 200px;   /* Ändra från 500px till 200px */
}

.glow-button {
    color: white !important;
    font-weight: bold;
    text-decoration: none; /* tar bort understrykning */
}

.plate-container {
    position: relative;
    display: inline-block;
    width: 360px;           /* justera vid behov */
    max-width: 90vw;
}

.plate-image {
    display: block;
    width: 100%;
    height: auto;
}

/* Öka specifikhet och tvinga storlek på både text och placeholder */
form.plate-form .plate-container .plate-input {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -60%);
    width: 75%;
    background: transparent;
    border: none;
    text-align: center;
    font-size: 48px !important;
    font-weight: 700;
    letter-spacing: 3px;
    color: #000;
    text-transform: uppercase;
    z-index: 2;
    -webkit-text-size-adjust: 100%;
}

form.plate-form .plate-container .plate-input::placeholder {
    font-size: 120px !important;
    letter-spacing: 3px;
    color: rgba(0,0,0,0.45);
}


.plate-input:focus { outline: none; }

/* === MODERNA VITA KNAPPAR (global stil för alla glow-button) === */
.glow-button,
a.glow-button {
  display: block;
  width: 100%;
  max-width: 320px;
  margin: 10px auto;
  padding: 14px 24px;
  font-size: 22px;
  font-weight: 600;
  text-align: center;
  color: #0d1b2a !important;
  background-color: #ffffff;
  border: 1px solid #e2e6ea;
  border-radius: 12px;
  cursor: pointer;
  text-decoration: none;
  font-family: 'Public Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  transition: background-color 0.25s ease, box-shadow 0.25s ease, transform 0.1s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
}

/* Hover – ljusblå bakgrund */
.glow-button:hover,
a.glow-button:hover {
  background-color: #eaf3ff;
  color: #0d1b2a !important;
  box-shadow: 0 3px 7px rgba(43, 114, 214, 0.2);
  transform: translateY(-1px);
}


/* Tryckeffekt */
.glow-button:active,
a.glow-button:active {
  transform: translateY(1px);
  box-shadow: 0 1px 3px rgba(43, 114, 214, 0.2);
}

/* Fokus (för tangentbordsanvändare) */
.glow-button:focus-visible,
a.glow-button:focus-visible {
  outline: 3px solid #9ed0ff;
  outline-offset: 3px;
}

/* Inaktiverad knapp */
.glow-button:disabled,
a.glow-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
}


/* === RÖDA KNAPPAR === */
.glow-button.red {
  background-color: #b20000;
  color: #fff !important;
  border: 1px solid #a00000;
}

.glow-button.red:hover {
  background-color: #d10000;
  box-shadow: 0 3px 8px rgba(255, 0, 0, 0.3);
}




/* === YTTERBOX: gör hela profil-området till en vit box === */
#page-content {
  background: #f5f7fa;
  border: 1px solid #e3e7ee;
  border-radius: 0;
  box-shadow: none;
  max-width: 960px;
  margin: 5px auto;
  padding: 28px 24px;
}

body.inbox-page #page-content {
  margin-top: 165px;
}



/* Inre sektioner: låt dem bli “genomskinliga” så de smälter in i ytterboxen */
#page-content .section-box {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 0 24px 0; /* lite luft mellan sektionerna */
}

/* Valfritt: centrera innehållet i profilen lite mer */
#page-content .profile-info {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

/* Reserv för fast header – endast på profile.php */
body.profile-page {
  padding-top: 100px !important;
}

/* Samma för settings.php */
body.settings-page {
  padding-top: 165px !important;
}

/* Reserv för fast header – endast på inbox.php */
body.inbox-page {
  padding-top: 0 !important;
}


/* Lugna rubriker på startsidan – överstyr inline-styles */
body#index .highscore-section h2,
body#index .stats-section h2,
body#index .section-box h2 {
  font-family: 'Oxanium', sans-serif !important;
  font-size: 26px !important;
  font-weight: 800 !important;
  letter-spacing: 0.6px !important;
  text-transform: uppercase !important;
  margin: 18px 0 12px 0 !important;
}

/* Gör “totalt antal inlägg”-siffran lite mer balanserad */
body#index .stats-section span {
  font-family: 'Oxanium', sans-serif !important;
  font-weight: 800 !important;
  font-size: 2.0em !important;
}


/* Huvudrubriker – tunga men få */
body#index .highscore-section h2,
body#index .stats-section h2 {
  font-size: 28px !important;
  margin-top: 28px !important;
}

/* Sekundära rubriker – lugnare */
body#index .section-box:not(.highscore-section):not(.stats-section) h2 {
  font-size: 20px !important;
  font-weight: 600 !important;
  letter-spacing: 0.3px !important;
  text-transform: none !important;
}

/* Content box runt varje avdelning på startsidan */
body#index #page-content .content-box {
  background: #ffffff;
  border: 2px solid rgba(0, 0, 0, 0.148);
  border-radius: 0;
  padding: 20px 18px;
  margin: 18px 0;
  box-shadow: none;
}

/* Extra luft mellan boxar på mobil */
@media (max-width: 600px) {
  body#index #page-content .content-box {
    margin: 14px 0 !important;
  }
}

/* Rubriker i brand-färg */
body#index h1,
body#index h2,
body#index h3 {
  color: #0d2842 !important;
}

/* ===== FIX: Index ska inte hoppa ner när CSS laddas ===== */
body#index {
  padding-top: var(--header-height) !important;  /* reserv för fixed header */
}

body#index #page-content,
body#index main,
body#index main.container {
  margin-top: 0 !important;
}

/* Mobil: lite mer reserv om headern blir högre */
@media (max-width: 600px) {
  body#index {
    padding-top: var(--header-height) !important;
  }
}

/* ===== NY DESKTOP-MENY (text + |) ===== */
.toplinks-desktop{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;

  font-family: 'Oxanium', sans-serif;
  font-weight: 600;
  font-size: 16px;
  line-height: 1;

  padding: 8px 12px;
  margin: 6px auto 0 auto;
  width: 100%;
  max-width: 1100px;
  box-sizing: border-box;
}

.toplinks-desktop a{
  color: #0d2842;
  text-decoration: none;
  padding: 6px 6px;
  border-radius: 10px;
}

.toplinks-desktop a:hover{
  text-decoration: underline;
}

.toplinks-desktop .sep{
  color: rgba(13, 40, 66, 0.45);
  padding: 0 2px;
  user-select: none;
}

.toplinks-desktop a.active{
  text-decoration: underline;
}

/* Visa INTE denna menyn på små skärmar (hamburger tar över) */
@media (max-width: 900px){
  .toplinks-desktop{
    display: none;
  }
}


.notice-inline {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 6px;
}

.notice-icon {
  width: 18px;
  height: 18px;
}

.notice-count {
  font-size: 14px;
  color: black;
  font-weight: bold;
}

.send-message-notice {
  font-family: 'Honk', cursive, sans-serif !important;
  font-size: 2.1em;
  color: #161616;
  background: #ffffffff;
  border: 2px solid #009ffaff;
  padding: 16px 18px;
  border-radius: 18px;
  margin: 40px auto 30px auto;
  box-shadow: 0 2px 24px #f7de6a33;
  text-align: center;
  max-width: 600px;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 700px) {
  .send-message-notice {
    font-size: 1.3em;
    padding: 12px 8px;
    max-width: 98vw;
    border-radius: 12px;
  }
}

.top-banner .header-rating-inline .header-star.filled {
  color: #FFD700 !important;
  text-shadow:
    -1px -1px 0 #000,
     1px -1px 0 #000,
    -1px  1px 0 #000,
     1px  1px 0 #000;
}

.top-banner .header-rating-inline .header-star.empty {
  color: #e0e0e0 !important;
  text-shadow: none;
}

/* ===== Header rating layout ===== */
.header-rating-inline {
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: inherit;
  margin-left: 10px;
}

.header-stars {
  display: flex;
  gap: 2px;
  line-height: 1;
}

.header-star {
  font-size: 16px;
}

.header-rating-text {
  font-size: 13px;
  opacity: 0.85;
}