/* Format all elements */
* {
  box-sizing: border-box;
}

/* Format the webpage background */
body {
  color: #8e44ad;
  background: #fff;
  font-family: Inter, Helvetica, Arial, sans-serif;
}

/* Format the main content area */
#contentBox {
  width: 84vw;
  position: absolute;
  left: 42vw;
  transform: translateX(-50%);
  margin-top: 3rem;
  margin-left: 8vw;
  margin-right: 8vw;
}

.content {
  display: none;
  margin-bottom: 4rem;
  width: 100%;
}

.content h1 {
  font-size: 1.7rem;
  font-family: Inter, Helvetica, Arial, sans-serif;
  text-transform: uppercase;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.2rem;
  text-align: center;
}

.content h2 {
  font-size: 1rem;
  font-family: Inter, Helvetica, Arial, sans-serif;
  font-weight: 500;
  margin-top: 0.2rem;
  margin-bottom: 0.2rem;
  text-align: center;
}

.content div {
  font-weight: 500;
  font-family: Inter, Helvetica, Arial, sans-serif;
  font-size: 1.2rem;
  text-align: center;
  margin-top: 1.5rem;
  margin-bottom: 0.2rem;
}

.content>div {
  width: 100%;
}

a {
  color: #8e44ad;
}

hr {
  width: 100%;
  color: #8e44ad;
  margin-top: 3rem;
}

/* Format the inputs and buttons */
input {
  color: #5c2c70;
  background-color: #f4f4f4;
  font-size: 16px;
  font-family: Inter, Helvetica, Arial, sans-serif;
  text-align: left;
  height: 56px;
  width: 300px;
  border: 1px solid #8e44ad;
  border-radius: 0;
  margin-bottom: 16px;
  padding: 16px;
  transition: color 0.2s, background .2s ease-in-out;
}

input::placeholder {
  text-transform: initial;
  font-size: 16px;
  line-height: 24px;
}

input:focus {
  border: 1px solid #5c2c70;
}

input.invalid {
  color: #ff2200;
  background-color: #ffd3cc;
  border: 1px solid #ff2200;
}

input.ready {
  color: #4caf50;
  background-color: #d9eed9;
  border: 1px solid #4caf50;
}

button {
  color: #fff;
  background-color: #ac6fc6;
  font-size: 24px;
  font-family: Inter, Helvetica, Arial, sans-serif;
  font-weight: 500;
  border: none;
  outline: none;
  border-radius: 0;
  box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.2), 0 0 15px 0 rgba(0, 0, 0, 0.1);
  padding: 5px 10px;
  margin-top: 10px;
  cursor: pointer;
  transition: color 0.2s ease-in-out, background .2s ease-in-out;
}

button:hover {
  background-color: #8e44ad;
}

button:disabled {
  background-color: #8e44ad;
  cursor: auto;
}

button.ready {
  background-color: #4caf50;
  box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.3);
}

:focus {
  outline: none;
}
::-moz-focus-inner {
  border: 0;
}

/* Format the checkboxes */
.container {
  display: inline-block;
  position: relative;
  padding-left: 35px;
  margin-bottom: 1rem;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.container input.checkbox {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 25px;
  width: 25px;
  background-color: #eee;
}

.container input.checkbox:checked ~ .checkmark {
  background-color: #8e44ad;
}

.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

.container input.checkbox:checked ~ .checkmark:after {
  display: block;
}

.container .checkmark:after {
  left: 9px;
  top: 5px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 3px 3px 0;
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
}

input.checkbox.invalid ~ .checkmark {
  background-color: #ff2200;
}

/* Format specific items */
#signIn {
  animation: fadeIn 0.6s;
}

.content .text {
  display: inline-block;
}

.content .boxes {
  text-align: left;
}

.complete {
  color: #d9eed9;
  background-color: #4caf50;
}

.error {
  color: #ff2200;
  background-color: #ffd3cc;
}

/* Format the overlay */
.overlay {
  position: fixed;
  display: none;
  width: 100vw;
  height: 100vh;
  top: 0;
  left: 0;
  background-color: rgba(255,255,255,0.5);
  z-index: 100;
}

.center {
  width: 60px;
  height: 60px;
  position: absolute;
  top: 50vh;
  left: 50vw;
  transform: translate(-50%, -50%);
}

.loadingCircle {
  border: 10px solid #f3f3f3;
  border-top: 10px solid #8e44ad;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  position: absolute;
  top: 0;
  left: 0;
  animation: spin 1.5s linear infinite;
}

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

#tooLong {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  flex-direction: column;
  align-content: center;
  justify-content: center;
  padding: 0 10vw;
}

#tooLong div {
  padding: 0.5rem;
  background-color: #fff;
  font-size: 1.2rem;
  text-align: center;
}

/* Very small screen adjustments */
@media only screen and (max-width: 350px) {  
  .content h1 {
    font-size: 10vw;
  }
  
  .content h2 {
    font-size: 6vw;
  }
  
  .content button {
    font-size: 6.5vw;
  }
}

