@font-face {
  font-family: 'LingvaRNIDS-Bold';
  src: url("../font/LingvaRNIDS-Bold.otf");
}

@font-face {
  font-family: 'LingvaRNIDS-Italic';
  src: url("../font/LingvaRNIDS-Italic.otf");
}

@font-face {
  font-family: 'LingvaRNIDS-Light';
  src: url("../font/LingvaRNIDS-Light.otf");
}

@font-face {
  font-family: 'LingvaRNIDS-Medium';
  src: url("../font/LingvaRNIDS-Medium.otf");
}

@font-face {
  font-family: 'LingvaRNIDS-Regular';
  src: url("../font/LingvaRNIDS-Regular.otf");
}

@font-face {
  font-family: 'Adamant_BG';
  src: url("../font/Adamant_BG.ttf");
}

/* Custom background color for the lightbox overlay */
.sl-overlay {
  background-color: #003f88 !important;
  /* Change this to your desired color (Green with 80% opacity) */
}

body,
html {
  margin: 0;
  padding: 0;
  height: 100%;

  font-family: 'LingvaRNIDS-Regular';
  font-size: clamp(15px, 2.5vw, 18px);
}

p {
  font-size: 1rem;
}

/* Optional: Use clamp for headings */
h1 {
  font-size: clamp(24px, 5vw, 32px);
}

h2 {
  font-size: clamp(20px, 4vw, 28px);
}

.naslov-rs {
  width: 550px;
}

.knot-border {
  margin-top: 120px;
  min-height: 1700px;

  max-width: 1024px;
  margin-left: auto;
  /* Centers the element */
  margin-right: auto;
  /* Centers the element */

  background-image: url("../img/svod-osmica.webp");
  /* Decorative border */
  background-size: contain;
  background-position: top;
  background-repeat: no-repeat;

  padding-bottom: 200px;
}

.main-content-container {
  padding-top: 90px;
}

.text-container {
  max-width: 900px;
  box-sizing: border-box;
  text-align: center;
  margin: 30px auto;
  padding-left: 5%;
  /* Adjust percentage as needed */
  padding-right: 5%;
  /* Adjust percentage as needed */
  padding-top: 100px;
}

.text-container {
  max-width: 900px;
  box-sizing: border-box;
  text-align: center;
  margin: 30px auto;
  padding-left: 70px;
  padding-right: 70px;
}


.long-text p {
  text-align: justify;
  text-justify: inter-word;
}

.footer {
  height: 200px;
  width: 100%;
  background-image: url("../img/sahovska-tabla-footer.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
}



figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  /* Center both image and caption horizontally */
  justify-content: center;
  text-align: center;
  /* Ensure caption is centered under the image */
}

figcaption {
  max-width: 100%;
  /* Ensure the image is responsive */
  width: 500px;
  height: auto;

  font-size: 0.8em;
  /* Reduce the font size of the caption */
  margin-top: 0.5em;
  /* Add space between the image and the caption */
  color: #666;
  /* Change the color of the caption */
}

figure img {
  max-width: 100%;
  /* Ensure the image is responsive */
  width: 600px;
  height: auto;
}


@media screen and (max-width: 1024px) {
  .knot-border {
    margin-top: 240px;
    min-height: auto;
    width: 100%;

    background-image: none;
    /* Decorative border */
  }


  .main-content-container {
    padding-top: 0px;
    margin-top: 0px;
    width: 100%;

    padding-left: 0%;
    /* Adjust percentage as needed */
    padding-right: 0%;
    /* Adjust percentage as needed */
  }

  .text-container {
    padding-top: 30px;
    margin-top: 0px;
    width: 100%;
    padding-left: 5%;
    /* Adjust percentage as needed */
    padding-right: 5%;
    /* Adjust percentage as needed */
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}