html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Sansation", sans-serif;
  box-sizing: border-box;
  font-size: clamp(1.2rem, calc(0.2rem + 1vh), 1.75rem);
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Kanit", sans-serif;
  margin-bottom: 20px;
}
* {
  margin: 0;
  padding: 0;
}

a {
  text-decoration: none;
  color: inherit;
}

::-webkit-scrollbar {
  background-color: transparent;
  width: 0px;
}

.scroll-offset {
  scroll-margin-top: 200px;
}

.logo {
  height: 60px;
  margin-left: 10px;
}

.logo1 {
  height: 75px;
}

.topnav {
  overflow: hidden;
  background-color: whitesmoke;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 10px 5px #16161d;
  z-index: 3;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
}

/* Hide the links inside the navigation menu (except for logo/home) */
/* Animacija za otvaranje/zatvaranje burger menija */
#myLinks {
  display: flex;
  flex-direction: column;
  align-items: space-evenly;
  max-height: 0;
  overflow: hidden;
  background-color: #ffffff;
  transition: max-height 0.4s ease-out;
}

#myLinks.show {
  max-height: 350px; /* prilagodi visinu po potrebi */
  transition: max-height 0.4s ease-in;
}

.topnav a {
  color: whitesmoke;
  padding-top: 10px;
  padding-bottom: 14px;
  padding-right: 14px;
  padding-left: 0px;
  text-decoration: none;
  font-size: clamp(1.2rem, calc(0.5rem + 1vw), 1.4rem);
  display: block;
  color: #16161d;
}

.topnav a.icon {
  background: whitesmoke;
  display: block;
  position: absolute;
  font-size: 30px;
  margin-right: 5px;
  margin-top: 10px;
  margin-left: 0px;
  right: 0;
  top: 0;
}

#myLinks a {
  display: inline-block;
  background-color: rgba(0, 0, 0, 0.2);
  padding: 8px 2vw;
  margin: 10px;
  border-radius: 10px;
  color: white;
  text-decoration: none;
  transition: background-color 0.3s ease;
  width: 97%;
}

#myLinks a:hover {
  background-color: rgba(0, 0, 0, 0.4);
  color: crimson;
  transition: 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.hero {
  background: url("/sportski-centar/media/Hero.jpg") no-repeat center
    center/cover;
  height: 100vh;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #16161d;
  text-align: center;
  padding: 0 20px;
  overflow: hidden; /* uklanja eventuelni "prazan prostor" zbog overflow-a pozadine */
}
.hero-content {
  background-color: rgba(255, 255, 255, 0.5);
  box-shadow: rgba(255, 255, 255, 0.5) 0px 0px 100px;
  filter: drop-shadow(0 0 0.75rem white);
  padding: 20px;
  border-radius: 10px;
}

.section {
  padding: 40vh 20px;
  border: 3px solid crimson;
  border-left: none;
  border-right: none;
}
.spacer {
  height: 20vh;
  box-shadow: inset 20px 20px 40px #5252523b, inset -20px -20px 40px #1b1b1b;
  background-color: #16161d;
  z-index: 2;
}

#rezervacije {
  background: url("/sportski-centar/media/rezervacija.jpg") no-repeat center
    center/cover;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  text-align: center;
  padding: 10% 1% 0 0;
}

#rezervacije div {
  width: 600px;
  margin-bottom: 30%;
  margin-top: 20%;
  background-color: rgba(0, 0, 0, 0.5);
  box-shadow: rgba(0, 0, 0, 0.5) 0px 0px 100px;
  filter: drop-shadow(0 0 0.75rem black);
  padding: 20px;
  border-radius: 30px;
}

#meni {
  background: url("/sportski-centar/media/meni.jpg") no-repeat center
    center/cover;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: white;
  text-align: center;
  padding: 0 0 0 20%;
  background-position-y: 0px;
}

#meni div {
  margin-bottom: 30%;
  background-color: rgba(0, 0, 0, 0.5);
  box-shadow: rgba(0, 0, 0, 0.5) 0px 0px 100px;
  filter: drop-shadow(0 0 0.75rem black);
  padding: 20px;
  border-radius: 30px;
  width: 50%;
  margin-top: 20%;
}

#onama {
  background: url("/sportski-centar/media/onama.jpg") no-repeat center
    center/cover;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  text-align: center;
  padding: 10% 1% 0 0;
}
#onama div {
  width: 600px;
  margin-bottom: 30%;
  background-color: rgba(0, 0, 0, 0.5);
  box-shadow: rgba(0, 0, 0, 0.5) 0px 0px 100px;
  filter: drop-shadow(0 0 0.75rem black);
  padding: 20px;
  border-radius: 30px;
}

#lokacija {
  background: url("/sportski-centar/media/lokacija.jpg") no-repeat center
    center/cover;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  color: white;
  text-align: center;
  padding: 0 10% 0 0;
}
#lokacija div {
  margin-bottom: 10%;
  background-color: rgba(0, 0, 0, 0.8);
  box-shadow: rgba(0, 0, 0, 0.5) 0px 0px 100px;
  filter: drop-shadow(0 0 0.75rem black);
  padding: 20px;
  border-radius: 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.lokacija-dugme {
  background-color: crimson;
  box-sizing: border-box;
  border-radius: 8px;
  cursor: pointer;
  padding: 10px;

  box-shadow: 0px 1px 1px rgba(3, 7, 18, 0.02), 0px 3px 4px rgba(3, 7, 18, 0.03),
    0px 8px 9px rgba(3, 7, 18, 0.05), 0px 13px 15px rgba(3, 7, 18, 0.06),
    0px 21px 24px rgba(3, 7, 18, 0.08);
}
.lokacija-dugme:hover {
  background-image: linear-gradient(45deg, #c8936b, whitesmoke);
  cursor: pointer;
  padding: 10px;
  color: #16161d;
  animation: fadeinbutton 0.5s;
}

@keyframes fadeinbutton {
  from {
    opacity: 0.3;
  }
  to {
    opacity: 1;
  }
}

.service-section {
  padding: 50px;
  background-color: #16161d;
  border-top: 4px solid crimson;
  border-bottom: 4px solid crimson;
  box-shadow: 0 0 10px 5px rgba(220, 20, 60, 0.712);
}

.service-section h2 {
  font-size: clamp(1.7rem, calc(1.2rem + 1.5vw), 2.5rem);
  text-align: center;
  color: whitesmoke;
  margin-bottom: 40px;
}

.service-cards {
  list-style-type: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(4, 1fr);
  gap: 5vh;
}
.service-cards li {
  font-size: clamp(1.2rem, calc(1rem + 1vw), 1.8rem);
  text-align: left;
  color: whitesmoke;
  margin-bottom: 10px;
}
.service-cards img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  border: crimson 4px solid;
  box-shadow: 0 0 10px 5px rgba(255, 56, 56, 0.486);
}

.service-cards p {
  color: whitesmoke;
  text-align: left;
  font-size: clamp(0.7rem, calc(0.5rem + 1vw), 1.4rem);
  margin-top: 10px;
}

.service-cards h2 {
  color: crimson;
}

.btn {
  margin-top: 20px;
  position: relative;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  color: white;
  background: none;
  border: 3px solid crimson;
  border-radius: 8px;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.3s ease;
}

.liquid {
  background: linear-gradient(crimson 0 0) no-repeat calc(200% - var(--p, 0%))
    100% / 200% var(--p, 0.2em);
  transition: 0.3s var(--t, 0s),
    background-position 0.3s calc(0.3s - var(--t, 0s));
}

.liquid:hover {
  --p: 100%;
  --t: 0.3s;
  color: #fff;
}

.footer {
  background-color: #16161d;
  color: whitesmoke;
  padding: 5vh 0 10vh 0;
  text-align: center;
  box-shadow: 0 0 10px 5px #16161d;
}
.footer-about {
  font-size: 18px;
  color: gainsboro;
}
.links-text {
  font-size: 18px;
  margin-bottom: 20px;
  color: crimson;
  font-style: none;
}
.footer-content {
  list-style-type: none;
  display: flex;
  justify-content: center;
  justify-content: space-evenly;
}
.footer-links {
  display: flex;
  flex-direction: column;
  text-align: left;
  color: #aba6a6;
}

@media screen and (max-width: 784px) {
  .logo-main {
    height: clamp(15vw, calc(20vh + 2vw), 40vw);
  }
  .footer-content {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
  .footer-links {
    display: none;
  }
  .top-section p {
    font-size: 2rem;
    margin: 0 20px 0 20px;
  }
  .show > .footer {
    overflow: scroll;
  }
  #rezervacije {
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 10% 0 10%;
  }
  #rezervacije div {
    width: 300px;
  }
  #meni {
    align-items: center;
    text-align: center;
    padding: 0 10% 0 10%;
    background-position-y: 0px;
  }
  #meni div {
    align-items: center;
    width: 100%;
    margin: 0;
    box-shadow: none;
  }
  #onama {
    align-items: center;
    text-align: center;
    justify-content: center;
    padding: 0 10% 0 10%;
    background-image: none;
  }
  #onama div {
    align-items: center;
    width: 100%;
    margin: 0;
    box-shadow: none;
  }
  #onama-card {
    background-color: transparent;
    padding: 0;
    border-radius: 0;
    color: #16161d;
    margin: 10% 0 10% 0;
  }
  #lokacija {
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 10% 0 10%;
  }
  .service-cards {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .service-cards :nth-child(1) {
    order: 2;
  }
  .service-cards :nth-child(2) {
    order: 1;
  }
  .service-cards :nth-child(3) {
    order: 3;
  }
  .service-cards :nth-child(4) {
    order: 4;
  }
  .service-cards :nth-child(5) {
    order: 6;
  }
  .service-cards :nth-child(6) {
    order: 5;
  }
  .service-cards :nth-child(7) {
    order: 7;
  }
  .service-cards :nth-child(8) {
    order: 8;
  }
  .service-cards :nth-child(9) {
    order: 10;
  }
  .service-cards :nth-child(10) {
    order: 9;
  }
  .service-cards li {
    font-size: 2rem;
  }
  .service-cards p {
    font-size: 1.4rem;
    margin: 10px 20px 0 20px;
  }

  .show > .footer {
    overflow: scroll;
  }
}
