/*David*/
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.fade-in {
  animation: fadeIn 1s ease-in-out;
}

/* Add this CSS to your Streamlit app */
body {
  background-color: #f5f5f5; /* Light gray background */
  color: #333; /* Dark text color */
}

.stButton>button {
  background-color: #4CAF50; /* Green button color */
  color: white; /* White text color */
}

.stTextInput>div>div>input {
  background-color: #fff; /* White text input background */
  color: #333; /* Dark text color for input */
}



#streamlit_placeholder {
  /* Add your custom styles here */
  background-color: #B2C3D2;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Targeting the title of the Streamlit section */
#streamlit_placeholder .st-Dc {
  color: #FFB91C;
  font-family: "Fraunces", serif;
  font-size: 30px;
  margin-bottom: 20px;
}

/* Targeting the form inputs and labels */
#streamlit_placeholder .st-el,
#streamlit_placeholder .st-fg label {
  color: #333;
  font-family: "Fredoka", sans-serif;
}

/* Targeting the submit button */
#streamlit_placeholder .st-dz {
  background-color: #5cb85c;
  color: white;
  border-radius: 20px;
  padding: 10px 20px;
  margin-top: 20px;
  cursor: pointer;
  transition: background-color 0.3s;
  font-family: "Fredoka", sans-serif;
}

/* Styling for the submit button on hover */
#streamlit_placeholder .st-dz:hover {
  background-color: #163823;
}


body, html {
    height: 100%;
    margin: 0;
  }

  .navbar {
    background-color:#163823;
    overflow: hidden;
  }
  
  .navbar ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
  }
  
  .navbar li {
    float: right;
  }
  
  .navbar a {
    display: block;
    color: #FFB91C;
    text-align: center;
    padding: 14px 16px; 
    text-decoration: none;
    font-family: "Fredoka", sans-serif;
  }
  
  .navbar a:hover {
    background-color: #B2C3D2; 
    color: black;
  }
  
  .welcome-section {
    background: url('assets/background-image.png') no-repeat center center fixed;
    background-size: cover;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-left: 20px;
    flex-direction: column;
    color: white;
  }
  
  .welcome-section div {
    text-align: center; 
    max-width: 600px; 
  }

  .welcome-section h1 {
    font-size: 50px;
    margin-bottom: 20px;
    font-family: "Fraunces", serif;
  }
  
  .welcome-section p {
    font-size: 15px;
    margin-bottom: 20px;
    line-height: 25px;
    font-family: "Fredoka", sans-serif;
  }
  .welcome-section p strong {
    font-weight: bold;
    font-size: 1.2em;
    color: #FFB91C;
  }
  .welcome-section a {
    display: inline-block;
    padding: 20px 70px;
    background-color: #FFB91C;
    color: black;
    text-decoration: none;
    border-radius: 30px;
    transition: background-color 0.3s;
    font-family: "Fraunces", serif;
    font-size: 20px;
  }
  
  .welcome-section a:hover {
    background-color:#B2C3D2;
  }

  .calculator-section {
    background: url('assets/calculator-background.png') no-repeat center center fixed;
    background-size: cover;
    padding: 40px;
    font-family: "Fredoka", sans-serif;
  }
  
  .calculator-section h2 {
    color: #FFB91C;
    text-align: center;
    margin-bottom: 20px;
    font-family: "Fraunces", serif;
    font-size: 50px;
  }
  
  .calculator-section form {
    max-width: 600px; 
    margin: auto; 
    background-color: #B2C3D2; 
    padding: 20px;
    border-radius: 8px; 
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); 
  }
  
  .calculator-section label {
    display: block; 
    margin-top: 10px;
    color: #666; 
  }
  
  .calculator-section input[type="number"],
  .calculator-section select {
    width: 100%; 
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ddd; 
    border-radius: 4px; 
    font-family: "Fredoka", sans-serif;
    box-sizing: border-box;
  }
  
  .calculator-section button {
    display: block; 
    width: 100%;
    padding: 10px;
    margin-top: 20px;
    background-color: #5cb85c;
    color: white;
    border: none;
    border-radius: 20px; 
    cursor: pointer; 
    transition: background-color 0.3s;
    font-family: "Fredoka", sans-serif;
  }
  
  .calculator-section button:hover {
    background-color: #163823;
  }
  
  .resources-section {
    background: url('assets/resources-background.png') no-repeat center center fixed;
    background-size: cover;
    padding: 40px;
    text-align: center;
  }
  
  .resources-section h2 {
    color: #FFB91C;
    font-size: 50px;
    margin-bottom: 30px;
    font-family: "Fraunces", serif;
  }
  .resources-section p {
      color: white;
      font-size: 20px;
      font-family: "Fredoka", sans-serif;
  }
  .card-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
  }
  
  .card {
    width: 300px; 
    margin-bottom: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); 
    border-radius: 8px; 
    overflow: hidden; 
  }
  
  .card img {
    width: 100%; 
    height: auto; 
  }
  
  .card a {
    display: block; 
    padding: 15px;
    background-color: #B2C3D2; 
    color: black; 
    text-decoration: none;
    transition: background-color 0.3s;
    font-family: "Fredoka", sans-serif;
  }
  
  .card a:hover {
    background-color: #e7e7e7; 
  }
  
  .about-section {
    text-align: center;
    padding: 40px;
    background-color: #163823;
  }
  
  .about-section h2 {
    margin-bottom: 30px;
    color: #FFB91C;
    font-size: 50px;
    font-family: "Fraunces", serif;
  }
  
  .team-member {
    display: inline-block;
    margin: 0 20px;
    width: 200px;
  }
  
  .team-member img {
    width: 100%; 
    height: auto;
    border-radius: 50%;
  }
  
  .team-member h3 {
    margin: 10px 0;
    color: #FFB91C;
    font-size: 24px;
    font-family: "Fredoka", sans-serif;
  }
  
  .team-member p {
    font-size: 14px;
    color: white;
    font-family: "Fredoka", sans-serif;
  }

  
footer {
    background-color: #163823;
    color: #fff;
    text-align: center;
    padding: 20px;
    margin-top: 20px;
    border-top: 5px solid #5cb85c; 
    box-shadow: 0px -2px 5px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
}

footer p {
    margin: 0;
    font-size: 14px;
    font-family: "Fredoka", sans-serif;
}