@import url('https://fonts.googleapis.com/css?family=Black+Han+Sans|Raleway:400,500,700');
@import url('https://fonts.googleapis.com/icon?family=Material+Icons');

body {
  font: 500 normal 16px/16px Raleway, sans-serif;
  line-height: 1.6;
  background: #f5f5f5;
  padding-top: 60px;
}
body > .wrapper {
  /*background-color: rgba(255, 255, 255, .4);*/
}
h1, h2, h3, h4 {
  font-family: 'Black Han Sans', sans-serif;
}


:root {
  --primary: #316060;
}

hr {
  background: var(--primary) !important;
  border-top: none;
  height: 1px;
}

.btn {
  padding: 12px 24px;
  line-height: 1.4;
  color: #fff;
  background: #316060;
  font-family: Raleway, sans-serif;
  font-weight: 700;
  text-transform: uppercase;
}
.btn:hover,
.btn:active,
.btn:focus,
.btn:focus:hover,
.btn:focus:active {
  color: #fff !important;
  outline: none;
  background: #203e3e;
}

@media screen and (max-width: 760px){
  .btn {
    margin-top: 8px;
  }
}



.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  background: #316060;
  padding: 0;
  margin: 0;
}

.header .menu-toggle,
.header .menu-close {
  display: none;
}

.header nav {
  padding: 0;
  margin: 0;
}
.header nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
}
.header nav ul li {
  list-style: none;
  padding: 0;
  margin: 0;
  display: inline-block;
}
.header nav ul li a {
  display: block;
  padding: 8px 16px;
  margin: 16px 24px;
  width: 175px;
  border-bottom: none;
  text-align: center;
  color: #fff;
  font-family: 'Black Han Sans', Roboto, sans-serif;
  font-size: 18px;
  opacity: .8;
}
.header nav ul li a:hover {
  opacity: 1;
}
.header nav ul li a.active {
  color: #316060;
  background: #fff;
  opacity: 1;
}

@media screen and (max-width: 760px){  
  .header .menu-toggle,
  .header .menu-close {
    background: none;
    display: inline-block;
    vertical-align: middle;
    padding: 12px;
    margin: 0;
    padding-bottom: 8px;
    color: #fff;
    border: none;
  }
  .header .menu-toggle:after {
    content: "New Hempstead Kehillah";
    position: relative;
    top: -12px;
    left: 8px;
    font-weight: 400;
    font-family: 'Black Han Sans', Raleway, sans-serif;
  }
  .header .menu-toggle .material-icons {
    font-size: 34px;
  }
  
  .header nav ul {
    position: fixed;
    top: 0;
    left: 0;
    box-shadow: 0 0 1px rgba(0,0,0,.8);
    bottom: 0;
    background: var(--primary);
    width: 300px;
    max-width: 85%;
    opacity: 0;
    transform: translateX(-110%) scaleX(.5);
    transition: opacity .3s, transform .5s;
  }
  .header nav ul.in {
    opacity: 1;
    transform: translateX(0%) scaleX(1);
  }
  .header nav ul li {
    display: block;
  }
  .header nav ul li a {
    display: block;
    width: 100%;
    margin: 12px 0;
    padding: 16px 0;
  }
}





.content {
  padding: 16px;
  margin: 0;
  margin: 3em 0;
}

.content > .popper {
  background: #fff;
  min-width: 75%;
  max-width: 90%;
  border-radius: 10px;
  padding: 16px;
  margin: 0 auto;
  transform: translateY(-50px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23);
}


.row {
  margin: 0 !important;
}
@media screen and (min-width: 960px){
  
.row {
  display: grid;
  margin: 0 0 !important;
}
.row, .row .item {
  padding: 16px;
}
}


.form-item {
  
}

a {
  color: #316060;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: all .5s;
}
a:hover {
  color: #427171;
  border-bottom: 1px solid #427171;
  text-decoration: none;
}
h1 {
  font-size: 40px;
}
h2 {
  font-size: 36px;
}
h3 {
  font-size: 28px;
}
h4 {
  font-size: 22px;
}
p {
  line-height: inherit;
}










.form-item {
  position: relative;
  margin-top: 20px;
}

.form-item input {
  display: block;
  width: 100%;
  border: none;
  border-bottom: 1px solid #808080;
  background: transparent;
  outline: none;
  padding: 16px 0;
  font-family: "Montserrat", sans-serif;
  font-size: 1em;
}

.form-item input:-webkit-autofill {
  box-shadow: 1000px 1000px 10000px #fff inset;
}

.form-item label {
  transform: translateY(-25px);
  color: #808080;
  position: absolute;
  width: 100%;
  display: block;
  pointer-events: none;
  transition: all 0.3s 0s;
}

.form-item label:after {
  position: absolute;
  width: 100%;
  height: 3px;
  background: #316060;
  content: "";
  display: block;
  bottom: 0px;
  transform: scaleX(0);
  opacity: 0;
  transition: transform 0.3s ease-in, bottom 0.3s, opacity 0.3s;
}

.form-item input:focus + label, .form-item input:valid + label {
  transform: translateY(-68px);
  font-size: 12px;
  color: #316060;
  transition-delay: 0;
}

.form-item input:focus + label:after, .form-item input:valid + label:after {
  opacity: 1;
  transition: transform .3s ease-in, bottom 0s, opacity .3s;
  transform: scaleX(1);
  bottom: -50px;
}

.form-item select {
  padding: 16px 0;
  font-family: "Montserrat", sans-serif;
  font-size: 1em;
  display: block;
  width: 100%;
  background: transparent;
  -webkit-appearance: none;
  border: none;
  outline: none;
  border-bottom: 3px solid #316060;
  margin-top: 8px;
}

.form-item select + label {
  color: #316060;
  font-size: 12px;
  transform: translateY(-60px);
}

.form-item select * {
  -webkit-appearance: none;
}

.form-item select option {
  padding: 8px 16px;
  -webkit-appearance: none;
}

.form-item textarea {
  display: block;
  width: 100%;
  border: none;
  border-bottom: 1px solid #808080;
  background: transparent;
  outline: none;
  padding: 16px 0;
  height: 150px;
  font-family: "Montserrat", sans-serif;
  font-size: 1em;
  margin-top: 20px;
  resize: none;
  height: 40px;
  transition: all .2s ease-in;
}

.form-item textarea + label {
  transform: translateY(-30px);
  color: #808080;
  position: absolute;
  width: 100%;
  display: block;
  pointer-events: none;
  transition: all 0.3s 0s;
}

.form-item texarea + label:after {
  position: absolute;
  width: 100%;
  height: 3px;
  background: #316060;
  content: "";
  display: block;
  bottom: 0px;
  transform: scaleX(0);
  opacity: 0;
  transition: transform .3s ease-in, bottom .3s, opacity .3s;
}

.form-item textarea:focus, .form-item textarea:valid {
  height: 150px;
}

.form-item textarea:focus + label, .form-item textarea:valid + label {
  font-size: 12px;
  color: #316060;
  transform: translateY(-168px);
}

.form-item textarea:focus + label:after, .form-item textarea:valid + label:after {
  opacity: 1;
  transition: transform .3s ease-in, bottom 0s, opacity .3s;
  transform: scaleX(1);
  bottom: -150px;
}

.form-item textarea.invalid + label, .form-item input.invalid + label, .form-item select.invalid + label {
  color: #c00;
}

.form-item textarea.invalid + label:after, .form-item input.invalid + label:after, .form-item select.invalid + label:after {
  background: #c00 !important;
}

.form-item.has-icon .icon {
  position: absolute;
  top: 12px;
  transition: all .3s;
  left: 0px;
  color: #808080;
  font-size: 18px;
}

.form-item.has-icon input {
  padding-left: 32px;
  /*padding-bottom: 16px;*/
}

.form-item.has-icon input:focus ~ .icon,
.form-item.has-icon input:focus ~ .icon .mdi {
  color: #316060;
}

.form-item.has-icon input + label {
  text-indent: 32px;
}

.checkbox {
  display: inline-block;
  position: relative;
  margin: 0 0 10px;
  font-size: 16px;
  line-height: 24px;
}

.checkbox__input {
  position: absolute;
  top: 4px;
  left: 0;
  width: 16px;
  height: 16px;
  opacity: 0;
  z-index: 0;
}

.checkbox__label {
  display: block;
  padding: 0 0 0 24px;
  cursor: pointer;
}

.checkbox__label:before {
  content: '';
  position: absolute;
  top: 4px;
  left: 0;
  width: 16px;
  height: 16px;
  background-color: transparent;
  border: 2px solid #316060;
  border-radius: 2px;
  z-index: 1;
  transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  transition-property: background-color, border-color;
}

.checkbox__label:after {
  content: '';
  position: absolute;
  top: 5px;
  left: 5px;
  width: 6px;
  height: 12px;
  border-bottom: 2px solid transparent;
  border-right: 2px solid transparent;
  transform: rotate(45deg);
  z-index: 2;
  transition: border-color 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.checkbox__input:checked + .checkbox__label:before {
  background-color: #316060;
  border-color: #316060;
}

.checkbox__input:checked + .checkbox__label:after {
  border-color: #fff;
}
