
* {
    margin: 0;
    padding: 0;
}
body {
  font-family: Open Sans, arial, sans-serif;
  background-color: #fff;
}




#reportIncident {
  background-color: #d00;
}
#reportIncident:hover {
  background-color: #f00;
}
#history {
  background-color: #822;
}
#history:hover {
  background-color: #a44;
}


#map {
	height: 400px !important;
    margin: 0px;
}

header {
  background-color: #fff;
 }

footer {
  background: #333;
  color: white;
  text-align: center;
  padding: 10px;
}

form select,form input,form button,form textarea {
    padding: 6px;
    border: 1px solid #666;
    border-radius: 4px;
    color: #666;
	margin: 0px 10px;
}

#info {
  padding: 20px;
}

#errorMessages {
	color: #d00;
	margin-bottom: 10px;
}

#confirmationMessage {
color: #070;
	margin-bottom: 10px;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: left;
  flex-wrap: wrap;
}

.logo {
  max-width: 140px; /* Adjust as needed */
  height: auto;
  margin-right: 20px; /* Space between logo and header text */
}

.header-title {
  font-size: 36px; /* Adjust as needed */
  text-align: center;
}



/* The Modal (background) */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

/* Modal Content */
.modal-content {
  background-color: #fefefe;
  margin: 15% auto; /* 15% from the top and centered */
  padding: 20px;
  border: 1px solid #888;
  width: 80%; /* Could be more or less, depending on screen size */
}

/* The Close Button */
.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

/* Add styles for form elements here */

.header-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
}

.logo-and-title {
    display: flex;
	align-items: center;
}

.nav-buttons {
    display: flex;
    flex-direction: row;
    align-items: stretch; /* Zapewnia, że przyciski rozciągają się na całą szerokość */
    width: 100%; 
}

h1 {
	display: inline-block;
}


#dateForm {
display: flex;
        flex-direction: row;
        align-items: center;
 	margin: 4px 12px 8px;
	}

#incidentCount {
	display: flex;
        margin: 12px 16px;
    }
#dateForm input {
	padding: 4px;
	margin: 0px 0px 0px 8px;
	}
#dateForm label {
	margin-left: 4px;
	}

#dateForm input[type="submit"] {
  background-color: #ccc;
  color: #444;
  padding: 4px 10px;
  margin: 0px 8px 0px;
  }

#dateForm input[type="submit"]:hover {
  background-color: #ddd;
  }

main h2 {
font-size: 18px;
  color: #b00;
  font-style: italic;
  margin: 20px 0px 10px 0px;
}
.nav-button {
  color: white;
  padding: 7px 20px;
  flex-grow: 1;
  margin: 5px 1px;
  border: none;
  cursor: pointer;
  border-radius: 12px;
}

.nav-button:hover {
  background-color: #f00;
}


.modal {
    display: none; /* Ukryty domyślnie */
    position: fixed;
    z-index: 1; /* Na wierzchu */
    left: 0;
    top: 0;
    width: 100%; /* Pełna szerokość */
    height: 100%; /* Pełna wysokość */
    overflow: auto !important; /* Dodaj przewijanie, jeśli jest potrzebne */
    background-color: rgba(0,0,0,0.4); /* Przezroczystość */
}

.modal-content {
    background-color: #fefefe;
    margin: 10% auto; /* Centrowanie */
    padding: 20px;
    border: 1px solid #888;
    width: 90%; /* Szerokość okna modalnego */
    max-width: 550px; /* Maksymalna szerokość */
	position: relative;
    height: auto; /
}

.modal form {
    display: flex;
    flex-direction: column;
	font-size: 12px;
}

.modal input, .modal select, .modal textarea, .modal button {
    width: 100%; /* Pełna szerokość w kontenerze modala */
    margin: 5px 0; /* Odpowiedni margines */
	background-color: #fffcef;
}
.modal input[type="submit"], .modal button {
  background-color: #ecc;
  color: #444;
  }

  .modal input[type="submit"]:hover, , .modal button:hover {
  background-color: #fdd;
  }
.row {
    display: flex;
    justify-content: flex-start;
    align-items: center;
	margin: 0px -10px 0px 0px !important;
}

.column {
    flex: 1; /* Każda kolumna zajmuje równą przestrzeń */
    margin-right: 10px; /* Opcjonalny margines dla odstępu */
}

/* Dostosuj szerokość pól input/select w kontenerze .column */
.column input,
.column select {
    width: 100%; /* Pełna szerokość w ramach kolumny */
}

#monthNavigation {
	text-align: center;
	margin-bottom: 5px;
}
#monthNavigation button {
	padding: 0px 5px;
	margin: 0px 6px;
}
#otherTypes {
	margin: 20px 10px 5px;
}


    #incidentChart {
        width: 100%; /* Szerokość kontenera wykresu */
        height: auto;
    }

	#chartContainer {
    width: 100%; /* Szerokość kontenera */
    height: 400px;
}

.custom-marker-icon {
    background-size: cover;
    border-radius: 50%;
    border: 1px solid #eee; /* Opcjonalna obramówka */
    height: 10px; /* Wysokość ikony */
    width: 10px; /* Szerokość ikony */
}

/* Media Query for smaller screens */
@media screen and (max-width: 600px) {
.header-title {
  font-size: 30px; /* Adjust as needed */  
  margin-right: -10px; /* Space between logo and header text */
}
  .nav-button {
    font-size: 14px; /* Smaller font size */
    padding: 15px; /* Larger padding for taller buttons */
    white-space: normal; /* Allows text wrapping */
  }

  .modal-content {
        margin: 20px; /* Mniejsze marginesy na małych ekranach */
        width: auto; /* Pozwala modalowi na dostosowanie się do małego ekranu */
    }
	#dateForm {
		display: block;
	}
	#dateForm input {
	padding: 4px 2px;
	}
	#dateForm input[type="submit"] {
		margin: 8px 0px;
		width: 100%;
	}
	#dateForm input[type="date"] {
		max-width: 130px;
	}
	#incidentCount {
		margin: 0px 4px;
	}

}

/* Styl dla tabeli */
#markersTable {
    width: 100%;
    border-collapse: collapse; /* Usuwa podwójne ramki */
    margin-top: 20px; /* Odstęp od innych elementów */
}

/* Styl dla nagłówków tabeli */
#markersTable thead th {
    background-color: #282; /* Zielony kolor nagłówka */
    color: white;
    text-align: left;
    padding: 12px 15px; /* Dodaje padding dla tekstu w nagłówkach */
}

/* Styl dla komórek tabeli */
#markersTable tbody td {
    border-bottom: 1px solid #ddd; /* Cienka linia oddzielająca wiersze */
    padding: 8px 15px; /* Dodaje padding dla tekstu w komórkach */
}

/* Styl dla wierszy tabeli podczas najechania kursorem */
#markersTable tbody tr:hover {
    background-color: #f5f5f5; /* Zmiana koloru tła wiersza przy najechaniu */
}

/* Styl dla przycisków w tabeli */
#markersTable button {
    background-color: #d00; /* Czerwony kolor dla przycisków akcji */
    color: white;
    border: none;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 4px; /* Zaokrąglone rogi przycisku */
    margin-left: 5px; /* Odstęp między przyciskami */
}

/* Styl dla przycisku z najechaniem kursorem */
#markersTable button:hover {
    background-color: #f00; 
}