body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
	/*display: flex;*/
    flex-direction: column;
    justify-content: space-between;
}

body, html {
    /*height: 100%;*/
    margin: 0;
}

#map {
	/*margin-top: 60px;  /* Höjden av #topbar */
    height: 500px; 
    width: 100%;
    display: block;
}

footer {
    width: 100%;
    background-color: #333;
    color: white;
    text-align: center;
    padding: 10px 0;
}

#topbar {
    height: 60px;
    background-color: #333;
    color: white;
    display: flex;
    align-items: center;
    padding: 0 20px;
    box-sizing: border-box;
}

#topbar input, #topbar button {
    height: 50%;
}

#topbar button {
    margin-left: 10px;
}

#searchContainer {
    position: relative;
    display: inline-block;  
}

#searchResults {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: white;
    z-index: 1000;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
}

#searchResults a {
    display: block;
    padding: 10px;
    text-decoration: none;
    color: black;
}

#logo {
    color: red;
}

#poilogo {
    border-radius: 15px;
    display: block;
    margin-left: auto;
    margin-right: auto;
	min-width: 150px;
	min-height: 150px;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#searchButton {
    margin-right: 10px;
}

.location-permission {
    display: flex;
    align-items: center;
}

#locationPermission {
    margin-left: 5px;
}

#breadcrumbs {
    background-color: lightblue;
    padding: 10px;
	border-bottom-left-radius: 10px;
	border-bottom-right-radius: 10px;
    /*border-radius: 10px;*/
    display: block;
    width: 100%;
    box-sizing: border-box;
}

#tag {
    flex: 1;
    background-color: #f5e6ca;
    border-radius: 10px;
    padding: 15px;
    box-sizing: border-box;
}


.main-wrapper {
    max-width: 680px;
    margin: 0 auto;
    padding: 20px 0;
    box-sizing: border-box;
	margin-bottom: 50px;
}

.city-link {
   /* display: block;           */
    margin-bottom: 5px;
	margin-top: 1px;
    text-decoration: none;
    color: black;
}
.city-link:hover {
    text-decoration: underline;
}

.poi-link, .category-link {
    /*display: block; */
    margin-bottom: 5px;
	margin-top: 1px;
    text-decoration: none;
    color: black;
}

.rounded-border {
    border: 2px solid black;
    border-radius: 10px;
    padding: 10px;
    display: block;
    width: 80%;
    margin: auto;
    position: relative;
}

#poih1 {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%; 
}

@keyframes blinker {
  50% {
    opacity: 0;
  }
}

#poi .status {
    position: absolute;
    top: 10px;
    right: 10px;
    font-weight: bold;
}

.times-table {
    width: 100%;
    border-collapse: collapse;
}

.times-table td {
    padding: 5px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.times-table tr:hover {
    background-color: #f5f5f5;
}

/*.times-table td {
    text-align: left;
    padding: 0 10px;
    vertical-align: middle;
}*/

.status-down {
    position: static;
    display: inline-block;
    margin-left: 10px;
}
.times-table tr td:last-child {
    text-align: right;
}

.status-up {
    position: absolute;
    top: 0;
    right: 0;
}
#previousButton {
    display: none;
    margin-right: 10px;
    padding: 5px 15px;
    border: none;
    background-color: #007BFF;
    color: #FFF;
    cursor: pointer;
}

#nextButton {
    display: block;
    margin-left: 10px;
    padding: 5px 15px;
    border: none;
    background-color: #007BFF;
    color: #FFF;
    cursor: pointer;
}

#previousButton:hover, #nextButton:hover {
    background-color: #0056b3;
}

#updateMessage {
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    border-radius: 5px;
}

li {
    list-style-type: none;
    background-color: #ffffff;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 5px;
    margin-bottom: 5px;
}

#header img {
    width: 100%;
    max-height: 680px;
    object-fit: cover;
    display: block;
}

.labels {
    font-weight: bold;
}

.container {
    margin-top: 5px;
}

#poiContainer {
    flex: 1;
    margin: 0 1%;
    /*max-width: 48%; */
    box-sizing: border-box;
    padding: 10px;
    background-color: #f5e6ca;
    border-radius: 10px;
}

.cities-container {
    background-color: #ADD8E6;
	margin-bottom: 5px;
}

#maincontent {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

#article {
    border: 1px solid black;
    border-radius: 10px;
    width: 100%;
    margin: auto;
    text-align: left;
    padding: 20px;
}

.poi, .tenother, .container, .cities-container, .popcategories, .tenothersamecategory, .city-article-preview/*.poi, .tenother*/ {
    flex-grow: 1;
    flex-shrink: 1;
    margin: 0 1%;
/*    max-width: 48%; */
    box-sizing: border-box;
    padding: 10px;
    background-color: #f5e6ca;
    border-radius: 10px;
}

#poi, #tenother, #popcategories, #tenothersamecategory, #city-article-preview, #cities-container, #container {
    /*width: calc(50% - 10px);*/
    max-width: 300px;
    width: 80%; /* eller någon specifik bredd */
    margin-left: auto;
    margin-right: auto;
}
#poi {
    background-color: #f5e6ca;
    border-radius: 10px;
    padding: 15px;
	position: relative;
}

#tenother, #popcategories, #tenothersamecategory, #city-article-preview {
    background-color: lightgray;
    border-radius: 10px;
    padding: 15px;
	position: relative;
}

#city-article-preview {
    background-color: #e8f1e8;
}

#article-preview {
	border-radius: 10px;
	border: 1px solid black;
	padding: 5px;
}

.highlighted {
    font-weight: bold;
    background-color: yellow;
}

#maincontent > *:not(:last-child) {
  margin-bottom: 10px;
}






@media (max-width: 480px) {
    #header img {
        max-height: 320px;
    }
	
    #maincontent {
        flex-direction: column;
    }
    .container, .cities-container, .poi, .tenother, .popcategories, .tenothersamecategory {
        max-width: 100%;
		width: 100%;
    }
	.container, .cities-container, .poi, .tenother, .popcategories, .tenothersamecategory {
        padding: 20px 0;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    #header img {
        max-height: 480px;
    }
	
	.poi, .tenother, .container, .cities-container, .popcategories, .tenothersamecategory, .city-article-preview/*.poi, .tenother*/ {
    max-width: 48%; 
	}
}

@media (min-width: 769px) and (max-width: 1024px) {
  #maincontent {
    justify-content: space-between;
  }
	
  #maincontent > * {
    margin-bottom: 0;
    margin-right: 10px;
  }

  #maincontent > *:last-child {
    margin-right: 0;
  }

  .poi, .tenother, .container, .cities-container, .popcategories, .tenothersamecategory, .city-article-preview/*.poi, .tenother*/ {
	max-width: 48%; 
  }

}

@media (min-width: 1025px) and (max-width: 1440px) {
  .poi, .tenother, .container, .cities-container, .popcategories, .tenothersamecategory, .city-article-preview/*.poi, .tenother*/ {
	max-width: 48%; 
  }
}

@media (min-width: 1441px) {
  .poi, .tenother, .container, .cities-container, .popcategories, .tenothersamecategory, .city-article-preview/*.poi, .tenother*/ {
	max-width: 48%; 
  }
}

/*other*/
@media screen and (max-width: 600px) {
    #topbar {
        height: 50px;
    }
}

.blinker {
    animation: blinker 2s linear infinite;
}

@keyframes blinker {
    50% { opacity: 0; }
}

/* CSS för att placera dropdown-menyn högst upp till höger */
.language-selector {
	position: absolute;
	top: 10px;
	right: 10px;
	background-color: #000;
	color: #fff;
	border: 1px solid #fff;
	padding: 5px;
	border-radius: 5px;
}

.language-selector select {
	background-color: #000;
	color: #fff;
	border: none;
	padding: 5px;
	border-radius: 5px;
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
}

.language-selector select:focus {
	outline: none;
}

#linkContainer {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); /* Behåller justeringen för att matcha bredden */
    gap: 5px; /* Minskar mellanrummet mellan kategorierna */
    margin-left: auto;
    width: calc(100% - 200px); /* Justerar bredden så att den tar upp återstående utrymme från platsdata-knappen */
}

#linkContainer a {
    font-size: 11px; /* Minskar fontstorleken */
    color: white;
    text-decoration: none;
    padding: 2px 8px; /* Minskar padding för att minska höjden */
    background-color: #444;
    border-radius: 5px;
    text-align: center; /* Centrerar texten i varje länk */
    line-height: 1.2; /* Sänker line-height för att minska höjden ytterligare */
}

#linkContainer a:hover {
    background-color: #666;
}

#mobileLinkContainer {
    display: none;
    margin-left: auto;
    background-color: #444;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 5px 10px;
}

@media (max-width: 600px) {
    #linkContainer {
        display: none;
    }
    #mobileLinkContainer {
        display: inline-block;
    }
}

/* Grundläggande stil för menyn */
/* Placera menyn precis under breadcrumbs */
.sidebar-menu {
  position: absolute;
  top: 100%; /* Direkt under #breadcrumbs */
  left: 0; /* Placera menyn längst till vänster */
  width: 250px;
  background-color: #333;
  padding: 10px;
  color: white;
  z-index: 1000; /* Se till att menyn ligger över andra element */
  overflow-y: auto;
}

/* Länkstil i menyn */
.sidebar-menu a {
  display: block; /* Länkar visas som blockelement */
  padding: 10px 15px; /* Ge länkarna lite utrymme */
  color: white;
  text-decoration: none; /* Ingen understrykning på länkar */
}

.sidebar-menu a:hover {
  background-color: #575757; /* Ändra bakgrundsfärg när man hovrar över länken */
}

/* Toggle-knappen (för att visa menyn på små skärmar) */
.menu-toggle-label {
  display: none;
  font-size: 30px;
  position: absolute;
  top: 100%; /* Placera precis under breadcrumbs */
  left: 0; /* Justera om du vill ha den någon annanstans */
  cursor: pointer;
  z-index: 1000; /* Se till att den ligger över andra element */
}

/* När skärmen är mindre än 768px (mobil) */
@media (max-width: 768px) {
  .sidebar-menu {
    display: none; /* Dölj menyn på små skärmar som standard */
  }

  /* Gör toggle-knappen synlig på små skärmar */
  .menu-toggle-label {
    display: block; /* Visa knappen på små skärmar */
    position: absolute;
    top: 100%; /* Under breadcrumbs på smala skärmar */
    left: 0;
  }

  /* När checkboxen är ikryssad visar vi menyn */
  #menu-toggle:checked + .sidebar-menu {
    transform: translateX(0); /* Visa menyn när checkboxen är ikryssad */
    position: fixed;
    top: 0;
    left: 0;
    width: 250px;
    height: 100%;
    background-color: #333;
    transform: translateX(-100%); /* Dölj menyn från början */
    transition: transform 0.3s ease-in-out;
  }
}
