body {
    margin-top: 50px; /* Adjusted for top spacing */
    background-color: #3d2c3c;
    font-family: 'Poppins', sans-serif;
    color: #e0aabb;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: auto;
    flex-direction: column;
    width: auto;
    overflow: auto;
}

/* Add margin to lunch-list for Firefox spacing issue */
#lunch-list, .schedules-container {
    margin-top: 60px;
    width: 90%;
    max-width: 900px;
    background: linear-gradient(135deg, #5a3b4b, #402a36); /* Gradient background */
    padding: 20px; /* Padding for spacing */
    border-radius: 12px; /* Rounded corners */
    box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.5); /* Shadow for depth */
    color: #f5d7e3;
}

#lunch-list h2, .schedules-container h1 {
    text-align: center;
    color: #f5d7e3;
    margin-bottom: 20px;
}

/* Stilen för morgondagens lunch */
#tomorrow-lunch {
    background: linear-gradient(135deg, #5a3b4b); /* Gradient bakgrund */
    padding: 20px;
    border-radius: 12px; /* Rundade hörn */
    margin-top: 30px;
    max-width: 80%; /* Begränsar bredden */
    margin-left: auto;
    margin-right: auto;
    background-color: #5a3b4b;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    text-align: center;
    color: #E3B77D; /* Ljus textfärg */
}

/* Rubriken för morgondagens lunch */
#tomorrow-lunch h3 {
    font-size: 24px;
    font-weight: bold;
    color: #e0aabb; /* Ljusare färg för rubriken */
    margin-bottom: 20px;
}

/* Lista för morgondagens lunchrätter */
#tomorrow-lunch ul {
    list-style: none; /* Tar bort standardpunkterna */
    padding: 0;
    margin: 0;
}

/* För varje lunchrätt */
#tomorrow-lunch ul li {
    background-color: #6d435a; /* Samma bakgrund som för övriga sektioner */
    border-radius: 8px;
    padding: 12px;
    margin: 10px 0;
    text-align: left;
    font-size: 18px;
}

/* Felmeddelande om ingen lunch finns för morgondagen */
#tomorrow-lunch .error {
    color: #ff6f6f; /* Röd färg för felmeddelanden */
    font-size: 18px;
    font-weight: bold;
    margin-top: 20px;
    text-align: center;
}

/* Unified table styling */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background-color: #4e2c3b;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    border-radius: 12px;  /* Rounded corners */
    overflow: hidden;
}

/* För th och td utan border men med rundade hörn på specifika hörn */
th, td {
    padding: 10px 15px;
    text-align: left;
    color: #f5d7e3;
    border-radius: 0; /* Ta bort border-radius för alla celler */
}

/* Specifikt för den första och sista cellen i th */
th:first-child {
    border-top-left-radius: 8px; /* Runda top-left */
}

th:last-child {
    border-top-right-radius: 8px; /* Runda top-right */
}

/* Specifikt för den första och sista cellen i td */
td:first-child {
    border-bottom-left-radius: 8px; /* Runda bottom-left */
}

td:last-child {
    border-bottom-right-radius: 8px; /* Runda bottom-right */
}

th {
    background-color: #6d435a;
    font-weight: bold;
    color: #ffffff;
}

tr:nth-child(even) {
    background-color: #5a3b4b;
}

tr:hover {
    background-color: #8c4256;
    transform: scale(1.02); /* Add a slight zoom effect on hover */
    transition: transform 0.3s ease;
}

/* Special row background colors */
.green-background {
    background-color: #3e5c3a !important;
}

.blue-background {
    background-color: #2c4f6d !important;
}

.grey-background {
    background-color: #555555 !important;
}

/* .menu styling */
.menu {
    margin-top: 50px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: linear-gradient(135deg, #5a3b4b, #402a36); /* Gradient background for menu */
    padding: 20px; /* Padding for spacing */
    border-radius: 12px; /* Rounded corners */
    box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.5); /* Shadow for depth */
}

.menu div {
    background-color: #6d435a;
    padding: 15px 20px;
    border-radius: 15px;  /* Rounded corners for the menu */
    text-align: center;
    font-size: 16px;
    color: #f5d7e3;
    box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    width: 200px;
}

.menu div:hover {
    background-color: #8c4256;
    transform: scale(1.05);  /* Slight zoom on hover */
    color: #ffffff;  /* Text color changes on hover */
    box-shadow: 3px 3px 15px rgba(0, 0, 0, 0.5);  /* Add shadow for hover */
}

.menu div:active {
    background-color: #a35b6d;
}

/* Notes container styling */
.notes-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.note {
    background: linear-gradient(135deg, #6d435a, #4e2c3b);
    padding: 15px;
    border-radius: 12px;  /* Rounded corners for notes */
    max-width: 200px;
    min-width: 150px;
    text-align: center;
    box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s;
    display: inline-block;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    margin-bottom: 30px;
}

.note-text {
    color: #f5d7e3;
    font-weight: 500;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    width: auto;
    height: auto;
    text-align: center;
}

.note:hover {
    transform: scale(1.05);
}

.delete-button {
    background-color: #8c4256;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    margin-top: 10px;
    display: inline-block;
}

.delete-button:hover {
    background-color: #a35b6d;
}

.note-input-area {
    background: linear-gradient(135deg, #5a3b4b, #402a36);
    padding: 20px;
    border-radius: 12px; /* Rounded corners for input area */
    width: 250px;
    box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.5);
    text-align: center;
}

textarea {
    width: 90%;
    height: 60px;
    padding: 8px;
    border: none;
    border-radius: 5px;
    resize: none;
    background-color: #4e2c3b;
    color: #f5d7e3;
    font-size: 12px;
    max-width: 230px;
    overflow: hidden;
}

.button-add {
    background-color: #8c4256;
    color: white;
    border: none;
    padding: 10px;
    margin-top: 10px;
    cursor: pointer;
    border-radius: 5px;
    width: 100%;
    font-size: 14px;
    transition: background 0.3s;
}

.button-add:hover {
    background-color: #a35b6d;
}

.weather-info {
    margin-bottom: 10px;
}

#weather-info h2 {
    font-size: 18px;
}

/* Föräldradiv som håller UV-index-baren */
#uv-index {
    display: flex;
    flex-wrap: wrap; /* Gör så att barerna staplas om de inte får plats */
    gap: 5px; /* Liten mellanrum mellan barerna */
    padding: 15px;
    background-color: #6d435a; /* Ersätt med riktig färg */
    color: #fff;
    border-radius: 10px;
    /* max-width: 380px; Ta bort max-width för flexibel bredd */
    flex-shrink: 0; /* Hindrar krympning */
    flex: 1; /* Gör så den växer lika mycket som väder-info */
    justify-content: flex-start; /* Justera innehåll vänster */
    align-items: flex-start; /* Justera barerna till toppen */
    height: 100%; /* Viktigt för att matcha höjden */
}

/* UV-index bar */
.uv-bar {
    height: 100%; /* Fyll hela höjden */
    width: 30px;
    background-color: #4e2c3b;
    border-radius: 4px;
    flex-shrink: 0;
}

.flex-container-weather-uv {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  max-width: 800px;
  margin: 0 auto 60px;
  width: 90%;
  font-family: Arial, sans-serif;
  align-items: stretch; /* Viktigt för lika höjd */
  box-sizing: border-box;
  height: 490px; /* sätt höjd här om du vill */
}

#weather-info, #uv-index {
  flex: 1;
  padding: 20px;
  border-radius: 12px;
  color: #e0aabb;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%; /* fyller hela flexcontainerns höjd */
}

/* Mobilanpassning */
@media (max-width: 768px) {
  .flex-container-weather-uv {
    flex-direction: column;
    height: auto; /* ta bort höjd på mobil */
    max-width: 500px;
    margin-bottom: 40px;
  }
  
  #weather-info, #uv-index {
    height: auto; /* låt höjden anpassas efter innehåll på mobil */
    max-width: 100%;
    margin-bottom: 20px;
  }

.footer {
  background-color: #3d2d35;
  color: #3b2f37; 
  text-align: center;
  padding: 2em 1em;
  font-family: 'Segoe UI', sans-serif;
  position: relative;
}
.footer p {
  color: #3b2f37 !important;
}
.footer hr {
  border: none;
  border-top: 1px solid #31262c;
  margin-bottom: 1em;
  width: 100%;
}
}