/*
Add style rules for the body of a your webpage.
Note: These rules will be applied to all elements.
*/


/* 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
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: lightsteelblue; /* 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;
}
#thanks-modal-content {
width: 20rem; /* sets a default width for the text container */
}
#modal-text-container {
display: flex; /* adds flexbox to center the text and buttons (stretch feature) */
flex-direction: column;
align-items: center;
justify-content: center;
}

#thanks-modal-image {
  transition: transform 0.5s ease-in-out;
  transform-origin: center center;
}

.btn-close {
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  border: none;
  background: #333;
  color: #fff;
  border-radius: 4px;
  cursor: pointer;
}
.btn-close:hover {
  background: #555;
}

/* Add style to button */
#theme-button {
    background-color: #00475f;
    border: none;
    color: white;
    font-size: 12px;
    text-align: center;
    padding: 8px 10px;
    cursor: pointer;
}

/* Customize Dark Mode Theme */
.dark-mode {
    background-color: #000;
    color: #fff;
}

.dark-mode p {
    color: #008080
}

.dark-mode .header-container {
    background-color: #1e4228
}

.dark-mode .navbar ul {
    background-color: #034d4d;
}

.dark-mode button {
    background-color: #034d4d;
}

/* Part 1: Navbar */
/* General style rule set for all items in ul */
.navbar ul {
    list-style: none;
    list-style-type: none;
    overflow: hidden;
    position: fixed;
    top: 0;
    width: 100%;
    margin-bottom: 4px;
    padding:          2px 4px;
    background-color: #008080;
    border:           2px solid #30D5C8;
    border-radius:    6px;
}
/* Style rule set for individual li */
.navbar ul li {
    float: left;
    margin: 10px;
}
/* Style rule set for individual li link */
.navbar ul li a {
    font-family: Arial;
    color:#fdb869;
    text-align: center;
    padding: 0;
    font-size: 16px;
    text-decoration: none;
    display: block;
}
/* Style rule set for hovered link */
.navbar ul li a:hover {
    font-weight: bold;
}
/* Part 2: Flexbox */
/* General style rule set for flex container */
.flex-container {
    display: flex;
    flex-direction: row;
    gap: 20px;
}
/* Style rules for flex-item 1 */
.flex-item:nth-of-type(1) {
}
/* Style rules for flex-item 2 */
.flex-item:nth-of-type(2) {
}
/* Style rules for flex-item 3 */
.flex-item:nth-of-type(3) {
}
/* Style set for all flex-items */
.flex-item {
    background: white;
    color: black;
    font-weight: bold;
    text-align: center;
}

body {
    /* Add a background color or image */
    background-color: rgb(219, 207, 195);
    background-image: url('');
    /* Customize the font, size, and color for text*/
    font-family: Arial;
    font-size: 16px;
    color: black;
    /* Adjust the padding and margins */
    padding-top: 0;
    padding-left: 0;
    padding-right: 0;
    padding-bottom: 0;
    margin-top: 0;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 0;
}
/*
Style Text: Add style rules for any headings (h1-6),
paragraphs and links
*/
h1, h2, h3, h4, h5, h6 {
    font-family: 'Georgia', serif;
    font-weight: 700;
    line-height: 1.2;
}
h1 {
    font-size: 72px;
    color:     #008080;
    margin:    72px 0 24px;
}
h2 {
    font-size: 40px;
    color:     #1f8b82;
    margin:    60px 0 20px;
}
h3 {
    font-size: 32px;
    color:     #008080;
    margin:    48px 0 16px; 
}
h4 {
    font-size: 28px;
    color:     #1f8b82;
    margin:    42px 0 14px;
}
h5 {
    font-size: 24px;
    color:     #008080;
    margin:    36px 0 12px;
}
h6 {
    font-size: 20px;
    color:     #1f8b82;
    margin:    30px 0 10px;
}
p {
    font-size:  16px;
    color:      #013220;
    margin:     0 0 16px;
    text-align: justify;
}
a {
    color:            #008080;
    text-decoration:  underline;
}
a:link {
    color:           #008080;
}
a:visited {
    color:           #006666;
}
a:hover {
    color:           #30D5C8;
    text-decoration: none;
}
a:active {
    color:           #004C4C;
}
/*
Style Lists: Styles added to the ol or ul style rulesets affect the entire
list, while styles added to the li style ruleset affect individual list items
*/
ol {
    list-style: decimal inside;
    margin:     0 0 16px;
    padding:    0;
}
ol li {
    margin:           0 0 8px 0;
    padding:          4px 8px;
    font-family:      Arial, sans-serif;
    font-size:        16px;
    color:            #013220;
    border-left:      3px solid #30D5C8;
    list-style-type:  decimal;
    list-style-position: inside;
}
ul {
    list-style: disc inside;
    margin:     0 0 16px;
    padding:    0;
}
ul li {
    margin:           0 0 8px 0;
    padding:          4px 8px;
    font-family:      Arial, sans-serif;
    font-size:        16px;
    color:            #008080;
    list-style-type:  square;
    list-style-position: outside;
}
/*
Style Buttons: Add style rules for any headings (h1-6),
paragraphs and links
*/
button {
    background-color: #008CBA;
    border: none;
    color: white;
    font-size: 16px;
    text-align: center;
    padding: 15px 32px;
    cursor: pointer;
}
/* Select and style elements by class name or ID */
/* Example: This styles elements with class="header"*/
.header-container {
    display:           flex;
    flex-direction:    row;
    justify-content:   space-between;
    align-items:       center;
    background-color:  #fdb869;
    padding-top:       80px;
    padding-right:     40px;
    padding-bottom:    20px;
    padding-left:      40px;
    margin-bottom:     24px;
    text-align:        center;
    border-bottom:        3px solid #008080;
    box-shadow:        0 2px 4px rgba(0,0,0,0.1);
}
/* Example: This styles an element with an id="header-img" */
#header-img {
    display:        block;
    width:         200px;
    max-width:     300px;
    height:         auto;
    margin-left:   8px;
    margin-right:  16px;
    padding:        4px;
    background-color: #FFFFFF;
    border:         4px solid #30D5C8;
    border-radius:  8px;
    box-shadow:     0 4px 6px rgba(0, 0, 0, 0.1);
    object-fit:     cover;
}
.header-item:nth-of-type(1) {
    display:           flex;
    align-items:       center;
    gap:               16px;
    width:              80%;
}
.header-item:nth-of-type(2) {
    display:           flex;
    gap:               12px;
    width:              20%;
}
.header-button {
    background-color:  #008080;
    text-align:        center;   
    color:             #ffffff;
    font-family:       Arial, sans-serif;
    font-size:         14px;
    padding:           10px 20px;    
    margin:            0 8px;        
    border:            2px solid #31acac;
    border-radius:     4px;
    cursor:            pointer;      
    text-transform:    uppercase;   
    box-shadow:        0 1px 2px rgba(0,0,0,0.1);
}
.header-button:hover {
  background-color:  #31acac;
  color:             #FFFFFF;
}
/* Footer styles */
.footer {
  background-color:  #fdb869;
  color:             #E0F9F9;
  text-align:        center;
  padding:           20px 0;
  font-size:         14px;
  border-top:        3px solid #008080;
}

/* Footer links */
.footer a {
  color:             #008080;
  text-decoration:   none;
  margin:            0 12px;
  font-weight:       bold;
}
.footer a:hover {
  text-decoration:   underline;
}

/* Petition */
.petition-container {
  display: flex;
  flex-direction: row;
  gap: 20px;
  width: 100%;
  padding-bottom: 50px;
}

.petition-para {
  width: 55%;
  padding-right: 10px;
}

.signatures {
  width: 45%;
  padding-right: 10px;
}

#sign-now-button {
    background-color:  #008080;
    text-align:        center;   
    color:             #ffffff;
    font-family:       Arial, sans-serif;
    font-size:         14px;
    padding:           10px 20px;    
    margin:            0 8px;        
    border:            2px solid #31acac;
    border-radius:     4px;
    cursor:            pointer;      
    text-transform:    uppercase;   
    box-shadow:        0 1px 2px rgba(0,0,0,0.1);
}


/* Add to CSS file */
.error {
  border-style: solid;
  border-width: 2px;
  border-color: red;
  background:pink;
}

.revealable {
  position: relative;
  transform: translateY(150px);
  opacity: 0;
  transition: all 2s ease;
}

.revealable.active {
  transform: translateY(0);
  opacity: 1;
}

.navbar {
  position: relative;
  z-index: 1000;
}