*/ *,
*:before,
*:after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  font-family: 'Crimson Text', serif;
  background-image: url(https://images.unsplash.com/photo-1546484396-fb3fc6f95f98?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1350&q=80);
  background-size: cover;
  margin: 0; /* Remove default body margin */
}
main {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}


section.component {
  display: flex;
  flex-wrap: wrap; /* Allow flex items to wrap to the next line if needed */
}

section.component p {
  flex: 1; /* Adjust the flex value as needed */
  /*margin-right: 20px; /* Add spacing between text and image */
}

section.component div.image {
  flex: 2;
  width: 100%;
}

section.component div.image img {
  width: 100%;
  height: auto;
  border-radius: 5px;
}


.wrapper {
  min-height: 100vh; /* Change -50px to vh for better responsiveness */
  margin: 0 auto;
}

#parchment_filter {

  position: absolute;
  display: flex;
  width: 75%;
  /* center page with absolute position */
  top: 0%;
  left: 50%;
  transform: translate(-50%, 0);
  margin: 2em 0;
  padding: 4em;
  box-shadow: 2px 3px 20px black, 0 0 125px #8f5922 inset;
  background: #fffef0;
  filter: url(#wavy2);
  padding: 2em; /* Adjust padding as needed */
  width: 75%;
}
#parchment {
  border-radius:5px;
  display: flex;
  /* center page with absolute position */
  margin: 3em 6em;
  padding: 20px;
  box-shadow: 2px 3px 20px black, 0 0 125px #8f5922 inset;
  background: #fffef0;
}


main h1,h2, main p {
  font-size: 2.25em;
  color: #7f3300;
  margin-top: 0.75em;
  text-align: left;
}


#contain {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: auto;
  margin: 0 auto;
  /* padding: 4em; */
}

.inkTitle {
  font-size: 80pt;
  font-weight: 600;
  font-family:  'Crimson Text', serif;
  text-align: center;
  line-height: 1em;
  color: rgb(33, 34, 33);
  opacity: 0.6;
  margin: 40px 10px;
}

#labarum {
  width: 20%;
  margin-left: calc((100% - 20%) / 2);
  height: auto;
}


.cachet {
  /* image width = 210px and height = 250px */
  /*  5 is one common denominator 210 = 5 * 42 */
  /*width: calc((100vw * 5) / 42);
  height: auto; /* Height is auto ajusted */
  margin-top: 1rem;
  margin-left: auto;
}

#labarum img, .cachet img {
  /*object-fit: cover;*/
  width: 100%;
  height: 100%;
}


@media only screen and (max-width: 600px) {
  main h1,h2, main p {
    font-size: 1.25em;
  }
  #parchment{
    margin: 1em;
    padding: 15px;
  }
  .inkTitle {
    font-size: 40pt;
    font-weight: 600;

  }
}

@media only screen and (max-width: 300px) {
  main h1,h2, main p {
    font-size: 1.25em;
  }

  #parchment{
    margin: 10px 15px 20px 30px;
  }
  .inkTitle {
    font-size: 2em;
    font-weight: 600;

  }
}
