
*,
*::before,
*::after {
  box-sizing: border-box;
}


html {
  font-size: 16px;
  background-image: url("../media/backgroundf1.png");
  background-attachment: fixed;
  background-size: cover;
  background-color: #96352e;
  overflow-x: hidden;
}

body {
  font-family: "Arial", "Helvetica Neue", Helvetica, sans-serif;
  font-size: 1rem;
  margin: 1.25rem auto;
  padding: 0.625rem 1.25rem;
  background-color: #f9f9f9;
  color: #333;
  line-height: 1.6;
  border-radius: 0.625rem;
  border: 0.125rem solid black;
  max-width: 62.5rem;
  box-shadow: 0.3125rem 0.3125rem 0.625rem black;
  overflow-x: hidden;
}


h1 {
  font-size: 2rem;
  text-align: center;
  background-color: #761111;
  padding: 0.625rem;
  color: white;
  text-shadow: 0.1875rem 0.3125rem 0.375rem black;
  border-radius: 0.3125rem 0.3125rem 0 0;
  margin-bottom: 2.5rem;
  font-family: "Times New Roman", Times, serif;
  line-height: 1.3;
}

h2 {
  font-size: 2rem;
  color: rgb(176, 47, 47);
  margin-top: 1.5rem;
  margin-bottom: 3.125rem;
  font-family: "Times New Roman", Times, serif;
  line-height: 1.3;
}

h3 {
  font-family: 'Arial', sans-serif; 
  font-size: 1.5rem; 
  color: #701010; 
  margin-top: 1.25rem; 
  margin-bottom: 0.625rem; 
}
  


p {
  font-size: 1rem;
  margin-bottom: 0.9375rem;
  text-align: justify;
}

a {
  color: #8B0000; 
  text-decoration: none;
  font-weight: bold;
}

a:visited {
  color: #7e5a5a; 
}

a:hover,
a:focus {
  color: #d40000;
  text-decoration: underline;
}

footer {
  font-family: sans-serif;
  font-size: 0.875rem;
}

footer p {
  margin: 0;
}


aside {
  float: right;
  width: auto;
  max-width: 100%;
  background-color: #f8f9fa;
  padding: 1.25rem;
  border-radius: 1rem;
  box-shadow: 0 0 0.625rem rgba(0,0,0,0.1);
  margin-left: 0;
  margin-bottom: 1rem;
  font-size: 1rem;
}


figcaption {
  text-align: center;
  font-size: 0.875rem;
}


img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0.625rem auto;
  border-radius: 0.3125rem;
  box-shadow: 0.125rem 0.125rem 0.3125rem rgba(0, 0, 0, 0.1);
}


.custom-nav {
  display: flex;
  padding-left: 0;
  margin-bottom: 0;
  list-style: none;
}

.custom-nav .nav-link {
  display: block;
  padding: 0.5em 1em;
  color: #000;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.15s ease-in-out;
  font-size: 1.125rem;
}

.custom-nav .nav-link:hover {
  color: #d40000;
}

.custom-nav .nav-link.disabled {
  color: #d40000;
  pointer-events: none;
  cursor: default;
}

.col-md-9 > .custom-nav {
  margin-left: auto;
  width: fit-content;
}

.btn {
  padding: 5px 10px;
  margin: 0 5px;
  background: #761111;
  color: white;
  border: none;
  border-radius: 3px;
  cursor: pointer;
}

.btn:hover {
  background: #d40000;
}


iframe,
video {
  max-width: 100%;
  display: block;
  margin: 0.9375rem auto;
}

.video-container {
  display: flex;
  justify-content: center;
  margin: 3rem 0;
}

.video-wrapper {
  position: relative;
  width: 100%;
  max-width: 50rem;
  overflow: hidden;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}


@media (max-width: 48rem) {
  html {
    font-size: 1rem;
  }
  
  aside {
    float: none;
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-bottom: 2rem;
  }
  
  h1 {
    font-size: 1.5rem;
  }
  
  img,
  video {
    max-width: 100%;
  }
}


@media print {
  body {
    background-color: white;
    color: black;
    box-shadow: none;
    border: none;
    max-width: 100%;
  }
  
  .custom-nav {
    display: none;
  }
}