* {
    box-sizing: border-box;
}

body {
    font-family: Roboto, arial, helvetica, sans-serif;
    text-align: center;
    background: url(slike/park_spomenik_baci.jpg) no-repeat center center fixed; 
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
}

a { text-decoration: none; }

#page-wrapper {
    margin: 0 auto;
    width: 1000px;
    padding: 10px 0 20px 0;
    text-align: left;
    background-color: rgba(255, 255, 255, 0.8);
}

#zaglavlje {
    margin: 0 20px 0 10px;    
}

#podnozje {
    background-color: #01345B;
    color: white;
    margin: 0;
    padding: 0 20px 30px 20px;
}

.footerTitle {
    font-size: 18px;
    padding: 20px;
}

.floatRight {
    float: right;
}

.cbp {
    height: 15px;
    background: linear-gradient(to bottom, red 1px, red 5px, white 6px, white 10px, blue 10px, blue 15px);
}

.prekrizeno { text-decoration: line-through; }

#info-box {
    width: 1000px;
    margin: 0 auto;
    text-align: left;
}

#info-box div {
    line-height: 1.5;
    text-align: center;
}

#info-box h3 {
    margin: 0;
    padding: 20px;
    text-align: center;
}

#info-box span {
    color: #FA2742;
}

#info-box a {
    color: white;
}

#amblem_ubdr {
    height: 200px;
    width: auto;
}

#grb_zagreba {
    height: 130px;
    width: auto;
    /* float: right; */
    margin-top: 20px;
}

.eop {
    font-size: 36px;
    color: #FA2742;
    margin-top: 20px;
}

table {
    border-collapse: collapse;
    border: solid 1px gray;
    margin: auto;
}

thead th {
    border: solid 1px gray;
    background-color: gainsboro;
    padding: 4px 10px;
}

tbody td {
    border: solid 1px gray;
    padding: 4px 10px;
}

tfoot th {
    border: solid 1px gray;
    background-color: #cccccc;
    padding: 4px 10px;
}

.cell_right { text-align: right; }
.cell_center { text-align: center; }
.cell_left { text-align: left; }

.red {
    color: red;
}

#novosti {
    width: 1000px;
    padding: 20px;
    line-height: 1.5;
    position: relative;
}

#h450px {
    min-height: 450px;
}

.w400px {
    width: 400px;
    height: auto;
}

.galerijaButton {
    background-color: orangered;
    color: white;
    font-weight: bold;
    display: block;
    padding: 10px;
    text-align: center;
    border-radius: 20px;
    float: right;
    margin: 0 -20px 30px 30px;
    line-height: 1.7;
    transform: rotate(-15deg);
    -webkit-box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.75);
    -moz-box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.75);
    box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.75);
}

#novosti .galerija {
    background-color: orangered;
    color: white;
    font-weight: bold;
    display: block;
    padding: 20px;
    text-align: center;
    width: 130px;
    height: 130px;
    border-radius: 200px;
    float: right;
    margin: 30px -20px 30px 30px;
    line-height: 1.7;
    transform: rotate(-15deg);
    -webkit-box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.75);
    -moz-box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.75);
    box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.75);
}

#novosti h1 {
    font-size: 28px;
}

#novosti .galerija:hover, .galerijaButton:hover {
    color: orangered;
    background-color: white;
}

#novosti .galerija i {
    font-size: 2em;
    display: inline-block;
    margin-top: 5px;
}

#novosti .okvir-sjena {
    border-radius: 10px;
    border: solid 3px gainsboro;
    -webkit-box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.75);
    -moz-box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.75);
    box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.75);
}

.credits {
    font-size: 12px;
    color: gray;
}

.credits a, .credits span {
    color: steelblue;
}

.credits a:hover {
    color: navy;
}

#novosti .medalja {
    position: absolute;
    right: 3px;
    top: 0;
}

#animate-holder {
    position: absolute;
    top: 270px;
    left: 610px;
}

#under-construction {
    padding: 15px;
    border-radius: 10px;
    background-image: linear-gradient(135deg, #000000 25%, #fed501 25%, #fed501 50%, #000000 50%, #000000 75%, #fed501 75%, #fed501 100%);
    background-size: 40px 40px;
    -ms-transform: rotate(10deg); /* IE 9 */
    -webkit-transform: rotate(10deg); /* Safari */
    transform: rotate(10deg);
}

#under-construction > div {
    background-color: #fed501;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
}

#under-construction .title {
    display: block;
    font-size: 24px;
    font-weight: bold;
}

.sadrzaj ul ul {
    margin: 10px 0;
}

.sadrzaj {
    padding: 0 20px;
}

.sadrzaj h1 {
    color: steelblue;
}

.sadrzaj h3 {
    padding-left: 30px;
}

.sadrzaj .indented {
    padding-left: 50px;
}

.sadrzaj p {
    text-align: justify;
    line-height: 1.5;
}

.sadrzaj figure {
    margin-top: 20px;
    color: navy;
}

.sadrzaj figcaption {
    font-style: italic;
    margin-top: 10px;
}

.justify {
    text-align: justify;
    display: block;
}

.padding20 {
    padding: 20px;
}

.novost-naslov {
    font-size: 1.5em;
}

.dva_stupca {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.tri_stupca {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
}

.cetiri_stupca {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
}

.emphasized {
    padding: 5px 20px;
    border-left: solid 5px steelblue;
}

.sadrzaj ul {
    margin-top: -10px;
    padding-top: 0;
}

.sadrzaj ul li {
    margin-top: 5px;
    line-height: 1.5;
}

.sadrzaj .float-right {
    float: right;
    margin: 0 0 20px 20px;
}

.sadrzaj .float-left {
    float: left;
    margin: 0 20px 20px 0;
}

.slika_s_opisom_desno {
    float: right;
    margin: 0 0 15px 15px !important;
    width: 400px;
    text-align: center;
}

.slika_s_opisom_lijevo {
    float: left;
    margin: 0 15px 15px 0 !important;
    width: 400px;
    text-align: center;
}

.sadrzaj img {
    border-radius: 10px;
    -webkit-box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.75);
    -moz-box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.75);
    box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.75);
}

#pristupnica {
    padding: 20px;
    line-height: 1.5;
}

#pristupnica select {
    padding: 10px;
    border-radius: 10px;
}

/* -------------------------------------------------------------------------- */
/* MOBILE MODE: ------------------------------------------------------------- */
/* -------------------------------------------------------------------------- */

@media only screen and (max-width: 600px) {

    body {
        font-size: 15px;
        padding: 10px;
    }

    #under-construction {
        width: 100%;
    }

    ul {
        margin-left: 0;
        padding-left: 20px;
    }

    h1 {
        margin-top: 40px;
    }

}

/* -------------------------------------------------------------------------- */
/* TABLET MODE: ------------------------------------------------------------- */
/* -------------------------------------------------------------------------- */

@media only screen and (min-width: 600px) and (max-width: 959px) {

    body {
        font-size: 14px;
        padding: 20px;
    }

}

/* -------------------------------------------------------------------------- */
/* DESKTOP MODE: ------------------------------------------------------------ */
/* -------------------------------------------------------------------------- */

@media only screen and (min-width: 960px) {

    body {
        font-size: 16px;
        padding: 0;
        margin: 0;
    }

    #zaglavlje {
        width: 960px;
        background: transparent url("slike/Pleter.svg") no-repeat left bottom;
        display: grid;
        grid-template-columns: 1fr 4fr 1fr;
    }

    #ubdr {
        font-family: "Black Ops One", cursive;
        font-size: 28px;
        color: navy;
        padding-top: 28px;
    }
    
    #gz {
        text-align: right;
    }
    
}

nav {
    width: 1000px;
    /* margin: 10px -20px; */
    padding-left: 20px;
    border-bottom: solid 1px navy;
    font-size: 16px;
    text-align: left;
    position: relative;
    z-index: 2000;
}

.sticky {
    position: fixed;
    top: 0;
    left: calc(50% - 500px);
    background-color: white;
    margin: 0;
    -webkit-box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.75);
    -moz-box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.75);
    box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.75);
}

nav ul {
    list-style-type: none;
    position: relative;
    float: left;
    margin: 0;
    padding: 0;
    /* background-color: white; */
}

nav ul a {
	display: block;
	color: navy;
	text-decoration: none;
	line-height: 12px;
	/* padding: 0 15px; */
	padding: 0.8rem;
	transition-duration: 0.5s;
}

nav ul a i.link {
  display: inline-block;
  margin-left: 20px;
}

nav ul li {
    color: white;
    /* background-color: darkorange; */
    display: block;
    float: left;
    /* padding: 1rem; */
    position: relative;
    text-decoration: none;
    /* transition-duration: 0.5s; */
    white-space: nowrap;
	/* border-right: solid 1px navy; */
}

nav ul li a:hover {
    background-color: navy;
    color: white;
    cursor: pointer;
}

nav ul ul {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	background: #fff;
	padding: 0;
	border: solid 1px navy;
}

nav ul ul li {
	float: none;
}

nav ul ul ul {
	top: 0;
	left: 100%;
}

nav ul li:hover > ul {
	display: block;
}

.purgatory {
    clear: both;
}

.centered {
    text-align: center;
}

.ralign {
    text-align: right;
}

#modal-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    text-align: center;
    display: none;
    z-index: 3000;
}

#modal-wrapper > div {
    margin: 100px auto 100px auto;
    padding: 20px;
    border: solid 20px gainsboro;
    border-radius: 20px;
    background-color: white;
    width: 800px;
    position: relative;
    // height: calc(100% - 200px);
}

#modal-wrapper > div p {
    font-size: 24px;
}

.exitButton {
    position: absolute;
    top: -34px;
    right: -34px;
    border: solid 3px #ff4d4d;
    background-color: white;
    color: #ff4d4d;
    cursor: pointer;
    outline: none;
    padding: 5px 3px 1px 3px;
    margin: 0;
    border-radius: 10px;
}

.exitButton:hover {
    background-color: #ff4d4d;
    color: white;
}

.fs36px { font-size: 36px; }

#arhiva_okvir {
    background-color: #cc0000;
    color: white;
    border-radius: 25px;
    padding: 8px 20px;
    text-align: right;
    margin: 20px 20px 0 20px;
}

#arhiva_okvir a {
    float: left;
    color: white;
}

#arhiva_okvir a:hover {
    text-decoration: underline;
}

#arhiva {
    padding: 20px;
}

.arhiva {
    border-bottom: solid 1px gray;
    color: gray;
    font-size: 24px;
}

.arhiva-slika {
    float: right;
    margin: 15px 0 10px 10px;
    border-radius: 5px;
    -webkit-box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.75);
    -moz-box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.75);
    box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.75);
}

.event {
    margin-top: 20px;
}

.event h1 {
    font-size: 1.5em;
    padding-left: 5px;
}

.objava i {
    display: inline-block;
    margin: 0 5px;
    color: orangered;
}

.objava {
    padding: 5px 10px;
    background-color: white;
    color: #cc0000;
}

.objava a {
    display: inline-block;
    margin-left: 15px;
    border-left: solid 1px orangered;
    padding-left: 15px;
    float: right;
    color: navy;
}

.objava a:hover {
    color: orangered;
}

.textObjave {
    padding: 5px 10px;
    line-height: 1.5;
}

#pop_oglas {
    position: fixed;
    background-color: #fed501;
    top: 0;
    right: -280px;
    bottom: 0;
    width: 300px;
    border-left: solid 3px black;
    padding: 0;
    -webkit-transition: right 0.5s; /* For Safari 3.1 to 6.0 */
    transition: right 0.5s;
    z-index: 2900;
}


#pop_oglas:hover {
    right: 0px;
}

#pop_render {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 20px;
    background-image: linear-gradient(135deg, #000000 25%, #fed501 25%, #fed501 50%, #000000 50%, #000000 75%, #fed501 75%, #fed501 100%);
    background-size: 40px 40px;
}

#pop_oglas_pokazi {
    position: absolute;
    white-space: nowrap;
    top: 20px;
    right: 100%;
    text-align: right;
    -webkit-transform-origin: 100% 100%;
    -webkit-transform: rotate(-90deg);
    transform-origin: 100% 100%;
    transform: rotate(-90deg);
    border-top: solid 3px black;
    border-left: solid 3px black;
    border-right: solid 3px black;
    border-bottom: none;
    background-color: #fed501;
    color: black;
    padding: 10px 20px;
    font-size: 18px;
    border-top-left-radius: 2em 5em;
    border-top-right-radius: 2em 5em;
    outline: none;
    cursor: pointer;
}

.mali_oglas {
    margin: 10px 10px 0 30px;
    padding: 10px;
    background-color: white;
    border-radius: 10px;
}

.mali_oglas img {
    max-width: 100%;
    height: auto;
}

.mali_oglas h1 {
    font-size: 18px;
}

.mali_oglas h2 {
    font-size: 14px;
}

.mali_oglas a {
    display: inline-block;
    padding: 8px 30px;
    background-color: #fed501;
    color: black;
    border-radius: 25px;
}

.mali_oglas a:hover {
    background-color: orangered;
    color: white;
}

#loader {
    margin: 40px;
}

#galerija-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    text-align: center;
    display: none;
    z-index: 3000;   
}

#galerija-foto {
    position: relative;
    margin: 160px auto 200px auto;
    width: 800px;
    padding: 20px;
    height: calc(100% - 260px);
    background-color: black;
    border-radius: 20px;
    border: solid 5px white;
    transition: all .3s ease-out;
    color: white;
    box-sizing: content-box;
}

#galerija-loader {
    margin-top: calc(50% - 128px);
}

#galerija-toolbar {
    position: fixed;
    top: 103px;
    left: calc(50% - 150px);
    width: 300px;
    height: 60px;
    padding-top: 7px;
    background-color: black;
    border-top-left-radius: 2em 5em;
    border-top-right-radius: 2em 5em;
    color: white;
    border: solid 2px gainsboro;
    transition: all .3s ease-out;
}

#galerija-toolbar button {
    color: orangered;
    border: solid 2px orangered;
    background-color: black;
    border-radius: 10px;
    font-size: 1.5em;
    padding: 5px 15px;
    cursor: pointer;
    outline: none;
}

#galerija-toolbar button:hover {
    background-color: orangered;
    color: white;
}

#galerija-toolbar span {
    display: inline-block;
    padding: 0 20px 3px 20px;
}

.gallery-image {
    position: absolute;
    display: none;
    top: 20px;
    left: 20px;
    border-radius: 10px;
    /* opacity: 0; */
}

#whatsapp {
    padding: 8px 20px;
    border-top: solid 2px #28b53f;
    border-bottom: solid 2px #28b53f;
    height: 80px;
    overflow: hidden;
    position: relative;
}

#whatsapp img {
    width: 60px;
    height: 60px;
    float: left;
    margin-right: 20px;
}

#whatsapp h1 {
    font-size: 22px;
    color: #28b53f;
    margin: 5px 0 5px 0;
    padding: 0;
    /* display: inline-block; */
}

#whatsapp div {
    position: absolute;
    top: 0;
    right: 20px;
    font-size: 18px;
    text-align: center;
    padding: 5px 20px;
    background-color: #28b53f;
    color: white;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

/* OGLAS U OBLIKU VIZITKE ----------------------------------------------------- */

#pop_vizitka {
    position: fixed;
    left: 20px;
    bottom: 20px;
    z-index: 2500;
    background-color: transparent;
    width: 400px;
    height: 200px;
    perspective: 1000px; /* Remove this if you don't want the 3D effect */
}

/* This container is needed to position the front and back side */
.vizitka-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.8s;
  transform-style: preserve-3d;
}

/* Do an horizontal flip when you move the mouse over the flip box container */
#pop_vizitka .vizitka-inner.flipMe {
  transform: rotateY(180deg);
}

/* Position the front and back side */
.vizitka-front, .vizitka-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
}

/* Style the front side (fallback if image is missing) */
.vizitka-front {
  background-color: #bbb;
  color: black;
}

/* Style the back side */
.vizitka-back {
  background-color: dodgerblue;
  color: white;
  transform: rotateY(180deg);
}