/* Reset and Layout */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: 'Roboto', sans-serif;
}

#content {
  display: flex;
  flex-direction: column;
  min-height: 100%; /* Ensure content fills the viewport */
}

#main {
  flex: 1; /* Push the footer to the bottom */
}

/* Footer */
footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #eee;
  border-top: 2px dotted slategray;
  text-align: center;
  font-family: 'Signika Negative', sans-serif;
  font-weight: bold;
  padding: 1rem;
  z-index: 1000;
}

/* Add space for fixed footer */
body {
  padding-bottom: 3rem; /* Matches footer height */
}

/* Banner */
div#banner {
  height: 13rem;
  width: 100%;
  background-image: url('/static/images/banner.svg'); /* Update with actual path */
  background-repeat: no-repeat;
  background-position: center;
  background-size: 93%;
  margin-bottom: 1rem;
}

/* Headings */
h1, h2, h3 {
  text-align: center;
  margin: 1rem auto;
  color: #212;
  font-family: 'Roboto Flex', sans-serif;
  transform: scale(0.85,1)
}

h2 {
  background-color: #222;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  max-width: 75%;
}

/* Form */
#form {
  max-width: 75%; /* Align with h2 width */
  margin: 1rem auto;
  padding: 1.5rem;
  background-color: #f8f8f8;
  border: 1px solid #ddd;
  border-radius: 8px;
}

#form label {
  font-weight: bold;
  display: block;
  margin-bottom: 0.5rem;
}

#form input, #form textarea {
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

#form textarea {
  resize: vertical; /* Allow vertical resizing only */
}

#form #submit {
  display: block;
  width: auto;
  padding: 0.75rem 1.5rem;
  background-color: #222;
  color: lightgray;
  font-size: 1.2rem;
  font-weight: bold;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-align: center;
}

#form #submit:hover {
  background-color: #444;
}

/* Navigation Icons */
nav ul {
  display: flex;
  justify-content: center;
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

nav li {
  display: flex;
  flex-direction: column;
  align-items: center;
}

nav li img {
  width: 11rem; /* Consistent icon size */
  height: auto;
}

nav li span {
  display: none; /* Hide text on larger screens */
}

@media (max-width: 768px) {
  nav li img {
    width: 3rem; /* Adjust for tablets */
  }

  nav li span {
    display: block; /* Show text on smaller screens */
    font-size: 0.8rem;
    text-align: center;
  }

  #form {
    max-width: 90%; /* Adjust form width for smaller screens */
  }

  h2 {
    max-width: 90%; /* Adjust h2 width */
  }
}

/* Banner Responsiveness */
@media (max-width: 480px) {
  div#banner {
    height: 10rem; /* Adjust banner height for small screens */
    background-size: cover;
  }
}

/* Header specific styles */
.signika-negative-class {
  font-family: "Signika Negative", serif;
  font-optical-sizing: auto;
  font-weight: 900;
  font-style: normal;
  width: 93%;
  color: #eee;
  background-color: #313;
  text-align: center; /* Center text inside the div */
  padding: 1rem;
  box-sizing: border-box;
  /* margin: 0.1rem auto !important; */
  margin-top: 0.9rem;
}

.roboto-flex-class {
font-family: "Roboto Flex", serif;
font-optical-sizing: auto;
font-weight: 900;
font-style: normal;
width: 87%;
color: #212;
background-color: #fff;
text-align: center; /* Center text inside the div */
padding: 1rem;
box-sizing: border-box;
margin: 0.1rem auto !important;
}

div#textbody {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  margin: 0 auto;
  box-sizing: border-box;
}


h3 {
  font-family: "Signika Negative", serif;
  font-optical-sizing: auto;
  font-weight: 900;
  font-style: normal;
  width: 93%;
  color: #331133;
  text-align: center;
  padding: 1rem;
  box-sizing: border-box;
  margin: 0.1rem auto !important;
  float: left;
  clear: both;
}

div#textbody {
  padding: 2rem;
  padding-bottom: 9rem;
  display: flex;
  flex-direction: column;
}



/* Text body */
div#textbody ul {
  padding: 0;
  margin: 0;
  margin-bottom: 2rem;
  /* display: flex;
  flex-wrap: wrap; Allow items to wrap on smaller screens */
  justify-content: center; /* Center items */
  gap: 1.5rem; /* Add spacing between items */
  width: 89%;
  display: flex;
  flex-direction: column;
  list-style: circle;
  margin-bottom: 1.5rem;
  transform: scale(0.85, 1);
  font-size: 0.85rem;
}

div#textbody li {
  display: flex;
  justify-content: left;
  align-items: left;
  padding: 0.5rem; /* Minimal padding for better spacing */
  box-sizing: border-box;
  flex-direction: column;
  width: 100%;
  min-width: 100%;
  /* margin:1rem; */
  padding: 0.2rem;
  font-style: normal;
}

div#textbody p {
  min-width: 75%;
  width: 75%;
  display: flex;
  flex-direction: column;
  float: left;
  clear: both;
  transform: scale(0.85,1);
  font-size: 0.95rem;
}

div#textbody li p {
  min-width: 100%;
  width: 100%;
  display: block;
  float: left;
  clear: both;
  transform: scale(0.75,1)
}

.compressed li {
  height: 1rem;
  padding: 0.2rem;
  margin: 0;
}
.rightgraphic {
  width: 13.13Rem;
  min-width: 13.13rem;
  max-width: 13.13rem;
  height: 13.13rem;
  min-height: 13.13rem;
  float: right;
}


div#textbody strong {
  color:#313;
  font-weight: 700;
}


.video-container {
  width: 80%; /* Fills 80% of the parent container */
  max-width: 1280px; /* Optional max width for large screens */
  aspect-ratio: 16 / 9; /* Maintains the video aspect ratio */
  margin: 20px auto; /* Centers the video and adds vertical space */
  display: block; /* Ensures no text wraps around the video */
  min-height: 15rem; /* Sets a minimum height for smaller screens */
}

.video-container iframe {
  width: 100%; /* Ensures iframe fills the container */
  height: 100%; /* Ensures proper scaling */
  border: none; /* Removes iframe border */
}

#result {
    width:29%;
    height:1rem;
    background-color: #313;
    color: lightslategray;
    display: flex;
    flex-direction: column;
    min-height: 1rem;
    padding: 3rem;
}