/* GLOBAL VARIABLES */
:root {
  --background-color: rgb(253, 253, 253);
  --shade-box-unchecked-color: rgb(255, 255, 255);
  --content-color: white; 
  --shade-content-color: #2e3068; 
  --dark-content-color: #080a52;
  --navbar-color: #080a52;
  --highlight-color: #eb2188;
  --yes-color: #A5DC86;
  --yes-highlight-color: rgb(147, 219, 105);
  --no-color: rgb(223, 140, 140);
  --neutral-color: rgb(198, 206, 253);
  --navbar-height: 45px;
}

/* GLOBAL STLYING */
* {
  margin: 0;
  padding: 0;
  font-family: 'Raleway', sans-serif;
  color: #080a52;
}

html { 
  overflow-y: scroll; 
}

/* HEADER STYLING */

h1 {
  font-weight: 800;
  margin-bottom: 35px;
  text-align: center;
  font-size: 40px;
}

h2 {
  font-weight: 800;
  margin: 30px;
  text-align: center;
  font-size: 30px;
}

h3 {
  font-weight: 800;
  margin: 25px;
  text-align: center;
  font-size: 25px;
}

h4 {
  font-weight: 800;
  margin: 15px 0;
  text-align: center;
  font-size: 20px;
}

h5 {
  font-weight: 800;
  margin: 12px 0px;
  font-size: 20px;
}

h6 {
  font-weight: 800;
  margin: 10px 0px;
  font-size: 15px;
}

/* NAVBAR STYLING */

.nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  background-color: var(--navbar-color);
  width: 100%;
}

.link-container {
  display: flex;
  justify-content: start;
  align-content: stretch;
  margin-right: 5%;
}
.link-container li{
  list-style: none;
  display: flex;
}
.link-container a {
  display: flex;
  align-items: center;
  color: white;
  text-decoration: none;
  padding: 0 16px;
}
.link-container a:hover {
  background-color: var(--highlight-color);
  -webkit-transition: background-color .2s;
  transition: background-color .2s;
}
.link-container a:focus {
  background-color: var(--highlight-color);
  outline: 0;
}
.current-page {
  background-color: var(--highlight-color);
}

.nav-bar a {
  display: flex;
}
#logo {
  background-color: var(--highlight-color);
  height: var(--navbar-height);
}

#burger {
  height: 20px;
  display: none;
}

/* FOOTER STYLING */

.footer-bar {
  background-color: var(--navbar-color);
  color: white;
  text-align: center;
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  border: none;
  line-height: 24px;
}

.logo-links {
  margin: 100px 0 0 0;
  display: block;
  text-align: center;
}
.logo-links li{
  display: inline;
  margin: 0 5px;
}
.logo-links img{
  height: 40px;
}

/* GENERAL CONTENT STYLING */

body {
  background-color: var(--background-color);
}

p {
  margin: 25px 0px;
}

ul {
  list-style-position: inside;
}

ul.bullet-list li{
  list-style-position: outside;
  margin-left: 1em;
}

.content {
  /* Add a top margin avoid navigation bar */
  margin: 7% 10% 50px;
  background-color: solid var(--background-color);
}

.button-bar {
  margin: 30px 50px;
}

#about-me-wrapper {
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin: 35px 0;
}

#about-me-img {
  width: 40vw;
  max-width: 500px;
  image-orientation: from-image;
}

/* FORM STYLING */

.toggle-section {
  display: none;
  text-align: left;
  margin: 30px 30px;
}

#settings>input{
  margin-left: 1px;
}

.setup-bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  text-align: center;
  margin: 40px 0;
}

.setup-bar-left {
  align-items: center;
  display: flex;
  height: 100px;
}

.form-group {
  margin: 40px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.form-group.indented-utilities {
 margin: 40px 0 40px 60px;
}

.form-label {
  font-weight: 800;
  font-size: 20px;
  display: block;
}
.form-label.feedback {
  margin: 10px 0px;
}

.input-box {
  background-color: var(--shade-box-unchecked-color);
  font-size: 16px;
  overflow: auto;
  padding: 0px 10px;
  border-radius: 5px;
  border-width: 1px;
  border: 1px solid rgba(0, 0, 0, 0.2);
}
.input-box:focus {
  border: 1px solid var(--dark-content-color);
  outline: 0;
}

.subject-box {
  text-align: left;
}

.message-box {
  height: 20vh;
  padding: 10px;
  display: block;
}

.int-input {
  text-align: center;
  width: 30px;
  height: 30px;
  margin: 0 10px;
}

.float-input {
  -moz-appearance:textfield; /* Firefox */
}
.float-input::-webkit-outer-spin-button,
.float-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
}

.error-box {
  border: 1px solid rgb(255, 0, 0);
}

.switch-field {
  overflow: hidden;
}
.switch-field input {
  position: absolute !important;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  width: 1px;
  border: 0px;
  overflow: hidden;
}
.switch-field label {
  float: left;
}
.switch-field label {
  display: inline-block;
  width: 60px;
  background-color: var(--shade-box-unchecked-color);
  color: rgba(0, 0, 0, 0.6);
  font-size: 14px;
  font-weight: normal;
  text-align: center;
  text-shadow: none;
  padding: 6px 14px;
  border: 1px solid rgba(0, 0, 0, 0.2);
  transition: all 0.1s ease-in-out;
}
.switch-field label:hover {
  cursor: pointer;
}

.no_switch_label {
  margin-right: 10px;
}

.switch-field input:checked + label {
  background-color: var(--neutral-color);
}
.switch-field input:checked + label[class=yes_switch_label] {
  background-color: var(--yes-color);
}
.switch-field input:checked + label[class=no_switch_label] {
  background-color: var(--no-color);
}
.switch-field label:first-of-type {
  border-radius: 4px 0 0 4px;
}
.switch-field label:last-of-type {
  border-radius: 0 4px 4px 0;
}

.button {
  background-color: var(--dark-content-color);
  border: 1px var(--dark-content-color);
  color: white;
  padding: 15px 32px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  border-radius: 4px;
  -webkit-transition-duration: 0.4s;
  transition-duration: 0.4s;
}
.button:hover {
  background-color: var(--shade-content-color);
  cursor: pointer;
}
.button:active {
  outline: 0;
}
.button:disabled,
.button[disabled]{
  border: 1px solid #999999;
  background-color: #cccccc;
  color: #666666;
  pointer-events: none;
}

.submit-button {
  display: block;
  margin: 0px auto;
  color: rgba(0, 0, 0, 0.6);
  background-color: var(--yes-color); /* light green */
  border: 1px solid rgba(0, 0, 0, 0.2);
}
.submit-button:hover {
  background-color: var(--yes-highlight-color);
}
.submit-button:focus {
  border: 1px solid #080a52;;
  color: #080a52;
  outline: 0;
}

.submit-error {
  -webkit-animation-name: submit-error;
  -webkit-animation-duration: .5s;
  animation-name: submit-error;
  animation-duration: .5s;
}

@-webkit-keyframes submit-error {  
  from { background: red; }
  to   { background: default; }
}

@keyframes submit-error {  
  from { background: red; }
  to   { background: default; }
}

.table-title {
  font-size: 20px;
  font-weight: 800;
  text-align: center;
  margin: 0 1 0px;
}

.integrator-data-entry-table {
  text-align: center;
  width: 100%;
}
.integrator-data-entry-table th{
  height: 60px;
  font-weight: 800;
  padding: 0 5px;
}

.table-cell {
  width: 70%;
  height: 30px;
  text-align: right;
}

.cell-header {
  text-align: center;
  font-weight: 800;
}

.selector {
  background-color: var(--shade-box-unchecked-color);
  font-size: 16px;
  overflow: auto;
  border-radius: 5px;
  border-width: 1px;
  border: 1px solid rgba(0, 0, 0, 0.2);
}
.selector:focus {
  border: 1px solid var(--dark-content-color);
  outline: 0;
}


#feedback-form-wrapper {
  display: flex;
  flex-direction: column;
  margin: 0 20% 40px;
}

/* RESULTS STYLING */
.results-title {
  text-align: center;
  margin: 50px 0px;
}

.results-group {
  text-align: center;
}

.toggle-icon {
  height: 45px;
  margin: 0 10px;
}
.toggle-icon:focus {
  outline: none;
}
.toggle-icon:hover {
  cursor: pointer;
}

#loader {
  border: 14px solid var(--shade-content-color);
  border-top: 14px solid var(--background-color);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
  display: none;
  margin: 20px 0px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

#integration-error {
  color: red;
  display: none;
}

#examples {
  font-size: 14px;
  margin-left: 15px; 
}

/* ERROR STYLING */

.web-error {
  text-align: center;
  font-size: 60px;
  margin-top: 150px;
}

.error-message {
  color: red;
  font-size: 15px;
}

.error-tooltip {
  color: red;
  background-color: var(--shade-box-unchecked-color);
  font-size: 12px;
  padding: 10px;
  border-radius: 5px;
  border-width: 1px;
  border: 1px solid rgba(0, 0, 0, 0.2);
	position: absolute;
	max-width: 300px;
}
.error-tooltip div{
  color:red;
}

.disabled-checkbox-wrapper {
  display: inline;
  padding-left: 1px;
}

.tip {
  display: block;
}

.ui-helper-hidden-accessible {
  border: 0;
  clip: rect(0 0 0 0);
  height: 0;
  margin: 0;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 0;
}

/* TABLET/MOBILE RESPONSIVENESS */
@media only screen and (max-width: 768px) {
  /* NAV BAR */
  .nav-bar {
    flex-direction: column;
  }
  .mobile-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .link-container {
    display: none;
    flex-direction: column;
    margin-right: 0;
    width: 100%;
  }
  .link-container li{
    justify-content: center;
  }
  .link-container a {
    display: flex;
    width: 100%;
    justify-content: center;
    padding: 13px 0;
  }
  #burger {
    display: flex;
    margin-right: 4.2%;
    cursor: pointer;
  }
  /* INTEGRATOR PAGE */
  .setup-bar {
    flex-direction: column;
    align-items: center;
  }
  .setup-bar-left {
    flex-direction: column;
    justify-content: space-around;
  }
  .setup-bar-mobile {
    flex-direction: row;
  }
  .form-column-on-mobile {
    flex-direction: column;
  }
  .form-column-on-mobile>.form-label{
    margin-bottom: 15px;
  }
  .form-group.indented-utilities {
    margin: 40px 0;
  }
  .form-hide-on-mobile {
    display: none;
  }
  .integrator-data-entry-table>tbody>tr>td>input {
    width: 60%;
  }
  .integrator-data-entry-table th{
    padding: 0;
  }
  /* FEEDBACK PAGE */
  #feedback-form-wrapper {
    margin: 0 0 40px 0;
  }
  /* ABOUT PAGE */
  #about-me-wrapper {
    flex-direction: column;
  }
  #about-me-img {
    width: 200px;
  }
}

/* MOBILE ONLY RESPONSIVENESS */
@media only screen and (max-width: 420px) {
  .integrator-data-entry-table>tbody>tr>th>label {
    font-size: 4vw;
  }
}