body{width:100vw; height:auto; display:block; box-sizing: border-box; border:none; padding: 0; margin: 0; 
	color:white; font-family:Tahoma, sans-serif; font-size:1em; line-height:125%;
	background-color:#ccc; overflow-x:hidden; overflow-y:auto;
	background-image:url("/slike/body_background.svg"); background-repeat:repeat; background-size:2vw auto}	
	
	header{position:fixed; top:0vh; left:0; width:100vw; height:calc(100vh + 5.2em); overflow:hidden; 
		margin-top:0; background-image:url('/slike/background.svg'); font-size:1em;
		background-size:2vw auto; background-repeat:repeat; background-color:#3E484F;
		box-sizing: border-box; z-index:100; box-shadow:0 0em .25em black; transition:.35s;}
		#header_logo{position:fixed; top:0; left:calc(50vw - 12em); width:24em; height:auto; /*inače je 12em*/
						z-index:111; transition:.35s; cursor:pointer; background-color:#3E484F; padding:2em 1em 1em 1em;
						box-sizing:border-box; border-bottom-left-radius:.5em; border-bottom-right-radius:.5em}		
		#header_logo:hover{box-shadow:0 0em 1em -.25em #333;}
		header figure{width:100vw; height:100vh; margin:0; padding:0; background-repeat:no-repeat;
					background-image:url(/slike/header_bg.webp); background-size:100vw auto; background-position:left bottom }
			header figure img{position:absolute; width:13vw; height:auto; bottom:39vh; left:8vw; opacity:0; 
							animation-name:blicanje; animation-iteration-count:infinite; animation-duration:5s;}
			header figure img:last-of-type{left:6.5vw; width:8vw; bottom:44vh;}
			@keyframes blicanje {	0% {opacity:0;}
									10% {opacity:0}
									15% {opacity:1}
									18% {opacity:0}
									20% {opacity:1}
									25% {opacity:1}
									28% {opacity:0}
									55% {opacity:0}
									60% {opacity:1;}
									62% {opacity:0;}
									64% {opacity:1;}
									70% {opacity:1;}
									74% {opacity:0;}
									76% {opacity:0;}
									100% {opacity:0}
								}	
			header figcaption{width:30vw; margin:0; margin-top:35vh; height:auto; float:right; background-color:#3E484F; 
					color:white; font-family:Montserrat; padding:1.5vw; padding-right:4vw; border-bottom-left-radius:3vw; 
					border-top-left-radius:3vw;	font-size:2.6vw; text-align:right; display:block; line-height:120%}			
		nav{position:fixed; top:calc(35vh + 12vw); left:calc(100vw - 21em - 4vw); overflow:hidden; opacity:1; background-color::#3E484F;
			width:calc(21em + 4vw); height:6em; display: flex; justify-content: space-around; transition:.35s; z-index:110; font-size:1em;
			border-radius:1em; padding:1em; padding-right:4vw; box-sizing:border-box;}
				nav button{display:block; border:none; height:100%; width:5em; font-size:1em; margin:0;
						background-size:40% auto; background-position:center 20%; background-repeat:no-repeat; 
						box-sizing:border-box; text-align:center; text-decoration:none; overflow:hidden;
						padding-top:2.5em; color:white; transition:.35s; opacity:.5; cursor:pointer; background-color:#3E484F}
					nav button:nth-of-type(4){background-size:45% auto}
					nav button:hover{padding-top:2.7em; opacity:1; color:white}
					nav button:disabled{opacity:1; cursor:pointer; color:white}
					nav button:disabled:hover{opacity:1; cursor:default; color:white}
					#fejs{display:none}
/*-----------------------------------------sredina--------------------------------*/
main {width:62em; margin:0; margin-left:calc(50vw - 35em); height:auto; z-index:0; background-color:white; box-shadow:0em 0 10em #3E484F;
		border-left:.25em solid #3E484F; border-right:.25em solid #3E484F; /*box-sizing:border-box;*/
		color:black; padding:0.1em 4em 1em 4em; font-size:1em}
	section{width:100%; margin:0; z-index:0; float:none; padding-top:9em; display:block;}	
	section:after{content:''; height:0.0001em; display:block; float:none; clear:both; background-color:none}	
	#o_nama {} 
		#o_nama figure{width:100%; float:none; height:auto; background-image:url(/slike/motopitstop_trgovina.webp); margin:0; 
					background-size:100% auto; background-position:top; background-repeat:no-repeat; padding-top:26em;
					border-top:.25em solid #3E484F; box-sizing:border-box}
			#o_nama img{width:36%; height:auto; padding:0; margin:0 24.5%; }
			#o_nama figcaption{font-size:5.8em; width:100%;  box-sizing:border-box; float:none; font-family:Rubik,sans-serif;
							font-weight:550; margin-top:-.75em; margin-bottom:1em; margin-left:27.75%; color:white; letter-spacing:-0.06em}
				h1{color:black; width:100%; text-align:center; font-weight:600; font-size:3em; line-height:100%; color:#3E484F;
					padding:0 .2em; margin:0; margin-bottom:0.5em; box-sizing:border-box; text-transform:uppercase; font-family:Krona;
					word-break:break-word}
				h1 span{font-size:85%}
				h1 span:before {content: "\a";  white-space: pre;}
				h2{font-size:1em; text-align:center; clear:left; color:#E31E24; line-height:95%}
				p{line-height:150%; padding:0; margin:0; margin-top:0.5em; }
				p span{color:#ED3136; font-weight:bold; font-family:Krona}
				#o_nama	p{text-align:center}
	#usluge {} /*ove gre za jscript*/
		#usluge DIV{width:100%; padding:0 4em; box-sizing:border-box}
		#usluge figure{width:25%; float:left; margin:0; padding:0; box-sizing:border-box; background-image:none; font-size:1em; margin-top:1em;}
			#usluge img{width:10em; height:10em; padding:0; margin:0; border:.25em solid #3E484F; border-radius:100em; background-color:white;
						margin-left:calc(50% - 5em)}
			#usluge figcaption {font-size:1em; width:100%;  box-sizing:border-box; float:none; margin:0; color:black; margin-top:1em }
				#usluge figcaption h2{font-size:2em; font-family:Rubik,sans-serif;font-weight:550; padding:0; margin:0; }	
				#usluge figcaption p{font-size:1em; font-weight:normal; color:black; text-align:center }	
	#novosti {}
		.fb-page{padding:0 calc(50% - 250px); margin:0; Width:100%; box-sizing:border-box; border-bottom:none;
				background-image:url(/slike/facebook-bg.svg); background-size:auto 50%; background-repeat:space; margin-top:1em}
		#novosti h1{font-size:2.5em;}														
	#kontakt {}
		address{width:100%; display:flex; justify-content: space-between; align-items: center; padding:1em 11em; 
				box-sizing:border-box; font-style:normal; }	
			#kontakt a{background-size:75% auto; border:none; width:9.5em; height:11em; box-sizing:border-box; 
							background-color:white; background-repeat:no-repeat; border-radius:30em 30em 0 0;
							background-position:top center; padding:0; cursor:pointer; text-align:center; transition:.35s;
							padding-top:7.5em; color:black; font-size:100%; display:block;text-decoration:none}
			#kontakt a:hover{color:#E31E24; padding-top:7.8em; background-size:78% auto;}
			#kontakt a:nth-of-type(1){background-image:url(/slike/kontakt_tel.svg)}
			#kontakt a:nth-of-type(2){background-image:url(/slike/kontakt_msneger.svg)}
			#kontakt a:nth-of-type(3){background-image:url(/slike/kontakt_karte.svg)}						
			#kontakt a:nth-of-type(4){background-image:url(/slike/kontakt_mail.svg)}						
	#copyright{position:static; clear:both; width:100%; height:auto; text-align:center; margin-top:3em;
				color:black; background-color:white; text-align:center; font-size:.85em}		
	#pero{display:inline-block; color:rgba(0,0,0,0); width:2em; height:2em; border-radius:100em;
			background-image:url(/slike/pero.svg); background-size:cover; margin:0em; overflow:hidden; margin-left:2em}
	.motor{position:fixed; height:2.5em; width:3em; left:-3em; bottom:0;
				background-size:contain; background-repeat:no-repeat; background-position:bottom;
				animation-name:footer; animation-iteration-count:infinite; animation-duration:10s; animation-timing-function:ease-in;
				 float:left}
	.motor:nth-of-type(1){background-image:url(/slike/motor_1.svg); }
	.motor:nth-of-type(2){background-image:url(/slike/motor_2.svg); animation-delay:2s; animation-duration:12s; animation-timing-function:linear}
	.motor:nth-of-type(3){background-image:url(/slike/motor_3.svg); animation-delay:5s; animation-duration:10s; }
	@keyframes footer {	0% {left:-3em;}
							100% {left:101vw;}
							}	
		
@font-face {font-family: Montserrat; src: url(/fontovi/montserrat-regular.otf);}
@font-face {font-family: Krona; src: url(/fontovi/KronaOne-Regular.ttf);}
@font-face {font-family: Rubik; src: url(/fontovi/Rubik.ttf);}
	
		
/* -------------------------------------------   za mobitel   -------------------------------------------------------- */	
@media only screen and (max-width: 70em) {	
body{} 
	header{height:calc(100vh + 3em); background-size:auto 4vh; position:fixed}
		#header_logo{position:fixed; top:0; left:10vw; width:80vw; height:20vh; box-sizing:border-box;
						padding:4vh 1vh 1vh 1vh; border-bottom-left-radius:.5em; border-bottom-right-radius:.5em;
						object-fit:contain; background-color:#3E484F;}		
		#header_logo:hover{box-shadow:0 0em 1em -.25em #333;}
		header figure{width:100vw; height:100vh; background-size:auto 70vh; background-position:-7vh bottom;  }
			header figure img{position:absolute; width:auto; height:15vh; top:64vh; left:6vh; opacity:0; 
							animation-name:blicanje; animation-iteration-count:infinite; animation-duration:5s;}
			header figure img:last-of-type{left:2.8vh; height:10vh; width:auto; }
			header figcaption{width:90vw; margin-top:23vh; padding:2vw; padding-right:5vw; border-bottom-left-radius:3vw; 
					border-top-left-radius:3vw;	font-size:6.7vw; text-align:right; display:block; line-height:120%;
					box-sizing:border-box; background:none}		
		nav{position:fixed; top:calc(23vh + 30vw); left:calc(100vw - 2em - 5vw); overflow:hidden; 
			width:calc(2em + 5vw); height:2em; display:block; transition:.35s; z-index:1000; font-size:1em; cursor:pointer;
			border-radius:0em; padding:0em; padding-right:0; padding-top:2em; box-sizing:border-box; 
			background-size:2em auto; background-image:url(/slike/header_menu_za_mobitel.svg); background-repeat:no-repeat; 
			background-position:calc(100% - 5vw) top; background-color:#3E484F;}
				nav button{height:40%; width:50%; font-size:1em; margin:0; margin-bottom:5%; float:left;
						background-size:auto 11vw; background-position:10% center; background-repeat:no-repeat; 
						box-sizing:border-box; text-align:center; text-decoration:none; overflow:hidden; padding:0em;
						padding-top:0em; padding-left:3vw; color:white; transition:.35s; opacity:1; cursor:pointer; background-color:#3E484F;}
					nav button:nth-of-type(4){background-size:auto 11vw}
					nav button:hover{padding-top:2.7em; opacity:1; color:white}
					nav button:disabled{opacity:1; cursor:pointer; color:white}
					nav button:disabled:hover{opacity:1; cursor:default; color:white}
					#fejs{display:none}			
main {width:100vw; margin:0; margin-left:0; height:auto; z-index:0; background-color:white; box-shadow:none;
		border-left:none; border-right:none; box-sizing:border-box; color:black; padding:0.1em 0 1em 0; }
	section{width:100%; margin:0; z-index:0; float:none; padding:0; padding-top:4em; display:block; box-sizing:border-box; height:auto}	
	section:after{content:''; height:0.0001em; width:100%; display:block; float:none; clear:both; background-color:none}	
	#o_nama {padding-top:9em;} 
		#o_nama figure{padding-top:35vw; border-top:none; box-sizing:border-box; height:auto; width:100%; overflow-x:hidden }
			#o_nama img{width:64%; height:auto; padding:0; margin:0; margin-left:18%; }
			#o_nama figcaption{font-size:16.5vw; width:50%; margin:0; padding:0; box-sizing:border-box; letter-spacing:-1.5vw;
								margin-top:-13.5vw; margin-left:25vw;  margin-bottom:15vw}
				h1{color:black; width:100%; text-align:center; font-weight:600; font-size:2em; line-height:100%; color:#3E484F;
					padding:0 .35em; margin:0; margin-bottom:0.5em; box-sizing:border-box; text-transform:uppercase; font-family:Krona}
				h1 span{font-size:80%}
				h1 span:before {content: "\a";  white-space: pre;}
				h2{font-size:1em; text-align:center; clear:left; color:#E31E24; line-height:95%}
				p{line-height:150%; padding:0 1em; margin:0; margin-top:0.5em; }
				p span{color:#ED3136; font-weight:bold; font-family:Krona}
				#o_nama	p{text-align:center}
				#o_nama	br{margin-bottom:.5em}
	#usluge {} /*ove gre za jscript*/
		#usluge DIV{width:100%; padding:0 1em; box-sizing:border-box}
			#usluge figure{width:50%; float:left; margin:0; padding:0; box-sizing:border-box; 
							background-image:none; font-size:1em; margin-top:.5em;}
				#usluge img{width:28vw; height:28vw; padding:0; margin-left:calc(50% - 14vw); border:.25em solid #3E484F; 
							border-radius:100em; background-color:white; margin-top:1em}
				#usluge figcaption {font-size:1em; width:100%;  box-sizing:border-box; float:none; margin:0; color:black; margin-top:.5em }
					#usluge figcaption h2{font-size:1.75em; font-family:Rubik,sans-serif;font-weight:550; padding:0; margin:0; word-break:break-word }	
					#usluge figcaption p{font-size:1em; font-weight:normal; color:black; text-align:center }	
	#novosti {}
		.fb-page{padding:0; margin:0; Width:100%; box-sizing:border-box; border-bottom:none; background-image:none;  margin-top:1em}
		#novosti h1{font-size:2.5em;}														
	#kontakt {}
		address{width:100%; display:block; padding:1em 1em; 
				box-sizing:border-box; font-style:normal; }	
			#kontakt a{background-size:60% auto; border:none; width:50%; float:left; height:calc(37vw + 2em); box-sizing:border-box; 
							background-color:white; background-repeat:no-repeat; border-radius:30em 30em 0 0;
							background-position:top center; padding:0; cursor:pointer; text-align:center; transition:.35s;
							padding-top:30vw; color:black; font-size:100%; display:block;text-decoration:none}
			#kontakt a:hover{color:#E31E24; padding-top:30vw; background-size:62% auto;}					
	#copyright{position:static; clear:both; width:100%; height:auto; text-align:center; margin:0; margin-top:3em;
				color:black; background-color:white; text-align:center; font-size:.85em; padding:0;}		
		#pero{display:inline-block; color:rgba(0,0,0,0); width:2em; height:2em; border-radius:100em;
			background-image:url(/slike/pero.svg); background-size:cover; margin-top:1em; overflow:hidden; margin-left:0;clear:both}
	.motor{position:fixed; height:2.5em; width:3em; left:-3em; bottom:0;
				background-size:contain; background-repeat:no-repeat; background-position:bottom;
				animation-name:footer; animation-iteration-count:infinite; animation-duration:10s; animation-timing-function:ease-in;
				 float:left; }
	.motor:nth-of-type(1){background-image:url(/slike/motor_1.svg); }
	.motor:nth-of-type(2){background-image:url(/slike/motor_2.svg); animation-delay:2s; animation-duration:12s; animation-timing-function:linear}
	.motor:nth-of-type(3){background-image:url(/slike/motor_3.svg); animation-delay:5s; animation-duration:10s; }
	
}