* {box-sizing: border-box}
body {
    font-family: Arial, Helvetica, sans-serif;
    margin: 0;
    }

.navbar {
  width: 100%;
  background-color: #555;
  overflow: auto;
  position: fixed;
  top: 0;
}

.navbar a {
  float: left;
  padding: 10px;
  color: white;
  text-decoration: none;
  font-size: 15px;
  width: 12.5%; /* Four8 links of equal widths */
  text-align: center;
}

.navbar a:hover {
  background-color: #000;
}


@media screen and (max-width: 300px) {
  .navbar a {
    float: none;
    display: block;
    width: 100%;
    text-align: left;
  }
}

/* Header/Blog Title */
.header {
  padding: 30px;
  text-align: center;
  color: white;
  
  background-image: url('fotke/00.jpg');
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: cover;
}

.header h1 {
  font-size: 50px;
  margin:auto;width:60%;
}
.header h2 {
  margin:auto;
  max-width:60%;
}

/* Position the image container (needed to position the left and right arrows) */
.container {
  position: relative;
}

/* Naslov */
.naslov {
  color: #f2f2f2;
  font-size: 15vw;
  padding: 8px 12px;
  background-color: #222;
  opacity: 0.8;
}

/* Container for image text */
.caption-container {
  text-align: center;
  background-color: #222;
  padding: 2px 16px;
  color: white;
}

.display-container{position:relative}
.display-middle{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%)}
.display-bottomleft{position:absolute;left:0;bottom:0}
.display-bottomright{position:absolute;right:0;bottom:0}


 /* članki txt+jpg */
.main {
  background-color: white;
  padding: 20px;
  float: left;
  width: 60%; /* The width is 60%, by default */
}

.right {
  background-color: white;
  padding: 20px;
  float: left;
  width: 40%; /* The width is 20%, by default */
}

/* Use a media query to add a break point at 400px: */
@media screen and (max-width: 400px) {
  .main, .right, .header h1, .header h2 {
    width: 100%; /* The width is 100%, when the viewport is 400px or smaller */
  }
}


hr { 
  display: block;
  margin-top: 0.5em;
  margin-bottom: 0.5em;
  margin-left: auto;
  margin-right: auto;
  border-style: inset;
  border-width: 1px;
  color:#f2f2f2;
} 

/* Style the gallery */

div.gallery {
  margin: 5px;
  border: 1px solid #ccc;
  float: left;
  width: 300px;
  height: 300px;
}

div.gallery:hover {
  border: 1px solid #777;
}

div.gallery img {
  width: 100%;
  height: auto;
}

div.desc {
  padding: 15px;
  text-align: center;
}


/* Style the footer */
footer {
  background-color: #000000;
  padding: 10px;
  text-align: center;
  color: white;
}

.button {
  border: none;
  color: white;
  padding: 16px 32px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  margin: 4px 2px;
  transition-duration: 0.4s;
  cursor: pointer;
}

.button1 {
  background-color: #008CBA; 
  color: black; 

}

.button1:hover {
  background-color: #04AA6D;
  color: white;
}

.button2 {
  background-color: #04AA6D; 
  color: black;
  border-radius: 50%;
}

.button2:hover {
  background-color: #008CBA;
  color: white;
}


