@import url('https://fonts.googleapis.com/css?family=Roboto:400,300,700,500,100');

* {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  -ms-box-sizing: border-box;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Roboto', sans-serif;
}

html, body {
  height: 100%
}

/* Font Sizes */
.font-xl {
  font-size: 36px;
}
.font-lg {
  font-size: 24px;
}
.font-md {
  font-size: 20px;
}
.font-sm {
  font-size: 16px;
}

.label {
  font-weight: bold;
  margin-bottom: 0px;
}


/* Content Display Area */
#content {
  max-width: 650px;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}


/* Business Image */
#business-image-container {
  text-align: center;
  margin-top: 25px;
  margin-bottom: 25px;
}
#business-image {
  max-height: 150px;
}


/* Order Status */
#order-status {
  text-align: center;
  margin-bottom: 50px;
}
#order-status .content {
  text-align: justify;
  margin-bottom: 0px;
}


/* Order Summary */
#order-summary {
  margin-bottom: 50px;
}
#order-summary .key {
  font-weight: bold;
  text-align: left;
}
#order-summary .value {
  text-align: right;
}


/* Items Grid */
#order {
  margin-bottom: 50px;
}
#order-label {
  font-weight: bold;
}
.item-row {
  padding-top: 12.5px;
  padding-bottom: 12.5px;
  min-height: 115px;
  border-bottom: solid;
  border-bottom-width: 1px;
}
.last-row {
  border-bottom: none;
  margin-bottom: 25px;
}

/* Item Image */
.item-image-container {
  text-align: center;
  height: 115px;
}
.item-image {
  cursor: pointer;
  transition: 0.3s;
}
.item-image:hover {
  opacity: 0.7;
}

.item-brand, .item-price {
  font-weight: bold;
}
.item-price {
  text-align: right;
}

.item-options {
  list-style: none;
}
.item-option {
  line-height: 1.25em;
  padding-bottom: 3px;
  font-weight: 300;
} 


/* Totals */
.totals-row > .value {
  text-align: right;
}
#saved {
  color: red;
}


/* Shipping */
#shipping {
  margin-bottom: 50px;
  display: block;
}
#shipping > p {
  display: inline-block;
}
#shipping > .name {
  margin-right: 5px;
  font-weight: bold;
}


/* Stripe Payment */
#payment {
  margin-bottom: 50px;
}

#card-element-label {
  font-weight: bold;
  font-size: 20px;
}

#button-container {
  text-align: center;
  margin-top: 25px;
  margin-bottom: 25px;
}
#payment-button {
  font-weight: bold;
  font-size: 24px;
  border: none;
  border-radius: 25px;
  width: 300px;
  color: white;
}
#payment-button:enabled {
  background-color: #853CAF;  
}
#payment-button:enabled:hover {
  cursor: pointer;
}
#payment-button:disabled {
  background-color: grey;
}
#payment-button:focus {
  outline: none;
}


.StripeElement {
  background-color: white;
  padding: 8px 12px;
  border-radius: 4px;
  border: 1px solid transparent;
  box-shadow: 0 1px 3px 0 #e6ebf1;
  -webkit-transition: box-shadow 150ms ease;
  transition: box-shadow 150ms ease;
}
.StripeElement--focus {
  box-shadow: 0 1px 3px 0 #cfd7df;
}
.StripeElement--invalid {
  border-color: #fa755a;
}
.StripeElement--webkit-autofill {
  background-color: #fefde5 !important;
}


/* Order Issue (in the event of bad order status */
#order-issue {
  text-align: center;
  margin-top: auto;
  margin-bottom: 50px;
}

/* Error */
#error {
  text-align: center;
  margin-top: auto;
}


/* Footer: Business Contact Info */
#footer {
  margin-top: auto;
  margin-bottom: 25px;
}
#contact-prompt, #contact-info {
  text-align: center;
}
#contact-prompt p {
  display: inline-block;
}
#contact-info p {
  margin-bottom: 0;
}
#purple-go {
  margin-top: 25px;
  text-align: center;
}


/* Other */
#bold-prompt, #contact-name {
  font-weight: bold;
}
a {
  color: #853CAF;
}

/* Hidden Elements */
.hidden {
  display: none;
}



/* Images */
img {
  max-height: 100%;
  max-width: 100%;
}


/* Modals (Full-Screen Item Images) */
/* Copied from w3schools */

/* The Modal (background) */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  padding-top: 100px; /* Location of the box */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.9); /* Black w/ opacity */
}

/* Modal Content (Image) */
.modal-content {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
}

/* Caption of Modal Image (Image Text) - Same Width as the Image */
#caption {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
  text-align: center;
  color: #ccc;
  padding: 10px 0;
  height: 150px;
}

/* Add Animation - Zoom in the Modal */
.modal-content, #caption { 
  -webkit-animation-name: zoom;
  -webkit-animation-duration: 0.6s;
  animation-name: zoom;
  animation-duration: 0.6s;
}

@-webkit-keyframes zoom {
  from {-webkit-transform:scale(0)} 
  to {-webkit-transform:scale(1)}
}

@keyframes zoom {
  from {transform:scale(0)} 
  to {transform:scale(1)}
}


/* 100% Image Width on Smaller Screens */
@media only screen and (max-width: 700px){
  .modal-content {
      width: 100%;
  }
}