body {
  font-family: "Merriweather", serif;
  background-color: #000000;
  color: #fff;
  margin: 0;
  padding: 0;
  margin: 0;
  padding: 0;
}

body::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 300px;
  width: 230px;
  background-image: url("images/pirun-crveni.png");
  z-index: -1;
  background-position: left bottom;
  background-repeat: no-repeat;
  background-size: contain;
}

.container {
  max-width: 100%;
  margin: 0 auto;
  padding: 20px;
  position: relative;
}

.container::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  height: 300px;
  width: 230px;
  background-image: url("images/pirun-bijeli.png");
  background-position: right top;
  background-repeat: no-repeat;
  background-size: contain;
  z-index: -1;
}

/* Za mobilne uređaje */
@media only screen and (max-width: 767px) {
  body {
    padding-bottom: 20px;
  }
  .container::after {
    top: 10%;
  }
}

h1 {
  text-align: center;
  opacity: 0;
  animation: scaleTitle 2s ease-in-out forwards 0.2s;
}

@keyframes scaleTitle {
  0% {
    transform: scale(1); /* Početna veličina naslova */
    opacity: 0;
  }
  50% {
    transform: scale(1.2); /* Srednja veličina naslova (povećanje) */
    opacity: 1;
  }
  100% {
    transform: scale(1); /* Originalna veličina naslova (smanjenje) */
    opacity: 1;
  }
}

h3 {
  text-align: center;
  opacity: 0;
  animation: scaleTitle 2s ease-in-out forwards 0.8s;
}

h3 a {
  color: #fff;
  text-decoration: none;
}

h3 a:hover {
  color: #d3bc90;
}

.column-container {
  max-width: 80%;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-gap: 10px;
}

@media only screen and (max-width: 1024px) {
  /* Za tablet */
  body {
    padding-bottom: 20px;
  }
  .column-container {
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 50px;
    max-width: 60%;
  }
}

@media only screen and (max-width: 767px) {
  /* Za širinu ekrana do 767px */
  .column-container {
    grid-template-columns: repeat(1, 1fr);
  }
}

.column {
  padding: 10px;
  background-color: #000000;
  opacity: 0;
  position: relative;
  height: 300px;
  border: 1px solid #fff;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
  animation: fadeIn 2s forwards;
}

.column:nth-child(2) {
  top: 40px; /* Prilagodite visinu prema potrebi */
}

.column:nth-child(3) {
  top: 80px; /* Prilagodite visinu prema potrebi */
}

.column:nth-child(4) {
  top: 120px; /* Prilagodite visinu prema potrebi */
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.column:nth-child(1) {
  animation-delay: 2.2s;
}
.column:nth-child(2) {
  animation-delay: 2.4s;
}
.column:nth-child(3) {
  animation-delay: 2.6s;
}
.column:nth-child(4) {
  animation-delay: 2.8s;
}

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

.column p {
  text-align: center;
  text-transform: uppercase;
  color: #d3bc90;
  font-family: "Open Sans", sans-serif;
  font-weight: 700;
}
