﻿body, html {
	margin: 0;
	padding: 0;
}

body{overflow-x:hidden;}

body {
    width: 100%;    
    height: 100%;    
    font-size: 16px;
    letter-spacing: 0.2px;     
    font-family: 'Open Sans', sans-serif;
    font-weight: 300;
}

.contact-top-item i {
    align-items: center;
    font-size: 20px;
    color: #44aaaa!important;
}

.contact-top-item  p {
	font-family: Poiret One!important;
    margin: 5px 0;
	font-size:13px;
    color: #888;
}


/* Sekcije */
section {
    padding-top: 60px;
    min-height: 200px;
    opacity: 0;
    transform: translateY(50px);
    transition: all 1.5s ease-out;
}

section.animate {
    opacity: 1;
    transform: translateY(0);
}





						.mySlides:first-child {
							display: block; /* Prikaži prvi slajd */
						}		
		
		
						.slideshow-container {
							*max-width: 1000px;
							height: 400px; /* Visina slideshow-a */
							position: relative; /* Dodano da bude roditelj apsolutnih elemenata */
							margin: auto;
							overflow: hidden; /* Ograničava izlazak elemenata izvan okvira */
						}

						.mySlides {
							display: none;
							position: relative;
							height: 100%; /* Slike zauzimaju celu visinu */
						}

						.mySlides img {
							width: 100%;
							height: 100%; /* Zadrži visinu slike */
							object-fit: cover; /* Prilagodi slike unutar slideshow-a */
						}

						.carousel-link {
							text-decoration: none;
						}

						/* Tekstualni blok sa efektom kucanja */
						.description {
							position: absolute;
							top: 70%; /* Središte po vertikali */
							left: 50%; /* Središte po horizontali */
							transform: translate(-50%, -50%);
							background-color: rgba(0, 0, 0, 0.7); /* Crna prozirna pozadina */
							color: white;
							font-family: Poiret One;
							letter-spacing: 1.5px;
							font-weight: 200;
							padding: 20px;
							font-size: 35px;
							text-align: center;
							border-radius: 10px;
							width: 70%;
							box-sizing: border-box; /* Osiguraj da padding ne prelazi veličinu elementa */
							overflow: hidden; /* Sakrij višak teksta ako je duži od širine */
						}

						/* Stil za manje ekrane */
						@media screen and (max-width: 800px) {
							.description {
								top: 60%; /* Središte po vertikali */
								left: 50%; /* Središte po horizontali */
								transform: translate(-50%, -50%);		
								font-size: 25px; /* Manja veličina fonta na mobilnim uređajima */
								padding: 15px;
								width: 90%; /* Širi tekstualni okvir na manjim ekranima */
							}
						}
						




						/* Efekt kucanja */
						.typewriter-effect {
							display: inline-block;
							overflow: hidden;
							white-space: normal; /* Omogućava višeredni tekst */
							max-width: 100%; /* Ograničava širinu na 100% širine roditelja */
							word-wrap: break-word; /* Omogućava razbijanje riječi u novi red */
							animation: typing 3s steps(40, end), blink-caret 1.75s step-end infinite;
						}

						/* Animacija za kucanje */
						@keyframes typing {
							from { width: 0; }
							to { width: 100%; }
						}

						/* Efekat treptanja kursora */
						@keyframes blink-caret {
							from, to { border-color: transparent; }
							50% { border-color: white; }
						}
						
						

		
		#omotac_1{
			font-family: 'Montserrat', ;
			font-family: 'Open Sans', ;
			font-family: 'Lato', ;	
			width:100%;	
			color:#666;
			padding:1% 2%;
			*overflow: hiden;	  
			box-sizing:border-box;
		}
	

										
										 

		h1, h2, h3, h4, p{
			color:#666;
			text-decoration: none;				
		}

		h5 {
			font-size:16px;
			color:#777;
			font-weight:100;
			margin:8px 0 ;
		}										
	
						
	
	hr {
		border-top: 1px solid #ddd;
		margin:10px 0;
		color:#ddd;
		background:#eee;
	}
	
	
			#naslov{
				font-family: Dancing Script;
				font-family: Poiret One ;
				font-family: Parisienne ;	
				font-size:40px;
				text-align:center;
				font-weight:100;
				margin-bottom:20px ; 
			}	
			
				@media screen and (max-width: 800px) {
				  #naslov {
					width: 100%;
					font-size:30px;			
					margin-bottom:20px;
				  }
				}

					.card{
						height:250px;
					}
	
					/* kartica index */	

					.card_index {	
					  position: relative;
					  width:98%;
					  border-radius:8px;
					  margin:6% 2%;					  
					  text-align: center;
					  box-shadow: 0 0 15px rgba(0, 0, 0, 0.5); 
					  opacity:1; 
					  transition: 1s;
					}
					
					.card_naslov {
					  position: absolute;
					  color: #fff;
					  left:10%;
					  bottom:-15px;
					  *background: rgb(250, 250, 250); /* Fallback color */
					  background: rgba(20, 20, 10, 0.5); /* Black background with 0.5 opacity */
					  text-align: left;
					  width: 80%;
					  height:80px;
					  min-height:80px;  
					  padding: 5px 10px;
					  box-shadow:10px 10px 20px #ccc;				  
					  transition: 1s;
					  text-align:center !important;							  
					}
					
					.card_naslov_p{	
					  text-align:center !important;	
					  font-size:15px !important;
					  letter-spacing: 1.5px;
					  font-weight:200 !important;	
					  color:#fff !important;	
					}				
					
					.card_body{	
					  height:80px;
					  min-height:80px;
					}


					.card_index:hover {	
					  opacity:0.8;
					  box-shadow: 0 0 0 rgba(0, 0, 0, 0.5); 					  
						  .card_naslov { 
							position: absolute; 
							bottom:0; 
							background:rgba(0, 180, 0, 0.9); 
							box-shadow:0 0 0 #ccc;
							width: 78%;
							left:11%;
						  }
					}

					@media screen and (max-width: 800px) {
					  .card_index{
						width: 96%;
						margin:0 2% 20px 2%;
					  }
					}

					.respon_50{
					  float:left;
					  width:46%;
					  margin:10px 1%;
					}	

					@media screen and (max-width: 800px) {
					  .respon_50 {
						width: 94%; 
					  }
					}
					
					
					

								/* Animacija prilikom skrolanja */
								.o-nama-container {
								  opacity: 0;
								  transform: translateY(50px);
								  transition: all 1.5s ease-out;
								}

								.o-nama-container.animate {
								  opacity: 1;
								  transform: translateY(0);
								}
								
								
								
									  /* Sekcija cijene */
									  #section_cijene {
										width:100%;
										margin: 0;
										padding: 0;
									  }

									  .carousel-cijene-container {
										display: flex;
										justify-content: center;
										align-items: center;
										position: relative;
										width: 100%;
										height: 430px;
										perspective: 1200px;
										margin: 0 auto;
									  }

									  .card-cijene {
										position: absolute;
										width: 280px;
										height: 400px;
										padding: 0;
										background-color: #fff;
										border-radius: 15px;
										box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
										text-align: center;
										transition: transform 0.5s ease, opacity 0.5s ease;
										opacity: 0.7;
										cursor: pointer;
										transform-origin: center;
										z-index: 0;
									  }

									  .active-cijena {
										transform: translateX(0) scale(1.2);
										opacity: 1;
										z-index: 3;
									  }

									  .prev-cijena {
										transform: translateX(-70%) scale(1);
										z-index: 2;
									  }

									  .prev2-cijena {
										transform: translateX(-140%) scale(0.9);
										z-index: 1;
									  }

									  .next-cijena {
										transform: translateX(70%) scale(1);
										z-index: 2;
									  }

									  .next2-cijena {
										transform: translateX(140%) scale(0.9);
										z-index: 1;
									  }
									  
											  
									  
									  .card-cijene img {
										 height:150px;
										 width:100%;
										 object-fit: cover;
										 border-top-left-radius:15px;
										 border-top-right-radius:15px;
									  }
									  
									.proiz_naslov{
										height:80px; 
									  }
									  .proiz_podnaslov{
										height:70px;  
									  }
									  .proiz_naslov h4 {
										font-family: Poiret One;
										font-size: 18px;
										color: #113366;	
									  }
									  
									  .proiz_podnaslov h5 {
										font-size: 14px;
										color: #002255;	
									  }									  

									  .card-cijene ul {
										list-style: none;
										padding: 20;
									  }

									  .card-cijene ul li {
										margin: 2px 0;
										font-size:14px;
									  }

									  .card-cijene .btn-select{
										padding: 5px 20px;
										background-color: #0085c8;
										color: white;
										border: none;
										border-radius: 10px;
										cursor: pointer;
									  }
									  
									  .btn-select a{
										  text-decoration:none;
										  color:white;
									  }  

									  /* Mobilna verzija */
									  @media screen and (max-width: 768px) {

										.carousel-cijene-container {
										  display: block;
										  width: 100%;
										  height: auto;
										  perspective: none;
										}

										.card-cijene {
										  position: relative;
										  width: 80%;
										  min-height:400px;
										  margin: 50px auto;
										  opacity: 1;
										  transform: none;
										  z-index: 1;
										}

										.active-cijena, .prev-cijena, .prev2-cijena, .next-cijena, .next2-cijena {
										  transform: none;
										  z-index: 1;
										}
									  }								
					
	
	
	
			#clanak{
				width:100%; 
				color:#666;
			}
			
			#clanak span {
				font-size:16px;		
			}
			
			#clanak p {
				font-size:16px;		
			}
			
				@media screen and (max-width: 800px) {
					  #clanak {
						width: 96%; 
						margin:0 auto;
					  }
					}

			
			
		/*	Članak glavna slika članka */
	
			.container_cl {
				position: relative;
				margin: 0 auto;  
			}
			
			.container_naslov {
				text-decoration: none;		
				color:#666;
				font-size:14pt;
				margin:0;
				padding:10px;
				font-weight:300;    
				vertical-align: middle;	
				background-color: #f9f6fe; 
			}			

			.container_cl img{
				width:100%;
			}
			
			.container_cl .content_cl {
			  position: absolute;
			  top:0;
			  background: rgb(0, 0, 0); /* Fallback color */
			  background: rgba(0, 10, 10, 0.5); /* Black background with 0.5 opacity */
			  color: #ddd;
			  width: 100%;
			  font-size:18px;
			  padding: 10px 3%;
			}
			
			.container_cl .content_cl h1, h2, h3,h4,h5{
				color:#eee;
			}				

				.container_cl .content_cl h1{
					font-size:28px;
					color:#fff;
					font-weight:100;
				}

					@media screen and (max-width: 1100px) {
					  .container_cl .content_cl h1{
					   font-size:4vw;
						margin-top:0;
					  }
					}						

							.sadrzaj{
								padding:10px;
							}
					
								.sadrzaj table {
								  border-collapse: collapse;
								  width: 100%;
								}

								.sadrzaj td, .sadrzaj th {
								  border: 1px solid #999;
								  padding:10px;
								}

								.sadrzaj tr:hover {background-color: #ddd;}

								.sadrzaj th {
								  padding-top: 12px;
								  padding-bottom: 12px;
								  text-align: left;
								  background-color: #4CAF50;
								  color: white;
								}

					
	.footer {
		font-family: Poiret One;			
		width: 100%;	
		background: #fff; 
		color: #999;
		text-align: center;
		font-size: 12px;  
		padding:20px;
		box-shadow: 0 -6px 10px #eee;	
		margin-top:30px;
	}

	.footer h2{
		font-size: 18px; 
		margin:2px;
		color:#000040;		
	}

	.footer h4{
		font-size:16px;	
		margin:2px;
		color:#000040;		
	}	
	
	.footer h4 a{
		font-size:16px;	
		margin:2px;
		color:#000040;
		text-decoration: none;				
	}
	
	.footer h4 a:hover{
		color:red;
		font-weight:800;
		text-decoration: none;		
	}		

		

				
				
				
				/* Blokovi su nevidljivi prije nego uđu u viewport */
				.animate-on-scroll {
				  opacity: 0;
				  transform: translateY(50px);
				  transition: all 2s ease-out;
				}  

				/* Kad postanu vidljivi, primijeni animaciju */
				.animate-on-scroll.visible {
				  opacity: 1;
				  transform: translateY(0);
				}

				
				/* Osigurajte da slike uvijek imaju vidljivost nakon učitavanja */
				img {
				  opacity: 1; /* Početno nevidljivo */
				  transition: opacity 0.5s ease-in; /* Glatko prijelazno učitavanje */
				}

				img[data-src] {
				  opacity: 1; /* Kad je `data-src` postavljen, prikaži sliku */
				  transition: opacity 0.5s ease-in;
				}

				/* Osiguravanje da slike budu vidljive na malim zaslonima */
				@media (max-width: 576px) {
				  .animate-on-scroll {
					opacity: 1; /* Prikaži blokove bez animacije na malim zaslonima */
					transform: none;
				  }
				}				