.container {
	max-width: 960px;
	margin: 0 auto;
}

body {
    background-image: url("./img/tekstura.jpg");
    background-repeat: repeat;
}

header {
	display:flex;
	justify-content: space-between;
}


header nav ul {
	display: flex;
	list-style: none;
	align-items: center;
}

header nav ul li {
	margin-right: 2rem;

}

header nav ul li a {
	text-decoration: none;
}

.ad {
	display: flex;
	margin-bottom: 10px;
	border: 1px solid;
	padding: 1rem;
	justify-content: space-between;
	background: white;
}

.ad img {
	width: 110px;
	height: 110px;
	object-fit: cover;
	object-position: bottom;
}
.ad_data {
  width: 50%;
}

.random_code {
  padding: 3px;
  border: 2px purple groove;
}

.timer {
	border: 2px solid grey;
	min-width: 150px;
	max-height: 30px;
	line-height: 30px;
	text-align: center;
	padding: 0.3rem;
}

.upload-btn {
	width: 100%;
	background: #fb6300;
	height: 30px;
	display: block;
	text-align: center;
	line-height: 30px;
	text-decoration: none;
	color: white;
	margin-top: 0.2rem;
	margin-bottom: 0.2rem;
}


.kairont {
	border: 1px solid black;
	background-color: purple;
	margin: 0;
	color: orange;
}

.form form {
	background: url('./img/granula.jpg');
}

.form form {
    max-width: 600px;
    margin: 40px auto;
    padding: 20px 30px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: Arial, sans-serif;
  }

  /* Stil za svaki paragraf (form field) */
.form  form p {
    margin-bottom: 20px;
  }

  /* Labela */
.form  form label {
    display: block;
    margin-bottom: 6px;
    font-weight: bold;
    color: #333;
  }

  /* Input, textarea, select */
.form  form input[type="text"],
.form  form input[type="file"],
.form  form input[type="email"],
.form  form input[type="number"],
.form  form select,
.form  form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #bbb;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 14px;
  }

.form  form textarea {
    resize: vertical;
    min-height: 100px;
  }

  /* Submit dugme */
.form  form button[type="submit"] {
	width: 100%;
    background-color: #800080;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 15px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }

.form  form button[type="submit"]:hover {
    background-color: #a000a0;
  }

  /* Karta ispod forme */
.form  #map {
    margin-top: 30px;
    border: 1px solid #ccc;
    border-radius: 6px;
  }


#map {
	height: 600px;
	border-radius: 10px;
	box-shadow: 0 4px 20px rgba(0,0,0,0.1);
	margin-bottom: 20px;
}

.map-btn {
	background-color: #800080;
	color: white;
	border: none;
	padding: 8px 12px;
	font-size: 14px;
	border-radius: 4px;
	cursor: pointer;
	box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.map-btn:hover {
	background-color: #a000a0;
}

.leaflet-control-layers {
	font-family: 'Segoe UI', sans-serif;
	font-size: 13px;
}

.pin_image {
	width: 100px;
	height: auto;
	margin-top: 5px;
	border-radius: 6px;
}

.chat-container {
    max-width: 600px;
    margin: 40px auto;
    padding: 20px;
    border-radius: 8px;
    background-color: #f9f9f9;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.chat-box {
    max-height: 400px;
    overflow-y: auto;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    background-color: #fff;
    border-radius: 6px;
}

.chat-message {
    padding: 10px;
    margin-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.message-content {
    font-size: 15px;
    color: #333;
}

.message-time {
    font-size: 12px;
    color: #888;
    margin-top: 4px;
}

.chat-form textarea {
    width: 100%;
    height: 80px;
    resize: none;
    padding: 10px;
    margin-bottom: 10px;
    font-size: 14px;
    border-radius: 4px;
    border: 1px solid #ccc;
}

.chat-form button {
    padding: 10px 16px;
    background-color: #800080;
    color: white;
    border: none;
    font-size: 14px;
    border-radius: 4px;
    cursor: pointer;
}

.chat-form button:hover {
    background-color: #a000a0;
}

.pages {
    position: fixed;
    bottom: 60px; /* malo iznad footer-a */
    left: 50%;
    transform: translateX(-50%);
    background-color: #f0f0f0;
    padding: 10px 20px;
    /*border-radius: 8px;*/
    box-shadow: 0px 0px 5px rgba(0,0,0,0.3);
    display: flex;
    gap: 10px;
    z-index: 1000; /* da bude iznad sadržaja */
}

.pages a {
    text-decoration: none;
    color: purple;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background-color 0.2s;
}

.pages a:hover {
    background-color: #d0e7ff;
}

.pages .current {
    font-weight: bold;
    color: white;
    background-color: purple;
    padding: 5px 10px;
    border-radius: 5px;
}

.footer {
    position: sticky;
    bottom: 0;
    left: 0;
    text-align: center;
    padding: 20px;
    background-color: #c8c8c8;
}

.title_sep {
  border: 1px purple dotted;
}