form {
  width: 60vw;
  margin: auto;
  padding: 20px;
  border: 1px solid #ccc;
  background-color: rgba(245, 245, 245, 0.745);
  border-radius: 5px;
}
html {
  position: relative;
}

html::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("../Images/About/book.jpg") no-repeat center center/cover;
  filter: brightness(0.45);
  z-index: -1;
}

input,
select {
  display: inline;
  width: 50%;
  padding: 8px;
  margin: 10px 0;
  font-size: 1.2em;
}

label {
  font-weight: bold;
  font-size: 1.2em;
}

button {
  padding: 20px;
  background-color: green;
  color: white;
  font-weight: 700;
  font-size: 1.2em;
  border: 0;
  border-radius: 4px;
}

button:hover {
  background-color: rgb(61, 26, 26);
}

h2 {
  text-align: center;
  font-size: 2.3em;
  color: rgb(255, 255, 255);
}

.names {
  width: 25vw;
  display: inline-block;
  font-size: 1.2em;
  margin-left: 2.5vw;
}

.prs {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  margin-bottom: 20px;
  width: 60vw;
  margin-top: 20px;
}

.prs .field {
  display: flex;
  flex-direction: column;
  width: 20vw;
}

.prs label {
  width: 18vw;
  text-align: center;
}

.prs input[type="number"] {
  width: 18vw;
}

.back {
  background-color: goldenrod;
}

a {
  text-decoration: none;
  color: black;
}

.back:hover a {
  color: white;
}

.name-label,
.name-label-1 {
  display: inline-block;
  width: 15vw;
  text-align: right;
  padding-right: 20px;
}

@media (min-width: 1000px) {
  .back {
    position: absolute;
    right: 0;
    bottom: 0;
    margin-bottom: 25px;
    margin-right: 15px;
  }

  body {
    padding-bottom: 50px;
  }

  .bbd {
    margin-top: 5vh;
  }
}

/* Background image for screens smaller than 1000px */
@media (max-width: 1000px) {
  h2 {
    margin-top: 50px;
  }

  form {
    width: 80vw;
    border-radius: 10px;
    font-size: 1.34em;
  }

  .bbd {
    height: 135vw;
    margin-top: 2vh;
  }

  .prs label,
  .prs input[type="number"] {
    font-size: 1.1em;
    margin-left: 0;
    width: 25vw;
  }

  .prs {
    margin-left: 0;
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: space-between;
    width: 75vw;
  }

  .field {
    width: fit-content;
  }

  .names {
    width: 35vw;
  }

  .name-label {
    display: inline-block;
    width: 27vw;
    text-align: right;
    padding-right: 20px;
  }

  .name-label-1 {
    display: inline-block;
    width: 30vw;
    text-align: right;
    padding-right: 20px;
  }

  button {
    margin-top: 20px;
  }

  .back {
    margin-top: 170px;
    margin: 5vw;
  }

  p {
    width: 94%;
    margin: auto;
    text-align: justify;
    line-height: 1.4;
    font-size: 2vw;
    padding-bottom: 20px;
  }
}
