body {
    font-family: Roboto, Arial, Helvetica, sans-serif;
    margin: 0;
    box-sizing: border-box;
    background: #f8f9f7;
  }

header {
    display: flex;
    height: 74px;
    align-items: center;
    box-shadow: 0 1px 0 0 #ebedf2;
    padding-left: 40px;
    background: #033f5f;
    color: #fff;
  }

.Grant-page {
    box-sizing: border-box;
    height: auto;
    background: #f8f9f7;
    min-height: 100vh;
    visibility: visible;
    margin: 5px 10px;
    padding-bottom: 50PX;
}

.tophead {
    display: flex;
    height: 50PX;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 1.8px 0 0 #ebedf2;
    padding: 20px;
    font-size: larger;
}


.topbar a {
    color: grey;
    margin: 10px;
    
    text-decoration: none;
    
}

.apply {
    background-color: rgb(41, 41, 251);
    padding: 8px;
    font-size: large;
    border: none;
}

.grantapp {
    height: 50PX;
    box-shadow: 0 1px 0 0 #ebedf2;
    align-items: center;
    padding-left: 5PX;
    
}

img.apply-css {
    width:100%;
    height:100%;
}

.grant-image {
  position: relative;
  width: 100%;
  margin-bottom: 5px;
  overflow: hidden;
}

.grant-image img {
  width: 100%;
  height: auto;
  display: block;
}

.grant-info {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.6); /* Semi-transparent black background */
  color: white;
  width: 80%; /* Adjust the width as necessary */
  text-align: center;
  padding: 20px;
  box-sizing: border-box;
}

.grant h3, .grant p {
  margin: 5px 0;
}

.apply-button {
  display: inline-block;
  padding: 10px 20px;
  background-color: #033f5f;
  color: white;
  border-radius: 4px;
  text-decoration: none;
  margin-top: 10px;
}

.apply-button:hover {
  background-color: darken(#033f5f, 10%);
}

@media only screen and (max-width: 768px) {
    .grant-types {
        flex-direction: column;
        align-items: center;
    }

    .grant {
        width: 100%; /* Full width on smaller screens */
        margin-bottom: 30px;
    }

    .grant-image {
        width: 100%;
    }

    .grant-info {
        width: 90%; /* Slightly less than full width for padding */
        padding: 10px; /* Smaller padding */
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .apply-button {
        padding: 8px 16px; /* Slightly smaller button on smaller screens */
    }
}


.container {
    display: grid;
    place-items: center;
    height: 400px; /* Adjust the height as needed */
  }

h1.submit {
    text-align: center;
}

p {
    text-align: center;
}


  
  form {
    max-width: 600px;
    margin: 0 auto;
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  }
  
  h2 {
    text-align: center;
  }
  
  .form-group {
    margin-bottom: 20px;
  }
  
  label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
  }
  
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="date"],
  input[type="number"],
  input[type="password"]
   {
    width: 96%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
  }


  
  select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
  }
  
  input[type="submit"] {
    display: block;
    width: 100%;
    padding: 13px;
    background-color: #033f5f;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
  }
  
  input[type="submit"]:hover {
    background-color: #033f5f;
  }
  
  .verifyBtn{
    display: block;
    padding: 13px;
    background-color: #035f0b;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
  }
  
  .verifyBtn{
    background-color: #013804;
  }


  footer {
    background-color: #033f5f;
    color: white;
    padding: 20px 20PX;
    font-family: Arial, Helvetica, sans-serif;
}

.footer-container {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
    
}

.footer-section {
    min-width: 200px;
    margin-bottom: 10px;
}

.footer-section h3 {
    margin-bottom: 10px;
}

.footer-section a {
    color: white;
    text-decoration: none;
}

.footer-section a:hover {
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    margin-top: 20px;
    border-top: 1px solid #fff;
    padding-top: 10px;
}

@media only screen and (max-width: 600px) {
    .footer-container {
        flex-direction: column;
        align-items: center;
    }

    .footer-section {
        margin-bottom: 30px;
    }

    .footer-bottom {
        margin-top: 30px;
    }
}

  
 
  /* Add a media query for smaller screens */
@media only screen and (max-width: 600px) {
    header {
      padding-left: 20px;
    }
  
    .tophead {
      flex-wrap: wrap;
      justify-content: space-between;
    }
  
    
  
    .container {
      height: auto;
    }
  
    form {
      max-width: 90%;
    }
  
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="date"],
    input[type="number"],
    select {
      width: 95%;
    }
  
    input[type="submit"] {
      width: 100%;
    }
  }
