*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-size: 14px; /* Very small screens */
}

@media (min-width: 400px) {
  html {
    font-size: 14px;
  }
}

@media (min-width: 576px) {
  html {
    font-size: 14px;
  }
}

@media (min-width: 768px) {
  html {
    font-size: 15px;
  }
}

@media (min-width: 992px) {
  html {
    font-size: 16px;
  }
}

@media (min-width: 1200px) {
  html {
    font-size: 17px;
  }
}

@media (min-width: 1400px) {
  html {
    font-size: 18px;
  }
}

@media (min-width: 2100px) {
  html {
    font-size: 19px;
  }
}

html {
  height: 100%;
  width: 100%;
  margin: 0 0;
  padding: 0 0;
  /* overflow-x: hidden; */
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  max-width: 100vw;
  width: 100%;
  /* overflow-x: hidden; */
  font-family: 'Roboto', 'Sans-Serif';
  color: white;
  margin: 0;
  padding: 0;
  line-height: 150%;
  letter-spacing: +0.005em;
  /* background-color: rgb(195, 6, 6); */
  justify-content: center;
  align-items: center;
  width: 100vw;
}

#hero {
  background-image: url('../images/ostriches.webp');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  color: white;
  width: 100vw;
  padding: 0 0;
  margin: 0 0;
  position: relative; 
  flex-grow: 1; 
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Jost', 'Sans-Serif';
  color: black;
  margin-top: 2rem;
  margin-bottom: 1rem;
  display: none;
}

h1 {
  font-size: 2.5rem; 
  font-weight: 700;
  line-height: 110%;
  letter-spacing: -0.020em;
}

h2 {
  font-size: 2rem;
  font-weight: 600;
  line-height: 110%;
  letter-spacing: -0.020em;
}

h3 {
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 130%;
  letter-spacing: -0.015em;
}

h4 {
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 130%;
  letter-spacing: -0.015em;
}

h5 {
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 150%;
  letter-spacing: -0.005em;
}

h6 {
  font-size: 1rem;
  font-weight: 500;
  line-height: 150%;
  letter-spacing: 0em;
}

p {
  font-size: 1rem;
  margin-bottom: 1rem;
  line-height: 150%;
}


a {
  font-weight: bold; 
  color: #cc0000;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #990000;
  font-weight: 700;
  text-decoration: none !important;
}

a:visited {
  color: #660000;
}

a:active {
  color: #000000;
  text-decoration: none;
}

a.button-link {
  background-color: #28a745; 
  color: white; 
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.2s ease;
}

a.button-link:hover {
  background-color: #218838; 
}


p {
  margin-bottom: 0.5em;
}

p,
li {
  font-size: 1rem;  /* Tied to html font-size */
  line-height: 1.6;
  color: #222;
}


footer {
  display: flex;
  flex-direction: column;
  background-color: #c30606;
  width: 100vw;
  /*width: 100%;*/
  justify-items: center;
  text-align: center;
  color: white;
  padding-top: 1rem;
  margin-bottom: 0;
  padding-bottom: 0;

/*  flex-shrink: 0;*/
  box-sizing: border-box;
}

footer .logo {
  width: 8%;
  height: auto;
  margin-top: 0;
  padding-top: 0;
  margin-bottom: 1rem;
}

footer p {
  font-size: 0.8rem;
  font-family: 'Roboto', sans-serif;
  color: white;
}

footer a {
  color: white;
  text-decoration: none;
}

footer a:active {
  color: whitesmoke;
  text-decoration: underline;
  font-weight: bold;
}

footer a:hover {
  color: white;
  text-decoration: underline;
}

footer a:visited {
  color: whitesmoke;
  text-decoration: none;
}

footer .legal-links {
  font-size: 0.8rem;
  opacity: 0.75;
  margin-top: 0.5em;
}

footer .legal-links a {
  color: #fff;
  text-decoration: underline;
  margin: 0 0.3em;
}


@media (min-width: 360px) {
  .page-wrapper {
    margin-left: 5px;
    margin-right: 5px;
  }
  
  footer .logo {
    width: 30px;
  }

}

@media (min-width: 480px) {
  .page-wrapper {
    margin-left: 10px;
    margin-right: 10pix;
  }
  
  footer .logo {
    width: 40px;
  }

}

/* UPDATED Responsive Adjustments (Mobile-First) */
@media (min-width: 576px) {
  .page-wrapper {
    margin-left: 20px;
    margin-right: 20px;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
  .page-wrapper {
    width: min(80%, 1140px);
    margin-left: auto; 
    margin-right: auto;
  }


  footer .logo {
    width: 5%;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  .page-wrapper {
    width: min(75%, 1140px);
    margin-left: auto; 
    margin-right: auto;
  }
} 

/* Large devices (desktops, 992px and up) */
@media (min-width: 1200px) { 

}
  

/* Large devices (desktops, 992px and up) */
@media (min-width: 2100px) {
  
}

@media (prefers-reduced-motion: no-preference) {
  article > img {
    scale: .8;
    opacity: 0;
    animation: fade-in linear forwards;
    animation-timeline: view() ;
    animation-range: entry;
  }
}

