html {
  height: 100%;
  width: 100%;
}

/*
  Add style rules for the body of a your webpage.
  Note: These rules will be applied to all elements.
*/
body {

  /* Add a background color or image */
  background-color: #cdc392;

  /* Customize the font, size, and color for text*/
  font-family: Arial, Helvetica, sans-serif;
  font-size: 24px;
  color: #283618;
  text-align: center;


  /* Adjust the padding and margins */
  padding-top: 0;
  padding-left: 0;
  padding-right: 0;
  padding-bottom: 0;

  margin: 20px;

}



/*
  Style Text: Add style rules for any headings (h1-6),
  paragraphs and links
*/

h1 {
  background-color: #fefae0;
  padding-bottom: 50px;
  text-align: center;
}

h2 {
  margin-left: 30px;
}

h3 {
  font-size: 20px;
}

p {
  text-align: left;
}


/*style the first letter of the paragraph*/
.text p::first-letter {
  font-size: 150%;
  color: #283618;

}


/* Links styles */
a:link {
  color: #283618;
}

a:visited {
  color: #304c89;
}

a:hover {
  color: #283618;
}

a:active {
  color: white;
}


/*petition-container*/
.petition-container {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 20px;
  width: 100%;
  padding-bottom: 50px;

}


/*petition-para*/
.petition-para {
  width: 55%;
  padding-right: 10px;
  margin-left: 100px;
}

/*signatures*/
.signatures {
  width: 45%;
  padding-right: 10px;
}

#sign-petition {
  display: block;
  text-align: left;
  margin-left: 100px;
}

#counter {
  margin-left: 100px;
}

#sign-now-button {
  background-color: #283618;
  border: none;
  color: white;
  display: flex;
  justify-content: flex-start;
  align-items: flex-end;
  margin-left: 100px;
  cursor: pointer;
}


/*Header logo*/
#header-left {
  float: left;
  width: 20%;
  margin-top: 10px;
}

#header-right {
  float: right;
  width: 20%;
  height: auto;
  margin-top: 10px;
}


.container {
  display: flex;
  justify-content: space-around;
  align-items: center;
  background-color: #fefae0;
  padding: 5px;
}

.container a {
  text-decoration: underline;
  color: #283618;
  padding: 10px;
}


.content {
  display: flex;
  align-items: center;
}

.text {
  margin-left: 20px;
  /* Adjust as needed */
}


#bar-chart {
  width: 30%;
  height: auto;
  margin-right: 25px;
  border-style: solid;
}

#data-list li {
  padding: 10px;
  list-style: disc;
  text-align: left;
}


.center-content {
  text-align: center
}

#learn-button {
  border: none;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  max-width: 200px;
  margin: 0 auto;
  cursor: pointer;
}

.rec-news p {
  text-align: center;
}


.header h1 {
  padding-top: 50px;
  margin-bottom: 0px;
}

.header {
  background-color: #fefae0;
  text-align: center;
  display: flex;
  justify-content: space-between;
  padding: 20px;
}

.footer {
  background-color: #283618;
  position: static;
  left: 0;
  bottom: 0;
  width: 100%;
}

.footer a {
  text-decoration: none;
  color: white;
  padding: 10px;
}

.footer p {
  color: white;
  text-align: center;
}


/*     Toggle Dark Mode      */
#theme-button {
  background-color: #283618;
  color: white;
  padding: 10px;
  font-size: 16px;
}

.dark-mode #learn-button {
  background-color: #fefae0;
  color: #283618;
}

.dark-mode {
  background-color: #283618;
  color: #fefae0;
}

.dark-mode h1 {
  color: #283618;
}

.dark-mode .text p::first-letter {
  color: #fefae0;
}

.dark-mode .rec-news a:visited {
  color: #304c89;
}

.dark-mode .rec-news a:link {
  color: #fefae0;
}

.dark-mode .rec-news a:hover {
  color: #fefae0;
}

.dark-mode .rec-news a:active {
  color: white;
}


/* Add to CSS file */
.error {
  border-style: solid;
  border-width: 2px;
  border-color: red;
  background: pink;
}

/* Animation */
.active {
  opacity: 1;
}

.revealable {
  position: relative;
  transform: translateY(150px);
  opacity: 0;
  transition: all 2s ease;
}

.active {
  transform: translateY(0px);
  opacity: 1;
}

#motion-button {
  background-color: #283618;
  color: white;
  padding: 10px;
  font-size: 16px;
}

/* the modal that covers the background and prevents user interactions */
.modal {
  display: none;
  /* hides the modal from view by default*/
  position: fixed;
  /* keeps the modal in one place */
  z-index: 2;
  /* positions the modal on top of all other elements on the screen */
  left: 0;
  top: 0;
  width: 100%;
  /* Full width */
  height: 100%;
  /* Full height */
  background-color: rgba(0, 0, 0, 0.4);
  /* 40% opacity black - other elements can still be seen */
  flex-direction: column;
  /* these flexbox rules center the content on the screen */
  align-items: center;
  justify-content: center;
}

/* box that contains all the content and images */
.modal-content {
  background-color: #283618;
  /* update the colors and font sizes as you like */
  color: black;
  text-align: center;
  font-size: 3rem;
  display: flex;
  /* adds flexbox to center all items */
  justify-content: center;
  align-items: center;
}

#modal-text-container {
  display: flex;
  /* adds flexbox to center the text and buttons (stretch feature) */
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#modal-image {
  width: 70%;
  height: 300%;
  object-fit: contain;
}