html {
  scroll-behavior: smooth;
}

#map {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100%;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

#main-section {
  background-color: #aba6a6;
  margin-top: 10%;
  margin-bottom: 20%;
}

.logo-main {
  height: clamp(10vw, calc(15vh + 2vw), 30vw);
  filter: drop-shadow(5px 5px 5px #222);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Sansation", sans-serif;
  box-sizing: border-box;
  background-color: #fff5fb;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Kanit", sans-serif;
  margin-bottom: 20px;
}

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

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

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

* {
  margin: 0;
  padding: 0;
}
.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;
  }
}
.main {
  margin: 0;
  padding: 0;
}
.top-section {
  height: 100vh;
  background-image: url(media/benx-backdrop.jpg);
  background-size: cover;
  background-position-x: center;
  background-position-y: bottom;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
  box-shadow: 0 0 10px 5px #16161d;
  border-bottom: 3px solid #16161d91;
}
.top-section h1 {
  color: #2c2b2b;
  font-size: 4rem;
  text-align: center;
  font-weight: 700;
}
.top-section p {
  color: whitesmoke;
  text-shadow: #16161d 2px 2px 4px, #16161d 4px 4px 8px;
  font-size: 2rem;
  text-align: center;
  font-weight: 600;
}
.about-section {
  padding: 50px;
  margin-bottom: 5%;
  background-color: whitesmoke;
}
.about-section p {
  font-size: clamp(1rem, calc(1rem + 1vw), 1.7rem);
  color: #2c2b2b;
}
.about-section h2 {
  font-size: clamp(1.7rem, calc(1.2rem + 1.5vw), 2.5rem);
  text-align: center;
  color: #2c2b2b;
  margin-bottom: 20px;
}

.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;
}

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

.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;
}

.service-section {
  box-shadow: 0 0 10px 5px #16161d;
  padding: 50px;
  background-color: #2c2b2b;
}

.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(5, 1fr);
  gap: 5vh;
}
.service-cards li {
  font-size: clamp(1.2rem, calc(1rem + 1vw), 1.8rem);
  text-align: center;
  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 #16161d;
}

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

.service-cards h2 {
  color: crimson;
}

.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(13vw, calc(20vh + 2vw), 34vw);
  }
  .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;
  }
  .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 :nth-child(11) {
    order: 10;
  }
  .service-cards :nth-child(12) {
    order: 11;
  }
  .service-cards li {
    font-size: 2rem;
  }
  .service-cards p {
    font-size: 1.4rem;
    margin: 10px 20px 0 20px;
  }

  .show > .footer {
    overflow: scroll;
  }

  .btn1 {
    margin-top: 10px;
    position: relative;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    color: #16161d;
    background: none;
    border: 3px solid crimson;
    border-radius: 8px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    display: block;
    margin-bottom: 20px;
    /* ensures it's above the heading */
    z-index: 2;
  }
}

.image-general {
  display: none;
  background-image: url(archive/images.jpg);
}

@media screen and (max-width: 500px) and (max-height: 500px) {
  .image-general {
    display: flex;
    height: 100vh;
    width: 100vw;
    animation: fadeIn 1s ease-in-out;
    background-size: cover;
    background-position: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100000;
  }
}
