/* Global styles */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, "Noto Sans", sans-serif,
    "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  font-size: 16px;
  line-height: 1.6;
  background-color: #f7f7f7;
  width: 100%;
  height: 100%;
}

.container {
  margin: 20px;
  padding: 0 20px;
}

/* pozadina */

.sub-header {
  height: 15vh;
  width: 100%;
  background-color: #e7d8d8;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  text-align: center;
  color: white;
}

h1 {
  margin-bottom: 20px;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.1);
}

p {
  margin-bottom: 30px;
  font-size: 1.3rem;
  font-weight: 300;
}

label {
  margin-top: 20px;
  font-size: 1.3rem;
  font-weight: 300;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.1);
}

input {
  border-radius: 5px;
}

.hero-btn {
  margin-top: 100px;
  margin-left: 620px;
  display: inline-block;
  padding: 12px 30px;
  font-size: 1.2rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 25px;
  background-color: #e7d8d8;
  color: #222;
  transition: all 0.3s ease-in-out;
}

.hero-btn:hover {
  background-color: #ff564a;
  color: #fff;
  text-decoration: none;
}

/* Content section */

.section {
  background-color: #fff;
  border-radius: 5px;
  padding: 20px;
  box-shadow: 0 5px 5px rgba(0, 0, 0.3, 0.3);
  text-align: justify;
  align-items: center;
  margin-bottom: 100px;
  margin: 60px;
}

a {
  text-decoration: none;
}

.back-btn {
  margin: 20px;
  display: inline-block;
  padding: 12px 30px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 25px;
  background-color: #222;
  color: #fff;
  transition: all 0.3s ease-in-out;
}

.back-btn:hover {
  background-color: #ff564a;
  color: #222;
  text-decoration: none;
}

/* sendvic meni da se ne prikazuzuje u desktop formatu */
nav .fa {
  display: none;
}

.image-icons {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  position: absolute;
  right: 45px;
  bottom: 80px;
  margin-bottom: 10px;
}

.image-icons i {
  margin-bottom: 15px;
  font-size: 30px;
  color: black;
}

.image-icons i {
  transition: color 0.3s ease;
}

.image-icons i:hover {
  color: #ff564a;
}

/* back to top */
.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #ff564a;
  color: #fff;
  padding: 15px 20px;
  text-decoration: none;
  border-radius: 50%;
  z-index: 999;
  transition: background-color 0.3s ease;
}

.back-to-top:hover {
  background-color: #f73939;
  color: #fff;
}

.back-to-top i {
  font-size: 30px;
  line-height: 1;
  padding: 0;
}

@media only screen and (max-width: 768px) {
  .section {
    margin: 20px;
    padding: 10px;
    border-radius: 0;
  }

  .image-icons {
    right: 40px;
    bottom: 120px;
  }

  .image-icons i {
    color: #e7d8d8;
  }

  h2,
  h1 {
    text-align: center;
  }

  p {
    font-size: 17px;
    text-align: center;
  }
  .back-btn {
    margin: 20px auto; /* Margin na vrhu i dnu da biste centrirali vertikalno, a "auto" za horizontalno centriranje */
    display: inline-block;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 25px;
    background-color: #222;
    color: #fff;
    transition: all 0.3s ease-in-out;
    text-align: center; /* Centriraj sadržaj unutar dugmeta horizontalno */
    display: block; /* Da biste prešli na blok element (ignoriše flex model na mobilnim uređajima) */
    width: 50%;
  }
}

@media only screen and (min-width: 768px) and (max-width: 1200px) {
  .sub-header {
    height: 30vh;
  }
}

.title-with-image {
  display: flex;
  align-items: center;
  flex-direction: column; /* Promenite raspored elemenata na mobilnim uređajima */
}

.title-with-image h1 {
  margin-bottom: 10px; /* Dodajte razmak između h1 i slike na mobilnim uređajima */
}

@media screen and (min-width: 768px) {
  /* Primena ovog CSS-a samo na ekranima širim od 768px (desktop) */
  .title-with-image {
    flex-direction: row; /* Vratite raspored elemenata na desktopu */
  }

  .title-with-image h1 {
    margin-bottom: 0; /* Poništite razmak između h1 i slike na desktopu */
  }
}
