/* some style */
@font-face {
    font-family: Manrope;
    src: url('../fonts/manrope-bold.woff2') format('woff2'),
         url('../fonts/manrop-bold.woff') format('woff'),
         url('../font/manrope-bold.otf') format('truetype');
    font-style: normal;
    font-weight: 700;
}

@font-face {
    font-family: Manrope;
    src: url('../fonts/manrope-regular.woff2') format('woff2'),
         url('../fonts/manrop-regular.woff') format('woff'),
         url('../font/manrope-regular.otf') format('truetype');
    font-style: normal;
    font-weight: 400;
}

html { font-size: 62.5%; }

html, body {
    background-size: cover;
    font-family: "Manrope", sans-serif;
    height: 100%;
}

*,*:before,*:after {
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    font-smoothing: antialiased;
}

body {
    font-size: 1.5em;
    line-height: 1.6;
    font-weight: 400;
    background-color: rgb(101,98,151);
    background-repeat: no-repeat;
    width: 100%;
    background-size: cover;
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
}

.container {
    display: flex;
    flex-direction: column;
    flex: 1 0 auto;
    box-sizing: border-box;
    height: 100%;
    /* margin: 0 auto; */
    /* width: 100%; */
    /* max-width: 100%;; */
    /* align-items: stretch; */
    /* padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); */
    /* float: none; */
}

.container > .row {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
}

.content {
    background-color: transparent;
    color: #333;
    min-height: 524px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
}

.row > .column {
    margin: 0 auto;
    width: 80%;
    z-index: 100;
    display: flex;
    flex-direction: column;
}

h1, h2, h3, h4, h5, h6 { font-weight: 300; }

h1 { letter-spacing: normal; }

h1.title {
    font-size: 1.6rem;
    font-weight: normal;
    color: white;
    border: 3px solid white;
    text-align: center;
    margin: 24px auto 0;
    padding: 4px;
    vertical-align: baseline;
    box-sizing: border-box;
    width: 100%;
}

.title .word {
    display: inline-block;
    margin-right: .25rem;
}

.title .word:last-child {
    margin-right: 0;
}

.alert {
    margin: 0 auto 20px;
    border: 1px solid transparent;
    border-radius: 4px;
    padding: 8px;
    vertical-align: baseline;
    font-size: 1.25rem;
}

.alert-danger {
    color: #a94442;
    background-color: #f2dede;
    border-color: #ebccd1;
}

.alert-warning {
    color: #8a6d3b;
    background-color: #fcf8e3;
    border-color: #faebcc;
}

.alert-success {
    color: #31708f;
    backgrond-color: #d9edf7;
    border-color: #bce8f1;
}

.fade {
    opacity: 0;
    -webkit-transition: opacity .15s linear;
    -o-transition: opacity .15s linear;
    transition: opacity .15s linear;
}

.in {
    opacity: 1;
}

.alert a {
    font-weight: 700;
}

.panel {
    background-color: white;
    border-radius: 8px;
    -webkit-box-shadow: 0px 3px 20px 0px rgba(0,0,0,0.15);
    -moz-box-shadow: 0px 3px 20px 0px rgba(0,0,0,0.15);
    box-shadow: 0px 3px 20px 0px rgba(0,0,0,0.15);
    margin: 0 auto 1.5rem;
    padding: 2rem;
    max-width: 444px;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 80%;
    box-sizing: border-box;
}

.panel header {
    padding: 2rem 0;
}

.panel header h1 {
    font-size: 2rem;
    text-align: center;
}

.panel form {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    height: 100%;
    margin: 0;
}

.panel form fieldset {
    display: flex;
    flex-direction: column;
}



header + .school {
    z-index: 100;
    display: none;
}

label {
    text-transform: capitalize;
    font-size: 1.2rem;
    color: #666;
    font-weight: 600;
}

input,
textarea,
select,
button {
    font-family: "Century Gothic", CenturyGothic, AppleGothic, sans-serif;
    font-size: 1.5rem;
    line-height: 1.6;
    font-weight: 400;
}

label + input[type="text"],
label + input[type="password"],
label + input[type="tel"],
.sq-input {
    font-family: "Century Gothic", CenturyGothic, AppleGothic, sans-serif;
    border-radius: 0;
    border-top: none;
    border-left: none;
    border-right: none;
    border-bottom: 1px solid #666 !important;
    height: 26px;
    margin-bottom: 1.5rem;
    outline: 0;
    padding: 0;
    width: 100%;
}

input[type=text]::-ms-clear {
    display: none !important;
}

input[type="password"]:focus,
input[type="text"]:focus,
input[type="tel"]:focus,
input:focus,
.sq-input:focus {
    border-radius: 0;
    border-top: none;
    border-left: none;
    border-right: none;
    border-bottom: 1px solid #333 !important;
    outline: 0;
}

.is-invalid label + input[type="text"],
.is-invalid label + input[type="password"],
.is-invalid label + input[type="tel"],
.is-invalid label + input,
.is-invalid .sq-input {
    color: #E02f2F;
    margin-bottom: 0;
    border-bottom: 1px solid #E02F2f !important;
}

.small {
    font-size: 1.5rem;
}

.spacer {
    padding-top: 6rem;
    width: 100%;
    text-align: center;
}

.hidden {
    display: none;
}

form {
    text-align: center;
}

fieldset {
    border: none;
    color: #666;
    text-align: left;
    margin-bottom: 0 !important;
}

button, .button {
    background-color: #7C98FC;
    border-color: transparent;
    border-width: 1px;
    border-radius: 4px;
    color: #fff;
    height: 38px;
    padding: 0 30px;
    text-align: center;
    letter-spacing: .1rem;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    box-sizing: border-box;
    width: 75%;
    max-width: 200px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    min-height: 2.25rem;
    margin: 0 auto;
}

button:before {
    position: absolute;
    content: '';
    bottom: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background-color: #54d98c;
}

button span {
    position: absolute;
    line-height: 0;
}

button span i {
    transform-origin: center center;
}

button span:nth-of-type(1) {
    top: 50%;
    transform: translateY(-50%);
}

button span:nth-of-type(2) {
    top: 100%;
    transform: translateY(0%);
    font-size: 24px;
}

button span:nth-of-type(3) {
    display: none;
}

button:disabled,
button:disabled:hover {
    background-color: rgba(124, 152, 252, .40);
}

.button:hover,
button:hover,
input[type="submit"]:hover,
input[type="reset"]:hover,
input[type="button"]:hover {
    background-color: rgba(150, 174, 255, 1);
    color: #fff;
    border: none;
}

.button:focus,
button:focus,
input[type="submit"]:focus,
input[type="reset"]:focus,
input[type="button"]:focus,
.button:active,
button:active,
input[type="submit"]:active,
input[type="reset"]:active,
input[type="button"]:active {
    color: #7C98FC;
    border: none;
    color: #fff;
}

button.active {
    background-color: #2ecc71;
    color: #fff;
    border: none;
}

button.active:before {
    width: 100%;
    transition: width 3s linear;
}

button.active span:nth-of-type(1) {
	 top: -100%;
	 transform: translateY(-50%);
}
button.active span:nth-of-type(2) {
	 top: 50%;
	 transform: translateY(-50%);
}
button.active span:nth-of-type(2) i {
	 animation: loading 500ms linear infinite;
}
button.active span:nth-of-type(3) {
	 display: none;
}

 @keyframes loading {
	 100% {
		 transform: rotate(360deg);
	}
}
 @keyframes scale {
	 0% {
		 transform: scale(10);
	}
	 50% {
		 transform: scale(0.2);
	}
	 70% {
		 transform: scale(1.2);
	}
	 90% {
		 transform: scale(0.7);
	}
	 100% {
		 transform: scale(1);
	}
}

.is-invalid input[type="text"],
.is-invalid input[type="tel"],
.is-invalid input[type="email"],
.is-invalid input[type="password"],
.sq-input--error,
.sq-input--error input {
    color: #E02f2F;
    margin-bottom: 0;
    border-bottom: 1px solid #E02F2f;
}

.is-invalid small,
.sq-input--error small,
.is-invalid,
.sq-input--error,
.is-invalid label,
.sq-input--error label {
    color: #E02f2F;
}

.form-field {
    margin-bottom: 7%;
}

.form-field.columns {
    margin: 0 0 0 2px;
}

.form-field.columns:first-child,
.form-field.six.columns:first-child {
    margin-left: 0;
}

fieldset .row {
    display: flex;
    flex-direction: row;
}

/* FIXME */
iframe#sq-postal-code {
    height: 25px;
}

.panel.card-success {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.panel.card-success header {
    align-self: flex-start;
}

.panel.card-success img {
    max-width: 75%;
    height: auto;
    border-radius: 12px;
    align-self: center;
}

.card-success .completed-card-container {
  width: 75%;
  max-height: 158px;
  min-height: 117px;
  border-radius: 8px;
  background-image: linear-gradient(90deg, rgb(76, 168, 248), rgb(63, 222, 241));
  color: #fff;
  font-size: 1.2rem;
}

.completed-card-content {
    display: flex;
    flex-direction: column;
    justify-items: flex-end;
}

.center-card-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 28%;
}

.card-details-row {
  display: flex;
  flex-direction: row;
  margin: 3% 0;
  justify-content: space-around;
  width: 100%;
}

.name-on-card {
    max-width: 45%;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.at-bottom {
    text-align: center;
    color: #A8A8A8;
    margin-top: 5rem;
    font-size: 1rem;
}

.disclaimer {
    text-align: left;
    align-self: flex-end;
    color: #A8A8A8;
    font-size: 1rem;
    text-transform: none;
}

.row > input[type="checkbox"] {
    display: inline;
    margin: 1% 3% 0 0;
}

.checkmark__circle {
  stroke-dasharray: 216; /* ORIGINALLY 166px */
  stroke-dashoffset: 216; /* ORIGINALLY 166px */
  stroke-width: 2;
  stroke-miterlimit: 10;
  stroke: #0FEE93;
  fill: none;
  animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark {
  width: 106px; /* ORIGINALLY 56px */
  height: 106px; /* ORIGINALLY 56px */
  border-radius: 50%;
  display: block;
  stroke-width: 2;
  stroke: #FFFFFF;
  stroke-miterlimit: 10;
  margin: 10% auto;
  box-shadow: inset 0px 0px 0px #0FEE93;
  animation: fill .4s ease-in-out .4s forwards, scale .3s ease-in-out .9s both;
}

.checkmark__check {
  transform-origin: 50% 50%;
  stroke-dasharray: 98; /* ORIGINALLY 48px */
  stroke-dashoffset: 98; /* ORIGINALLY 48px*/
  animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes stroke {
  100% {
    stroke-dashoffset: 0;
  }
}
@keyframes scale {
  0%, 100% {
    transform: none;
  }
  50% {
    transform: scale3d(1.1, 1.1, 1);
  }
}
@keyframes fill {
  100% {
    box-shadow: inset 0px 0px 0px 80px #0FEE93;
  }
}

/* Tablets: iPad 1 and up */
@media only screen
and (min-device-width : 768px)
and (orientation : landscape){
    .container { width: 100%; }
    .container > .row {
        display: flex;
        flex-direction: row;
        /* flex-wrap: wrap; */
        width: 100%;
    }

    .row > .content {
        align-items: center;
        display: flex;
        flex-direction: column;
        flex-basis: 100%;
        flex: 1;
        align-items: center;
    }

    .row > .column {
        display: flex;
        flex-direction: column;
        flex-basis: 50%;
        align-content: center;
        justify-content: space-between;
    }
    .column header {
        justify-self: flex-start;
    }

    .row .content {
        background: #F9F8F8;
        justify-content: center;
        z-index: 1000;
    }

    .panel {
        margin-top: 24px;
        width: 75%;
        min-height: 575px;
    }

    h1.title {
        width: 75%;
        border: none;
        font-size: 6rem;
        font-weight: bolder;
        text-align: left;
        margin-left: 1rem;
        line-height: 1.05;
        z-index: 1000;
    }

    .title .word {
        display: block;
        margin-right: 0;
    }

    header + .school {
        display: block;
        justify-self: center;
        align-self: center;
        margin: auto 0;
    }
}
