html, body {
  margin: 0;
  padding: 0;

  font-family: 'Source Sans Pro';

  min-width: 320px;
  min-height: 320px;
}

.hidden {
  display: none;
}

.contact {
    display: flex;
    opacity: 0;
    width: 100%;
    height: 100vh;
    position: fixed;
    background: #1e90ff;/*rgba(0,221,119,0.9);*/
    top: 100vh;
    left: 0;
    right: 0;
    bottom: 0;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    font-size: 1.2em;
    color: white;
    transition: opacity 500ms, top 500ms;
}

.contact .inner {
    padding: 2em 1em;
    width: 100%;
    max-height: 100%;
    overflow: auto;
    box-sizing: border-box;
}

input:checked ~ .contact {
  opacity: 1;
  top: 0;
}

.contact .x-close {
    position: absolute;
    top: .5em;
    right: 1em;
    cursor: pointer;
    font-size: 1.6em;
    font-weight: bold;
    color: white;
}

.contact h2 {
    font-size: 2em;
    font-weight: bold;
    text-align: center;
    margin-bottom: .5em;
}

.contact p {
    text-align: center;
    max-width: 540px;
    margin: 0 auto 1em auto;
}

.contact a {
  color: white;
}

.contact form {
  margin: auto;
  width: 540px;
}

.contact .formrow {
  margin-bottom: .5em;
}

.contact .contact_field {
  width: auto;
}

.contact .contact_label {
    width: 150px;
    display: inline-block;
}

.contact .contact_field,
.contact .contact_message {
    width: 390px;
    font-size: 1.2em;
    padding: .2em;
    box-sizing: border-box;
}

.contact .contact_message {
  width: 100%;
  height: 6em;
  margin-top: .25em;
}

.contact .contact_submit {
  width: 100%;
  padding: 1em;
  border-radius: 1em;
  background: none;
  border: solid 2px white;
  font-size: 1.2em;
  font-weight: bold;
  color: white;
  margin: 1em 0;
  cursor: pointer;
  transition: background 100ms, color 100ms;
}

.contact .contact_submit:hover {
  background: white;
  color: #1e90ff;
}

.contact .contact_submit:active {
  border-color: #1efffe;
  color: #1efffe;
}

@media (max-width: 640px) {
  .contact .inner {
    max-width: 100vw;
  }

  .contact form {
    width: auto;
  }

  .contact .contact_field {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .contact {
    font-size: 2.5vw;
  }
}

@media (max-width: 480px) {
  .contact {
    font-size: calc(9px + 0.625vw);
  }
}
