@font-face {
  font-family                : MainFont;
  font-style                 : normal;
  font-weight                : 100;
  font-display               : block;
  src                        : url(fonts/main.woff2) format('woff2');
}

@font-face {
  font-family                : MainBoldFont;
  font-style                 : normal;
  font-weight                : 100;
  font-display               : block;
  src                        : url(fonts/main-bold.woff2) format('woff2');
}

@font-face {
  font-family                : MenuFont;
  font-style                 : normal;
  font-weight                : 100;
  font-display               : block;
  src                        : url(fonts/menu.woff2) format('woff2');
}

:root {
  --font-main                : MainFont;
  --font-bold                : MainBoldFont;
  --font-menu                : MenuFont;
  --red                      : rgb(160, 16, 16);
  --green                    : rgb(50, 137, 12);
  --very-very-light-gray     : rgb(248, 248, 248);
  --form-bg                  : white;
  --very-thick               : 1.0vmin;
  --thick                    : 0.5vmin;
  --thin                     : 0.25vmin;
  --very-thin                : 0.125vmin;
}

body {
  font-family                : var(--font-main);
  font-size: 12pt;
}

h1, div.menu_item {
  font-family                : var(--font-menu);
  font-weight: normal;
  white-space: pre;
}

h2, b, a {
  font-family                : var(--font-bold);
  font-weight: normal;
}

h2 {
  text-align: center;
  white-space: pre;
}

* {
  box-sizing:    border-box;
  margin:               0;
  padding:              0;
  border:               0;
  outline:              0;
}

body {
  background: repeat url("img/grass.png");
  background-color: var(--green);
  background-repeat: repeat;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
}

div.main {
  position: absolute;
  top: 3vh;
  bottom: 3vh;
  width: 80vw;
  min-width: 900px;
  max-width: 90vh;
  border: var(--thin) solid var(--red);
  background: var(--very-very-light-gray);
  box-shadow: inset 0 0 var(--thick) 0 var(--red), 0 0 var(--very-thick) var(--thick) white;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: center;
  padding-bottom: 2vh;
}

div.item {
  margin-top: 2vh;
  width: 95%;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: flex-start;
}

h1 {
  padding-top: var(--thick);
}

h1 > a {
  text-decoration: none;
  color: var(--red);
}

div.item.logo {
  flex-direction: column;
  align-items: center;
}

#imgLogo {
  height: 20vh;
  width: auto;
}

div.menu {
  height: 2vh;
}

div.menu_item {
  cursor: pointer;  
  font-size: 2vh;
  width: auto;
  background: var(--red);
  color: white;
  padding: var(--thick);
  padding-left: var(--very-thick);
  padding-right: var(--very-thick);
  border-top: var(--thin) solid var(--red);
  border-bottom: var(--thin) solid var(--red);
}

div.menu_item:first-child {
  border-left: var(--thin) solid var(--red);
}
div.menu_item:last-child {
  border-right: var(--thin) solid var(--red);
}


div.menu_item:hover {
  background: white;
  color: var(--red);
}

div.content_wrapper {
  height: 65vh;
  overflow-y: auto;
  margin-bottom: 1vh;
}

div.content {
  flex-direction: column;
  width: 95%;
  padding-left: 2vw;
  padding-right: 2vw;
}

hr {
  box-shadow: 0 0 var(--thin) 0 var(--red);
  border: none;
  height: 0;
  border-top: var(--thin) solid var(--red);
  width: 100%;
  position: absolute;
}

#hr1 {
  top: 31.25vh;
}

#hr2 {
  bottom: 2.5vh;
}

a {
  color: var(--green);
}

div.footer {
  position: absolute;
  padding-top: 0.5vh;
  height: 2vh;
  border-top: 1px solid var(--red);
  bottom: 0.5vh;
  width: 100%;
  font-size: 75%;
  flex-direction: column;
}

p.bl, p.br {
  position: absolute;
  left: 0px;
  right: 0px;
  bottom: 0.2lh;
  height: auto;
}
p.bl {
  text-align: right;
  padding-right: 1.5vw;
}
p.br {
  padding-left: 1.5vw;
  text-align: left; 
}

p {
  width: 100%;
}

p.question {
  text-decoration: underline;
  margin-top: var(--very-thick);
  font-size: 85%;
}

p.answer {
  font-size: 90%;
}

p.text {
  margin-top: var(--very-thick);
}

p.tagline {
  margin-top: calc( 4 * var(--very-thick) );
  font-style: italic;
  
}

div.img_box {
  width: 100%;
  padding-left: 5vw;
  padding-top: 2vh;
  padding-bottom: 2vh;
  margin-top: var(--very-thick);
  margin-bottom: var(--very-thick);
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: flex-start;
}

h2 {
  margin-top: calc( 2 * var(--very-thick) );
}

h3 {
  margin-top: calc( 2 * var(--very-thick) );
  white-space: pre;
}

details {
  margin-left: 2.5vmin;
}

summary {
  margin-top: var(--very-thick);
  font-family: var(--font-bold);
  font-size: 125%;
  position: relative;
  left: -2.5vmin;
}

ul {
  padding-left: 2lh;
}

div.service_area {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-evenly;
  align-items: flex-start;
}

div.service_area > div {
  width: 35%;
}

form {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: flex-start;
}

div.form_label {
  text-align: right;
  padding-right: var(--very-thick);
  width: 30%;
  min-width: 170px;
  padding-top: calc( var(--very-thick) + var(--thin) );
}

div.form_item {
  width: 70%;
  min-width: 400px;
  padding-top: var(--very-thick);
}

input, select, textarea {
  background: var(--form-bg);
  border-bottom: var(--very-thin) solid black;
  font-family: var(--font-main);
  font-size: 100%;
  padding: var(--thin);
}

label {
  white-space: pre;
}

input:not([type=radio]),
select,
textarea {
  width: 55vw;
  max-width: 400px;
}

textarea {
  resize: none;  
}

button {
  font-family: var(--font-bold);
  font-size: 100%;
  padding: var(--very-thick);
  border: 2px solid var(--green);
}

label > input {
  margin-right: var(--thick);
}

[name=extra] {
  display: none;
}

[name=more] {
  visibility: hidden;
}

[name=thing] {
  font-size: 1pt !important;
  width: 1px !important;
  height: 1px !important;
  margin: 0px;
  padding: 0px;
  color: var(--very-very-light-gray) !important;
  background: transparent !important;
  border: none !important;
}

span.validator {
  visibility: hidden;
}

:invalid + span {
  color: var(--red);
  visibility: visible;
}

form input:valid {
  background: white;
}

form:invalid button {
  color: gray;
  border-color: gray;
}

div.underlay {
  position: fixed;
  top: 0px;
  left: 0px;
  right: 0px;
  bottom: 0px;
  background: rgba(128, 128, 128, 0.5);
}

div.popup {
  position: fixed;
  border-radius: calc( 2 * var(--very-thick) );
  width: 50vw;
  left: 25vw;
  height: 80vh;
  top: 10vh;
  background: var(--very-very-light-gray);
  border: 2px solid var(--red);
  box-shadow: inset 0 0 var(--thick) 0 var(--red);
  padding: 2vmin;
}

div.popup, div.underlay {
  display: none;
}

/* Small Screens */
@media (max-width: 900px) {

  #imgLogo {
    height: 15vh;
    width: auto;
  }

  body {
    font-size: 10pt;
  }
  
  div.main {
    position: fixed;
    min-width: 0px;
    top:0px;
    left: 0px;
    right: 0px;
    bottom: 0px;
    width: 100vw;
  }

  div.service_area {
    flex-direction: row;
    flex-wrap: wrap;
    /* justify-content: flex-start; */
    /* align-items: flex-start;
    align-content: flex-start; */
  }
  div.service_area > div {
    width: 60%;
    flex-grow: 0;
    flex-shrink: 0;
  }
  
  div.form_label {
    text-align: left;
  }
  div.form_item {
    min-width: 80vw;
    max-width: 95vw
  }
 
  input:not([type=radio]),
  select,
  textarea {
    width: 70vw;
  }
    
  #hr1 {
    display: none;
  }
  #hr2 {
    bottom: 8pt;
  }

  div.content_wrapper {
    height: 70vh;
  }

  div.menu_item {
    font-size: 9pt;
  }

  div.img_box {
    padding-left: 0px;
    align-items: center;
  }
  
}



div.content:not(#divHome) {
  display: none;
}