/* -------------------- FONTS -------------------- */
@font-face {
  font-family: EBGaramond;
  src: url(../fonts/EBGaramond-VariableFont_wght.ttf);
}

@font-face {
  font-family: CormorantGaramondM;
  src: url(../fonts/CormorantGaramond-Medium.ttf);
}

@font-face {
  font-family: GaramontAmsterdamEFRoman;
  src: url(../fonts/Garamont_Amsterdam_EF_Roman.ttf);
}

/* -------------------- STYLES -------------------- */

body,
html {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%; /* Ensures full width */
  background-color: #ffffff; /* Changed background color to white */
  font-family: "EBGaramond", Garamond, serif;
  font-variant-numeric: oldstyle-nums;
  font-size: 1.4rem;
  position: relative; /* Allows absolute positioning of the image */
  padding: 0.5em 0.5em 7vh; /* Increase bottom padding to 15vh while keeping others at 1em */
  box-sizing: border-box; /* Ensures padding is included in the total width and height */
  overflow: hidden; /* Prevent overflow */
}

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

footer {
  position: fixed;
  z-index: 100;
  bottom: 15px;
  left: 50vw;
}

#random-image {
  position: absolute; /* Position image absolutely within the viewport */
  display: block;
  max-width: none; /* Remove max width for random sizing */
  max-height: none; /* Remove max height for random sizing */
  object-fit: contain; /* Ensures the image maintains aspect ratio */
}

.about-container {
  position: relative;
  padding: -10px;
}

.info,
.error-container {
  position: absolute;
  left: 50vw;
  top: 0px;
  right: 15px;
}

.info p {
  margin-top: 0px;
}

.statement {
  position: absolute;
  left: 50vw;
  right: 5px;
  color: white; /* Default text color; should be the same as the background color */
}

.statement span {
  display: block;
  margin-bottom: 0em; /* Adjust the margin as desired */
}

/* -------------------- MEDIA QUERIES -------------------- */

@media (max-width: 600px) {
  html {
    touch-action: manipulation;
  }

  body {
    font-size: 1.05rem; /* Adjust font size for smaller screens */
    line-height: 1.2rem;
    margin: 0;
    padding: 0 !important;
  }
  s #random-image {
    max-width: 80%; /* Ensure images don't overflow on mobile */
  }

  .info,
  .statement,
  .statement span {
    left: 10px;
    top: 10px;
    right: 10px;
    margin: 0;
    padding: 0;
  }

  footer {
    left: 10px;
  }
}
