/*! HTML5 Boilerplate v8.0.0 | MIT License | https://html5boilerplate.com/ */

/* main.css 2.1.0 | MIT License | https://github.com/h5bp/main.css#readme */
/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
  color: #222;
  font-size: 1em;
  line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Vendor-prefixed and regular ::selection selectors cannot be combined:
 * https://stackoverflow.com/a/16982510/7133471
 *
 * Customize the background color to match your design.
 */

::-moz-selection {
  background: #b3d4fc;
  text-shadow: none;
}

::selection {
  background: #b3d4fc;
  text-shadow: none;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
  resize: vertical;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

@keyframes flashing {
  0% {
    color: #000;
    opacity: 0.3;
  }
  100% {
    color: #000;
    opacity: 1;
  }
}
@-webkit-keyframes flashing {
  0% {
    color: #000;
    opacity: 0.3;
  }
  100% {
    color: #000;
    opacity: 1;
  }
}
@-o-keyframes flashing {
  0% {
    color: #000;
    opacity: 0.3;
  }
  100% {
    color: #000;
    opacity: 1;
  }
}

a {
  color: #337ab7;
  text-decoration: none;
}

body {
  font-family: "Poppins", sans-serif;
  background: linear-gradient(#020024 0%, #345D9D 100%);
  color: white;
}

#header {
  position: absolute;
  top: 0;
  width: 100%;
  height: 50px;
  -webkit-transition: background-color .3s ease,box-shadow .3s ease;
  -o-transition: background-color .3s ease,box-shadow .3s ease;
  transition: background-color .3s ease,box-shadow .3s ease;
  will-change: background-color,box-shadow;
  z-index: 20;
}

#header.top {
  position: fixed;
  width: 100%;
  height: 50px;
  background-color: #000;
  box-shadow: 0 0 8px -2px #000;
}

@media (max-width: 767.9px) {
  .navbar {
    padding-left: 1.0rem;
    background: #000;
    max-width: 100%;
  }
}

.nav-item:not(:last-child) {
  padding-right: 1em;  
}

.wrapper {
  min-height: 100vh;
}

.content {
  padding-bottom: 70px;
}

.footer-text {
  opacity: 0.8;
}

.footer-text:hover {
  opacity: 1;
}

.footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 70px;
  color: white;
  font-size: 0.8em;
  line-height: 2em;
}

.logo {
  width: 175px;
  position: relative;
  left: -10px;
  top: -5px;
}

.copy {
  cursor: copy;
  position: relative;
}

.copy:after, .copy:before {
  -webkit-transition: all .2s ease 0s;
  -o-transition: all .2s ease 0s;
  transition: all .2s ease 0s;
}

.copy:before {
  border-color: transparent transparent #000 transparent;
  border-style: solid;
  border-width: .5em;
  content: "";
  left: 50%;
  margin-left: -0.5em;
  margin-top: -0.5em;
  opacity: 0;
  position: absolute;
  visibility: hidden;
  top: 100%;
  font-size: .85rem;
}

.copy:after {
  align-items: center;
  background-color: #000;
  border-radius: 2em;
  border: .4em solid transparent;
  box-shadow: 4px 4px 8px rgb(0 0 0 / 30%);
  color: #fff;
  content: "Copied";
  display: flex;
  font-size: .85rem;
  font-weight: 600;
  font-style: normal;
  justify-content: center;
  left: 50%;
  margin: 0.5em auto;
  opacity: 0;
  padding: 0 .8em .1em;
  pointer-events: none;
  position: absolute;
  top: 100%;
  visibility: hidden;
  white-space: nowrap;
  z-index: 999999;
  -webkit-transform: translateX(-50%);
  -ms-transform: translateX(-50%);
  -o-transform: translateX(-50%);
  transform: translateX(-50%);
}

.copied:after, .copied:before {
    opacity: 1;
    visibility: visible;
}

.currency-indicator-image {
  vertical-align: middle;
  margin-top: -8px;
  margin-right: 5px;
  max-width: 32px;
}

#currency-indicator {
  padding-bottom: .15em;
  overflow: hidden;
  vertical-align: top;
  position: relative;
  white-space: nowrap;
}

@media (max-width: 449px) {
  #currency-indicator {
    display: block;
    width: fit-content;
    margin: auto;
    padding-top: 5px;
  }
}

#currency-indicator::after {
  /* loading bar */
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 4px;
  width: 0;
  background: #4A90E2;
  z-index: 2;
  -webkit-transition: width 0.3s -0.1s;
  -moz-transition: width 0.3s -0.1s;
  transition: width 0.3s -0.1s;
}

#currency-indicator.is-loading::after {
  width: 100%;
  -webkit-transition: width 3s;
  -moz-transition: width 3s;
  transition: width 3s;
}

#exchange-container, #order-container, #statistics-container, #faq-container {
  background: white;
  box-shadow: 5px 5px 8px #00000066;
  padding: 32px 16px;
}

@media (min-width: 530px) {
  #exchange-container, #order-container, #statistics-container, #faq-container {
    border-radius: 10px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    padding: 32px;
  }
}

#previous-transactions {
  background: white;
  box-shadow: 5px 5px 8px #00000066;
  padding: 16px;
  margin-top: 16px;
}

@media (min-width: 530px) {
  #previous-transactions {
    border-radius: 10px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    padding: 16px 32px;
  }
}

svg > g > g:last-child { pointer-events: none }

#order-container form {
  position: relative;
}

ul.previous-list, ul.dashboard-list {
  padding: 0;
  margin: 0;
}

ul.previous-list>li, ul.dashboard-list>li>div:first-child {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  display: table;
  font-size: .9em;
  height: 3.3em;
  text-align: center;
  white-space: nowrap;
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

ul.dashboard-list>li>div {
  -webkit-appearance: none;
}

ul.previous-list>li>div, ul.dashboard-list>li>div>div {
  display: table-cell;
  vertical-align: middle;
}

ul.dashboard-list>li {
  list-style: none;
}

.previous-list .from-currency, .dashboard-list .from-currency {
  text-align: right;
}

.previous-list .to-currency, .dashboard-list .to-currency  {
  text-align: left;
}

@media (max-width: 399px) {
  .previous-list .from-currency>span, .previous-list .to-currency>span, .dashboard-list .from-currency>span, .dashboard-list .to-currency>span {
    display: none;
  }
  .previous-list .from-currency, .previous-list .to-currency, .dashboard-list .from-currency, .dashboard-list .to-currency {
    width: 2em;
  }
}

.previous-list .dir-arrow, .dashboard-list .dir-arrow {
  width: 3em;
}

.previous-list .dir-arrow>i, .dashboard-list .dir-arrow>i {
  font-size: 16px;
}

.previous-list .previous-time, .dashboard-list .previous-time {
  text-align: left;
}

.previous-list .amount, .dashboard-list .amount {
  text-align: right;
  font-weight: bold;
}

.dashboard-list th {
  padding-right: 2em;
}

.dashboard-list tr {
  text-align: left;
}

legend {
  line-height: 1.1;
}

.form-control:focus {
  box-shadow: none;
}

.form-control.is-invalid:focus {
  box-shadow: none;
}

/*.form-floating>.form-control {
  height: initial;
  padding: .375rem .75rem;
}

.form-floating>.form-control:focus, .form-floating>.form-control:not(:placeholder-shown) {
  padding: .375rem .75rem;
}

.form-floating>label {
  padding: .375rem .75rem;
}

.form-floating>.form-control:focus~label, .form-floating>.form-control:not(:placeholder-shown)~label, .form-floating>.form-select~label {
  padding: 0 0.75rem;
  opacity: 1;
  height: auto;
  background-color: white;
  background-clip: content-box;
  transform: scale(.85) translateY(-0.8rem) translateX(0.15rem);
}
*/
.subtitle {
  font-size: 0.6em;
}

#currency-selection.is-invalid svg, #currency-selection.is-valid svg {
  margin-right: 30px!important;
}

.currency-toggle button:not(.active-toggle):hover:not([disabled]) {
  text-decoration: underline;
}

button:not(.loading) .fa-spin {
  display: none;
}

.fa-spin {
  animation: fa-spin 2s infinite linear;
}
@-webkit-keyframes fa-spin { 
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(359deg);
    transform: rotate(359deg);
  }
}
@keyframes fa-spin {
  0% {
    -webkit-transform: rotate(0deg);
    transform:rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(359deg);
    transform: rotate(359deg);
  }
}

.active-toggle {
  font-weight: bold;
}

.funcbuttons {
  bottom: 2px;
  position: absolute;
  right: 8px;
}

.funcbuttons>div {
  background-color: transparent;
  border: 0;
  color: #555;
  cursor: pointer;
  font-size: 26px;
}

.funcbuttons>div:hover {
  color: #000;
}

.scan-qr-outer {
  background-color: #000;
  bottom: 0;
  left: 0;
  position: fixed;
  right: 0;
  text-align: center;
  top: 0;
  opacity: 1;
  z-index: 1000;
  -webkit-transition: opacity .3s ease;
  -o-transition: opacity .3s ease;
  transition: opacity .3s ease;
}

.scan-qr-outer:before {
  content: "";
  display: inline-block;
  height: 100%;
  vertical-align: middle;
}

.scan-qr-outer>canvas {
  display: inline-block;
  height: auto;
  margin: 0 auto;
  vertical-align: middle;
  width: 100%;
}

.scan-qr-outer.maxvertical>canvas {
  height: 100%;
  width: auto;
}

.scan-qr-loading {
  color: #fff;
  position: absolute;
  text-align: center;
  top: 50%;
  width: 100%;
}

.popup-close {
  color: #c5c5c5;
  cursor: pointer;
  font-size: 30px;
  padding: 10px;
  position: absolute;
  right: 20px;
  top: 20px;
}

.popup-close:hover {
  color: #cc2d2d;
}

#order-timer {
  position: absolute;
  right: 0;
  padding: 8px;
  border-radius: 5px;
  font-weight: bold;
}

#timeline-steps {
  display: flex;
  list-style-type: none;
}

#timeline-steps li:before,
#timeline-steps li.active ~ li:before {
  border-bottom-color: #000;
  opacity: 0.25;
}

#timeline-steps li:not(:last-child):before {
  border-bottom-color: #000;
  border-bottom-style: solid;
  border-bottom-width: 3px;
  content: "";
  display: block;
  height: 0;
  left: 62%;
  left: calc(50% + 2em);
  opacity: .25;
  position: absolute;
  top: 0.8em;
  width: 76%;
  width: calc(100% - 4em);
}

#order-timeline ol.expired li > div,
#timeline-steps li.active ~ li:not(.active) > div {
  color: #000;
  opacity: 0.4;
}

#timeline-steps li.active > div {
  opacity: 1;
  -webkit-animation: flashing .7s ease-out infinite alternate;
  -o-animation: flashing .7s ease-out infinite alternate;
  animation: flashing .7s ease-out infinite alternate;
  will-change: opacity,color;
}

#timeline-steps li > div {
  color: #000;
  opacity: 1;
}

#timeline-steps li {
  position: relative;
  width: 25%;
  text-align: center;
  font-size: 0.7em;
  font-weight: bold;
}

@media (min-width: 530px) {
  #timeline-steps li {
    font-size: 0.8em;
  }
}

.timeline-step {
  display: block;
  width: 100%;
  height: 30px;
  font-size: 24px;
}

.order-details, .memo, .expired {
  font-size: 0.9em;
}

.order-qrcode img {
  width: 100%;
}

.accordion-item {
  border: none;
}

.accordion-button:not(.collapsed) {
  box-shadow: none;
}

.accordion ol {
  padding-left: 1em;
  margin-bottom: 0;
}

.accordion-button {
  font-weight: bold;
  border-radius: 10px;
}

.accordion-item:first-of-type .accordion-button {
  border-radius: 10px;
}

.accordion-button:focus {
  z-index: 3;
  border-color: #86b7fe;
  outline: 0;
  box-shadow: none;
}

.carousel-control-prev, .carousel-control-next {
  opacity: 0;
}

#inscriptionSelector input[type="radio"] {
  opacity: 0;
  position: fixed;
  width: 0;
}

#inscriptionSelector input[type="radio"]:checked + label {
  background-color: #86b7fe;
}

#inscriptionSelector label {
  width: 100%;
  border-radius: inherit;
}

#inscriptionSelector label:hover {
  background-color: lightblue;
}

.invalid {
  background: #ff000038;
}

.disclaimer {
  clear: both;
  font-size: 0.7em;
  text-align: center;
}

.wallet-div {
  position: absolute;
  right: 0px;
}

.wallet-button {
  display: inline-flex;
  user-select: none;
  position: relative;
  align-items: center;
  vertical-align: middle;
  width: auto;
  outline: transparent solid 2px;
  transition-property: background;
  transition-duration: 250ms;
  line-height: 1.2;
  border-width: 0;
  border-radius: 0.4em;
  background: rgb(74, 144, 226);
  height: 2.5em;
  padding-left: 1em;
  padding-right: 1em;
}

.wallet-button:hover {
  background: rgb(74, 144, 255);
}

.wallet-button > i {
  font-size: larger;
}

.wallet-text {
  margin: 0;
  margin-left: 0.5em;
}

#web3-disconnect {
  background: rgba(74, 144, 226, 0.2);
}

/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden,
[hidden] {
  display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 *
 * 1. For long content, line feeds are not interpreted as spaces and small width
 *    causes content to wrap 1 word per line:
 *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
 */

.sr-only {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
  /* 1 */
}

/*
 * Extends the .sr-only class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.sr-only.focusable:active,
.sr-only.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  white-space: inherit;
  width: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
  visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix::before,
.clearfix::after {
  content: " ";
  display: table;
}

.clearfix::after {
  clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
  /* Style adjustments for viewports that meet the condition */
}

@media print,
  (-webkit-min-device-pixel-ratio: 1.25),
  (min-resolution: 1.25dppx),
  (min-resolution: 120dpi) {
  /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
  *,
  *::before,
  *::after {
    background: #fff !important;
    color: #000 !important;
    /* Black prints faster */
    box-shadow: none !important;
    text-shadow: none !important;
  }

  a,
  a:visited {
    text-decoration: underline;
  }

  a[href]::after {
    content: " (" attr(href) ")";
  }

  abbr[title]::after {
    content: " (" attr(title) ")";
  }

  /*
   * Don't show links that are fragment identifiers,
   * or use the `javascript:` pseudo protocol
   */
  a[href^="#"]::after,
  a[href^="javascript:"]::after {
    content: "";
  }

  pre {
    white-space: pre-wrap !important;
  }

  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }

  /*
   * Printing Tables:
   * https://web.archive.org/web/20180815150934/http://css-discuss.incutio.com/wiki/Printing_Tables
   */
  thead {
    display: table-header-group;
  }

  tr,
  img {
    page-break-inside: avoid;
  }

  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }

  h2,
  h3 {
    page-break-after: avoid;
  }
}
