*,
::before,
::after {
  padding: 0;
  margin: 3px;
  box-sizing: border-box;
}

html {
  font-size: 100%;
}


body {
  font-family: 'sans-serif', serif;
  color: black;
  background-color: white;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

form {
  padding-bottom: 2em;
}

.form-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

label, legend {
  margin-bottom: 0.5rem;
  font-size: 1.3em;
  color: black;
}

h2, h3, h4, h5, h6 {
  font-family: 'sans-serif', 'Raleway';
  color: #00beef;
}

p{
  font-size: 25px;
  font-family: 'sans-serif', 'Raleway';
}

input, textarea, select {
  background-color: rgb(193, 232, 245);
  width: 50%;
  border: 1.3px solid black;
}

input, select {
  min-height: 2em;
}

textarea {
  min-height: 2.8rem;
}

input[type="submit"] {
  display: block;
  width: 50%;
  margin: 1em auto;
  height: 2em;
  font-size: 1.1rem;
  background-color: #00beef;
  border-color: white;
  min-width: 300px;
}


h1 {
  font-family: 'sans-serif', 'Anton';
  font-size: 3rem;
  color: #026773;
}

  @media (max-width: 768px) {
    .form-group {
      display: flex; /* Reset to flexbox for smaller screens */
      flex-direction: row; /* Align label and input side-by-side */
      align-items: center; /* Vertically center label and input */
    }
  
    .form-group label {
      flex: 1; /* Allocate space for label */
      margin-right: 0.5rem; /* Add some spacing between label and input */
    }
  }

  @media (max-width: 480px) {
    /* Adjust font sizes for better readability */
    h1 {
      font-size: 2rem;
    }
    
    label, legend {
      font-size: 1rem;
    }
    
    p {
      font-size: 1rem;
    }
    
    /* Make input fields and textarea full width */
    input, textarea, select {
      width: 100%;
    }
    
    /* Adjust the submit button to be full width and remove the min-width constraint */
    input[type="submit"] {
      width: 100%;
      min-width: unset;
    }
    
    /* Modify the form grid to a single column layout */
    .form-grid {
      grid-template-columns: 1fr;
    }
    
    /* Adjust padding and margins for better spacing */
    .form-group {
      padding: 0.5rem;
      margin-bottom: 1rem;
    }
  }
  
