*, *::before, *::after {
  box-sizing: border-box;
  font-family: sans-serif;
  /* font-family: Oswald, sans-serif; */
  font-weight: normal;
  /* user-select:none;
  -webkit-user-select:none;
  -moz-user-select:none;
  -ms-user-select:none; */
}

:root {
  --background-colour: #272727;
  /* --text-colour: #b9b9b9; */
  --text-colour: #a3a3a3;
  --link-colour: #b9b9b9;
  /* --button-colour: #3d3d3d; */
  --button-colour: #313131;
  --button-border-colour: #171717;
  --button-text-colour: #f2f2f2;
  --main-background-colour: #0b0d28;
  --overlay-background-colour: rgb(10, 4, 40);
  --header-height: 60px;
  --input-border: 3px solid blue;
  --input-background-colour: rgb(0,0,0);
  --input-colour: #bababa;
  --error-colour: #c44e4e;
  --token-border-colour: rgb(144, 4, 4);
  --explore-header-height: 80px;
  /* --explore-selected-colour: #1b3424 */
  --explore-selected-colour: #881d1d
}

html {
  overflow: hidden;
  height: 100%;
  color: var(--text-colour);
}

body {
  /* background-color: #1f1f1f; */
  background-color: #000000;
  position: relative;
  width: 100%;
  top: 0px;
  min-height: 100vh;
  padding: 0;
  margin: 0;
  /* background-image: url("/static/artwork/gifed.background.3.gif"); */
  background-size: 250%;
  background-position: center;
  background-repeat: no-repeat;
}

button:hover, .linkbutton:hover, .linktext:hover{
  filter: opacity(0.8);
}

.linkbutton {
  background-color: var(--button-colour);
  color: var(--button-text-colour);
  border: solid 0.5px var(--button-border-colour);
  padding: 6px 16px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  cursor: pointer;
  min-width: 92px;
}

.linkbutton:focus-visible {
  outline: 1px solid red;
}

.supplybutton {
  min-width: 32%;
  transition: color 1s ease-in-out;
  /* transition: color 2s ease-in-out; */
}

.supplyupdate {
  color: var(--error-colour);
  /* transition: color 1s ease-out; */
  /* transition: color 2s ease-in-out; */
}

.navbut {
  width: 45px;
  height: 45px;
  border: none;
  background-color: rgba(0,0,0,0);
  background-image: url('/static/artwork/nav.buttons.svg');
  background-size: cover;
}

.navforwardclose {
  background-position-x: 0%;
}

.navbackbut {
  background-position-x: 25%;
}

.navforwardbut {
  background-position-x: 50%;
}

.navminusbut {
  background-position-x: 75%;
}

.navplusbut {
  background-position-x: 100%;
}


.saltbox {
  width: 100%;
  color: var(--button-text-colour);
}

.saltinputtitle {
  margin-bottom: 10px;
}

.saltinputtitle::after {
  content: url("/static/artwork/info.svg");
  display: inline-block;
  position: relative;
  top: 1px;
  height: .9em;
  width: .9em;
  margin-left: 6px;
}

.saltinputbox {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  background-color: var(--button-colour);
  padding: 6px 2px;
  font-size: 16px;
  cursor: pointer;
  width: 100%;
}

.saltinput {
  background-color: var(--input-background-colour);
  color: var(--button-text-colour);
  border: none;
  padding: 6px 0px 6px 3px;
  text-align: left;
  font-size: 16px;
  cursor: pointer;
  width: 11em;
}

.saltloadbut {
  background-color: var(--button-colour);
  border: none;
  /* float: right; */
  font-size: 16px;
  cursor: pointer;
  width: 32px;
  height: 32px;
}

.saltinput:focus-visible {
  outline: 1px solid red;
}

header {
  display: flex;
  position: -webkit-sticky; /* Safari */
  position: sticky;
  background-color: rgba(20,20,20,.85);
  top: 0px;
  height: var(--header-height);
  padding: 6px 12px;
  font-size: 1em;
  column-gap: 2%;
  justify-content: space-between;
  align-items: center;
  z-index: 4;
}

.headerbuttons {
  display: flex;
}

.headerbutton {
  /* background-color: #256c05; */
}

.headertitle {
  text-decoration: none;
  font-family: oswald;
  font-size: 2em;
}

.backgroundfilter {
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.3);
}

.app {
  color: var(--text-colour);
  display: flex;
  flex-direction: column;
  /* overflow-y: scroll; */
  justify-content: space-evenly;
  align-items: center;
  row-gap: 24px;
  min-height: calc(100vh - (2 * var(--header-height)));
  padding: 18px 0 50px;
  column-gap: 20px;
  scroll-behavior: auto;
  /* background-image: url('/static/artwork/gifed.19.47.9aaa13.f3f53520d2a2.gif');
  background-size: 150%;
  background-position: center; */
}

.messageoverlay {
  display: flex;
  position: fixed;
  top: var(--header-height);
  /* top: 0px; */
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  /* border-width: 2px; */
  /* border-style: solid; */
  /* animation: redAnimation 1s infinite alternate; */
  /* border-radius: 4px; */
  width: 100%;
  /* min-height: calc(100vh - (var(--explore-header-height))); */
  /* height: 100%; */
  height: calc(100% - (var(--header-height)));
  text-align: center;
  font-size: 1.2em;
  z-index: 3;
  background-color: rgba(10,10,10,.95);
  z-index: 10;
}

.cover {
  width: 100%;
}

.linklogosbox {
  display: flex;
  column-gap: 14px;
}

.logolinks {
  display: inline-block;
  height: 100%;
}

.linklogo {
  /* margin-left: 8px; */
  height: 1.5em;
  opacity: 0.45;
}

.loadbox {
  display: flex;
  position: relative;
  width:40%;
  min-height: 50vh;
  flex-direction: column;
  background-color: rgba(10,10,10,.75);
  justify-content: space-around;
  align-items: center;
  padding: 2% 2%;
  text-align: center;
  border-radius: 4px;
  /* background-color: rgba(137, 140, 40, 0.32); */
  border-radius: 8px;
  border: 4px solid aquamarine;
  font-size: 1.2em;
  z-index: 1;
  min-width: 390px;
}

.infobox {
  font-size: 1.2em;
  display: flex;
  overflow-y: scroll;
  flex-direction: column;
  /* justify-content: center; */
  /* align-items: center; */
  width: 88%;
  /* min-height: 50vh; */
  /* border: solid var(--highlight-text) 2px; */
  max-height: calc(100vh - (2.6 * var(--header-height)));
  padding: 20px;
  margin: 0 0 10px 0;
  scroll-behavior: auto;
  z-index: 1;
  scrollbar-width: auto;
  scrollbar-color: #8f0e0eb0 #5b5b5b78;
}

.dark {
  background-color: rgba(0,0,0,0.6);
}

.infotitle {
  margin: 0;
}

.infobox > a {
  text-decoration: none;
  color: var(--link-colour);
  font-size: 1.2em;
  /*! margin-top: 25px; */
}

.infobox > p {
  font-size: 1.1em;
  margin: 8px 0 8px 0;
}

.infobox > h3 {
  font-size: 1.4em;
}

.fullwidth {
  width: 100%;
}

.smaller {
  font-size: .9em;
}
.helpcontainer {
  display: flex;
  justify-content: space-around;
}

.helpcontent {
  padding: 2% 2%;
  text-align: center;
  font-size: 1.2em;
  overflow-y: auto;
  overscroll-behavior-y: none;
}

.loadtitle {
  font-size: 1.2em;
}

.loadform {
  width: 100%;
  /*! justify-content: center; */
}

.inputbox {
  display: flex;
  width: 100%;
  /*! text-align: center; */
  justify-content: center;
  column-gap: 15px;
  align-items: center;
  /*! font-size: 1.5em; */
}

.inputBox label {
  font-size: 12px;
}

.inputnumber {
  width: 7.5ch;
  /*! margin-left: 8%; */
  padding: 2px 10px;
  display: inline-block;
  border: var(--input-border);
  border-radius: 4px;
  background-color: var(--input-background-colour);
  color: var(--input-colour);
  /*! font-size: 16px; */
  /* user-select: text; */
  font-size: inherit;
}

.messageinputbox {
  /* width: 7.5ch; */
  width: 80%;
  /* height: 2ch; */
  /*! margin-left: 8%; */
  /* padding: 2px 10px; */
  /* display: inline-block; */
  /* border: var(--input-border); */
  border-radius: 4px;
  /* background-color: var(--input-background-colour);
  color: var(--input-colour); */
  /*! font-size: 16px; */
  /* user-select: text; */
  font-size: inherit;
}

.messageinput {
  resize: none;
  width: 100%;
  border-radius: 4px;
  background-color: var(--input-background-colour);
  color: var(--input-colour);
  /*! font-size: 16px; */
  /* user-select: text; */
  font-size: inherit;
  padding: 10px;
}

.charcounter {
  display: flex;
  justify-content: space-between;
  margin-top: 5px;
  width: 90%;
  margin: 5px auto;
}
.infobut {
  width: 22px;
  position: relative;
  top: 4px;
  margin-left: 8px;
}

.infobut:hover {
  opacity: 0.7;
}

/* .inputcharity {
  width: 10ch;
} */

.inputnumber:focus-visible {
  /* border-color: rgb(190, 30, 30); */
  outline: 2px solid blue;
}

.imagesBox {
  display: flex;
  column-gap: 21px;
  justify-content: center;
  flex-wrap: wrap;
  row-gap: 21px;
}

.tokenbox {
  display: flex;
  flex-direction: column;
  background-color: rgba(40, 40, 40, 0.71);
  padding: 12px;
  border-radius: 8px;
  border: 4px solid var(--token-border-colour);
}

.tokenbox p {
  text-align: center;
}

footer {
  display: flex;
  position: sticky;
  background-color: rgba(20,20,20,.85);
  bottom: 0px;
  height: var(--header-height);
  padding: 6px 0px;
  font-size: 1em;
  align-items: center;
  z-index: 2;
  justify-content: space-between;
}

.footerbuttons {
  margin-left: 12px;
}

.footerbutton {
  margin-right:12px;
}

.homelogo {
  height: 1.8em;
  margin-right: 10px;
  image-rendering: pixelated;
}

#connect {
  /* position: absolute; */
  /*! text-align: center; */
  /*! top: calc(1 * var(--header-height)); */
  margin: 0 5px;
  /* right: 5px; */
}

.wrongnetwork {
  animation: redBackground 0.16s infinite alternate;
  color: var(--text-colour);
}

.notconnected {
  animation: greyBackground 0.16s infinite alternate;
}

@keyframes redBackground {
  0%, 50% {background-color: #871b1b;}
  51%, 100% {background-color: #931d1d;}
}

@keyframes greyBackground {
    0%, 50% {background-color: #a1a1a1;}
    51%, 100% {background-color: #b1b1b1;}
  }

.overlayBox {
  width: 95%;
  height: calc(50% - (2 * var(--header-height)));
  position: fixed;
  top: calc(var(--header-height) + 8px);
  z-index: 2;
  transform: translate(50%, -50%);
  right: 50%;
  max-width: 600px;
  min-height: 460px;
  top: 48%;
}

.smallOverlayBox {
  height: calc(50% - (2 * var(--header-height)));
  min-height: 322px;
}

.overlay {
  position: absolute;
  /* top: var(--header-height); */
  display: flex;
  width: 92%;
  height: calc(100vh - (4 * var(--header-height)));
  color: var(--colour);
  background-color: var(--overlay-background-colour);
  border: 2px solid;
  border-radius: 4px;
  align-items: center;
  flex-direction: column;
  justify-content: space-around;
  padding: 5px;
  row-gap: 8px;
  z-index: 3;
}

.overlaycontent {
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: space-around;
  width: 100%;
  height: 100%;
}

.overlayImage {
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 120px;
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
}

.overlaytitle{
  margin: 0;
  text-align: center;
  font-size: 1.5em;
  display: inline-block;
}

.overlaymessage {
  margin: 0%;
  text-align: center;
  font-size: 1.2em;
  padding: 20px;
}

.overlayimagebox {
  height: 90%;
  aspect-ratio: 1;
}

.overlayimage {
  height: 90%;
}

.overlaybuttons {
  display: flex;
  flex-direction: column;
  width: 70%;
  row-gap: 12px;
  justify-content: space-between;
  align-items: center;
  padding: 8px;
}

.overlaybutton {
  display: block;
  outline-style: none;
  width: 100%;
  color: white;
  padding: 10px 10px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: medium;
}

.nodisplay {
  display: none;
}

.linkArrow {
  transform: rotate(225deg);
}

.etherscanlogo {
  height: 1.5em;
}

.imageboxinfo {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.imageboxlinks {
  display: flex;
  justify-content: space-around;
  align-items: center;
  column-gap: 16px;
}

.tokenbutsbox {
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.tokenbut {
  width: 100%;
}

.tokenbuthalf {
  width: 49%;
}

.waitbox {
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  width: 100%;
}

.withcartoon {
  height: 100%;
}

.waitmessagebox {
  display: flex;
  flex-direction: column;
  row-gap: 5px;
  align-items: center;
}

.cartoon {
  padding: 19px;
  background-color: #000000ad;
  width: 84%;
  opacity: 0.8;
  margin-bottom: 12px;
  aspect-ratio: 2;
}

.cartoondiv {
  height: 80%;
  width: 90%;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
}


.txwaitmessage {
  margin-bottom: 8px;
}

@media (orientation: portrait) and (max-width: 890px){

    main {
      flex-direction: column;
      row-gap: 14px;
      padding: 5px 0 42px 0;
    }

    footer {
      /* position: relative; */
    }

    h2 {
      font-size: 1.5em;
      margin: 5px 0;
    }

    .infobox, .loadbox {
      padding: 2% 2%;
      width: 95%;
      min-width: 95%;
      /*! max-height: 400px; */
      overflow-y: auto;
    }

    .overlayBox {
      top: 50%;
    }

    .overlay {
      width: 100%;
      position: fixed;
      top: var(--header-height);
      height: calc(100% - (2 * var(--header-height)));
      /* overflow-y: scroll; */
      overflow-y: auto;
      justify-content: flex-start;
    }

    .curatebankbox {
      width: 90%;
    }


    .imagesBox {
      flex-direction: column;
      row-gap: 16px;
    }

    .cartoon {
      padding: 0;
      width: 98%;
    }

    .cartoondiv {
      width: 100%;
    }

    .linkbutton {
      padding: 4px 7px;
      min-width: 62px;
      font-size: .8em;
    }

    .supplybutton {
      min-width: 32%;
      transition: color 1s ease-in-out;
      /* transition: color 2s ease-in-out; */
    }

    .saltloadbut {
      min-width: auto;
      width: 32px;
      height: 32px;
    }

    .mintbut {
      padding: 10px;
      /* margin: 5px 0 5px 0; */
      font-size: 1em;
      min-width: 160px;
    }

    main {
      flex-direction: column;
      row-gap: 14px;
      padding: 5px 0 42px 0;
    }

    .page {
        flex-direction: column;
        row-gap: 14px;
        padding: 5px 0 42px 0;
    }

    h2 {
      font-size: 1.5em;
      margin: 5px 0;
    }

    .infobox, .loadbox {
      padding: 2% 2%;
      width: 95%;
      min-width: 95%;
      /*! max-height: 400px; */
      overflow-y: auto;
    }

    .explorebox {
      width: 96vw;
    }

    .exploretitle {
      font-size: 0.9em;
      margin-left: 5px;
      /* width: auto */
    }

    .exploretitle::after {
      top: 1px;
      /* height: .8em; */
      /* width: .8em; */
    }

    .fullexplorer {
      width: 100%;
      /* height: 100vh; */
      height: auto;
      /* position: relative; */
      top: var(--header-height);
    }

    .messageoverlay {
      padding: 5px;
    }

    .txoverlay {
      /* top: var(--header-height); */
    }

    .exploreheader{
      width: 100%;
      /* padding: 2px; */
    }

    .fullheader {
      margin-bottom: 0px;
    }

    .closebut {
      display: none;
    }

    .explorer {
      flex-direction: column;
      align-items: center;
      height: auto;
      min-height: calc(100vh - var(--header-height) - var(--explore-header-height) - 10px);
    }

    .nopicks {
      margin-top: 0px;
    }

    .exploreimagebox {
      /* height: 90vw; */
      width: 100%;
      height: auto;
      /* margin-top: 12px; */
    }

    .exploreimage {
      width: 100%;
      height: 100%;
    }

    .exploreinteractbox {
      position: relative;
      /* flex-direction: column; */
      max-width: 100%;
      padding: 0;
      width: 100%;
      min-width: initial;
    }

    .explorenavbuts {
      position: absolute;
      top: 12%;
      width: 100%;
      padding: 10px;
    }

    .exploreitembox {
      /* position: absolute; */
      /* height: 100px; */
      width: 68%;
      padding: 10px 0 0 0;
    }

    .gridselectbox {
      /* display: none; */
    }

    .filterselectbut {

    }

    .exploreaddress {
      font-size: 1.1em;
    }

    .mintcontain {
      width: 99vw;
      /* top: 220px; */
      /* bottom: 350px; */
    }

    .txbox {
      width: 97%;
      margin: 5px;
      height: auto;
      position: absolute;
      padding: 10px;
    }

    .griditemcheckboxes {
      margin: 0;
    }

    .overlayimagebox {
      width: 100%;
      height: auto;
    }

    .overlayimage {
      width: 98%;
      height: auto;
    }

    /* .input[type="checkbox"] {
      scale: 1.0;
    } */
}

.sharebut {
  width: 98%;
  height: 40px;
  padding: 10px 5px;
  transition: background-color 0.2s ease-in-out;
}

.copyclicked {
  background-color: var(--error-colour);
  /* transition: background-color .5s ease-out; */
}

.blueborder {
  /* border-width: 4px; */
  animation: blueAnimation 0.2s infinite alternate;
}

.redborder {
  border: solid red 4px;
  animation: redAnimation 0.2s infinite alternate;
}

@keyframes blueAnimation {
0%, 50% { border-color: #236ea4; }
51%, 100% { border-color: #2b7eba; }
}

@keyframes redAnimation {
    0%, 50% { border-color: #931d1d; }
    51%, 100% { border-color: #871b1b; }
  }

@keyframes redColour {
    0%, 50% {color: #871b1b;}
    51%, 100% {color: #931d1d;}
  }

@keyframes blueColour {
    0%, 50% {color: #236ea4;}
    51%, 100% {color: #2b7eba;}
  }

@keyframes redBackground {
    0%, 50% {background-color: #ff42d5;}
    51%, 100% {background-color: #ff0c0c;}
  }

@keyframes redFill {
    0%, 50% {fill: #ff42d5;stroke:#ff42d5;}
    51%, 100% {fill: #ff0c0c;stroke:#ff0c0c;}
  }

.redanimatedfill {
  animation: redFill 0.16s infinite alternate;
}

.redanimated {
  animation: redColour 0.16s infinite alternate;
}

.blueanimated {
  animation: blueColour 0.16s infinite alternate;
}


.xlogo {
  position: relative;
  top: 1px;
  margin-left: 2px;
  width: 16px;
}

/**
 * ==============================================
 * Dot Bricks
 * ==============================================
 */
.dot-bricks {
  position: relative;
  top: 8px;
  left: -9999px;
  width: 10px;
  height: 10px;
  border-radius: 5px;
  background-color: #771f16;
  color: #771f16;
  box-shadow: 9991px -16px 0 0 #771f16, 9991px 0 0 0 #771f16, 10007px 0 0 0 #771f16;
  animation: dot-bricks 2s infinite ease;
}

@keyframes dot-bricks {
  0% {
    box-shadow: 9991px -16px 0 0 #771f16, 9991px 0 0 0 #771f16, 10007px 0 0 0 #771f16;
  }
  8.333% {
    box-shadow: 10007px -16px 0 0 #771f16, 9991px 0 0 0 #771f16, 10007px 0 0 0 #771f16;
  }
  16.667% {
    box-shadow: 10007px -16px 0 0 #771f16, 9991px -16px 0 0 #771f16, 10007px 0 0 0 #771f16;
  }
  25% {
    box-shadow: 10007px -16px 0 0 #771f16, 9991px -16px 0 0 #771f16, 9991px 0 0 0 #771f16;
  }
  33.333% {
    box-shadow: 10007px 0 0 0 #771f16, 9991px -16px 0 0 #771f16, 9991px 0 0 0 #771f16;
  }
  41.667% {
    box-shadow: 10007px 0 0 0 #771f16, 10007px -16px 0 0 #771f16, 9991px 0 0 0 #771f16;
  }
  50% {
    box-shadow: 10007px 0 0 0 #771f16, 10007px -16px 0 0 #771f16, 9991px -16px 0 0 #771f16;
  }
  58.333% {
    box-shadow: 9991px 0 0 0 #771f16, 10007px -16px 0 0 #771f16, 9991px -16px 0 0 #771f16;
  }
  66.666% {
    box-shadow: 9991px 0 0 0 #771f16, 10007px 0 0 0 #771f16, 9991px -16px 0 0 #771f16;
  }
  75% {
    box-shadow: 9991px 0 0 0 #771f16, 10007px 0 0 0 #771f16, 10007px -16px 0 0 #771f16;
  }
  83.333% {
    box-shadow: 9991px -16px 0 0 #771f16, 10007px 0 0 0 #771f16, 10007px -16px 0 0 #771f16;
  }
  91.667% {
    box-shadow: 9991px -16px 0 0 #771f16, 9991px 0 0 0 #771f16, 10007px -16px 0 0 #771f16;
  }
  100% {
    box-shadow: 9991px -16px 0 0 #771f16, 9991px 0 0 0 #771f16, 10007px 0 0 0 #771f16;
  }
}

/**
 * ==============================================
 * Dot Flashing
 * ==============================================
 */
.dot-flashing {
  position: relative;
  width: 10px;
  height: 10px;
  border-radius: 5px;
  background-color: #771f16;
  color: #771f16;
  animation: dot-flashing 1s infinite linear alternate;
  animation-delay: 0.5s;
}
.dot-flashing::before, .dot-flashing::after {
  content: "";
  display: inline-block;
  position: absolute;
  top: 0;
}

.dot-flashing::before {
  left: -15px;
  width: 10px;
  height: 10px;
  border-radius: 5px;
  background-color: #771f16;
  color: #771f16;
  animation: dot-flashing 1s infinite alternate;
  animation-delay: 0s;
}
.dot-flashing::after {
  left: 15px;
  width: 10px;
  height: 10px;
  border-radius: 5px;
  background-color: #771f16;
  color: #771f16;
  animation: dot-flashing 1s infinite alternate;
  animation-delay: 1s;
}

@keyframes dot-flashing {
  0% {
    background-color: #771f16;
  }
  50%, 100% {
    background-color: rgba(119, 31, 22, 0.2);
  }
}
