* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.counter {
  text-align: center;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  background-color: rgb(51, 67, 68);
  opacity: 0.3;
  color: #fff;
  width: 100%;
  padding: 20px;
  font-size: 50px;
}
.pad {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 10px;
  margin-right: 40px;
  margin-left: 40px;
  color: #858484;
}
.pad1 {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding-right: 40px;
}
.count,
.count1,
.count2 {
  font-weight: bold;
  display: flex;
  flex-direction: column;
}
body {
  font-family: Arial, sans-serif;
  font-size: 20px;
  line-height: 1.5;
  background-color: rgb(255, 255, 255);
  color: black;
  background-image: url(images/back.jpg);
}

a {
  color: white;
  text-decoration: none;
}

a:hover {
  color: #666;
}

header {
  margin-top: 0;
  position: fixed;
  background-color: rgb(51, 67, 68);
  border-bottom: 1px solid #ddd;
  padding: 10px;
  display: flex;
  flex-direction: row;
  color: white;
  width: 100%;
  height: 12%;
}

h1 {
  font-size: 36px;
  margin: 0;
}

nav {
  display: flex;
  justify-content: center;
  align-items: center;
}

.sb {
  font-size: 25px;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

nav li {
  display: inline-block;
  padding-right: 20px;
}

nav li:last-child {
  margin-right: 200;
}

nav a {
  font-size: 18px;
}

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

section {
  margin-bottom: 20px;
}

h2 {
  font-size: 24px;
  margin-bottom: 20px;
}

ul {
  list-style: disc;
  margin-left: 20px;
}

.galerija {
  display: flex;
  margin: auto;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding: 2%;
  margin-top: 4%;
  width: 75%;
  height: 90%;
  overflow: hidden;
}

#glavna {
  width: 640px;
  height: 480px;
}

#slike {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 4%;
}

.slika {
  width: 96px;
  height: 60px;
  padding: 0.5%;
}

.gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.gallery img {
  width: 30%;
  margin-bottom: 20px;
  transition: all 0.5s ease-in-out;
}

.gallery img:hover {
  transform: scale(1.1);
}

.kont2 {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  background-color: rgb(51, 67, 68);
  border-radius: 50px;
  color: white;
}

.kon {
  margin: 50px;
}

.social {
  display: flex;
  justify-content: center;
  margin-top: 50px;
}

.social a {
  display: block;
  margin: 0 10px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  text-align: center;
  line-height: 50px;
  font-size: 24px;
  color: #fff;
  background-color: rgb(51, 67, 68);
  transition: background-color 0.3s ease;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.social a:hover {
  background-color: rgb(93, 108, 109);
  transform: scale(1.1);
}

.social a.facebook {
  background-image: url(images/fb.png);
}

.social a.twitter {
  background-image: url(images/tw.png);
}

.social a.instagram {
  background-image: url(images/ig.png);
}

form label {
  display: block;
  font-size: 18px;
  margin-bottom: 10px;
}

form input,
form textarea {
  display: block;
  font-size: 16px;
  padding: 10px;
  width: 100%;
  margin-bottom: 20px;
  background-color: rgb(51, 67, 68);
  color: white;
}

form textarea {
  height: 150px;
}

button[type="submit"] {
  background-color: rgb(51, 67, 68);
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
}

button[type="submit"]:hover {
  background-color: rgb(93, 108, 109);
}

footer {
  background-color: rgb(51, 67, 68);
  color: #fff;
  padding: 20px;
  text-align: center;
}

.photo {
  width: 25%;
  height: 90%;
  padding: 10px;
  margin: 7px;
  margin-bottom: 5px;
}

@media only screen and (max-width: 768px) {
  #gallery {
    padding: 20px;
  }

  .gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  .gallery img {
    width: calc(33.33% - 10px);
  }
  .counter {
    font-size: 30px;
  }
}

html {
  font-size: 16px;
  line-height: 1.5;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

p {
  margin-top: 0;
  margin-bottom: 1.5rem;
}

img {
  max-width: 100%;
  height: auto;
}

@media (min-width: 768px) {
  html {
    font-size: 18px;
  }

  .container {
    max-width: 1170px;
  }

  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    margin-top: 3rem;
    margin-bottom: 1.5rem;
  }

  p {
    margin-bottom: 2rem;
  }

  #gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .gallery img {
    width: calc(33.33% - 10px);
  }
}

@media (min-width: 1200px) {
  html {
    font-size: 20px;
  }

  .container {
    max-width: 1440px;
  }

  .gallery img {
    margin-bottom: 20px;
  }
}
