#contactOptions {
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  font-size: 1em;
}

#contactForm {
  width: 60%;
  margin-left: 20%;
  min-height: 500px;
  background-color: var(--secondbackgroundcolor);
  margin-top: 50px;
  padding: 20px;
  padding-bottom: 40px;
  box-sizing: border-box;
  box-shadow: 2px 2px 10px 3px var(--thirdgrey);
  border-radius: 4px;
  position: relative;
  display: flex;
  flex-direction: column;
}

#cfHeadline {
  margin-top: 0px;
  margin-bottom: 0px;
  text-align: center;
  font-variant-caps: petite-caps;
  text-shadow: 0px 0px 2px var(--maincolor-purple);
}

.cfInput {
  width: 80%;
  margin-left: 10%;
  padding: 6px 8px;
  box-sizing: border-box;
  font-size: 0.9em;
  outline: none;
  background-color: var(--backgroundcolor);
  color: var(--fontcolor);
  border: 2px solid var(--forthbackgroundcolor);
  border-radius: 2px;
  margin-bottom: 8px;
  box-shadow: 1px 1px 3px 0px var(--thirdgrey);
  transition: 0.15s;
}
.cfInput:focus {
  border: 2px solid var(--maincolor-blue);
  padding: 8px 10px;
  margin-bottom: 4px;
}
.cfInput:disabled {
  opacity: 0.75;
  cursor: not-allowed;
}
.cfInput.show {
  min-width: calc(60% - 50px);
  max-width: calc(60% - 50px);
  min-height: 150px;
  box-sizing: border-box;
}

.cfLabel {
  margin-left: 12.5%;
  margin-bottom: 4px;
  margin-top: 10px;
  font-weight: light;
}

#contactRecaptcha {
  margin-left: 10%;
  margin-top: 15px;
}

#cfMessage {
  min-width: 80%;
  max-width: 80%;
  min-height: 200px;
  margin-bottom: 8px;
}

.cfInput.showMsg {
  min-width: 80%;
  max-width: 80%;
  min-height: 200px;
  margin-bottom: 8px;
}

.required {
  color: var(--contrastcolor);
}

#requiredNote {
  position: absolute;
  left: 10px;
  bottom: 5px;
}

#cfSubmit {
  width: max-content;
  min-width: 20%;
  margin-left: 12.5%;
  margin-top: 30px;
  padding: 6px 8px;
  box-sizing: border-box;
  font-size: 1em;
  outline: none;
  background-color: var(--backgroundcolor);
  color: var(--fontcolor);
  border: 2px solid var(--forthbackgroundcolor);
  border-radius: 2px;
  box-shadow: 1px 1px 3px 0px var(--thirdgrey);
  transition: 0.15s;
  font-variant-caps: petite-caps;
  cursor: pointer;
}
#cfSubmit:hover {
  border: 2px solid var(--maincolor-blue);
  scale: 1.1;
}
#cfSubmit:active {
  scale: 0.8;
}
#cfSubmit:disabled {
  opacity: 0.75;
  scale: 1;
  border: 2px solid var(--forthbackgroundcolor);
  cursor: not-allowed;
}

#cfNote {
  color: var(--contrastcolor);
  width: 100%;
  text-align: center;
  margin-top: 15px;
}

#contactShowAllRequestsDiv {
  width: 80%;
  margin-left: 10%;
  min-height: 500px;
  background-color: var(--secondbackgroundcolor);
  margin-top: 50px;
  box-shadow: 2px 2px 10px 3px var(--thirdgrey);
  padding: 20px;
  padding-top: 30px;
  box-sizing: border-box;
  border-radius: 4px;
  position: relative;
  overflow-x: auto;
}
#contactShowAllRequestsDiv.reverse {
  display: flex;
  flex-direction: column-reverse;
  min-height: 300px;
}

.contactShowAllRequestsTable {
  background-color: var(--thirdbackgroundcolor);
  box-shadow: 1px 1px 3px 0px black;
  overflow-x: auto;
  box-sizing: border-box;
}
#contactShowAllRequestsTable1 {
  width: 100%;
}
#contactShowAllRequestsTable2 {
  display: inline-block;
  height: max-content;
  max-width: 40%;
}

.contactShowAllRequestsTableHead {
  background-color: var(--maincolor-blue);
  margin: 0;
  padding: 6px 12px;
  color: var(--mainwhite);
  text-align: left;
  box-sizing: border-box;
}

.contactShowAllRequestsTableLine {
  background-color: var(--forthbackgroundcolor);
  margin: 0;
  padding: 6px 12px;
  box-sizing: border-box;
}
.contactShowAllRequestsTableLine.center {
  text-align: center;
}

.contactShowAllRequestsTableRow {
  cursor: pointer;
}
.contactShowAllRequestsTableRow.closed {
  opacity: 0.5;
}
.contactShowAllRequestsTableRow:hover {
  color: var(--contrastcolor);
}

#contactShowAllRequestsSelectedDiv {
  width: 100%;
  display: flex;
  justify-content: space-evenly;
}

#contactSendAnswer {
  margin: 15px auto;
  padding: 6px 30px;
  font-variant-caps: petite-caps;
  letter-spacing: 2px;
}

#backtoContactPage {
  position: absolute;
  top: 2px;
  left: 6px;
}

.cfShowHeadline {
  font-size: 1.25em;
  text-decoration: underline;
  width: 100%;
  text-align: center;
  margin-top: 0px;
  margin-bottom: 5px;
}

/* must stay down */
@media (max-width: 1200px) {
  #contactForm {
    width: 80%;
    margin-left: 10%;
  }

  #contactShowAllRequestsDiv {
    width: 90%;
    margin-left: 5%;
  }

  #contactShowAllRequestsTable1 {
    max-width: 90%;
    margin-left: 5%;
  }

  #contactShowAllRequestsSelectedDiv {
    flex-direction: column;
  }

  .cfInput.show {
    min-width: 80%;
    max-width: 80%;
    min-height: 200px;
    margin-bottom: 8px;
    margin-top: 30px;
  }

  #contactShowAllRequestsTable2 {
    margin: 10px auto;
    max-width: 90%;
  }
}

@media (max-width: 900px) {
  .cfInput {
    width: 90%;
    margin-left: 5%;
  }

  #contactRecaptcha {
    margin-left: 5%;
  }

  .cfInput.showMsg,
  .cfInput.show {
    min-width: 90%;
    max-width: 90%;
  }

  .cfLabel {
    margin-left: 7.5%;
  }

  #cfSubmit {
    min-width: 40%;
    margin-left: 7.5%;
  }

  #cfMessage {
    min-width: 90%;
    max-width: 90%;
  }
}

@media (max-width: 700px) {
  #contactForm {
    width: 90%;
    margin-left: 5%;
  }

  #contactShowAllRequestsDiv {
    width: 95%;
    margin-left: 2.5%;
  }

  #contactShowAllRequestsTable1 {
    max-width: 95%;
    margin-left: 2.5%;
  }
}

@media (max-width: 500px) {
  .cfInput {
    width: 95%;
    margin-left: 2.5%;
  }

  #contactRecaptcha {
    margin-left: 2.5%;
    overflow-x: auto;
  }

  .cfInput.showMsg,
  .cfInput.show {
    min-width: 95%;
    max-width: 95%;
  }

  #cfSubmit {
    min-width: 60%;
  }

  #cfMessage {
    min-width: 95%;
    max-width: 95%;
  }
}
