body {
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: sans-serif;
  background-color: black;
}

p {
  padding-bottom: .5em;
}

body.absolute {
  height: 100vh; 
  overflow: hidden;
}

/*overwrite SweetAlert style*/
body.absolute.swal2-height-auto {
  height: 100vh !important;
}

@media (prefers-color-scheme: dark) {
  body {
    background-color: hsl(0, 0%, 25%); 
    color: white; 
  }
}

@media (prefers-color-scheme: light) {
  body {
    background-color: hsl(0, 0%, 85%); 
    color: black; 
  }
}

.btn-icon {
  text-decoration: none;
}

.btn-mute .icon-playing { display: inline; }
.btn-mute .icon-mute { display: none; }
.btn-mute.muted .icon-playing { display: none; }
.btn-mute.muted .icon-mute { display: inline; }

.header {
  display: flex;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  justify-content: space-between;
  align-items: center;
  padding: 5px;
  /* background-color: hsla(0, 0%, 100%, 0.5); */
  height: 50px;;
}

.footer {
  display: flex;
  position: absolute;
  margin-top: 60px;
  left: 0;
  right: 0;
  justify-content: space-between;
  align-items: center;
  padding: 5px;
  height: 50px;
  border-top: 1px solid gray;
}


.header-left,
.header-center,
.header-right {
  display: flex;
  gap: 20px;
}

.header a {
  text-decoration: none;
  color: gray;
  padding: 5px 10px;
  border-radius: 5px;
  transition: background-color 0.3s;
}

.header a:hover {
  background-color: #ddd;
}

.header-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.container-diamond {
  width: 60vmin;
  height: 60vmin;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-45deg);
  display: flex;
  flex-wrap: wrap-reverse;
}

#grid {
  display: grid;
  grid-template-columns: repeat(6, 5vmin);
  gap: 0px;
}

.hidden {
  display: none;
}

.border1 { border: 1px solid rgba(255, 255, 255, 0.5); }
p { margin: .3em 0; }
.monospace {font-family: monospace;}

.rotate-right {
  transform: rotate(45deg);
  position: relative;
  display: flex;
  align-items: center;
  flex-direction: column;
}

.rotate-90 {
  transform: rotate(90deg);
}

.top-left {
  position: absolute;
  top: 0;
  left: 0;
  padding: 3%;
  z-index: 1;
}

.top-right {
  position: absolute;
  top: 0;
  right: 0;
  padding: 3%;
}

.bottom-left {
  position: absolute;
  bottom: 0;
  left: 0;
  padding: 3%;
}

.bottom-left-create {
  position: absolute;
  bottom: 1%;
  left: 1%;
}


.bottom-right {
  position: absolute;
  bottom: 0;
  right: 0;
  padding: 3%;
}

.bottom-center {
  position: fixed;
  bottom: 1%;
  left: 50%;
  transform: translateX(-50%);
}

.pixel {
  width: 10vmin;
  height: 10vmin;
  cursor: pointer;
/*  transition: all 0.5s linear;*/
}

.pixel:hover {
  filter: invert(2%);
}

.clicked {
  background-color: hsla(10, 20%, 100%, 0);
  /* filter: invert(10%); */
}

.pixel-anim {
  width: 10vmin;
  height: 10vmin;
  cursor: default;
}

.cell {
  width: 5vmin;
  height: 5vmin;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  background-color: transparent;
}
.cell.small {
  width: 0.5vmin;
  height: 0.5vmin;
}

.cyan { background-color: cyan; }
.magenta { background-color: magenta; }
.yellow { background-color: yellow; }
.black { background-color: black; }
.white { background-color: white; }
.transparent { background-color: none; }

.cyan.monochrome, .magenta.monochrome, .yellow.monochrome, .black.monochrome, .white.monochrome {
  background-color: black !important;
}

.ctext {color:cyan;}
.mtext {color:magenta;}
.ytext {color: yellow;}
.ktext {color:black;}
.wtext {color:white;}

/* style for the pixel animation  */
.container-pixel-anim {
  display: flex;
  flex-wrap: wrap;
  width: 7vmin;
  height: 7vmin;
  margin: 0 auto;
  padding: 11%;
}

.pixel-square {
  width: 50%;
  height: 50%;
}

@keyframes colorize {
  0% { background-color: transparent ; }
  20% { background-color: magenta; }
  /* 33.33% { background-color: yellow; } */
  40% { background-color: white; }
  60% { background-color: black; }
  80% { background-color: cyan; }
  100% { background-color: yellow; }
}

.pixel-square:nth-child(1) { animation: colorize 4s infinite; }
.pixel-square:nth-child(2) { animation: colorize 4s infinite 1s; }
.pixel-square:nth-child(3) { animation: colorize 4s infinite 3s; }
.pixel-square:nth-child(4) { animation: colorize 4s infinite 2s; }
/* end pixel animation  */

.color-block {
  display: flex;
  align-items: center;
}

.color-bar {
  height: 15px;
  margin-left: 5px;
  transition: width 0.3s;
}

.label {
  color: gray;
  padding-right: 10px; 
  height: 1em;
}

.traits-container {
  display: flex;
  position: absolute; 
  bottom: 0;
  margin: 5%;
  width: 40%;
  font-family: monospace;
}


.traits-section-create {
  flex: 1;
  font-size: 1.1vw;
  font-family: monospace;
  width: 28vw;
  position: absolute;
  bottom: 1%;
  right: 1%;
  padding: 1%;
  border: 1px solid white;
  color: black;
}

.traits-section-mint {
  flex: 1;
  font-size: 1.1vw;
  font-family: monospace;
  color: black;
  /* width: 24vw; */
  padding: 1%;
  border: 1px solid white;
}

/* 
.traits-section-create p {
  padding-bottom:0%;
} */
/* 
#trait-token-id {padding-bottom: 2%;} */

.composite-color {
  height: 100%;
  flex: 1;
}

.opaque-bg-blur {
  background-color: rgba(255, 255, 255, 0.3); 
  backdrop-filter: blur(10px);
  
}

.create-description {
  background-color: rgba(255, 255, 255, 0.5); 
  backdrop-filter: blur(10px);
  padding: 3%;
  width: 24vw;
  font-size: 1.1vw;
  font-family: monospace;
  border: 1px solid white;
}

.mint-left {
  /* width: calc(50vw - 20px); */
  /* height: 100vh; */
  /* display: flex; */
  /* flex-direction: column; */
  /* align-items: center; */
  padding: 10px;
  /* border-right: 1px solid white; */
}

.mint-right {
  display: flex;
  flex-direction: column;
  padding: 10px;
  max-width: 50%;
  /* width: 34vw; */
  background-color: rgba(255, 255, 255, 0.5); 
  backdrop-filter: blur(10px);
  /* background-color: white; */
  z-index: 1;
  right: 0;
  /* margin-top: 50px; */
}

/* View Page Styles  */
#token-svg {
  /* width: 33%; */
  display: block;
  
  /* margin-top: 50px; */
}

.svg-mint {
  width: 33%;
  padding-left: 6%;
}

.svg-view {
  width: 85vmin;
  height: 85vmin;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
}

.w-100 {
  width: 100%;
}
.text-center {
  text-align: center;
}

.upgrade-container {
  display: flex;
  width: 100%;
  height: 100vh;
}

.create-token-container {
  background: white;
  --diamon-size: min(calc(50vw / 1.7), calc(65vh / 1.7));
}
.upgrade-container .origin-token-container,
.upgrade-container .create-token-container {
  flex: 1 1 50%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.upgrade-container .origin-token-container {
  border-right: 1px solid;
}

.upgrade-container #token-svg {
  width: 100%;
  max-width: 65vh;
  margin-left: auto;
  margin-right: auto;
}

.upgrade-container .container-diamond {
  width: calc(var(--diamon-size) + 1px);
  height: calc(var(--diamon-size) + 1px);
  transform: rotate(-45deg);
  display: flex;
  flex-wrap: wrap-reverse;
  position: relative;
  top: calc(var(--diamon-size) * 0.7 / 2);
  left: 0;
  margin-left: auto;
  margin-right: auto;
}

.upgrade-container .container-diamond .pixel,
.upgrade-container .container-diamond .cell {
  width: calc(var(--diamon-size) / 6);
  height: calc(var(--diamon-size) / 6);
}

.upgrade-container .token-info-wrapper {
  display: flex;
}
.upgrade-container .create-token-container .token-info-wrapper {
  margin-top: calc(var(--diamon-size) * 0.7);
}

.upgrade-container .token-info-wrapper > div {
  flex: 0 0 calc(50% - 20px);
  padding: 10px;
}

#status-message.error {
  color: red;
}

#page-gallery {
  height: 100vh;
  overflow-y: auto;
}

#token-cards {
  display: flex;
  grid-gap: 15px;
  justify-content: center;
  width: 100%;
  flex-wrap: wrap;
  padding-top: 120px;
  padding-bottom: 120px;
}

#token-cards .token-card {
  display: flex;
  flex-direction: column;
  width: 250px;
  border: 1px solid grey;
  border-radius: 5px;
  overflow: hidden;
  transition: all 0.3s;
}

#token-cards .token-card:hover {
  transform: scale(1.03);
}

#token-cards .token-card .token-card-traits {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  border-top: 1px solid gray;
}

.d-none {
  display: none !important;
}

#loading-screen-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255,255,255,0.8);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
#loading-status-msg {
  margin-top: 12px;
}

.cube {
  width: 40px;
  height: 40px;
  position: relative;
  transform-style: preserve-3d;
  animation: fold 2s infinite linear;
}

.cube div {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0.95;
  /* background: red; */
  /* border: 1px solid #000; */
}

.cube div.face1 {
  transform: rotateY(0deg) translateZ(20px);
  background: cyan;
}
.cube div.face2 {
  transform: rotateY(90deg) translateZ(20px);
  background: magenta;
}
.cube div.face3 {
  transform: rotateY(180deg) translateZ(20px);
  background: yellow;
}
.cube div.face4 {
  transform: rotateY(270deg) translateZ(20px);
  background: black;
}

@keyframes fold {
  0% { transform: rotateY(0deg); }
  25% { transform: rotateY(90deg); }
  50% { transform: rotateY(180deg); }
  75% { transform: rotateY(270deg); }
  100% { transform: rotateY(360deg); }
}

[data-tooltip] {
  /*text-decoration: underline;
  cursor: help;*/
  position: relative;
  display: inline-block;
}

[role="tooltip"] {
  opacity: 0;
  position: absolute;
  width: auto;
/*  max-width: 20%;*/
  height: auto;
  min-height: 25px;
  line-height: 25px;
  font-size: 1rem;
  background-color: rgba(0, 0, 0, 0.7);
  color: #ffffff;
  border-radius: 5px;
  margin-top: 10px;
  padding: 10px 15px;
  transform: translateX(-50%);
}

[role="tooltip"].active {
  opacity: 1;
  transition: opacity 0.1s;
}

[role="tooltip"]::before {
  content: "";
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 10px solid rgba(0, 0, 0, 0.7);
  position: absolute;
  margin-top: -20px;
  transform: translateX(-50%);
  left: 50%;
}

[data-tooltip-position="top"] [role="tooltip"]::before {
  border-top: 10px solid rgba(0, 0, 0, 0.7);
  border-bottom: 0px;
  margin-top: 35px;
}

.colored-toast.swal2-icon-success {
  background-color: #a5dc86 !important;
}

.colored-toast.swal2-icon-success .swal2-success span {
  background-color: white !important;
}

.colored-toast.swal2-icon-error {
  background-color: #f27474 !important;
}
.colored-toast.swal2-icon-error .swal2-x-mark span {
  background-color: white !important;
}

.colored-toast.swal2-icon-warning {
  background-color: #f8bb86 !important;
}

.colored-toast.swal2-icon-info {
  background-color: #3fc3ee !important;
}

.colored-toast.swal2-icon-question {
  background-color: #87adbd !important;
}

.colored-toast .swal2-title {
  color: white;
}

.colored-toast .swal2-close {
  color: white;
}

.colored-toast .swal2-html-container {
  color: white;
}