@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: #E8E9ED;
  font-family: "Roboto", Open Sans, Arial, sans-serif;
  color: #ffffff;
}

#page {
  margin: 100px;
}


.flex-page {
  display: flex;
  height: 100%;
}

#left {
  padding-left: 40px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 60%;
}

#right {
  background: #1A2A4F;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 39%;
  height: 100%;
  position: absolute;
  right: -8px;
  top: 8px;
}

#right .wifi-img-container {
  width: 90%;
  text-align: center;
}

#right .wifi-img-container img{
  height: auto;
  width: 90%;
}

.error-message {
  display: none;
  color: #e00000;
}

#title {
  font-size: 42px;
  font-weight: 700;
  line-height: 48px;
  color: #1A2A4F;
  text-transform: uppercase;
}

#subtitle {
  font-size: 25px;
  letter-spacing: 3px;
  line-height: 33px;
  margin-top: 10px;
}

.xsite-logo {
  width: 150px;
  margin-bottom: 20px;
}

#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;
}

.form-row input::placeholder {
    color: #1A2A4F;
 }

#submit-btn {
  border: none;
  border-radius: 2px;
  color: #ffffff;
  background: #1A2A4F;;
  width: 165px;
  height: 42px;
  font-weight: 700;
  font-size: 20px;
  cursor: pointer;
}

#submit-btn img { 
 margin-left: 10px;
}

#cb {
  display: none;
}

#cb-cnt {
  display: grid;
  grid-template-columns: 50px 1fr;
  vertical-align: bottom;
  width: 100%;
}

#cb-replaced {
  position: relative;
  display: block;
  margin-right: 10px;
  width: 35px;
  height: 35px;
  background-color: #ffffff;
  float: left;
  cursor: pointer;
  border-radius: 2px;
}

#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-check.png");
  
  background-color: #1A2A4F;
}

#cb-replaced.checked {
  background-color: #1A2A4F;
}

#cb-text {
  float: left;
  color: #1A2A4F;
  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: #1A2A4F;
  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: #eb7b93;
}

/* 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: 1060px) {
  html, body {
    overflow-y: auto;
  }

  #left {
    padding-left: 20px;
  }

  #title {
    font-size: 30px;
    line-height: 36px;
  }

  .xsite-logo {
    width: 125px;
    margin-bottom: 10px;
  }

  .form-row input {
    font-size: 18px;
    padding-right: 50px;
    height: 35px;
  }

  #cb-text {
    font-size: 16px;
    line-height: 32px;
  }

  #submit-btn {
    width: 140px;
    height: 35px;
    font-size: 18px;
  }
}



@media only screen and (max-width: 768px) {
  html, body {
    width: initial;
    height: initial;
  }

  #left {
    display: block;
    position: relative;
    width: 100%;
    z-index: 2;
  }

  #right { 
    height: 214px;
    top: 0px;
    right: 0px;
    width: 100%;
    z-index: -1;
  }

    #right .wifi-img-container img {
      display: none;
    }


  .xsite-logo {
    width: 115px;
    margin: auto;
    margin-top: 10px;
  }

  .logo-container {
    text-align: center;
  }

  #title {
    color: #FFF;
    font-size: 22px;
    line-height: 26px;
    margin-top: 10px;
    text-align: center;
  }

  #wifi-form {
    width: 100%;
  }
  

  #form {
    width: 100%;
    display: grid;
    place-items: center;
  }

  .form-row input {
    font-size: 18px;
    width: 100%;
    margin-right: 0px;
    height: 45px;
    margin-bottom: 7px;
  }

  .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: 32px;
    margin-left: 10px;
  }

  #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: 620px) { 
  #right { 
    height: 252px;
    top: 0px;
    right: 0px;
    width: 100%;
    z-index: -1;
  }

  #left {
    padding: 10px;
  }

  #title {
    color: #FFF;
    font-size: 24px;
    line-height: 28px;
    margin-top: 10px;
    text-align: left;
  }

  .input-group {
    width: 100%;
}

}





@media only screen and (max-width: 530px) {
  #right { 
    height: 248px;
  }

  .form-row input {
    height: 40px;
  }

  .input-group {
    margin: 4px;
  }

  #cb-replaced {
    width: 26px;
    height: 26px;
  }

  #cb-text {
    font-size: 15px;
    line-height: 26px;
  }

  .modal-content button {
  width: 110px;
  }
}

@media only screen and (max-width: 421px) { 
  #cb-text {
    line-height: 18px;
  }
}


@media only screen and (max-width: 370px) { 
  #right {
    height: 274px;
  }
}

