:root{
  --boxHeight: calc(100vh - var(--headerHeight) - var(--footerContent-Height));
  --resize: 30%;
}

.BorderBox{
  position: relative;

  padding: var(--headerHeight) 0 0 0;
  width: var(--ContWidth);
  height: calc(100% - var(--headerHeight) - var(--footerContent-Height));

  background-color: var(--BackColor-5);
}
.ContBox1{
  display: inline-block;
  position: relative;
  left: 10%;
  margin-bottom: 80px;
  padding: 10vh 10% 10vh 10%;
  margin-bottom: calc(var(--headerHeight));
  width: 60%;
  background-color: var(--BackColor-1);
  min-height: calc(var(--boxHeight));
}
h1{
  text-align: center;
  font-size: 2.3vw;
  font-variant: small-caps;
  font-weight: 500;
  letter-spacing: 0.09em;
  padding-bottom: 5%;
}
h2{
  color: var(--color-black);
  font-size: 1.2em;
  font-weight: 600;
  line-height: 2.2em;
}
h3{
  color: var(--color-black);
  font-size: 1.5em;
  font-weight: 400;
  line-height: 2.2em;
}
.ds {
  color: var(--color-black);
  font-variant: normal;
  padding-left: 0px;
}
p{
  font-size: 1.3vw;
}


span{
  font-weight: 500;
  font-size: 1.35em;
  color: LightGray;
}
input[type="text"]{
  left: 10%;
  width: 100%;
  top: 0px;
  margin-bottom: 20px;
  border-left: 0px;
  border-top: 0px;
  border-right: 0px;
  border-color: var(--color-brown);
  font-size: 1.8vw;
  color: var(--color-softGray);
  outline: none;
}
textarea[type="text"]{
  border: 2px solid var(--color-brown);
  border-left: 0px;
  border-right: 0px;
  border-top: 0px;
  height: 5em;
  font-family: inherit;
  font-size: 1.8vw;
  color: var(--color-softGray);
  outline: none;
  width: 100%;
  max-width: 100%;
  margin-bottom: 30px;
}
label{
  font-size: 1.5vw;
  font-variant: small-caps;
  color: var(--color-brown);
}

/* Custom Checkbox Style */
.dsBox {
  display: block;
  position: relative;
  padding-left: 35px;
  margin-bottom: 12px;
  cursor: pointer;
  font-size: 22px;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  color: black;
  font-variant: normal;
}
.dsBox input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}
.checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 20px;
  width: 20px;
  background-color: none;
  border: 2px;
  border-color: var(--color-black);
  border-style: solid;
  border-radius: 50%;
}
.dsBox input:checked ~ .checkmark {
  background-color: none;
}
.checkmark:after {
  font-size: 3.2em;
  content: "";
  position: relative;
  display: none;
}
.dsBox input:checked ~ .checkmark:after {
  display: block;
}
.dsBox .checkmark:after {
  top: 4px;
  left: 4px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background-color: var(--color-black);
}

button[type="submit"]{
  margin: 15% 32% 0% 32%;
  height: 3.0vw;;
  width: 20vw;
  font-size: 1.7vw;
  color: var(--color-white);
  font-weight: 500;
  background: var(--color-brown);
  border: 4px ;
  border-radius: 5vw;
  outline: none;
}

/* Mobile Devices*/
@media only screen and (min-device-width: 600px) and (max-device-width: 900px) and (-webkit-min-device-pixel-ratio: 2) {
  .BorderBox{height: calc(100% - (1.8* var(--headerHeight))); width: var(--ContWidth); padding: calc(1.8* var(--headerHeight)) 0 0 0;}
  .Background{height: 100%;}
  .ContBox1{}
  .ContBox2{min-height: auto; }
  form p{font-size: 2.2vw;}
  h1{font-size: 3.5vw;}
  h2{font-size: 4.0vw;}
  h3{font-size: 3.4vw;}
  li{font-size: 2.0vw;}
  input[type"text"]{font-size: 3.0vw;}
  label{font-size: 2.0vw;}
  button[type="submit"]{height: 4.4vw;width: 30vw;font-size: 3.0vw; margin: 15% 22% 0% 22%;}
  #message{font-size: 3.0vw;}
  #dsInput{height: 2.2vw; width: 2.2vw;}
  }
@media only screen and (max-device-width: 599px) and (-webkit-min-device-pixel-ratio: 2) and (orientation: landscape) {
  .BorderBox{height: calc(100% - (1.8* var(--headerHeight))); width: var(--ContWidth); padding: calc(1.8* var(--headerHeight)) 0 0 0;}
  .Background{height: 100%;}
  .ContBox1{}
  .ContBox2{min-height: auto; }
  form p{font-size: 2.2vw;}
  h1{font-size: 3.5vw;}
  h2{font-size: 4.0vw;}
  h3{font-size: 3.4vw;}
  li{font-size: 2.0vw;}
  input[type="text"];{font-size: 3.0vw;}
  label{font-size: 2.0vw;}
  button[type="submit"]{height: 4.4vw;width: 30vw;font-size: 3.0vw; margin: 15% 22% 0% 22%;}
  #message{font-size: 3.0vw;}
  #dsInput{height: 2.2vw; width: 2.2vw;}
  }
@media only screen and (max-device-width: 599px) and (-webkit-min-device-pixel-ratio: 2) and (orientation: portrait) {
  .BorderBox{height: calc(100% - (2.8* var(--headerHeight))); width: var(--ContWidth); padding: calc(2.8* var(--headerHeight)) 0 0 0;}
  .Background{width: 98%; height: 80vw;}
  .ContBox1{padding: 5% 5% 5% 5%; left: 5%; width: 80%;}
  .ContBox2{width: 100%; min-height: 45%;}
  form p{font-size: 3.8vw;}
  h1{font-size: 5.1vw;}
  h2{font-size: 4.6vw;}
  h3{font-size: 4.0vw;}
  li{font-size: 3.0vw;}
  input[type="text"]{margin: 3% 0% 5% 0%;font-size: 6.6vw;}
  label{font-size: 4.0vw;}
  p input[type="radio"]{height: 4vw;}
  button[type="submit"]{height: 6.2vw;width: 40vw;font-size: 3.7vw; margin: 15% 21% 0% 21%;}
  #message{margin: 3% 0% 5% 0%;font-size: 6.6vw;}
  :root{--boxHeight: calc(75vh - var(--headerHeight));}
}

/* Desktop Devices*/
@media only screen and (min-width: 600px) and (max-width: 900px) and (-webkit-max-device-pixel-ratio: 1) {
  .BorderBox{height: calc(100% - (1.8* var(--headerHeight))); width: var(--ContWidth); padding: calc(1.8* var(--headerHeight)) 0 0 0;}
  .Background{height: 100%;}
  .ContBox1{}
  .ContBox2{min-height: auto; }
  form p{font-size: 2.2vw;}
  h1{font-size: 3.5vw;}
  h2{font-size: 4.0vw;}
  h3{font-size: 3.4vw;}
  li{font-size: 2.0vw;}
  input[type="text"]{font-size: 3.0vw;}
  label{font-size: 2.0vw;}
  button[type="submit"]{height: 4.4vw;width: 30vw;font-size: 3.0vw; margin: 15% 22% 0% 22%;}
  #message{font-size: 3.0vw;}
  #dsInput{height: 2.2vw; width: 2.2vw;}
  }
@media only screen and (max-width: 599px) and (-webkit-max-device-pixel-ratio: 1) {
  .BorderBox{height: calc(100% - (2.8* var(--headerHeight))); width: var(--ContWidth); padding: calc(2.8* var(--headerHeight)) 0 0 0;}
  .Background{width: 98%; height: 80vw;}
  .ContBox1{padding: 5% 5% 5% 5%; left: 5%; width: 80%;}
  .ContBox2{width: 100%; min-height: 45%;}
  form p{font-size: 3vw;}
  h1{font-size: 5.1vw;}
  h2{font-size: 4.6vw;}
  h3{font-size: 4.0vw;}
  li{font-size: 3.0vw;}
  input[type="text"]{margin: 3% 0% 5% 0%;font-size: 6.6vw;}
  label{font-size: 4.0vw;}
  p input[type="radio"]{height: 4vw;}
  button[type="submit"]{height: 6.2vw;width: 40vw;font-size: 3.7vw; margin: 15% 21% 0% 21%;}
  #message{margin: 3% 0% 5% 0%;font-size: 6.6vw;}
  #dsInput{  height: 3.3vw; width: 3.3vw;}
  :root{--boxHeight: calc(75vh - var(--headerHeight));}
}
