@font-face {
  font-family: VisbyCF-Heavy;
  src: url("font.woff2");
}

body,
html {
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

* {
  box-sizing: inherit;
}

body {
  background: #f3a3c7 url("captiveportal-bg-img.png") no-repeat;
  background-position: top right;
  background-size: 35% 100%;
  font-family: "VisbyCF-Heavy", Myriad Pro, Arial, sans-serif;
  color: #ffffff;
}

#page {
  margin: 100px;
}

.eldon-logo {
  display: none;
}

#left {
  position: relative;
  display: block;
  width: 60%;
}

.error-message {
  display: none;
}

#title {
  font-size: 150px;
  letter-spacing: 8px;
  line-height: 120px;
  color: #a31e6a;
}

#subtitle {
  font-size: 25px;
  letter-spacing: 3px;
  line-height: 33px;
  margin-top: 10px;
}

#form {
  margin-top: 10px;
}

.form-row:after {
  clear: both;
  content: " ";
  display: table;
}

.form-row input {
  display: block;
  float: left;
  height: 42px;
  margin-bottom: 0;
  border: none;
  box-sizing: border-box;
  padding-left: 18px;
  font-size: 20px;
  font-weight: 300;
  padding-right: 18px;
}

#submit-btn {
  border: none;
  color: #ffffff;
  background: #a31e6a;
  width: 150px;
  height: 40px;
  letter-spacing: 2px;
  font-size: 20px;
  cursor: pointer;
}

#cb {
  display: none;
}

#cb-cnt {
  display: grid;
  grid-template-columns: 75px 1fr;
  vertical-align: bottom;
  width: 80%;
}

#cb-cnt {
  display: grid;
  grid-template-columns: 75px 1fr;
  vertical-align: bottom;
  width: 90%;
}

#cb-cnt {
  display: grid;
  grid-template-columns: 50px 1fr;
  vertical-align: bottom;
}

#cb-replaced {
  position: relative;
  display: block;
  margin-right: 10px;
  width: 35px;
  height: 35px;
  background-color: #ffffff;
  float: left;
  cursor: pointer;
}

#cb-replaced .inner {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  margin: auto;
  display: inline-block;
  width: 16px;
  height: 16px;
  background-color: #ffffff;
  background-image: none;
  background-size: contain;
  background-repeat: no-repeat;
}

#cb-replaced.checked .inner {
  background-image: url("captiveportal-cb-tick.png");
}

#cb-text {
  float: left;
  color: #a31e6a;
  font-size: 22px;
}

.checkbox-replaced {
  position: relative;
  display: block;
  width: 25px;
  height: 25px;
  background-color: #ffffff;
  float: left;
  cursor: pointer;
}

.checkbox-replaced .inside {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  margin: auto;
  display: inline-block;
  width: 16px;
  height: 16px;
  background-color: #ffffff;
  background-image: none;
  background-size: contain;
  background-repeat: no-repeat;
}

.checkbox-replaced.checked .inside {
  background-image: url("captiveportal-cb-tick.png");
}

.input-group {
  position: relative;
  display: block;
  margin-right: 12px;
  margin-bottom: 18px;
  float: left;
}

.input-group.full-width {
  width: 100%;
  float: none;
  clear: both;
}

.clear-both {
  clear: both;
  display: block;
  position: relative;
}

/* The Modal (background) */
.modal {
  display: block; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: hidden; /* Enable scroll if needed */
  background-color: rgb(0, 0, 0); /* Fallback color */
  background-color: rgba(0, 0, 0, 0.4); /* Black w/ opacity */
}

/* Modal Content/Box */
.modal-content {
  background-color: #000;
  margin: 15% auto; /* 15% from the top and centered */
  padding: 20px;
  border: none;
  border-radius: 5px;
  width: 80%; /* Could be more or less, depending on screen size */
  max-width: 500px;
}

.modal-content p {
  margin-top: 0px;
  margin-bottom: 15px;
}

.modal-content button {
  background-color: #fff;
  border-radius: 4px;
  cursor: pointer;
  padding: 10px;
  border: none;
  width: 130px;
}

.modal-content button:first-child {
  margin-right: 8px;
}

.modal-content button:hover {
  background-color: #ee7fb1;
}

/* The Close Button */
.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

@media only screen and (max-width: 1600px) {
  body {
    background: #f3a3c7 url("captiveportal-bg-img.png") no-repeat;
    background-position: top right;
    background-size: 40% 100%;
  }

  #page {
    margin: 5px;
  }

  #left {
    margin: 50px;
  }
  #title {
    font-size: 110px;
    line-height: 80px;
  }

  #cb-text {
    font-size: 16px;
  }
}

@media only screen and (max-width: 1300px) {
  body {
    margin: 20px;
    background: #f3a3c7 url("captiveportal-bg-img.png") no-repeat;
    background-position: top right;
    background-size: 40% 100%;
  }

  #left {
    margin: 40px;
  }

  #title {
    font-size: 90px;
    line-height: 75px;
  }

  .form-row input {
    font-size: 18px;
    padding-right: 50px;
    height: 35px;
  }

  #cb-text {
    font-size: 16px;
  }

  #submit-btn {
    width: 140px;
    height: 35px;
    font-size: 18px;
  }
}

@media only screen and (max-width: 1200px) and (orientation: portrait) {
  body {
    background: #f3a3c7 url("captiveportal-bg-lines.png") no-repeat;
    background-position: top right;
    background-size: 23% 75%;
    color: #ffffff;
    margin: 0;
  }

  #page {
    height: 100%;
    margin: 0;
    background: url("captiveportal-bg-img-hand.png") no-repeat;
    background-position: bottom right;
    background-size: 45% 60%;
    position: absolute;
    z-index: 1;
  }
  #left {
    width: 70%;
    margin-left: 30px;
    padding-left: 50px;
  }

  #title {
    font-size: 150px;
    line-height: 120px;
    letter-spacing: 10px;
  }

  #subtitle {
    font-size: 40px;
    max-width: 500px;
    line-height: 50px;
    font-weight: 100;
  }

  .eldon-logo {
    display: block;
    margin-bottom: 20px;
  }

  #form {
    width: 100%;
  }

  .form-row input {
    width: 500px;

    display: block;

    float: left;

    height: 48px;

    margin-right: 10px;

    margin-bottom: 0;

    border: none;

    box-sizing: border-box;

    padding-left: 18px;

    font-size: 20px;

    font-weight: 300;

    padding-right: 18px;
  }

  #submit-btn {
    width: 190px;

    height: 40px;

    letter-spacing: 2px;

    font-size: 20px;
  }

  #cb-cnt {
    display: grid;
    grid-template-columns: 50px 1fr;
    vertical-align: bottom;
  }

  .input-group {
    position: relative;

    display: block;

    margin-bottom: 22px;

    float: left;
  }
  .error-message {
    font-size: 20px;
  }

  #cb-text {
    font-size: 20px;
  }
}

@media only screen and (max-width: 1024px) {
  body,
  html {
    overflow: auto;
  }
}

@media only screen and (max-width: 950px) and (orientation: portrait) {
  #page {
    height: 100%;
    margin: 0;
    background: url("captiveportal-bg-img-hand.png") no-repeat;
    background-position: bottom right;
    background-size: 45% 60%;
    position: absolute;
    z-index: 1;
  }

  .eldon-logo {
    margin: 20px;
  }

  #title {
    font-size: 88px;
    line-height: 90px;
    letter-spacing: 6px;
  }

  #subtitle {
    font-size: 38px;
    max-width: 400px;
    line-height: 45px;
  }

  #left {
    margin: 20px;
    padding: 0;
    width: 65%;
  }

  .form-row input {
    width: 400px;
  }
}

@media only screen and (max-width: 750px) {
  body {
    background: #f3a3c7 url("captiveportal-bg-img-cropped.png") no-repeat;
    background-position: top right;
    background-size: 24% 120%;
  }

  #page {
    background-image: none;
    z-index: 0;
  }

  #left {
    margin: 0;
    padding: 0;
    width: 100%;
  }

  .eldon-logo {
    width: 180px;
    margin: auto;
    margin-top: 20px;
  }

  #title {
    font-size: 60px;
    line-height: 60px;
    letter-spacing: 2px;
    margin: 5% 20% 5% 5%;
  }

  #subtitle {
    font-size: 16px;
    max-width: 100%;
    color: #a31e6a;
    text-align: center;
    line-height: 30px;
  }

  #form {
    width: 100%;
    display: grid;
    place-items: center;
  }

  .form-row input {
    font-size: 18px;
    width: 100%;
    margin-right: 0px;
    height: 45px;
  }

  .input-group {
    margin-right: 0;
    float: none;
    width: 90%;
    margin: 6px;
  }

  #cb-cnt {
    display: grid;
    grid-template-columns: 30px 1fr;
  }

  #cb-text {
    font-size: 16px;
    line-height: 18px;
    text-align: center;
  }

  #submit-btn {
    margin-top: 20px;
    width: 150px;
    font-size: 16px;
    height: 40px;
  }

  .form-row {
    display: grid;
    place-items: center;
    width: 100%;
  }

  #cb-replaced {
    width: 30px;
    height: 30px;
  }

  .mobile-hide {
    display: none;
  }
}

@media only screen and (max-width: 530px) {
  .eldon-logo {
    width: 170px;
    margin: auto;
    margin-top: 20px;
  }

  #title {
    font-size: 50px;
    line-height: 45px;
  }

  #subtitle {
    font-size: 17px;
    line-height: 15px;
    letter-spacing: 1px;
  }

  .form-row input {
    height: 40px;
  }

  .input-group {
    margin: 4px;
  }

  #cb-replaced {
    width: 26px;
    height: 26px;
  }

  #cb-text {
    font-size: 15px;
    line-height: 16px;
  }

  .modal-content button {
  width: 110px;
  }
}
