/* === Grundläggande layout och bakgrund === */
body {
    background-image: url('background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-color: #121724; /* Mörk bakgrundsfärg som fallback */
    min-height: 100%; /* Se till att täcka hela höjden */
    color: #f1f6f8;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    font-size: 18px;
    margin: 0;
    padding: 0;
}

/* === Rubriker === */
h1, h2 {
    margin-bottom: 5px;
    font-size: 1.5em;
}

h3 {
    border-bottom: 2px solid #f1f6f8;
    margin-top: 40px;
    padding-bottom: 5px;
    margin-bottom: 5px;
	font-size: 1.5em;
}

h4 {
    color: #f1f6f8;
    margin-top: 30px;
    margin-bottom: 5px;
    font-size: 1.2em;
}

/* === Länkar === */
a {
    color: white;
    text-decoration: underline;
}

/* === Tabeller === */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    table-layout: fixed;
}

th, td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
}

th {
    background-color: #121724;
    color: #f1f6f8;
}

/* === Inputfält === */
input[type="search"] {
    width: 55%;
    padding: 10px;
    margin-top: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

/* === Container för innehåll === */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.container p {
    line-height: 1.6;
    margin-bottom: 15px;
}

/* === Meny === */
.menu-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 0 20px 0;
}

.menu {
    list-style: none;
    padding: 0;
}

.menu li {
    margin: 10px 0;
}

.menu a {
    background: #f1f6f8;
    color: #121724;
    padding: 10px 20px;
    border-radius: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 200px;
    text-align: center;
	text-decoration: none;
	font-weight: bold;
}

/* === Logo === */
.logo {
    width: 300px;
    margin-bottom: 10px;
}

/* === Top Bar === */
.top-bar {
    position: sticky;
    top: 0;
    background-color: #121724;
    display: flex;
    align-items: center;
    color: #f1f6f8;
    padding: 10px 0;
    border-radius: 10px 10px 0px 0px;
    z-index: 1000;
}

.top-bar a {
    color: #f1f6f8;
    font-size: 22px;
    position: absolute;
    left: 20px;
    top: 10px;
    text-decoration: none;
}

.top-bar h1 {
    flex-grow: 1;
    text-align: center;
    margin: 0;
    font-size: 22px;
}

/* === Huvudinnehåll === */
main {
    padding: 20px;
}

/* === Länk till huvudsidan === */
.back-link {
    display: flex;
    align-items: center;
    color: #f1f6f8;
    font-weight: bold;
    font-size: 30px;
    text-decoration: none;
}

.back-link img {
    width: 30px;
    height: 30px;
    margin-right: 8px;
}

/* === Footer === */
footer {
    position: fixed;
    bottom: 10px;
    right: 20px;
    font-size: 14px;
    color: #f1f6f8;
}

/* === Sektioner och programdelar === */
.program-sektion {
    background-color: rgba(18, 23, 36, 0.8);
    border: 1px solid #f1f6f8;
    border-radius: 10px;
    padding: 15px;
    margin-top: 20px; /* Lägger till lite utrymme ovanför programsektionen */
}

.program-sektion h1 {
    color: #f1f6f8; /* Anpassar textfärgen för rubriken */
    margin-top: 0;
    border-bottom: 1px solid #f1f6f8;
    padding-bottom: 10px;
    margin-bottom: 10px; /* Lägger till lite utrymme under rubriken */
}

.program-sektion h3 {
    color: #f1f6f8; /* Anpassar textfärgen för underrubrikerna */
    margin-top: 0.5px; /* Lägger till lite utrymme ovanför dagarna */
    border-bottom: 1px solid rgba(255, 255, 255,);
    padding-bottom: 5px;
}

.program-sektion p {
    color: #f1f6f8; /* Anpassar textfärgen för paragraferna */
    margin-bottom: 8px;
}

.program-sektion strong {
    color: #138943; /* En accentfärg för stark text */
}

/* === Karta === */
.map-container {
    width: 100%;
    max-width: 600px;
    height: 400px;
    margin: 0 auto;
}

/* === Textförbättring === */
p {
    font-size: 1.1em;
}

p strong {
    color: #f1f6f8;
}

/* === Responsivitet för mobil === */
@media screen and (max-width: 768px) {
    .deltagare-table {
        width: 100%;
        overflow-x: auto;
        display: block;
    }

    table {
        table-layout: fixed;
    }

    th, td {
        word-wrap: break-word;
        white-space: normal;
        padding: 8px;
        font-size: 14px;
    }

    input[type="search"] {
        width: 90%;
        margin: 10px auto;
        display: block;
    }

    body {
        font-size: 16px;
    }
}

.bordsplacering {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.bord {
    background-color: rgba(18, 23, 36, 0.8);
    border: 1px solid #f1f6f8;
    border-radius: 10px;
    padding: 15px;
}

.bord h3 {
    margin-top: 0;
    border-bottom: 1px solid #f1f6f8;
    padding-bottom: 5px;
}

.bord ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.bord li {
    padding: 4px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.bord li:last-child {
    border-bottom: none;
}

.bordslista {
  width: 100%;
  border-collapse: collapse;
  font-family: Arial, sans-serif;
  font-size: 16px;
  margin-top: 2rem;
}

.bordslista thead {
  background-color: #f0f0f0;
}

.bordslista th,
.bordslista td {
  border: 1px solid #ccc;
  padding: 5px 10px;
  text-align: left;
  font-size: 18px;
/*  font-weight: bold;*/
}

/* Lägg till dessa rader för att styra kolumnbredden */
.bordslista th:nth-child(1),
.bordslista td:nth-child(1) {
  width: 80%; /* Justera denna procentandel efter behov */
}

.bordslista th:nth-child(2),
.bordslista td:nth-child(2) {
  width: 20%; /* Justera denna procentandel efter behov */
  text-align: center;
}

.highlight {
  font-weight: bold;
  color: #138943;
  background-color: #f1f6f8;
  border-radius: 4px;
  padding: 2px 4px;
}

.highlight-row {
  font-weight: bold;
  color: #138943;
  background-color: #f1f6f8;
  border-radius: 4px;
  padding: 2px 4px;
}

input[type="search"]::-webkit-search-cancel-button {
  appearance: auto;
}
