@font-face {
  font-family: "CustomFontItalic";
  src: url("../d-din/D-DIN-Italic.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "CustomFontBold";
  src: url("../d-din/D-DINCondensed-Bold.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "CustomFont";
  src: url("../d-din/D-DIN.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
}

body {
  background-image: url("../images/backgrounds/BG\ light\ grey\ BIG\ R01.png");
  background-size: cover;
  background-attachment: fixed;
  max-width: 100%;
  height: auto;
  font-family: "CustomFontItalic", serif;
  color: #000;
  margin: 0;
  padding: 0;
}

a {
  color: #000;
}

a:hover {
  color: #d4af37;
}

h1,
p {
  position: absolute;
  margin: 0;
}

h1 {
  font-size: 35px;
  top: 20px;
  /* left: 20%; */
  left: 200px;
}

p {
  font-size: 18px;
  line-height: 1.5;
  top: 20px;
}

.p1 {
  /* right: 12%; */
  right: 72px;
}

.p2 {
  /* right: 5%; */
  right: 173px;
}

.p3 {
  top: 96%;
  right: 46%;
}

.p4 {
  font-size: 18px;
  font-family: "CustomFontBold", serif;
}

.p5 {
  font-size: 14px;
}

.p6 {
  /* right: 5%; */
  right: 262px;
}

.p7 {
  /* right: 5%; */
  right: 402px;
}

.row {
  min-height: 10rem;
}

.card {
  border: 4px solid #000;
  border-radius: 0%;
  background-color: rgba(255, 255, 255, 0);
}

.card-img-top {
  border-radius: 0%;
}

.emoji img {
  width: 20px;
  height: 20px;
}

.white-line {
  border: 2px solid #000;
  /* width: 29%; */
  width: 330px;
  position: absolute;
  top: 57px;
  left: 0;
}

.info-btn {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  border: none;
  padding: 5px;
  font-size: 12px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 50%;
}

.card:hover .info-btn {
  opacity: 1;
}

/* Styling for the information container */
.info-container {
  display: none;
  position: absolute;
  background-color: #f8f9fa;
  border: 1px solid #ddd;
  border-radius: 5px;
  padding: 20px;
  width: 100%;
  max-width: 360px;
  z-index: 20;
}

.hidden {
  display: none;
}

.card-hidden {
  opacity: 0;
}

.card-column {
  position: relative;
}

.nav-btn {
  position: absolute;
  font-family: "CustomFont", serif;
  top: 50%;
  transform: translateY(30%);
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  /* padding: 2px; */
  cursor: pointer;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 0%;
}

.prev-btn {
  left: 10px;
}

.next-btn {
  right: 10px;
}

.card:hover .nav-btn {
  opacity: 1;
}

.hidden {
  display: none;
}

/* Ensure other cards retain their layout */
.card {
  position: relative;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hidden .card {
  transform: scale(0.95);
  opacity: 0.5;
}

.info-card {
  background-color: transparent;
  border: 1px solid #ddd;
  display: flex;
  color: #333;
  text-align: left;
}

.close-container {
  font-size: 16px;
  font-family: "CustomFont", serif;
  position: absolute;
  background-color: rgba(0, 0, 0, 0);
  border: 1px solid rgba(0, 0, 0, 0.5);
  border-radius: 20px;
  bottom: -40px;
  right: 5%;
}

@media only screen and (min-width: 556px) and (max-width: 999px) {
  body {
    background-image: url("../images/backgrounds/BG\ light\ grey\ R01.png"); /* sets the background */
    background-size: cover;
    background-repeat: repeat;
    max-width: 100%;
    height: auto;
    font-family: "CustomFontItalic", serif;
    color: #000;
    margin: 0;
    padding: 0;
  }

  h1,
  p,
  o {
    position: absolute;
    margin: 0;
  }

  h1 {
    top: 20px;
    left: 10%;
  }

  p {
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
  }

  .p1 {
    top: 115px;
    right: 10%;
  }

  .p2 {
    top: 85px;
    right: 10%;
  }

  .p6 {
    top: 55px;
    right: 10%;
  }

  .p7 {
    top: 25px;
    right: 10%;
  }

  .p3 {
    display: none;
  }

  .p5 {
    font-size: 12px;
  }

  .row {
    display: flex;
    align-items: center;
    height: 470px;
  }

  .card {
    border: 4px solid #000;
    border-radius: 0%;
    background-color: rgba(255, 255, 255, 0);
    margin: 20px;
  }

  .white-line {
    border: 2px solid #000;
    width: 44%;
    position: absolute;
    top: 55px;
    left: 0;
  }

  .info-card {
    display: none;
  }

  .close-container {
    display: none;
  }

  .info-btn {
    display: none;
  }
}

@media only screen and (max-width: 555px) {
  body {
    background-image: url("../images/backgrounds/BG\ light\ grey\ R01.png"); /* sets the background */
    background-size: cover;
    background-repeat: repeat;
    max-width: 100%;
    height: auto;
    font-family: "CustomFontItalic", serif;
    color: #000;
    margin: 0;
    padding: 0;
  }

  h1,
  p,
  o {
    position: absolute;
    margin: 0;
  }

  h1 {
    top: 20px;
    left: 10%;
  }

  p {
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
  }

  .p1 {
    top: 115px;
    right: 10%;
  }

  .p2 {
    top: 85px;
    right: 10%;
  }

  .p6 {
    top: 55px;
    right: 10%;
  }

  .p7 {
    top: 25px;
    right: 10%;
  }

  .p3 {
    display: none;
  }

  .p5 {
    font-size: 12px;
  }

  .row {
    display: flex;
    align-items: center;
    height: 400px;
  }

  .card {
    border: 4px solid #000;
    border-radius: 0%;
    background-color: rgba(255, 255, 255, 0);
    margin: 20px;
  }

  .white-line {
    border: 2px solid #000;
    width: 44%;
    position: absolute;
    top: 55px;
    left: 0;
  }

  .info-card {
    /* font-size: 14px; */
    background-color: transparent;
    border: 1px solid #ddd;
    display: flex;
    color: #333;
    text-align: left;
  }

  .close-container {
    font-size: 16px;
    font-family: "CustomFont", serif;
    color: #605e5e;
    position: absolute;
    background-color: rgba(0, 0, 0, 0);
    border: 1px solid #ddd;
    border-radius: 20px;
    bottom: -40px;
    right: -10%;
  }
}
