@import url('https://fonts.googleapis.com/css2?family=Lacquer&display=swap');

/* BODY, SECTION, FOOTER */

html{
  scroll-behavior: smooth;
}

body {
  padding: 0;
  margin: 0 auto;
  line-height: 1.5;
}

section {
  min-height: 100vh;
  background-size: cover;
  background-repeat: no-repeat;
  border-bottom: 2px solid black;
}

footer {
  font-family: drip;
  background-color: rgb(255, 255, 255);
  padding: 25px;
  font-size: 4em;
  text-align: center;
  box-shadow: 0px 2px 4px;
}

/* NAVIGACIJA */

nav {
  display: flex;
  justify-content: end;
  align-items: center;
  flex-wrap: wrap;
  width: 100%;
  position: fixed;
  z-index: 2;
  height: 80px;
  background-color: rgb(255, 255, 255);
  box-shadow: 0px 2px 4px;
  transition: background-color 0.5s ease, box-shadow 0.5s ease;
}

nav ul {
  display: flex;
  justify-content: end;
  margin: 0 auto;
  padding: 0;
}

nav li {
  list-style: none;
}

nav:hover {
  background-color: rgba(0, 0, 0, 0.8);
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.5);
}

nav a {
  font-family: street;
  text-decoration: none;
  padding: 0 30px;
  font-size: 4em;
  position: relative;
  transition: color 0.4s ease, transform 0.4s ease;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0%;
  bottom: -1px;
  width: 0%;
  height: 3px;
  background-color: currentcolor;
  transition: width 0.4s ease, left 0.4s ease;
}

nav a:hover {
  color: white;
  transform: scale(1.1);
}

nav a:hover::after {
  width: 100%;
  left: 0%;
}

nav li.jedan a:hover {
  color: #ce0a1e;
}

nav li.dva a:hover {
  color: #045fd5;
}

nav li.tri a:hover {
  color: #730ee6;
}

/* STRUKTURE SEKCIJA */

#pocetna {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  color: white;
  text-align: center;
  padding: 50px;
}

h2, p {
  font-family: "Lacquer", system-ui;
}

#pocetna p {
  font-size: 2.5em;
  color: #000000;
  text-shadow:
    -2px -2px 0 rgb(255, 255, 255),
    2px -2px 0 rgb(255, 255, 255),
    -2px 2px 0 rgb(255, 255, 255),
    2px 2px 0 rgb(255, 255, 255);
}

#jedan,
#dva,
#tri {
  display: grid;
  grid-template-columns: 2fr 2fr;
  grid-template-rows: 200px auto auto;
  padding: 50px;
  justify-items: center;
}

#jedan h1,
#dva h1,
#tri h1 {
  grid-column: 1 / 3;
  text-align: center;
}

h1 {
  animation: heading 2s ease-in-out 0.5s forwards;
  opacity: 0;
}

#jedan h2,
#dva h2,
#tri h2 {
  grid-row: 2 / 3;
  text-align: center;
  margin: 10px 0 30px;
}

#jedan .slider-container:first-of-type,
#dva .slider-container:first-of-type,
#tri .slider-container:first-of-type {
  grid-column: 1 / 2;
  grid-row: 3 / 4;
  width: 100%;
  max-width: 500px;
}

#jedan .slider-container:last-of-type,
#dva .slider-container:last-of-type {
  grid-column: 2 / 3;
  grid-row: 3 / 4;
  width: 100%;
  max-width: 500px;
}

#jedan h1,
#jedan h2 {
  color: #ce0a1e;
  text-shadow:
    -2px -2px 0 rgb(255, 255, 255),
    2px -2px 0 rgb(255, 255, 255),
    -2px 2px 0 rgb(255, 255, 255),
    2px 2px 0 rgb(255, 255, 255);
}

#dva h1,
#dva h2 {
  color: #045fd5;
  text-shadow:
    -2px -2px 0 rgb(255, 255, 255),
    2px -2px 0 rgb(255, 255, 255),
    -2px 2px 0 rgb(255, 255, 255),
    2px 2px 0 rgb(255, 255, 255);
}

#tri h1,
#tri h2 {
  color: #730ee6;
  text-shadow:
    -2px -2px 0 rgb(255, 255, 255),
    2px -2px 0 rgb(255, 255, 255),
    -2px 2px 0 rgb(255, 255, 255),
    2px 2px 0 rgb(255, 255, 255);
}

#dva .slide img {
  max-width: 540px;
  height: 500px;
}

/* SLIDER */
.slide {
  min-width: 100%;
  height: 500px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.slide img {
  width: 100%;
  transition: transform 0.3s ease;
  display: block;
}

.slide:hover img {
  transform: scale(1.1);
}

.slide {
  position: relative;
  overflow: hidden;
}

.slide .title-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 15px;
  text-align: center;
  font-family: 'drip', sans-serif;
  font-size: 2.5em;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  z-index: 1;
}

.slide:hover .title-overlay {
  transform: translateY(0);
}

.img-size {
  height: 470px;
}

.img-size2 {
  height: 470px;
}

.slider-container {
  position: relative;
  width: 80%;
  margin: 50px auto;
  overflow: hidden;
}

.slider {
  display: flex;
  transition: transform 0.5s ease;
  width: 100%;
}

button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 24px;
  padding: 10px;
  cursor: pointer;
  z-index: 1;
}

.prev {
  left: 10px;
}

.next {
  right: 10px;
}

button:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

/* FONTOVI */

@font-face {
  font-family: street;
  src: url(media/fontovi/street.ttf) format("truetype");
}

@font-face {
  font-family: drip;
  src: url(media/fontovi/drip.ttf) format("truetype");
}

/* MEDIJI */

.diz {
  display: block;
  width: 700px;
  border: black 2px solid;
}

/* NASLOVI I PODNASLOVI */

h1 {
  font-family: street;
  font-size: 9em;
  color: rgb(0, 0, 0);
  text-align: center;
  letter-spacing: 5px;
  margin: 0px 0px 30px;
}

h2 {
  font-size: 3.4em;
  color: rgb(0, 0, 0);
  text-align: center;
  letter-spacing: 2px;
}

/* MENI */

.meni {
  margin: 0 40px 0 0;
}

.meni a {
  clear: right;
  text-decoration: none;
  color: rgb(0, 0, 0);
  padding: 0 30px;
  line-height: 50px;
}

/* Animacija heading */

@keyframes heading {
  0% {
    opacity: 0;
    transform: translateY(30px);
    text-shadow: 
      -2px -2px 0 rgba(255, 255, 255, 0),
      2px -2px 0 rgba(255, 255, 255, 0),
      -2px 2px 0 rgba(255, 255, 255, 0),
      2px 2px 0 rgba(255, 255, 255, 0);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
    text-shadow: 
      -2px -2px 0 rgb(255, 255, 255),
      2px -2px 0 rgb(255, 255, 255),
      -2px 2px 0 rgb(255, 255, 255),
      2px 2px 0 rgb(255, 255, 255);
  }
}

/* RESPONZIVNOST */

@media only screen and (max-width: 768px) {
  /* NAVIGACIJA I MENI */

  nav {
    text-align: center;
    padding: 10px 0;
    background-color: white;
    height: 60px;
  }

  nav ul {
    display: flex;
    flex-direction: row;
    margin-left: 0;
    justify-content: center;
  }

  nav a {
    font-size: 1.8em;
    padding: 5px 10px;
    color: black;
  }

  nav:hover {
    background-color: white;
    box-shadow: 0px 2px 4px;
  }

  nav a:hover {
    color: rgb(0, 0, 0);
    transform: none;
  }

  nav a::after {
    content: "";
    position: absolute;
    left: 0%;
    bottom: 50px;
    width: 0%;
    height: 3px;
  }

  nav a:hover::after {
    width: 100%;
    left: 50%;
  }

  /* BODY, SEKCIJE i FOOTER */

  body {
    width: 100%;
  }

  section {
    padding: 20px;
    text-align: center;
    min-height: auto;
  }

  footer {
    font-size: 2.5em;
    padding: 10px;
  }

  /* SLIDER PRILAGODBE */

  .slider-container {
    width: 100%;
    margin: 20px auto;
  }

  .slide {
    height: auto;
    min-height: 200px;
  }

  .slide img {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
  }

  .slide .title-overlay {
    font-size: 1.8em;
    padding: 10px;
    position: absolute;
    transform: translateY(10%);
    bottom: 0;
    left: 46px;
    right: 46px;
  }

  .slide:hover .title-overlay {
    transition: all 0.3s ease-in-out;
  }

  #dva #slider4 .title-overlay {
    bottom: 5px;
    left: 0px;
    right: 0px;
  }

  #tri #slider5 .title-overlay {
    bottom: 17px;
    left: 56px;
    right: 48px;
  }

  /* GRID */

  #jedan,
  #dva,
  #tri {
    display: flex;
    flex-direction: column;
    align-items: center;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  #jedan h1,
  #dva h1,
  #tri h1,
  #jedan h2,
  #dva h2,
  #tri h2,
  #jedan h2:last-of-type,
  #dva h2:last-of-type {
    grid-column: auto;
    grid-row: auto;
  }

  #jedan .slider-container,
  #dva .slider-container,
  #tri .slider-container,
  #jedan .slider-container:last-of-type,
  #dva .slider-container:last-of-type {
    grid-column: auto;
    width: 100%;
    margin: 15px 0;
  }

  /* SADRŽAJ */

  h1 {
    font-size: 6em;
    margin: 15px 0;
  }

  h2 {
    font-size: 3em;
    margin: 10px 0;
  }

  /* MEDIJI */

  .slide:hover img {
    transform: scale(1);
  }

  #slider3 .slide img {
    width: 92%;
    margin-left: 8px;
    height: auto;
  }

  #slider4 .slide img {
    width: 100%;
    margin-left: 0px;
    height: 200px;
  }

  #tri .slide img {
    width: 63%;
    margin-left: 56px;
    height: auto;
    max-height: 250px;
  }

  #tri .slide .img-size {
    height: 170px;
  }

  #tri .slide .img-size2 {
    height: 670px;
  }

  /* BUTTONS */

  button {
    font-size: 18px;
    padding: 8px;
  }

  /* POCETNA SECTION */

  #pocetna {
    height: 90vh;
  }

  #pocetna p {
    font-size: 2em;
  }
}