body {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: sans-serif;
  font-size: 1.1em;
  background-image: url(images//DSC01606-Edit.jpg);
  background-size: cover;
     
     background-repeat: no-repeat;
     background-position: center;
     background-size: cover;
    padding-bottom: 2em;
  
     
  
}

h2 {
  text-align: center;
  color: yellow;
  font-size: 2.5em;
  letter-spacing: 2px;
}

.namail {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1em;
  margin-bottom: -0.2em;
  width: 100%;
}

form {
  margin-top: 1em;
  background-color: rgba(0, 0, 0, 0.5);
  width: 100%;
  max-width: 700px;
  padding: 1em; /* Reduced padding to fit content within viewport */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  
  box-sizing: border-box; /* Ensure padding and border are included in the element's total width and height */
  font-family: serif;
}

form div {
  color: white;
  width: 100%;
  margin-bottom: 0.5em; /* Adjusted margin to fit content within viewport */
}

input::placeholder, textarea::placeholder {
  color: rgb(196, 193, 193);
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}

label{
  font-family:'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}

input, textarea {
  border-radius: 5px;
  outline: none;
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
  font-size: 1.2em; /* Reduced font-size to fit content within viewport */
  width: 100%;
  box-sizing: border-box; /* Ensure padding and border are included in the element's total width and height */
}

form input, form textarea {
  padding: 0.4em; /* Reduced padding to fit content within viewport */
}

form textarea {
  height: 75PX;
  resize: vertical;
font-family: serif;
}

input[type="submit"]{
  background-color:#a0846a;
  letter-spacing: 2px;
  font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
  font-weight: bold;
  width: 100%;
  cursor: pointer;
  border-radius: 5px;
  outline: none;
  border: none;
  color: rgb(255, 255, 255);
  font-size: 1.3em;


}

.divback{
  margin-top: 0.3em;
  text-align: center;
}



@media (max-width: 968px) {
  .namail {
    flex-direction: column;
    gap: 0;
    margin-bottom: -0.07em;
  }
  
}

@media (max-width: 980px) {
  form {
    padding: 2em; /* Ensure the padding is consistent across different screen sizes */
  }
  div{
    margin-top: -0.5em;
  }
  input, textarea {
    font-size: 1.2em;
  }

  input[type="submit"] {
    padding: 0.5em; /* Reduced padding to fit content within viewport */
  }
}
