body {
  
  padding-bottom: 40px;
  background-color: #eee;
}
# {
 margin: 0;
 padding: 0;
}
#body {
 font-family: "Lucida Grande", "Lucida Sans Unicode", Helvetica, Arial, sans-serif;
 font-size: 16px;
 color: #232323;

  background-color: #eee;
}
#head {
 background: #ffffff;
 top:0; 
 width:100%; 
 
 padding-top: 0px;
 padding-bottom: 0px;
 border-bottom: 1px solid #7ac643;
}
.wrap {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;

} 
 .logo img {
    margin-right: 10px;
  }
.logo-text {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-width: 250px;
  margin-top: 15px;     /* avstånd ovanför */
  margin-bottom: 8px;  /* avstånd under */
  padding-left: 8px;
}
.user-section {
  max-width: 200px;
  float: right;
}

/* Bara länkarna i user-links påverkas */
.user-links {
  display: flex;
  flex-direction: column; /* staplar under varandra */
  align-items: flex-end;  /* justerar åt höger */
}

.user-links a {
  display: block;
  text-align: right;
  padding-right: 8px;
}

  #message-container,
  #notifikation-container {
    display: inline-block;
    margin-left: 10px;
  }
  
  .notifications {
    margin-top: 10px;
  }
#head h1
{
 float:left;
}max-width: 250px;
#head a
{
 float:right;
}
input,select
{
 width:300px;
 height:35px;
}
#footer { 
  position:fixed; 
  bottom:0; width:100%; 
  height:50px; /* Height of the footer */ 
  background:#f9f9f9;
  border-top: 1px solid #7ac643;
 }
h1 { font-size: 36px; font-weight: bold; line-height: 40px; }
h2 { font-size: 30px; font-weight: bold; line-height: 32px; }
h3 { font-size: 24px; font-weight: bold; line-height: 28px; }
h4 { font-size: 18px; font-weight: bold; line-height: 24px; }
h5 { font-size: 14px; font-weight: bold; line-height: 20px; }
h6 { font-size: 12px; font-weight: bold; line-height: 16px; }
a:not(.btn):not(.page-link):not(.dropdown-item) {
    color: #606880; /* mörkare nyans än #808AA2 */
    text-decoration: none; /* valfritt, ta bort understrykning */
    transition: color 0.2s ease-in-out; /* mjuk hover-effekt */
}

/* Hover-effekt */
a:not(.btn):not(.page-link):not(.dropdown-item):hover {
    color: #40465a; /* ännu mörkare vid hover */
    text-decoration: underline; /* valfritt */
}

/* nav menu */
    .menu-toggle {
      display: none;
      cursor: pointer;
}
    .menu-toggle span {
      display: block;
      height: 3px;
      width: 25px;
      background-color: #7ac643;
      margin: 6px 0;
    }
 .mobile-menu {
    display: none;
    position: absolute;
    text-align: left;
    z-index: 1000;
    top:100px;
    left: 0;
    background-color: #f9f9f9; /* Justera bakgrundsfärgen efter behov */
    border: 1px solid #7ac643; /* Lägg till en ram för tydlighet */
    width: 200px;
    border-left: 1px solid #7ac643;
    border-right: 1px solid #7ac643;
    border-bottom: 1px solid #7ac643;
    border-radius: 10px;
    text-decoration: none;
 color: #818ba3;
  }
  .admin-menu {
  float: right;
}
.pagination .page-item .page-link {
    color: #444;               /* Textfärg */
    background-color: #f8f9fa; /* Ljus bakgrund */
    border: 1px solid #ddd;    /* Tunn ram */
}
.pagination .page-item.active .page-link {
    background-color: #ff9800; /* Din accentfärg (orange) */
    border-color: #ff9800;
    color: white;
}
.pagination .page-item:hover .page-link {
    background-color: #ffe0b2; /* Ljusare orange vid hover */
    border-color: #ff9800;
    color: #333;
}
.pagination .page-item.disabled .page-link {
    color: #aaa;
    background-color: #eee;
    border-color: #ddd;
}
#nav {
  min-width: 1000px;
  margin: 0;
  margin-bottom: 0;
  padding: 0;
  padding-left: 15px;
  padding-right: 15px;
  list-style: none;

  border-left: 1px solid #7ac643;
  border-right: 1px solid #7ac643;
  border-bottom: 1px solid #7ac643;

  border-bottom-left-radius: 4px;
  border-bottom-right-radius: 4px;

  height: 50px;

  background: #f9f9f9;
}

#nav li {
  float: left;
  display: block;
  background: none;
  position: relative;
  z-index: 999;
  margin: 0 1px;
}

#nav li a {
  display: block;
  padding: 0 12px;
  font-weight: 700;
  line-height: 50px;
  text-decoration: none;
  color: #818ba3;

  border-left: 1px solid transparent;
  border-right: 1px solid transparent;

  box-sizing: content-box;
}

#nav li a:hover,
#nav li a.hov {
  background-color: #fff;
  border-left: 1px solid #7ac643;
  border-right: 1px solid #7ac643;
  color: #576482;
}

/* SUBMENU */

#nav ul {
  position: absolute;
  top: 50px;
  left: 1px;

  display: none;
  margin: 0;
  padding: 0;
  padding-bottom: 3px;

  list-style: none;

  background: #f9f9f9;

  box-shadow: 0 1px 3px rgba(0,0,0,0.10);
  z-index: 1000;
}

#nav ul li {
  width: 180px;
  float: left;
  border-top: 0;
  text-align: left;
}

#nav ul li:hover {
  background-color: #EEF3DE;
  color: #818ba3;
}

#nav ul a {
  display: block;
  height: 16px;
  line-height: 18px;
  padding: 8px 5px;

  border-left: 1px solid #7ac643;
  border-right: 1px solid #7ac643;

  text-transform: uppercase;

  background: #f9f9f9;
  color: #797979;
  font-weight: bold; 
  font-size: 13px; 
}

#nav ul a:hover {
  text-decoration: none;
  border-right-color: transparent;
  border-left-color: transparent;
  background-color: #EEF3DE;
  color: #818ba3;
}
.message-count{
  font-size:17px;
  font-weight:bold;
  color:#339A04;
  text-decoration:none;
}

.message-count:hover{
  color:#2d8503;
}
.content-container-wrapper {
    max-width: 1000px;
    min-width: 1000px;
    min-height: 650px;
    margin: 0 auto;
    padding: 20px;
    border-radius: 20px;
    border: 2px solid rgba(105, 181, 50, 1);
    font-size: 14px;
}


.flex-container {
    width: 100%;
    display: flex;
    align-items: flex-start; /* Justera elementen i överkant */
    gap: 20px; /* Mellanrum mellan elementen */
    flex-wrap: wrap;
    justify-content: space-between; /* Fördela utrymmet mellan elementen */
}
.flex-right-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    width: calc(30% - 10px); 
    gap: 20px;
}
.flex-container2 {
  display: flex;
  flex-direction: row; /* Keep items side by side */
}
.left-column {
       display: flex;
       flex-direction: row; /* Horisontell layout för större skärmar */
       flex-wrap: wrap; /* Tillåt rader om det inte får plats */
}
.flex-container-right {
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Flyttar innehållet till höger */
    width: 100%; /* Tar upp 100% av tillgänglig bredd */
    box-sizing: border-box;
    padding: 10px; /* Valfritt - för att skapa lite marginal runt */  
}
.flex-item-login {
    max-width: 600px;
    width: 100%;
    padding: 10px;
    margin: 0 auto; /* Centrerar flexboxen horisontellt */
    display: flex;
    flex-direction: column;
    border-radius: 20px;
    border: 2px solid rgba(105, 181, 50, 1);
    background: rgba(245, 245, 220, 0.8);  /* Säkerställer att innehållet staplas vertikalt */
}

.flex-item1{
    position: relative;
    order: 0;
    flex: 2 1 70%;
    box-sizing: border-box;
    min-height: 250px;
    max-width: 70%;
    min-width: 60%;
    margin-bottom: 20px;
    padding: 10px;
    border-radius: 20px;
    border: 2px solid rgba(105, 181, 50, 1);
    overflow-wrap: break-word;
    word-wrap: break-word;
}
.flex-item1-bg {
    position: relative;
    order: 0;
    flex: 2 1 70%;
    box-sizing: border-box;
    min-height: 250px;
    max-width: 70%;
    min-width: 60%;
    margin-bottom: 20px;
    padding: 10px;
    border-radius: 20px;
    border: 2px solid rgba(105, 181, 50, 1);
    overflow-wrap: break-word;
    word-wrap: break-word;
    background: rgba(245, 245, 220, 0.8); 
}
.flex-item1-no-border {
    position: relative;
    order: 0;
    flex: 2 1 70%;
    box-sizing: border-box;
    min-height: 50px;
    max-width: 70%;
    min-width: 60%;
    margin-bottom: 20px;
    padding: 10px;
    border-radius: 20px;
    overflow-wrap: break-word;
    word-wrap: break-word;
}
.flex-item1 a {
    word-break: break-all;
}
.flex-item_right
{
    align-self: flex-start;
    box-sizing: border-box;
    max-width: 25%;
    margin-bottom: 20px;
    border-radius: 20px;
    border: 2px solid rgba(105, 181, 50, 1);
}
.flex-item2 {
    position: relative; 
    order: 1;
    flex: 1 1 25%; /* Flex-grow, flex-shrink, flex-basis för anpassning */
    align-self: flex-start;
    box-sizing: border-box;
    min-height: 250px;
    max-width: 25%;
    margin-bottom: 20px;
    padding: 10px;
    border-radius: 20px;
    border: 2px solid rgba(105, 181, 50, 1);
}
.flex-item2-bg {
    position: relative; 
    order: 1;
    flex: 1 1 25%; /* Flex-grow, flex-shrink, flex-basis för anpassning */
    align-self: flex-start;
    box-sizing: border-box;
    min-height: 250px;
    max-width: 25%;
    margin-bottom: 20px;
    padding: 10px;
    border-radius: 20px;
    border: 2px solid rgba(105, 181, 50, 1);
    background: rgba(245, 245, 220, 0.8); 
}
.flex-item2-meddelande {
    position: relative; 
    order: 1;
    flex: 1 1 25%;
    align-self: flex-start;
    box-sizing: border-box;
    max-width: 25%;
    margin-bottom: 20px;
    padding: 10px;
    border-radius: 20px;
    border: 2px solid rgba(105, 181, 50, 1);
    background: rgba(245, 245, 220, 0.8); 
}

/* LISTAN */
.meddelande-meny-lista {
    list-style: none;
    padding: 0;
    margin: 0;
}

.meddelande-meny-lista li {
    margin-bottom: 10px;
}

.meddelande-meny-lista a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}
.flex-item3 {
    width: calc(25% - 10px);
    box-sizing: border-box;
    margin-bottom: 20px;
    margin: 20px 0;
    padding: 10px;
    flex-grow: 1;
    max-width: 25%;
    align-self: flex-end; /* Placera innehållet längst ner i flexboxen */
    margin-left: auto; /* Placera innehållet längst till höger i flexboxen */
}
.flex-item4 {
    order: 2;
    width: calc(100% - 10px);
    box-sizing: border-box;
    margin-bottom: 20px;
    padding: 10px !important;
    flex: 1;
    flex-grow: 1;
    min-width: 100%;
    min-height: 250px;
    height: auto; /* Gör höjden dynamisk */
    max-width: 100%;
    border-radius: 20px !important;
    border: 2px solid rgba(105, 181, 50, 1) !important;
    overflow: visible;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}
.flex-item4-bg {
    order: 2;
    width: calc(100% - 10px);
    box-sizing: border-box;
    margin-bottom: 20px;
    padding: 10px;
    flex: 1;
    flex-grow: 1;
    min-width: 100%;
    min-height: 250px;
    height: auto; /* Gör höjden dynamisk */
    max-width: 100%;
    border-radius: 20px !important;
    border: 2px solid rgba(105, 181, 50, 1) !important;
    overflow: visible;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    background: rgba(245, 245, 220, 0.8); 
    order: 0;
}
.flex-item5 {
    width: calc(100% - 10px);
    box-sizing: border-box;
    margin: 20px 0; /* Marginaler som behövs */
    padding: 10px ;
    flex-shrink: 0; /* Förhindra att elementet krymper */
    align-self: end;
    overflow: visible;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    order: 1;
}
.flex-item6 {
    width: calc(70% - 10px);
    box-sizing: border-box;
    padding: 10px;
    flex-grow: 1;
    flex: 0 0 auto;
    max-width: 70%;
    overflow-wrap: break-word;
    word-wrap: break-word;
}
.flex-item7 {
    width: calc(25% - 10px);
    box-sizing: border-box;
    padding: 10px !important;
    flex-grow: 1;
    max-width: 25%;
}
.flex-item8 {
    display: flex;
    flex-direction: column;
    width: calc(50% - 10px);
    box-sizing: border-box;
    margin-bottom: 20px;
    padding: 10px;
    flex-grow: 1;
    flex: 0 0 auto;
    min-height: 250px;
    max-width: 50%;
    border-radius: 20px;
    border: 2px solid rgba(105, 181, 50, 1);
    overflow-wrap: break-word;
}
.flex-item8-bg {
    display: flex;
    flex-direction: column;
    width: calc(50% - 10px);
    box-sizing: border-box;
    margin-bottom: 20px;
    padding: 10px;
    flex-grow: 1;
    flex: 0 0 auto;
    min-height: 250px;
    max-width: 50%;
    border-radius: 20px;
    border: 2px solid rgba(105, 181, 50, 1);
    overflow-wrap: break-word;
    background: rgba(245, 245, 220, 0.8); 
}
.textarea#guestbook_text {
    width: 100% !important;
    height: auto !important;
    min-height: 100px !important;
}

.flex-item1 a {
    word-break: break-all;
}
.flex-item-porfiltopp {
    position: relative; 
    display: flex; /* Gör denna container till en flexbox */
    box-sizing: border-box;
    flex-direction: row; /* Placera elementen vågrätt */
    justify-content: space-between; /* Sprid elementen jämnt över container-bredden */
    width: calc(100% - 10px);
    margin-bottom: 20px;
    margin: 20px 0;
    padding: 10px;
    flex-grow: 1;
    min-height: 150px; 
    border-radius: 20px;
    border: 2px solid rgba(105, 181, 50, 1);
    
    /* För bakgrundsbild */
    background-size: cover; /* Gör att bilden täcker hela området */
    background-position: center; /* Centrera bilden */
    background-repeat: no-repeat; /* Undvik att bilden upprepas */
    overflow: hidden; /* Döljer överflöd från insidan */
}
.flex-item-porfiltopp-bg {
    position: relative; 
    display: flex; /* Gör denna container till en flexbox */
    box-sizing: border-box;
    flex-direction: row; /* Placera elementen vågrätt */
    justify-content: space-between; /* Sprid elementen jämnt över container-bredden */
    width: calc(100% - 10px);
    box-sizing: border-box;
    margin-bottom: 20px;
    margin: 20px 0;
    padding: 10px;
    flex-grow: 1;
    min-height: 150px; 
    border-radius: 20px;
    border: 2px solid rgba(105, 181, 50, 1);
    background: rgba(245, 245, 220, 0.8); 
}
.flex-item-ikoner {
    display: flex;
    gap: 25px;
    align-items: center;
}
.profil-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-left: 20px;
}
.blogg-banner-title {
    position: absolute; /* Placera den i förhållande till föräldern */
    top: 20px; /* 20 pixlar från överkanten av föräldraelementet */
    left: 20px; /* För att behålla samma avstånd från vänster */
    background: rgba(245, 245, 220, 0.8); /* Bakgrundsfärg */
    padding: 2px 5px;
    border-radius: 10px;
    line-height: normal;
    word-wrap: break-word;
}
.blogg-title {
    position: absolute; /* Placera den i förhållande till föräldern */
    top: 20px; /* 20 pixlar från överkanten av föräldraelementet */
    left: 20px; /* För att behålla samma avstånd från vänster */
    padding: 2px 5px;
    border-radius: 5px;
    line-height: normal;
    word-wrap: break-word;
}
.flex-item-porfilgallery {
    position: relative; 
    display: flex; 
    box-sizing: border-box;
    flex-direction: column; 
    width: calc(100% - 10px);
    box-sizing: border-box;
    margin-bottom: 20px;
    margin: 20px 0;
    padding: 10px;
    flex-grow: 1;
    min-height: 150px; 
    border-radius: 20px !important;
    border: 2px solid rgba(105, 181, 50, 1); 
}
.flex-item-porfilgallery-bg {
    position: relative; 
    display: flex; 
    box-sizing: border-box;
    flex-direction: column; 
    width: calc(100% - 10px);
    box-sizing: border-box;
    margin-bottom: 20px;
    margin: 20px 0;
    padding: 10px;
    flex-grow: 1;
    min-height: 150px; 
    border-radius: 20px !important;
    border: 2px solid rgba(105, 181, 50, 1); 
    background: rgba(245, 245, 220, 0.8); 
}
.album-header {
    margin-bottom: 20px; /* Mellanrum mellan rubriken och albumlistan */
    font-size: 24px;     /* Justera storlek på rubriken */
    font-weight: bold;   /* Gör rubriken fetstil */
}
.flex-item-bloggtopp {
    display: flex; /* Gör denna container till en flexbox */
    box-sizing: border-box;
    flex-direction: row; /* Placera elementen vågrätt */
    justify-content: space-between; /* Sprid elementen jämnt över container-bredden */
    width: calc(100% - 10px);
    box-sizing: border-box;
    margin-bottom: 20px;
    margin: 20px 0;
    padding: 10px !important;
    flex-grow: 1;
    min-height: 100px; 
    border-radius: 20px !important;
    border: 2px solid rgba(105, 181, 50, 1) !important;
}
.flex-item-bloggtopp-bg {
    display: flex; /* Gör denna container till en flexbox */
    box-sizing: border-box;
    flex-direction: row; /* Placera elementen vågrätt */
    justify-content: space-between; /* Sprid elementen jämnt över container-bredden */
    width: calc(100% - 10px);
    box-sizing: border-box;
    margin-bottom: 20px;
    margin: 20px 0;
    padding: 10px !important;
    flex-grow: 1;
    min-height: 100px; 
    border-radius: 20px !important;
    border: 2px solid rgba(105, 181, 50, 1) !important;
    background: rgba(245, 245, 220, 0.8); 
}
.flex-item-bloggtopp-custom-bg {
    display: flex;
    flex-direction: column; /* Stapla allt i rader */
    box-sizing: border-box;
    width: calc(100% - 10px);
    margin: 20px 0;
    padding: 10px !important;
    flex-grow: 1;
    min-height: 100px; 
    border-radius: 20px !important;
    border: 2px solid rgba(105, 181, 50, 1) !important;
    background: rgba(245, 245, 220, 0.8); 
}
.flex-item1-custom {
        width: calc(25% - 10px);
        box-sizing: border-box;
        margin-bottom: 20px;
        margin: 20px 0;
        padding: 10px !important;
        flex-grow: 1;
        min-height: 250px;
        max-width: 25%;
        border-radius: 20px !important;
        border: 2px solid rgba(105, 181, 50, 1) !important;
        word-wrap: break-word;
    }
    .flex-item1-custom-bg {
        width: calc(25% - 10px);
        box-sizing: border-box;
        margin-bottom: 20px;
        margin: 20px 0;
        padding: 10px !important;
        flex-grow: 1;
        min-height: 250px;
        max-width: 25%;
        border-radius: 20px !important;
        border: 2px solid rgba(105, 181, 50, 1) !important;
        word-wrap: break-word;
        background: rgba(245, 245, 220, 0.8); 
    }

    .flex-item2-custom {
        width: calc(70% - 10px);
        box-sizing: border-box;
        margin-bottom: 20px;
        margin: 20px 0;
        padding: 10px !important;
        flex-grow: 1;
        flex: 0 0 auto;
        min-height: 250px;
        max-width: 70%;
        border-radius: 20px !important;
        border: 2px solid rgba(105, 181, 50, 1) !important;
        overflow-wrap: break-word;
        word-wrap: break-word;
    }
 .mobile-code {
  display: none;
  }
  

#overlay {
  position: fixed; /* Sit on top of the page content */
  display: none; /* Hidden by default */
  width: 100%; /* Full width (cover the whole page) */
  height: 100%; /* Full height (cover the whole page) */
  top: 0; 
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0,0,0,0.5); /* Black background with opacity */
  z-index: 2; /* Specify a stack order in case you're using a different order for other elements */
  cursor: pointer; /* Add a pointer on hover */
}
.custom-modal-dialog {
    max-width: 1100px; /* Ange önskad bredd här */
    width: 90%; /* Om du vill begränsa bredden relativt till förälderelementet */
}
#modalContent {
    background-color: #eeeeee; /* Anpassa färgen efter dina behov */
}

/* Formatera innehållet i modalen */
#modal-content p {
    margin-bottom: 1em;
}

.modal-title {
    font-weight: bold;
    font-size: 1.5em;
}

.modal-body {
    font-size: 1em;
    color: #333;
}
.modal a.close-modal[class*="icon-"] {
  top: -10px;
  right: -10px;
  width: 200px;
  height: 200px;
  color: #fff;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  text-indent: 0;
  background: #900;
  border: 2px solid #fff;
  -webkit-border-radius:  26px;
  -moz-border-radius:     26px;
  -o-border-radius:       26px;
  -ms-border-radius:      26px;
  -moz-box-shadow:    1px 1px 5px rgba(0,0,0,0.5);
  -webkit-box-shadow: 1px 1px 5px rgba(0,0,0,0.5);
  box-shadow:         1px 1px 5px rgba(0,0,0,0.5);
}
#settingsOptions {
    width: 150px; /* Bredd på dropdown-menyn */
    text-align: left; /* Länkar justeras till vänster */
}

#settingsOptions a {
    display: block;
    padding: 8px;
    color: #007bff; /* Standard länkfärg */
    text-decoration: none;
}

#settingsOptions a:hover {
    background-color: #f1f1f1; /* Bakgrundsfärg vid hover */
    text-decoration: underline;
}
/* sidans innehåll */
.centered-div {
            max-width: 100%;
            max-width: 80%; /* För att säkerställa att den inte blir bredare än flexboxen */
            text-align: center;
            padding: 30px;
        }
#emoji-picker {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.emoji {
    cursor: pointer;
    font-size: 20px;
    transition: transform 0.1s;
}

.emoji:hover {
    transform: scale(1.2); /* Gör att emojin växer lite när muspekaren är över */
}       
#content {
  float: left; 
  width: 950px; 
  min-height: 650px;
  margin: 0 0 0 20px; 
  padding: 0 10px 10px 10px; 
  border-radius: 20px;
  border: 1px solid rgba(105,181,50,1);
}
#content2 {
  float: left; 
  width: 850px; 
  margin: 0 0 0 20px; 
  padding: 0 10px 10px 10px; 
  border-radius: 20px;
  border: 0px solid rgba(105,181,50,1);
  }
#content3 {
  float: left; 
  width: 270px; 
  min-height:250px;
  margin: 0 0 0 20px; 
  float: center;
  padding: 0 10px 10px 10px; 
  border-radius: 20px;
  border: 2px solid rgba(105,181,50,1);
  img height: 70px;
}
#content4 {
  float: left; 
  width: 600px; 
  min-height:600px;
  max-height:600px;
  margin: 0 0 0 20px; 
  float: left;
  padding: 0 10px 10px 10px; 
  border-radius: 20px;
  border: 2px solid rgba(105,181,50,1);
  }
  #content5 {
  float: left; 
  width: 600px; 
  min-height:250px;
  margin: 0 0 0 20px; 
  float: right;
  padding: 0 10px 10px 10px; 
  border-radius: 20px;
  border: 2px solid rgba(105,181,50,1);
  padding-left: 3.5em;
  }
  #content6 {
  float: left; 
  width: 270px; 
  min-height:150px;
  margin: 0 0 0 20px; 
  float: center;
  padding: 0 10px 10px 10px; 
  border-radius: 20px;
  border: 2px solid rgba(105,181,50,1);
  img height: 70px;
}
 #content7 {
  float: left; 
  width: 575px; 
  min-height:50px;
  margin: 0 0 0 20px; 
  float: right;
  padding: 0 10px 10px 10px; 
  border-radius: 20px;
  border: 2px solid rgba(105,181,50,1);
  padding-left: 3.5em;
  }
   #content8 {
  float: left; 
  width: 890px; 
  min-height:25px;
  margin: 0 0 0 20px; 
  float: right;
  padding: 0 10px 10px 10px; 
  border-radius: 20px;
  border: 2px solid rgba(105,181,50,1);
  padding-left: 3.5em;
  }
  #knappar {
  float: left; 
  width: 950px; 
  margin: 0 0 0 20px; 
  padding: 0 0px 0px 0px; 
  border-radius: 20px;
  border: 1px solid rgba(105,181,50,1);

}
/* ====== KORTLISTA ====== */

.recent-users {
    width: 100%;
}

.user-card-link {
    text-decoration: none;
    color: inherit; /* Gör att texten följer ditt tema */
}

.user-card {
    padding: 8px;
    border-radius: 6px;
    margin-bottom: 6px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.08);
    transition: transform 0.1s ease, box-shadow 0.1s ease;
    display: flex;
    align-items: center;
}

.user-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 6px rgba(0,0,0,0.15);
}

/* Varannan rad – justera färgerna efter dina blogginlägg */
.bg-green-1 {
    background: #D8E3BF; /* ljusgrön */
}

.bg-green-2 {
    background: #B7E499; /* mörkare grön */
}

/* ====== AVATAR ====== */

.user-avatar{
    width:35px;
    height:35px;
    object-fit:cover;
    border-radius:50%;
    margin-right:12px;
}

.avatar-square{
    width:35px;
    height:35px;
    border-radius:0;
    margin-right:12px;
}
/* ====== TEXTBLOCK ====== */

.user-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.2;
}

.user-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.user-date {
    font-size: 0.8rem;
    color: #444;
}

/* ====== STATUS-CHIP (ONLINE / OFFLINE) ====== */

.status-chip {
    height: 18px;               /* Fixerad höjd = stabil layout */
    display: inline-flex;
    align-items: center;
    padding: 0 6px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 4px;
}

/* Online-varianten */
.status-chip.online {
    background-color: #F1F3D7;  /* ljusgrön bakgrund */
    color: #28a745;             /* grön text */
    border: 0px solid #28a745;
}

.status-chip.online .dot {
    width: 7px;
    height: 7px;
    background: #28a745;
    border-radius: 50%;
    margin-right: 4px;
}

/* Offline placeholder – tar plats men syns inte */
.status-chip.placeholder {
    visibility: hidden;
}


  #wrapper{
    width: 95%;
    margin: 20px auto;
    border: 2px solid #dad7d7;
}
form{
    width: 50%;
    margin: 20px auto;
}
form div{
    margin-top: 5px;
}
.media-thumbnails {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-start; /* Viktigt för toppjustering */
}

.media-thumb {
  width: 100px;             /* Exempelstorlek – justera vid behov */
  height: 100px;
  overflow: hidden;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f0f0f0;
}

.media-thumb img,
.media-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}


.image-description {
  padding: 10px;
  text-align: center;
  font-size: 14px;
}

#img_div{
    width: 100px;
    padding: 5px;
    margin: 5px auto;
    border: 5px solid #rgba(105,181,50,1);
}
#img_div:after{
    content: "";
    display: block;
    clear: both;

}
div.gallery {
  margin: 5px;
  border: 1px solid #rgba(105,181,50,1);
  float: left;
  width: 200px;
}

div.gallery:hover {
  border: 1px solid #777;
}

div.gallery img {
  width: 100%;
  height: auto;
}

div.desc {
  padding: 15px;
  text-align: center;
}
.form-control {
    height: 45px; /* Öka höjden efter behov */
    line-height: normal; /* Se till att texten visas korrekt i höjd */
    padding: 5px 10px; /* Justera padding för att centrera texten */
}
.react_form input[type="text"] {
  width: 100%;
  padding: 12px 20px;
  margin: 8px 0;
  box-sizing: border-box;
  border: 2px solid #ccc;
  border-radius: 4px;
}

.react_form_radio input[type="radio"] {
  width: 10px;
  height: 10px;
}
form {
  
}
.container.mt-4 {
    position: relative;
    z-index: 10;
}

.container.mt-4 .form-control,
.container.mt-4 select {
    max-width: 100%;
    box-sizing: border-box;
}
.container.mt-4 {
    padding-left: 0 !important;
    padding-right: 0 !important;
}
.comment-list,
.replies-list {
    list-style-type: none; /* Tar bort punkterna */
    padding-left: 0;       /* Tar bort indraget */
    margin: 0;             /* Valfritt, nollställer marginal */
}

input[type=button], input[type=submit], input[type=reset] {
 background-color: rgba(105, 181, 50, 1);
  color: white;
  text-decoration: none;
  padding: 5px 10px;
  border: none;
  border-radius: 5px;
  cursor: pointer;

  min-width: 10px;
  max-width: 200px;
}
.form-check-input-sm {
  font-size: 10px;
  font-size: 10px;
  width: 1em;
  height: 1em;
}
input[type="checkbox"].form-control {
    height: 20px;
    width: 20px;
    display: inline-block;
}
.tag-item {
    margin-bottom: 12px;
}

.tag-label {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 3px;
}

.tag-checkbox {
    width: 16px;
    height: 16px;
    transform: scale(0.8); /* gör rutan mindre */
    cursor: pointer;
}

.btn-secondary {
  background-color: rgba(105,181,50,1);
  color: rgba(255,255,255,100);
}
.btn-min {
  background-color: rgba(105, 181, 50, 1);
  color: white;
  text-decoration: none;
  padding: 5px 10px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}
.dropdown-item {
  background-color: rgba(105,181,50,1);
  color: rgba(255,255,255,100);
}
.dropdown-menu {
  background-color: rgba(105,181,50,1);
}
/* mini höjd för cell i tabell */
  tr.min-height {
    min-height: 250px;
  }
    .tab {
      display: inline-block;
      padding: 10px;
      border: 1px solid #ccc;
      cursor: pointer;
      background-color: #f1f1f1;
    }

    /* Stil för den markerade fliken */
    .active {
      background-color: #ccc;
    }
    .right-aligned-image {
    float: right;
}
table {
  border-collapse: collapse;
}

td {
  vertical-align: top;
}
  .centered-cell {
    height: 50px;
    text-align: right; /* Horisontell centrering */
    vertical-align: middle; /* Vertikal centrering */
  }
  .image-radio-container {
  display: flex;
  align-items: center;
}

.image-container {
  position: absolute; /* Placera den i förhållande till föräldern */
  top: 10px;
  display: inline-block;
  vertical-align: top;
  margin-right: 10px; 
  margin-top: 0px;
  right: 0; 
}
.reaction-counters {
    display: flex;
    align-items: center;
    margin-top: 10px;
}
.reaction-container {
  display: flex;
  align-items: center; /* Justera vertikalt i mitten */
  gap: 10px; /* Mellanrum mellan ikonen och siffran */
}

.reaction-container img {
  margin: 0; /* Ta bort eventuella marginaler från bilden */
}

.reaction-container h4 {
  margin: 0; /* Ta bort eventuella marginaler från siffran */
}
.reaction-icon {
    width: 20px;
    height: 20px;
    margin-right: 5px;
}

.reaction-count {
    margin-right: 15px;
    font-size: 16px;
}

.tooltip {
  display: none;  
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: black;
  color: white;
  padding: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  visibility: hidden;
  opacity: 0;
  transition: visibility 0s, opacity 0.5s;
  z-index: 1000;
}
.tooltip img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.tooltip h3 {
    margin: 10px 0 5px 0;
}

.tooltip p {
    margin: 0;
}

.image-container:hover .tooltip {
  visibility: visible;
  opacity: 1;
}
  .carousel-control-prev i,
  .carousel-control-next i {
    color: lightgreen; /* Ange önskad färg här */
  }
.video-container {
  position: relative;
  display: inline-block;
  gap: 10px; /* Mellanrum mellan bilder */
}
.carousel-item img {
    max-height: 80vh;
    object-fit: contain;
}
.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: none;
  border: none;
  color: #fff;
  font-size: 24px;
  z-index: 2;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.play-button:hover {
  opacity: 1;
}
.profilbild {
    border-radius: 20px; /* Justera värdet för att öka eller minska avrundningen */
    width: 150px; /* Ange bredden för din bild */
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
}
.profilbild_ny img {
    border-radius: 15px; /* Justera värdet för att öka eller minska avrundningen */
    width: 100px; /* Ange bredden för din bild */
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
    margin-top: 10px;
    }
    .teambild_ny {
    border-radius: 15px; /* Justera värdet för att öka eller minska avrundningen */
    width: 150px; /* Ange bredden för din bild */
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
    margin-top: 10px;
    }
.friend-icon img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    margin-top: 10px;
    margin-left: 10px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
    }
.profilbild_nagel {
    border-radius: 5px; /* Justera värdet för att öka eller minska avrundningen */
    width: 35px;              /* Bredd */
    height: 35px;             /* Samma höjd för att få en cirkel */
    border-radius: 50%;   /* Ange bredden för din bild */
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.5);
}
.profilbild_nagel_2 {
    border-radius: 3px; /* Justera värdet för att öka eller minska avrundningen */
    width: 15px; /* Ange bredden för din bild */
    box-shadow: 0px 0px 3px rgba(0, 0, 0, 0.5);
}
.teams_nagel {
    width: 35px;              /* Bredd */
    height: 35px;             /* Samma höjd för att få en cirkel */
    border-radius: 50%;       /* Rund form */
    object-fit: cover;        /* Gör så att bilden fyller cirkeln utan att bli utdragen */
    margin-right: 10px;       /* Avstånd till nästa bild */
    box-shadow: 0px 0px 3px rgba(0, 0, 0, 0.5);
}
.profilbild_ny_blogg img {
    border-radius: 15px; /* Justera värdet för att öka eller minska avrundningen */
    width: 100px; /* Ange bredden för din bild */
    height: 100px;
    border-radius: 50%;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
    margin-top: 10px;
    }
.team-icon {
    position: absolute;
    top: 0; /* Placera i toppen */
    right: 0; /* Placera till höger */
    width: 35px; /* Bredden för din ikon */
    height: 35px; /* Säkerställ proportioner */
    border-radius: 50%;
    margin-top: 10px;
    margin-right: 10px;
    box-shadow: 0px 0px 3px rgba(0, 0, 0, 0.5); /* Skugga för bättre synlighet */
}
 .centered-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.centered-content img {
    display: block !important;
    margin: 0 auto !important;
}
.album-header h3 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 24px;
    font-weight: bold;
}
/* Stil för galleriets container */
.gallery-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: left; /* Centrerar bilderna om det inte är exakt fyra i bredd */
    gap: 10px; /* Mellanrum mellan bilder */
}

/* Stil för varje bild och dess etikett */
.gallery-item {
    width: 200px; /* Fast bredd på 200px per bild */
    text-align: center;
    margin-bottom: 20px;
    box-sizing: border-box;
    border: 1px solid #69B532; /* Grön ram runt hela containern */
    border-radius: 15px; /* Rundade hörn för hela containern */
    padding: 10px; /* Lite padding inuti ramen */
    background-color: white; /* Vit bakgrund inuti ramen */
}

/* Stil för bilderna */
.gallery-image {
    width: 100%; /* Gör bilden fullbred inom dess container */
    height: auto;
    max-width: 200px; /* Maximal bredd på 200px */
    border-radius: 10px; /* Rundade hörn för själva bilden */
    transition: transform 0.3s ease;
}

/* Stil för etiketten under bilden */
.image-label {
    margin-top: 10px;
    font-size: 14px;
    color: #555;
    background-color: #F9F9F9; /* Bakgrundsfärg för texten */
    padding: 5px; /* Lite padding runt texten */
    border-radius: 5px; /* Rundade hörn på bakgrunden */
}

/* Effekter vid hover */

.gallery-image:hover {
    transform: scale(1.05); /* Skalar upp bilden lite vid hover */
}
.gallery-map-container {
    display: flex;
    flex-wrap: wrap; /* Tillåter rader om utrymmet inte räcker till */
    gap: 15px; /* Mellanrum mellan gallerierna */
}

.gallery-map-item, 
.gallery-name{
    text-align: center;
    margin-bottom: 10px;
    box-sizing: border-box;
    border: 1px solid #69B532; /* Grön ram runt hela containern */
    border-radius: 15px; /* Rundade hörn för hela containern */
    padding: 5px; /* Lite padding inuti ramen */
    background-color: white; /* Vit bakgrund inuti ramen */
    width: 125px; /* Justera bredden beroende på hur mycket innehåll du vill visa */
}
.image-wrapper-anslagstavlan {
    position: absolute;
    top: -25; /* Justera detta värde baserat på var du vill placera bilden vertikalt */
    right: 15px; /* Flyttar bilden 20 pixlar från högerkanten */
    width: 130px; /* Bredden på bilden */
    height: 75px; /* Höjden på bilden */
    overflow: hidden;
    border-radius: 15px; /* Rundade hörn på bilden */
}

.image-wrapper-anslagstavlan img {
    width: 100%; /* Anpassa bildens bredd till wrapperns bredd */
    height: 100%; /* Anpassa bildens höjd till wrapperns höjd */
    object-fit: cover; /* Se till att bilden fyller hela wrappern utan att förvrängas */
    border-radius: 15px; /* Rundade hörn på själva bilden */
}
#menuButton {
    cursor: pointer;
}
#menuOptions {
    display: none;
    position: absolute;
    background-color: #7ac643;
    color: #fff; 
    border: 1px solid #ccc;
    padding: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 10px; 
}
.guestbook-entries {
    width: 100%;
    margin: 20px 0;
}

.guestbook-entry {
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 5px;
}
.guestbook-entry img {
    max-height: 18px;
    width: auto;
    display: inline-block;
    vertical-align: middle; /* Ser till att bilden justeras snyggt med texten */
    transition: transform 0.3s ease;
}

.guestbook-entry img:hover {
    transform: scale(1.5);
}
.emoji-inline {
    display: inline-block;
    vertical-align: middle; /* Gör att bilden centreras bättre med texten */
    width: 32px; /* Justera storlek på emojis */
    height: 32px;
}
.guestbook-entry.even {
    background-color: rgba(143, 217, 107, 0.2);
}

.guestbook-entry.odd {
    background-color: rgba(143, 217, 107, 0.6);
}

.entry-header {
    display: flex;
    justify-content: space-between;
    font-weight: bold;
    margin-bottom: 10px;
}

.entry-author {
    text-align: left;
}

.entry-date {
    text-align: right;
    color: #777; /* Grå färg för datumet */
}

.entry-text {
    margin-top: 10px;
    font-size: 14px;
}
.image-text-wrapper {
    display: flex;
    flex-wrap: wrap;
    overflow: hidden; /* Helps with clearing floated elements */
}

.left-image {
    width: 150px; /* Set the desired width of the image */
    float: left; /* Allows the text to wrap around the image */
    margin-right: 15px; /* Adds space between the image and text */
    border-radius: 8px; /* Optional: rounded corners */
}

.text-content {
    overflow: hidden; /* Ensures the text wraps fully below the image if it goes beyond */
}
.hero-link {
    display: block;
    text-decoration: none;
    margin-bottom: 20px;
}

.hero {
    position: relative;
    overflow: hidden;
    text-align: center;
    border: 2px solid rgba(105, 181, 50, 1);
    border-radius: 20px;
    background: rgba(245, 245, 220, 0.8); 
}

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

.hero-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    font-size: 2rem;
    background: rgba(0, 0, 0, 0.5); /* Halvgenomskinlig bakgrund */
    padding: 10px 20px;
    border-radius: 5px;
}
/* Team-placeringstabell */
.history-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 12px;
    background: rgba(255,255,255,0.4);
    border-radius: 6px;
    overflow: hidden;
}

.history-table th {
    text-align: left;
    padding: 6px 8px;
    background: rgba(0,0,0,0.1);
    font-weight: 600;
    font-size: 14px;
}

.history-table td {
    padding: 6px 8px;
    font-size: 14px;
}

.history-table tr:nth-child(even) {
    background: rgba(255,255,255,0.3);
}

.history-table a {
    text-decoration: none;
    color: #000;
}

.placement-cell {
    width: 40px;
    text-align: center;
    font-weight: 600;
}


/* Team-länkar */
.team-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-between;
}

.team-item {
    width: 48%; /* Tar upp ungefär 50% av flexboxens bredd */
    border: 2px solid rgba(105, 181, 50, 1);
    border-radius: 20px;
    background: rgba(245, 245, 220, 0.8);
    text-align: center;
    padding: 10px;
}

.team-item a {
    display: flex;
    flex-direction: column-reverse; /* Lägger texten över bilden */
    align-items: center;
    text-decoration: none;
    color: black;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  max-width: 350px;
  text-align: center;
  padding: 16px;
  transition: transform 0.2s, box-shadow 0.2s
}

.team-image {
    max-width: 125px;
    border-radius: 10px;
}

.team-text {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 5px; /* Skapar lite utrymme mellan text och bild */
}
.icon-hover {
    transition: transform 0.3s ease; /* Mjuk animation för zoomen */
}

.icon-hover:hover {
    transform: scale(1.2); /* Förstorar ikonen med 20% */
}
.tox-tinymce {
    width: 100% !important; /* Tvingar 100% bredd */
    max-width: 100% !important;
}
.tox-editor-container {
    width: 100% !important;
}


/* Tävlingsuppdaterings kort */
.ended-tag {
    color: #999;
    font-size: 0.85em;
    font-style: italic;
    margin-left: 5px;
}

.list-card.ended {
    opacity: 0.7;
    border-left: 4px solid #ccc;
}

.list-card.active {
    border-left: 4px solid #4CAF50; /* grön kant för aktiva */
}
.competition-choice-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  margin-top: 40px;
}

.competition-card {
    width: 48%; /* Tar upp ungefär 50% av flexboxens bredd */
    border: 2px solid rgba(105, 181, 50, 1);
    border-radius: 20px;
    background: rgba(245, 245, 220, 0.8);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  max-width: 350px;
  text-align: center;
  padding: 16px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.competition-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.competition-card a {
  color: inherit;
  text-decoration: none;
}

.competition-image {
  width: 100%;
  max-width: 250px;
  border-radius: 20px;
  margin-bottom: 15px;
}

.competition-card h2 {
  color: #714c00;
  margin-bottom: 10px;
}

.competition-card p {
  color: #333;
  font-size: 16px;
  line-height: 1.5;
}


/* Tidslinjens huvudcontainer */
   .timeline {
    position: relative;
    width: 100%; /* Skapar indrag */
    margin: 20px auto;
    border: 1px solid #ccc;
    padding: 20px;
    min-height: 150px;
    border-radius: 20px;
    border: 2px solid rgba(105, 181, 50, 1);
    background: rgba(245, 245, 220, 0.8); 
    }   
/* Rubriken överst */
.timeline-header {
    text-align: center;
    font-weight: bold;
    margin-bottom: 20px;
    font-size: 18px;
}
.status-flag {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: bold;
    margin-left: 8px;
    color: #fff;
}

.status-ended {
    background-color: #ff9900; /* orange */
}

.status-cancelled {
    background-color: #cc0000; /* röd */
}
/* Månadslayouten */
.timeline-months {
    position: absolute;
    top: 45px; /* Placera ovanför den gröna linjen */
    left: 130px; /* Startposition för månaderna */
    width: calc(100% - 260px); /* Anpassar till tidslinjens längd */
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    text-align: center;
}

.timeline-months div {
    flex: 1;
    text-align: center;
    font-size: 14px;
}

/* Start- och slutmarkörer för tidslinjen */
.marker {
    position: absolute;
    width: 2px;
    height: 20px;
    background-color: green;
    top: 25px; /* Justera detta så det matchar linjens höjd */
}

.marker.start-marker {
    left: 130px; /* Samma startpunkt som den gröna linjen */
}

.marker.end-marker {
    right: 20px; /* Anpassa för slutet av den gröna linjen */
}

/* Datum för start och slut */
.marker-date {
    position: absolute;
    font-size: 12px;
    top: 10px;
}

.marker-date.start-date {
    left: 90px; /* Placera precis vid startlinjen */
}

.marker-date.end-date {
    right: 15px; /* Placera precis vid slutlinjen */
}

/* Sektion för teamrader */
.timeline-teams {
    margin-top: 10px;
}

/* Varje rad i tidslinjen */
.team-row {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    position: relative;
}

/* Namnet på teamet eller raden */
.team-name {
    width: 100px;
    font-weight: bold;
    text-align: left;
}

/* Själva tidslinjen för ett team */
.team-timeline {
    flex-grow: 1;
    position: relative;
    height: 10px; /* Tunn linje */
    background-color: green; /* Grön linje som tidslinje */
    margin-left: 10px;
    border-radius: 5px; /* Gör linjen lite rundad */
}

/* Markörer för planteringar eller skördar */
.team-timeline .plant-marker,
.team-timeline .harvest-marker {
    position: absolute;
    bottom: -5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #fff;
}

/* Markör för plantering */
.team-timeline .plant-marker {
    background-color: #D2B48C; /* Beige färg */
}

/* Markör för skörd */
.team-timeline .harvest-marker {
    background-color: #32CD32; /* Grön färg */
}
.timeline-legend {
    display: flex;
    justify-content: center; /* Centrera legenden */
    gap: 20px; /* Skapa avstånd mellan legend-punkterna */
    margin-bottom: 20px; /* Lägg lite avstånd ovanför tidslinjen */
}

.legend-item {
    display: flex;
    align-items: center; /* Centrera texten vertikalt med färgrutorna */
    gap: 8px; /* Skapa avstånd mellan färgrutan och texten */
    font-size: 12px; /* Matcha textstorlek med övrig design */
    color: #555; /* Textfärg som matchar designen */
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 50%; /* Gör rutorna runda */
    border: 1px solid #ddd; /* Lätt kant för tydlighet */
}

.plant-color {
    background-color: #D2B48C; /* Samma färg som plantering */
}

.harvest-color {
    background-color: #32CD32; /* Samma färg som skörd */
}

.message-box {
    text-align: center;
    padding: 15px;
    border-radius: 10px;
    margin: 10px auto;
    width: 80%;
    font-size: 16px;
    color: #000;
}

.green-box {
    padding: 15px;
    border-radius: 10px;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
}

.orange-box {
    padding: 15px;
    border-radius: 10px;
    background-color: #ffe5d4;
    border: 1px solid #f5c6cb;
}
.yellow-box {
    padding: 15px;
    border-radius: 10px;
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
}


.list-card {
    position: relative;
    width: 100%;
    background-color: #F9F9F9;
    padding: 10px; /* Minskad padding */
    margin: 5px 0; /* Minskad marginal */
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}
.card-link {
    position: absolute;
    inset: 0; /* samma som top/left/right/bottom = 0 */
    z-index: 1;
}
.list-header a {
    position: relative;
    z-index: 2;
}
.light-background {
    background-color: rgba(143, 217, 107, 0.2); /* Ljus bakgrund */
}

.dark-background {
    background-color: rgba(143, 217, 107, 0.6); /* Mörkare bakgrund */
}

.list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px; /* Minskad bottenmarginal */
}
.list-name-top-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center; /* viktig för att justera vertikal position */
}

.list-name-left-top,
.list-name-right-top {
    /* valfritt: */
    padding: 5px;
}

.list-name-left-top a {
    font-size: 1em;
    font-weight: bold;
    color: #555;
    text-decoration: none;
}
.list-name-right-top {
    display: flex;
    flex-direction: column; /* Staplar elementen istället för att ha dem i rad */
    align-items: center;
    font-weight: bold;
    font-size: 1em;
    color: #555;
    text-align: center;
    gap: 5px; /* Lägger lite mellanrum mellan datum och bilder */
}
.list-name-right-top p {
    margin: 0;
}
.list-name-right-top img {
    width: 20px; /* Justera bildstorlek om nödvändigt */
    height: 20px;
}
.list-name-right-top .table-container {
    display: flex;
    align-items: flex-start; /* Säkerställer att båda tabellerna börjar på samma höjd */
    gap: 10px; /* Mellanrum mellan tabellerna */
}

.tags-table {
    flex: none; /* Fixerar storleken */
    width: 175px; /* Justera bredden så att den håller sig på plats */
}

.date-type-table {
    flex: 1; /* Tillåter den att växa om den behöver */
}
.list-description {
    margin-top: 5px; /* Minskad marginal */
    background: rgba(245, 245, 220, 0.8);
    padding: 10px; /* Lägger till lite utrymme runt texten */
    border-radius: 5px; /* Ger en mjukare kant */
}
.list-description-2 {
    margin-top: 5px; /* Minskad marginal */
    background: rgba(245, 245, 220, 0.8);
    padding: 10px; /* Lägger till lite utrymme runt texten */
    border-radius: 5px; /* Ger en mjukare kant */
    min-height: 110px; /* Minsta höjd på 100px */
}
.list-right {
    margin-left: auto;
    display: flex; /* För att se till att den flexar innehållet */
}

.delete-icon {
    width: 50px;
    height: 50px;
}
.list-description p {
    font-size: 0.9em; /* Lite mindre textstorlek */
    color: #555;
    margin: 0; /* Säkerställer att det inte blir extra marginaler */
}

.list-link {
    text-decoration: none;
    color: inherit;
    display: block; /* Gör hela ytan klickbar */
}

.list-link:hover .list-description {
    background-color: rgba(230, 230, 200, 0.8); /* Lägger till en hover-effekt */
}
.active {
    color: rgba(105, 181, 50, 1); /* Ändra färg på aktiv länk */
    font-weight: bold; /* Gör den fet */
    text-decoration: underline; /* Understrykning för tydlighet */
    background-color: rgba(240, 240, 240, 1); /* Ljusgrå bakgrund */
    display: block; /* Gör att bakgrundsfärgen täcker hela ytan */
    padding: 5px; /* Lite extra padding för snyggare design */
    border-radius: 5px; /* Rundade hörn för en mjukare look */
}
.friend-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 kort på stor skärm */
    gap: 20px;
}

.friend-card {
    background-color: #f0f0f0;
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    box-shadow: 2px 2px 8px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.friend-card img.profile-pic {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 10px;
}

.friend-info {
    font-size: 0.9em;
    text-align: left;
    background: rgba(245, 245, 220, 0.8);
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 6px;
    height: 80px; /* Alla lika höga */
    overflow: hidden; /* Dölj eventuell för lång text */
}
.friend-info-2 {
    font-size: 0.9em;
    text-align: left;
    background: rgba(245, 245, 220, 0.8);
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 6px;
    overflow: hidden; /* Dölj eventuell för lång text */
}
.friend-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.light-background {
    background-color: rgba(143, 217, 107, 0.2);
}

.dark-background {
    background-color: rgba(143, 217, 107, 0.6);
}
.user-links {
  font-size: 0.85em;   /* gör texten lite mindre än standard */
  line-height: 1.4;    /* lite luftigare mellan raderna */
}

.user-links a {
  color: #333;
  text-decoration: none;
}

.user-links a:hover {
  text-decoration: underline;
}
/* Nya meddelande funktionen */
.chat-container {
  max-width: 100%;
  margin: 20px auto;
  border-radius: 15px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  overflow: hidden;
  border: 2px solid rgba(105, 181, 50, 1); 
  background: rgba(245, 245, 220, 0.8); 
}

/* ====== HEADER ====== */
.chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;

  border-bottom: 2px solid rgba(105, 181, 50, 1); /* endast nedersta linjen, 2px */

  padding: 12px 18px;
  border-radius: 10px 10px 0 0;
  flex-wrap: wrap;
  background: rgba(243, 243, 223, 0.8);
}


/* Ämne + startinfo */
.chat-topic {
  flex: 1;
  min-width: 220px;
}

.chat-subject-title {
  margin: 0;
  font-size: 1.3em;
  font-weight: 700;
  color: #333;
}

.chat-meta {
  margin: 3px 0 0;
  font-size: 0.85em;
  color: #777;
}

/* Deltagare till höger */
.chat-participants {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

.chat-user {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.chat-user.self-user .chat-avatar-small {
  opacity: 0.7;
  transform: scale(0.85);
  border-color: #bbb;
}

.chat-avatar-small {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  object-fit: cover;
  position: relative;
  border: 2px solid #ccc;
  box-shadow: 0 0 3px rgba(0,0,0,0.2);
}

.avatar-wrapper {
  position: relative;
  display: inline-block;
}

.online-dot,
.offline-dot {
  position: absolute;
  bottom: 2px;
  right: 3px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid white;
}

.online-dot {
  background-color: #2ecc71;
}

.offline-dot {
  background-color: #bbb;
}

.chat-name {
  font-size: 0.8em;
  margin-top: 3px;
  color: #333;
}

/* ====== BODY ====== */
.chat-body {
  width: 100%;
  flex: 1;
  padding: 15px;
  background: rgba(243, 243, 223, 0.8)
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Rader för varje meddelande */
.message-row {
  width: 100%;
  display: flex;
  align-items: flex-end;
}

/* Mottagna meddelanden - vänster */
.received-row {
  align-self: flex-start;
  justify-content: flex-start;
  flex-direction: row;
  text-align: left;
}

/* Egna meddelanden - höger */
.sent-row {
  align-self: flex-end;
  justify-content: flex-end;
  flex-direction: row;
  text-align: right;
}

/* Bubblor */
.message {
  display: flex;
  flex-direction: column;
  max-width: 75%;
}

.bubble {
  border-radius: 15px;
  padding: 10px 15px;
  display: inline-block;
  word-wrap: break-word;
}

/* Själva bubblorna */
.message.sent {
  align-items: flex-end;
}

.message.received {
  align-items: flex-start;
}

/* Dina egna bubblor */
/* Mina bubblor */
.message.sent .bubble {
    background: #B8E29A;
    color: #2f2f2f; /* mörkgrå istället för vit */
    border-radius: 18px 18px 0 18px;
    text-align: left;
    border: 1px solid rgba(105, 181, 50, 1);
}
.message.sent .bubble button:disabled {
    background: #dfe8d8;
    color: #5f6f5a;
    border: 1px solid rgba(105, 181, 50, 0.4);
    cursor: not-allowed;
}

/* Andras bubblor */
.message.received .bubble {
    background: #DEEAC4;
    color: #000000;
    border-radius: 18px 18px 18px 0;
    border: 1px solid rgba(105, 181, 50, 1);
}

/* Tidsstämpel */
.message-time {
  font-size: 11px;
  color: gray;
  margin-top: 3px;
}

.message.sent .message-time {
  text-align: right;
}

.message.received .message-time {
  text-align: left;
}

/* Avatarerna bredvid bubblorna */
.chat-bubble-avatar {
  align-self: flex-end;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: 0 0 3px rgba(0,0,0,0.15);
}

.received-row .chat-bubble-avatar {
  margin-right: 8px;
}

.sent-row .chat-bubble-avatar {
  margin-left: 8px;
}
.disabled-btn,
button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}
/* ====== FOOTER ====== */
.chat-footer {
  padding: 10px;
  border-top: 1px solid #ccc;
  background: #f5f5f5;
  border-top: 1px solid #ddd;
  display: flex;
  align-items: center;
}
.disabled-footer {
  text-align: center;
  color: #888;
  font-style: italic;
  background: #f3f3f3;
  padding: 10px;
}
.chat-input {
  flex: 1;
  resize: none;
  border-radius: 20px;
  padding: 8px 15px;
  border: 1px solid #ccc;
  outline: none;
}

.send-btn {
  background: #007bff;
  color: white;
  border: none;
  border-radius: 50%;
  width: 60px;
  height: 35px;
  margin-left: 10px;
  cursor: pointer;
}

.send-btn:hover {
  background: #0056b3;
}
.chat-back-btn {
  margin: 15px 0;
  text-align: center;
}
.back-button {
  background-color: rgba(105,181,50,1);
  color: rgba(255,255,255,100);
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.back-button:hover {
  background-color: #ccc;
}
.pulse {
  animation: pulse 1.5s infinite;
  transform-origin: center;
}

@keyframes pulse {
  0% { transform: scale(1); filter: brightness(1); }
  50% { transform: scale(1.15); filter: brightness(1.5); }
  100% { transform: scale(1); filter: brightness(1); }
}

/* Nya meddelande funktionen slut */
/* Cloudflare rutan */
.turnstile-wrapper {
    transform: scale(0.85);
    transform-origin: top left;
    width: 100%;
    display: flex;
    justify-content: flex-start;
    margin: 10px 0;
}

.cf-turnstile {
    max-width: 100% !important;
    transform: scale(1);
}
/* Cloudflare rutan slut */

.image-description {
  padding: 10px;
  text-align: center;
}

/* =========================
   SVG-ikoner
   ========================= */

/* Grundstil för ikonens path */
.comment-btn .reply-icon path,
.reply-btn .reply-icon path {
    fill: white;
    stroke: none;
}

/* Ikonens storlek och placering */
.comment-btn .reply-icon,
.reply-btn .reply-icon {
    width: 16px;
    height: 16px;
    vertical-align: middle;
    margin-right: 4px;
}

/* Hover-effekt */
.comment-btn:hover .reply-icon path,
.reply-btn:hover .reply-icon path {
    fill: #333333;
}
/* Play-knapp på videor */
.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.play-icon path {
    fill: #69B532; /* grön färg */
}

.play-button:hover .play-icon path {
    fill: #333333; /* hover-effekt */
}

/* Nästa/Föregående-pilar */
.arrow-left path,
.arrow-right path {
    fill: #69B532; /* grön färg */
}

.arrow-left:hover path,
.arrow-right:hover path {
    fill: #333333; /* hover-effekt */
}

.arrow-left, .arrow-right {
    width: 48px;
    height: 48px;
}
/* overlay meddelanden ruta */
#overlay-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
}

.overlay-box {
    padding: 20px 30px;
    border-radius: 12px;
    font-size: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);

    background: rgba(105, 181, 50, 1);
    color: #ffffff;

    max-width: 1000px;
    width: 100%;
    margin: 0 auto;

    /* Lägg till detta */
    opacity: 1;
    transition: opacity 0.8s ease;
}

.overlay-box.fade-out {
    opacity: 0;
}

.overlay-box.error {
    background: #f39c12;
}
body * {
    transform: none !important;
}


/* Dagbok  */
.month-carousel {
    display: none;
}
.container {
    display: flex;
    gap: 20px;
}

.sidebar {
    width: 300px;
}

.content {
    min-height: 350px;
    flex: 1;
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}


/* ==========================
   ENTRY LIST (SIDEBAR)
========================== */
.entry-card {
    display: flex;
    gap: 10px;
    padding: 10px;
    max-height: 80px;
    text-decoration: none;
    border-radius: 10px;
    background: #f5f5f5;
    margin-bottom: 10px;
    transition: all 0.2s ease;
}

.entry-card:hover {
    background: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.12);
}

.entry-card.active {
    background: #ffffff;
    border-left: 4px solid #7AC643;
    border-bottom: 4px solid #7AC643;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}

.entry-card.active h4 {
    color: #018001;
}


/* ==========================
   DATE BOX (SHARED)
========================== */
.date-box {
    width: 60px;
    text-align: center;
    background: #F9F9F9;
    border-radius: 8px;
    padding: 5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.date-box .month {
    font-size: 12px;
    display: block;
}

.date-box .day {
    font-size: 20px;
    font-weight: bold;
}


/* ==========================
   DIARY VIEW (HÖGER)
========================== */
.diary-view {
    background: #f8fdf6;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.diary-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.date-box.large {
    min-width: 70px;
    background: #e6f5e1;
    border-radius: 12px;
    padding: 10px;
}

.date-box.large .month {
    font-size: 12px;
    color: #4caf50;
}

.date-box.large .day {
    font-size: 20px;
    font-weight: bold;
}

.diary-title h2 {
    margin: 0;
    font-size: 24px;
}

.diary-body {
    background: #ffffff;
    border-radius: 12px;
    padding: 15px;
    line-height: 1.7;
    font-size: 15px;
    margin-bottom: 10px;
}

.diary-footer {
    font-size: 12px;
    color: #777;
    text-align: right;
}


/* ==========================
   NAVIGATION (ÅR + MÅNAD)
========================== */
.year-month-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    margin-bottom: 20px;
}

.year-carousel {
    display: flex;
    align-items: center;
    gap: 10px;
}

.year-indicator {
    padding: 6px 14px;
    background: #008001;
    border-radius: 20px;
    font-weight: bold;
    font-size: 16px;
    color: #fff;
}

.year-nav {
    padding: 6px 12px;
    background: #E1EFC6;
    border-radius: 20px;
    text-decoration: none;
    color: #000;
    font-weight: bold;
    transition: all 0.2s;
}

.year-nav:hover {
    background: #d3e8b4;
    transform: translateY(-2px);
}

.year-nav.disabled {
    opacity: 0.3;
    pointer-events: none;
}


/* ==========================
   MONTHS
========================== */
.month-grid {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.month {
    padding: 4px 10px;
    background: #B7E599;
    border-radius: 16px;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s;
}

.month:hover {
    background: #a5db85;
}

.month.active {
    padding: 6px 14px;
    background: #008001;
    color: #fff !important;
    font-weight: bold;
    border-radius: 20px;
}


/* Dagbok slut */

/* Gör hela editorn större */
.tox-tinymce {
    min-height: 350px !important;
}

/* Gör själva skrivytan större */
.tox-edit-area iframe {
    min-height: 300px
}
.tox-tinymce {
    margin-bottom: 1rem;
}
.league-row {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    border-radius: 4px;
    margin-bottom: 4px;
    cursor: pointer;
}
/* ==========================
   lig väljare
========================== */
/* Wrapper som bryter ut från Bootstrap-kolumner */
.league-wrapper {
    width: 100% !important;
    max-width: none !important;
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* En rad i listan */
.league-row {
    display: flex !important;
    flex-direction: column !important;   /* checkbox över text */
    align-items: flex-start !important;  /* vänsterställt */
    width: 100% !important;
    padding: 14px 16px;
    font-size: 1.2rem;
    border-radius: 4px;
    margin-bottom: 6px;
    cursor: pointer;
    box-sizing: border-box;
}

/* Varannan rad */
.league-row:nth-of-type(odd) {
    background-color: #d8f3dc;
}

.league-row:nth-of-type(even) {
    background-color: #b7e4c7;
}

/* Neutralisera Bootstrap 4:s form-check layout */
.league-row.form-check {
    padding-left: 5 !important;
    position: static !important;
}

/* Checkboxen (Bootstrap 4 liten) */
.league-row .form-check-input {
    position: static !important;   /* stoppa bootstrap från att flytta den */
    margin: 0 0 8px 0 !important;  /* avstånd under checkboxen */
    width: 16px !important;        /* liten checkbox */
    height: 16px !important;
    cursor: pointer;
}

/* Texten under checkboxen */
.league-row .form-check-label {
    font-size: 12px;
    display: block;
    width: 100%;
    text-align: left;
    line-height: 1.4;
}
/* CHIP / BADGE */
.league-status {
    width: 100%;  
    display: block; 
    font-size: 10px;
    padding: 4px 10px;
    border-radius: 20px;
    white-space: nowrap;
    font-weight: 600;
}

/* Färger */
/* Dags att börja */
.status-empty {
    background: #F7E8A4;
    color: #6A5A00;
}

/* Påbörjad */
.status-started {
    background: #F4C46A;
    color: #5C4200;
}

/* Klar */
.status-done {
    background: #A4D97A;
    color: #1F4D1A;
}
/* Tvingar dropdown-menyn att gömma sig helt om den inte har klassen .show */
.btn-group .dropdown-menu:not(.show) {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

/* Tillåter menyn att visas ENBART när den har klassen .show */
.btn-group .dropdown-menu.show {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

   .friend-modal-body {
    padding: 35px 25px !important;
  }

  /* Centrerar raden med de två korten mitt i modalen */
  .friend-cards-row {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 20px !important;
    margin: 20px 0 30px 0 !important;
    width: 100% !important;
  }

  .friend-selectable-card {
    cursor: pointer !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    user-select: none;
  }

  /* Göm radioknappen helt */
  .friend-selectable-card input[type="radio"] {
    position: absolute !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
  }

  /* Själva kortet - Tvingar innehållet att staplas centrerat */
  .friend-card-inner {
    width: 145px !important;
    height: 145px !important;
    background: #ffffff !important;
    border: 2px solid #eaeaea !important;
    border-radius: 20px !important;
    
    /* Flexbox som tvingar blocken under varandra */
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    
    padding: 10px !important;
    transition: all 0.2s ease-in-out !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03) !important;
    position: relative !important; /* Återställer om global CSS satt något annat */
  }

  /* Behållare för enbart ikonen (Nollställer globala positioneringsfel) */
  .friend-icon-box {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 65px !important;
    height: 65px !important;
    margin-bottom: 8px !important;
    position: relative !important;
    top: 0 !important;
    left: 0 !important;
  }

  /* Bilden inuti kortet */
  .friend-icon-box img {
    width: 60px !important;
    height: 60px !important;
    object-fit: contain !important;
    display: block !important;
    position: relative !important; /* Tvingar bort eventuell "position: absolute" från din globala CSS */
    margin: 0 auto !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    border-radius: 0 !important; /* Tar bort rundning om global CSS tvingar det */
    box-shadow: none !important;
  }

  /* Behållare för texten */
  .friend-card-title {
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    color: #444 !important;
    text-align: center !important;
    line-height: 1.3 !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    position: relative !important;
  }

  /* Hover-effekt */
  .friend-selectable-card:hover .friend-card-inner {
    border-color: #ccc !important;
    background: #fbfbfb !important;
    transform: translateY(-2px) !important;
  }

  /* Aktivt val (Klickat kort) */
  .friend-selectable-card input[type="radio"]:checked + .friend-card-inner {
    border-color: #007bff !important;
    background: #ffffff !important;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.15) !important;
  }

  .friend-selectable-card input[type="radio"]:checked + .friend-card-inner .friend-card-title {
    color: #007bff !important;
    font-weight: 700 !important;
  }

  /* Grön submitknapp */
  .friend-btn-submit {
    background-color: #76b843 !important;
    color: white !important;
    padding: 12px 0 !important;
    border-radius: 10px !important;
    font-weight: bold !important;
    font-size: 1.1rem !important;
    border: none !important;
    width: 220px !important;
    transition: background 0.2s !important;
    display: inline-block !important;
  }

  .friend-btn-submit:hover {
    background-color: #65a137 !important;
    color: white !important;
  }

@media screen and (max-width: 600px) {
   .wrap, {
    width: 100vw; /* Använd viewport bredd */
}
   .logo img {
      display: none; /* Dölj bilden när skärmbredden är 600px eller mindre */
    }
    .quote {
    display: none;
  }
    .image-wrapper-anslagstavlan, 
    .timeline-months {
        display: none;
    }
    .user-section {
        min-width: 150px;
        max-width: 150px;
        float: none; /* Tar bort float för mindre skärmar */
        text-align: right; /* Justera texten till höger för mindre skärmar */
    }
    .desktop-menu {
    display: none;
     }
  .menu-toggle {
    display: block;
    min-width: 100%;
    background-color: #fff;
    padding:  5px;
    border-right: 1px solid #7ac643;
    border-left: 1px solid #7ac643;
    border-bottom: 1px solid #7ac643;
    border-radius:  0 0 10px 10px;
  }

  .mobile-menu {
    display: block;
  }
   .mobile-menu {
        display: none; /* Uppdaterad: Göm mobila menyn vid sidladdning */
        padding: 10px; /* Uppdaterad: Lägg till lite kudde för bättre utseende */
      }

    .mobile-menu a {
        text-align: left; 
        font-weight: bold; /* Uppdaterad: Fet stil för texten */
        color: #818ba3; /* Uppdaterad: Färg för texten */
        text-decoration: none;
      }
      .mobile-menu li {
         text-align: left;
        list-style: none; /* Uppdaterad: Ta bort liststil från undermenyn */
        padding-left: 5px; /* Uppdaterad: Anpassa indrag för underpunkter */
      }
    .mobile-menu ul {
        list-style: none; /* Uppdaterad: Ta bort liststil från undermenyn */
        padding-left: 20px; /* Uppdaterad: Anpassa indrag för underpunkter */
      }
      .desktop-code {
      display: none;
    }
    .mobile-code {
      display: block;
    }
    .dropdown-menu {
    position: absolute; 
    display: block;
    background-color: white;
    border: 1px solid #ccc;
    padding: 10px;
}
   .content-container-wrapper {
    min-width: 100vw;
    padding: 10px; /* Lägg till padding */
    margin: 0; /* Se till att det inte finns någon extra marginal */
}
    .flex-container, .flex-right-container {
        min-width: 100%;
        flex-direction: column;
        align-items: left; 
        text-align: left;
    }
     .flex-container2 {
    flex-direction: column; /* Stack items vertically */
  }
   .left-column {
       display: flex;
       flex-direction: column; /* Vertikal layout för små skärmar */
       width: 100%;
   }

       .flex-item1,
       .flex-item1-bg,
       .flex-item1-no-border,
       .flex-item2,
       .flex-item2-bg,
       .flex-item3,
       .flex-item4,
       .flex-item4-bg,
       .flex-item8,
       .flex-item8-bg,
       .flex-right-container, 
       .flex-item-bloggtopp
       {
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    max-height: 100%; /* Låt dem anpassa sig till tillgängliga höjden */
    min-height: 0%;
    margin-right: 0;
    order: 1;
}
      .flex-item5, 
      .flex-item6, 
      .flex-item7,
      .flex-item1-custom-bg,
      .flex-item-login,
      .timeline {
        width: calc(100% - 10px); /* Ändra bredden till 100% på mindre skärmar */
        min-width: 100%;
        max-width: 100%;
        order: 0;
    }
       .flex-item1-custom {
        order: 1; /* ändrar ordningen */
    }

    .flex-item2-custom {
        order: 2; /* ändrar ordningen */
    }
    .flex-item1-custom,
    .flex-item2-custom {
         width: 100%;
         max-width: none;
          max-height: 100%;
          min-height: 0%;
          margin-right: 0;
    }
     .flex-item-ikoner {
        display: flex;
        flex-direction: row; /* Gör ikonerna till en horisontell rad */
        justify-content: center; /* Centrera ikonerna horisontellt */
        gap: 10px; /* Avstånd mellan ikonerna */
        flex-wrap: nowrap; /* Förhindra ombrytning till flera rader */
       
    }
    .flex-item-profilbild, .flex-item-profilnamn {
        display: flex;
        align-items: center;
        justify-content: flex-start;
    }
        .flex-item-ikoner {
        order: 3;
        width: 98%;
        display: flex;
        justify-content: space-around;
        margin-top: auto;
        flex-wrap: nowrap;
    }
    .flex-item-ikoner img {
    max-width: 30px; /* Justera bredden på ikonerna om nödvändigt */
    height: auto;
    }
    .profil-ikon-wrapper {
    text-align: center;
    }
     .profil-ikon-wrapper h5 {
        font-size: 12px;
        margin: 2px 0; /* valfri – minskar luft */
    }
    .flex-item-porfilgallery {
    width: 100%;
    margin-right: 0;
    }

    .gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); /* Dynamisk kolumnbredd */
    gap: 10px; /* Mellanrum mellan bilder */
    }

        .team-item {
        flex: 1 1 100%;
    }

    .team-image {
        max-width: 150px;
    }

    .hero-text {
        font-size: 1.5rem;
    }
    .flex-item-maile {
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    max-height: 100%; 
    min-height: 0%;
    margin-right: 0;
    background-color: white; /* Sätter bakgrundsfärgen till vit */
    border: 1px solid #69B532; /* Grön ram runt hela containern */
    border-radius: 15px; /* Rundade hörn för hela containern */
    padding: 5px; /* Lite padding inuti ramen */
    }
    .blogg-banner-title,
    .blogg-title {
        min-width: 45vw;
        max-width: 65vw;
    }
    .gallery-item {
        width: 100px; /* Ännu mindre bildcontainer för små skärmar */
        padding: 5px;
    }

    .gallery-image {
        max-width: 100px; /* Mindre bildstorlek */
    }

    .image-label {
        font-size: 10px; /* Mindre textstorlek */
        padding: 2px;
    }
     .friend-grid {
        grid-template-columns: repeat(2, 1fr);
    }
      .user-links {
    font-size: 0.75em;
  }
    .competition-choice-container {
         flex-direction: column;
        align-items: center;
    }
    .competition-card {
        width: 90%;
  }
  .turnstile-wrapper {
    transform: scale(0.75);
    padding: 0 5px;
  }
    .flex-item-porfiltopp-bg,
    .flex-item-porfiltopp {
        width: 100%;
        min-width: 95%;
        max-width: 98%;
        margin-right: 10;
        order: 1;
        position: relative;
    }
    /* Flytta ALLT (online + namn + kugghjul) till höger */
    .profil-info {
        position: absolute;
        top: 5px;
        right: 10px;
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        text-align: right;
        margin: 0 !important;
         z-index: 10;
    }
    /* Justera textstorlekar */
    .profil-info h2 {
        font-size: 20px !important;
        margin: 0;
        line-height: 1.2;
    }
    .profil-info div {
        font-size: 12px !important;
    }
    /* Kugghjulet i hörnet */
    #settingsIcon img {
        width: 22px !important;
        height: 22px !important;
    }
    .profilbild_ny_blogg img {
        width: 50px; 
        height: 50px; 
        object-fit: cover;
        position: absolute;
        margin-right: 8px;
        margin-top: 8px;
        top: 0;
        right: 0;
    }
    .blogg-banner-title h2 {
        font-size: 20px !important;
        margin: 1;
        font-size: 1.2rem;
     }   
     .blogg-title h2 {
        font-size: 20px !important;
        margin: 1;
        font-size: 1.2rem;
     }   
    .team-icon {
    width: 25px; /* Bredden för din ikon */
    height: 25px; /* Säkerställ proportioner */
    } 
  .profilbild_ny img {
        width: 50px; 
        height: 50px; 
        border-radius: 50%;
        object-fit: cover;
        position: absolute;
        margin-left: 8px;
        margin-top: 8px;
        top: 0;
        left: 0;
    }
    .flex-item-profilnamn {
        margin-left: 10px !important;
    }
    .flex-item-profilnamn h2 {
        font-size: 1.2rem;
    }
    .friend-icon img {
        width: 25px;
        height: 25px;
        border-radius: 50%;
        position: absolute;
        top: 0;
        left: 0;
        margin-top: 5px;
        margin-left: 5px;
        z-index: 10;
    }
  /* Dölj radio-knappen helt */
.option-card input[type="radio"] {
    display: none;
}

/* Gör hela kortet klickbart och snyggt */
.option-card {
    cursor: pointer;
    transition: 0.2s ease;
    border: 2px solid transparent;
}

/* Hover-effekt */
.option-card:hover {
    background-color: #f8f9fa;
    transform: scale(1.02);
}

/* När radio är valt */
.option-card input[type="radio"]:checked ~ img,
.option-card input[type="radio"]:checked ~ small {
    filter: brightness(1.1);
}

.option-card input[type="radio"]:checked ~ img {
    border: 2px solid #0d6efd;
    border-radius: 8px;
}

/* Markera hela kortet när valt */
.option-card input[type="radio"]:checked {
    /* Detta triggar parent highlight via :has() om browser stödjer det */
}

.option-card:has(input[type="radio"]:checked) {
    border-color: #0d6efd;
    background-color: #e7f1ff;
}
    .flex-item2-meddelande { 
        order: -1 !important;
        width: 100%;
        flex: 1 1 100%;
    }
    .meny_meddelande {
        max-width: 100%;
        flex: 1 1 100%;
        order: 3;
    }
    .meddelande-meny-lista {
        display: flex;
        flex-direction: row;
        justify-content: space-around;
    }

    .meddelande-meny-lista span {
        display: none;
    }

    .readmail-icon {
        display: none;
    }
    .dina-konversationer h3 { 
        font-size: 16px; 
    }
    .tox-tinymce {
            min-height: 400px !important;
    }
    .tox-edit-area iframe {
            min-height: 350px !important;
    }
    /* dagbok */
        /* Byt layout */
    .container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        order: 2;
    }

    .content {
        order: 1;
    }

    /* VISA mobil månad */
 .month-grid {
        display: none;
    }

.month-carousel {
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap; /* så den inte bryts */
}

.month-track-wrapper {
    overflow: hidden;
    flex: 1;
}

.month-track {
    display: flex;
    transition: transform 0.3s ease;
}
.month {
    padding: 6px 14px;
    background: #008001;
    border-radius: 20px;
    font-weight: bold;
    font-size: 16px;
    color: #fff;
}

.month.active {
    font-weight: bold;
    color: #007bff;
}

.month-arrow {
    padding: 6px 12px;
    background: #E1EFC6;
    border-radius: 20px;
    text-decoration: none;
    color: #000;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
}

.month-arrow:hover {
    background: #d3e8b4;
    transform: translateY(-2px);

    /* Entry cards bättre på mobil */
    .entry-card {
        max-height: none;
        padding: 12px;
    }

    .entry-info h4 {
        font-size: 16px;
    }

    .entry-info p {
        font-size: 14px;
    }

    /* Form */
    input,
    textarea,
    button {
        width: 100%;
        font-size: 16px;
    }

    button {
        padding: 12px;
    }
}

