body {
	background: #030124 url(../img/bg-full.jpg) top center no-repeat; 
	color: #fff;
}

body#galerija, 
body#profil {
	background: #030124 url(../img/bg-galerija.jpg) top center no-repeat; 
}

#header {
}

#main {
	height: 552px;
	margin-top: 50px;
}

#footer {
}

h1 {
	color: #ed1c24;
	padding-bottom: 40px;
	font-size: 16px;
	font-weight: bold;
}

h2, h3, h4, h5 {
	color: #fff; 
}

h3 {
	font-size: 13px;
	font-weight: bold;
}

.black {
	color: #333;
}

.ital {
	font-style: italic;
}

a {
	font-weight: bold;
	color: #eef;
}

a:active, a:hover {
	font-weight: bold;
	color: #f33;
}

table {margin-bottom: 1.4em; width: 100%;}
th {font-weight: bold;}
thead th {background: #c3d9ff;}
th, td, caption {padding: 1px;}
tr.even td {background: #e5ecf9;}
tfoot {font-style: italic;}


/* ------------- Elementi navigacije  ----------------- */

#topline {
	background: #030124 url(../img/top_line.jpg) top center no-repeat; 
	height: 40px;
}

#topline a {
	text-decoration: none;
}

#topline .loginbox {
	text-align: right;
	padding: 0px 15px;
}

#topline .loginlink a {
	font-size: 15px;
	color: #ed1c24;
/*	color: #fff; */
	font-weight: bold;
}
#topline .loginlink a:hover {
	color: #ed1c24;
}

#topline .reglink {
	font-size: 11px;
}

#links {
	margin-top: 330px;
}

#links a {
	text-decoration: none;
	color: #2ac5f4;
	font-weight: bold;
}

#links a:active, #links a:hover {
	font-weight: bold;
	color: #ed1c24;
}

#maintext {
	margin: 0;
	overflow: auto;
	height: 400px;
	width: 470px;
	position: relative;
}

#counter {
	text-align: right;
	position: relative;
	padding-top: 32px;
	font-weight: bold;
	line-height: 1.75;
}

/* ------------- Navigacija  ----------------- */

#headernav {
	margin: 0;
	padding: 0;
}

#headernav ul {
	height: 32px;
	margin: 0 84px;
	padding: 0;
}

#headernav li {
	list-style: none;
	height: 32px;
	float: left;
	position: relative;
}

#headernav li a {
	width: 84px;
	height: 32px;
	text-indent: -9000px;
	display: block;
}

#headernav .current a { 
	background-position: 0 -32px; 
}

a#start {
	width: 84px;
	height: 32px;
}
a#end {
	width: 84px;
	height: 32px;
}

a#start{ background-image: url(../img/nav_00.jpg); }
a#tvojosmeh { background-image: url(../img/nav_01.jpg); }
a#konkurs { background-image: url(../img/nav_02.jpg); }
a#gwr { background-image: url(../img/nav_03.jpg); }
a#registracija { background-image: url(../img/nav_04.jpg); }
a#galerija { background-image: url(../img/nav_05.jpg); }
a#patrola  { background-image: url(../img/nav_06.jpg); }
a#zabava   { background-image: url(../img/nav_07.jpg); }
a#novosti  { background-image: url(../img/nav_08.jpg); }
a#kontakt  { background-image: url(../img/nav_09.jpg); }
a#end { background-image: url(../img/nav_10.jpg); }

#headernav li a:hover { 
	background-position: 0 -32px; 
}

/* ------------- Galerija  ----------------- */

#photo,
#mygallery,
#mycodes {
	margin: 0;
	overflow-y: auto;
	position: relative;
}

#photo {
	width: 545px; 
	height: 405px;
}

#mygallery, #mycodes {
/* width: 425px; */
	height: 375px;
}

.gallery{
  margin: 0; padding: 0;
  overflow: hidden; /* Clears the floats */
  width: 100%; /* IE and older Opera fix for clearing, they need a dimension */
  list-style: none;
}

.gallery li{
	float: left;
  display: inline; /* For IE so it doesn't double the 1% left margin */
	width: 23.5%; /* This is for IE, other browsers may use 24% */
/*   margin: 0 1% 10px 0; padding: 0; */
  margin: 0 0 3px 1%; padding: 1px 0;
/*  margin: 0; padding: 0; */
	height: 96px;
	position: relative;
}

.gallery a,
.gallery img {
	display: block;
	width:100%;
}

a img{ border: none; } /* A small fix */
.gallery a:link,
.gallery a:visited,
.gallery a:focus,
.gallery a:hover,
.gallery a:active{
	/* padding:3px; */
	width: 120px; height: 90px;
	overflow: hidden;
	/* border:1px solid #eeefef; We blend the border with the bg, as if it isn't there */
	border: 1px transparent;
	position: absolute; top: 50%; left: 50%; /* position it so that image's top left corner is in the center of the list item */
	margin: -45px 0 0 -60px; /* Pull the image into position with negative margins (margins value is half of the width of the image) */
}

.gallery a:hover{
	border-color: #dfdfdf;
}

.gallery span {
	width: 20px;
	height: 18px;
	display: block;
	position: absolute;
	bottom: 5px;
	right: 5px;
}
.gallery .favorit {
	background: url(../img/favorite.gif) no-repeat;
}
.gallery .foto {
	background: url(../img/foto.gif) no-repeat;
}
.gallery .video {
	background: url(../img/video.gif) no-repeat;
}
.gallery .konkurs1 { background: url(../img/konkurs1.png) no-repeat; }
.gallery .konkurs2 { background: url(../img/konkurs2.png) no-repeat; }
.gallery .konkurs3 { background: url(../img/konkurs3.png) no-repeat; }
.gallery .konkurs4 { background: url(../img/konkurs4.png) no-repeat; }
.gallery .konkurs5 { background: url(../img/konkurs5.png) no-repeat; }
.gallery .konkurs6 { background: url(../img/konkurs6.png) no-repeat; }

/* .gallery a:hover span {
	background-position: left -22px;
}
*/

/* ------------- Paginacija  ----------------- */

#pagination {
	margin: 10px 0px;
	width: 550px;
/*	position: relative;
	top: 110px;
	left: 260px; */
}
#pagination ul{
	margin: 0; padding: 0;
    overflow: hidden; /* Clears the floats */
}

#pagination li{
  list-style: none;
  display: inline;
  border: none;
/*  position: relative; */
}

#pagination a:link,
#pagination a:visited,
#pagination li.current,
#pagination li.disabled {
  margin: 2px; padding: 4px 7px;
  background-color: #ccf;
  text-decoration: none !important;
  font-weight: bold;
  color: #006;
}

#pagination a:link.current,
#pagination a:visited.current,
#pagination li.current {
  background: transparent;
  color: #fff;
}

#pagination li.disabled {
	margin: 2px; padding: 4px 1px;
  background: transparent;
  color: #fff;
}


#pagination a:hover {
  background-color: #fff;
}


/* ------------- Intro strana  ----------------- */

#intro {
	background: #030124 url(../img/bg-intro.jpg) top center no-repeat; 
}

#enter-site {
	text-align: center;
	margin-top: 455px;
}

.enter {
	font-weight: bold;
	font-size: 13px;
}

li.konkurs1 { 
	position: absolute; 
	top: 0; left: 0; 
	width: 100%; height: 100%; 
	z-index: 2; 
	background-image: url(../img/konkurs.png); 
	image-repeat: none;
}

/* ------------- Overlay ----------------- */

div.overlay { 
	background-image: url(../img/poziv.png); 
	width: 570px; 
	height: 520px; 
	display: none; 
}
 
/* default close button positioned on upper right corner */ 
div.overlay div.close { 
	background-image: url(../img/overclose.png); 
	position: absolute; 
	right: 165px; 
	top: 25px; 
	cursor: pointer; 
	height: 35px; 
	width: 35px; 
}

#uplink {
	position: relative; 
	top: -30px; 
	text-align: right;
}

#gallink {
	position: relative; 
	top: -30px; 
	text-align: left;
}


.button {
	padding: 4px 12px 4px 12px;
	text-decoration: none;
	font-weight: bold;
}