.styled-table {
	border-collapse: collapse;
	margin: 25px 0;
	font-size: 0.9em;
	font-family: sans-serif;
	min-width: 400px;
	box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
}

.styled-table thead tr {
	background-color: #04AA6D;
	color: #ffffff;
	text-align: left;
	position: absolute;
	top: 205px;
	z-index: 10; /* Optional: Stellt sicher, dass die Kopfzeile über den Tabellenzeilen liegt */
}

.styled-table th {
	padding: 8px 8px;
}

.styled-table td {
	padding: 1px 8px;
}

.styled-rules {
	border-collapse: collapse;
	font-size: 0.9em;
	font-family: sans-serif;
	width: 200px;
	box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
}

.styled-rules thead tr {
	background-color: #04AA6D;
	color: #ffffff;
	text-align: left;
	position: sticky;
	top: 215px; /* Die Kopfzeile bleibt oben kleben, wenn gescrollt wird */
	z-index: 10; /* Optional: Stellt sicher, dass die Kopfzeile über den Tabellenzeilen liegt */
}

.styled-rules th {
	padding: 8px 10px;
	max-width: 80px;
}

.styled-rules td {
	padding: 2px 10px;
	height: 616px;
	max-width: 80px;
}

.div-rules {
	text-align: justify;
	vertical-align: top;
	max-width: 80px;
}

.cat-col {
	max-width: 30px;
	display: none;
}

.first-col {
	min-width: 260px;
}

.item-col {
	min-width: 270px;
}

.player-col {
	min-width: 120px;
}

.date-col {
	min-width: 130px;
}

.found-col {
	min-width: 60px;
}

.rules-col {
	max-width: 80px;
}

.styled-table tbody tr {
	border-bottom: 1px solid #dddddd;
}

.styled-table tbody tr:nth-of-type(even) {
	background-color: #f3f3f3;
}

.styled-table tbody tr:last-of-type {
	border-bottom: 2px solid #009879;
}

body {
	margin: 10px;
	font-family: "Lato", sans-serif;
}

.sidebar {
	margin: 0;
	padding: 0;
	width: 250px;
	background-color: #f1f1f1;
	position: fixed;
	height: 850px;
	overflow: auto;
}

.sidebar a {
	display: block;
	color: black;
	padding: 8px;
	text-decoration: none;
	font-size: 0.9em;
	font-family: sans-serif;
}

.sidebar a.active {
	background-color: #04AA6D;
	color: white;
}

.spacer {
	margin-top: 9px;
}

.sidebar a:hover:not(.active) {
	background-color: #555;
	color: white;
}

.rules {
	margin-left: 935px;
	position: fixed;
	top: 205px;
	width: 40px;
}

.category {
	margin: 0px;
	padding: 0px;
	width: 250px;
	background-color: #f1f1f1;
	overflow: auto;
}

.category a {
	display: block;
	color: black;
	padding: 3px;
	text-decoration: none;
	font-size: 0.9em;
	font-family: sans-serif;
}

.category a.activ {
	background-color: #04AA6D;
	color: white;
}

.category a.activ {
	background-color: #04AA6D;
	color: white;
}

.category a:hover:not(.active) {
	background-color: #555;
	color: white;
}

div.content {
	margin-left: 220px;
	padding: 1px 32px;
	width: 500px;
}

@media screen and (max-width: 700px) {
	.sidebar {
		width: 100%;
		height: auto;
		position: relative;
	}

	#itemsearch_input:focus {
		border-color: #20A5D6;
	}

	.sidebar a {float: left;}
	div.content {margin-left: 0;}
}

@media screen and (max-width: 400px) {
	.sidebar a {
		text-align: center;
		float: none;
	}
}

#itemsearch_input {
	background-image: url('searchicon.png'); /* Add a search icon to input */
	background-position: 10px 5px; /* Position the search icon */
	background-repeat: no-repeat; /* Do not repeat the icon image */
	width: 201px; /* Full-width */
	font-size: 16px; /* Increase font-size */
	padding: 5px 5px 5px 40px; /* Add some padding */
	border: 2px solid grey; /* Add a grey border */
	margin-top: 5px;
	font-size: 0.9em;
	font-family: sans-serif;
}

input:focus {
	outline: none;
}

#player_list {
	background-position: 10px 10px;
	background-repeat: no-repeat;
	width: 250px;
	font-size: 16px;
	padding: 5px 5px 5px 10px;
	border: 2px solid grey; /* Add a grey border */
	margin-bottom: 10px; /* Add some space below the input */
	margin-top: 5px;
	font-size: 0.9em;
	font-family: sans-serif;
}

.ersterpunkt {
	margin-top: 5px;
}

.space1 {
	margin-top: 65px;
}

.alleitems {
	background-color: #d9d9d9;
}

.logo {
	margin-left: 8px;
	position: fixed;
	top: 0;
}

.tabbody {
	margin-top: 185px;
	max-height: 642px;
	width: 650px;
	overflow-y: scroll;
	padding-left: 20px;
	padding-top: 20px;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.tabbody::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
.tabbody {
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}

.clicked {
	background-color: darkgray;
}

/* Itemzeilen verstecken ... */
#itemtabelle tbody tr {
	display: none;
}

/* ... bis auf die, die alle Filter matchen. */
#itemtabelle tbody tr.search_match.found_match.player_match.category_match {
	display: table-row;
}

/* Cursor beim Hovern über das Logo wie Mauszeiger bei Link */
#reloadImage {
    cursor: pointer; /* Setzt den Mauszeiger wie bei einem Link */
}
