
body {
  display: flex;
  flex-flow: column;
  min-height: 100vh;
}

.body-background {
  background-image: url('/img/background-multichain.svg');
  opacity: .1;
}

#input-wallet-container {
  text-align: center;
  margin-top: 0;
  width: 100%;
}

#input-wallet-container.margin-top {
  margin-top: 20vh;
}

.connect-demo-container {
  max-height: 140px;
  display: flex;
  flex-flow: column;
  margin: 1em auto;
  text-align: center;
}

#connect-wallet {
  border: 1px solid #6495ed;
  border-radius: 8px;
  padding: 0 8px;
  margin: .75em;
  font-size: 1em;
  height: 36px;
  cursor: pointer;
  transition: all 150ms ease-in-out;
  background-color: #6495ed; /* cornflowerblue */
  color: white;
  font-weight: lighter;
  display: inline-flex;
  align-items: center;
}

#connect-wallet:hover {
  box-shadow: 0 0 12px #888888ee;
}

#connect-wallet img {
  height: 100%;
  margin-right: 6px;
}

#demo-wallet {
  border: 1px solid #dddddd;
  border-radius: 8px;
  margin: .5em;
  font-size: .9em;
  padding: .25em .5em;
  font-weight: lighter;
  transition: all 150ms ease-in-out;
  color: #000000aa;
}

#demo-wallet:hover {
  border: 1px solid #888888;
}

#input-wallet {
  border: 1px solid #dddddd;
  border-radius: 12px;
  margin: .5em 1em;
  padding: 1em;
  width: 50%;
  transition: all 400ms ease-in-out;
  text-align: center;
  font-size: smaller;
}

#input-wallet:hover,
#input-wallet:focus {
  border: 1px solid #888888;
  outline: none;
}

#input-wallet-container.margin-top #input-wallet {
  font-size: initial;
}

.wallet-information {
  display: flex;
  max-width: 800px;
  margin: 1em auto 0;
  align-items: center;
  max-height: 178px;
  border-radius: 12px;
  border: 1px solid #00000022;
  flex-wrap: wrap;
}

.wallet-information.none {
  max-height: 0;
  padding: 0;
  margin: 0 auto;
  border-color: #ffffff;
  z-index: -1;
}

.wallet-title {
  margin: .5em auto;
  font-weight: lighter;
}

.global .wallet-chart {
  flex: auto;
}

.wallet-chart-description {
  font-size: .75em;
  line-height: 0;
  font-weight: lighter;
}

.global .wallet-values {
  text-align: center;
  flex: auto;
  display: flex;
  flex-direction: column;
}

.global #wallet-value-tooltip {
  font-weight: lighter;
}

.global .global-select-networks {
  flex: auto;
}

#filter-by-network-container, #filter-by-address-container {
  text-align: center;
}
#filter-by-network-list, #filter-by-address-list {
  list-style: none;
  display: inline-flex;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
  justify-content: center;
}
.filter-by-network-item, .filter-by-address-item {
  display: flex;
  align-items: center;
  position: relative;
  width: 48px;
  height: 48px;
  margin: 3px;
  padding: 10px;
  border-radius: 24px;
  border: 1px solid #CCCCCCCC;
  cursor: pointer;
}
.filter-by-address-item {
  width: auto;
  height: 36px;
  padding: 14px;
}
.filter-by-network-item:hover, .filter-by-address-item:hover {
  border: 1px solid #888888;
}
.filter-by-network-img {
  width: 100%;
  height: auto;
  max-height: 100%;
}
.filter-by-network-status, .filter-by-address-status {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;

}
.filter-by-network-status.checked, .filter-by-address-status.checked {
  background-color: #EE82EE;
  filter: invert(1);
}
.filter-by-network-status.unchecked, .filter-by-address-status.unchecked {
  background-color: #00CCCC;
  filter: invert(1);
}

.wallet-distribution {
  width: 98%;
  height: auto;
  max-width: 920px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  margin: auto;
}
.pie-charts-container {
  width: 100%;
  height: 150px;
  max-width: 300px;
  margin-bottom: 8px;
  border-radius: 12px;
  border: 1px solid #CCCCCCCC;
}

#state {
  text-align: center;
  font-size: .75em;
  flex: .05;
  display: flex;
  align-items: center;
  margin: 12px auto;
}

.wallet-options {
  margin: 1em auto 0;
  display: inline-flex;
  align-items: center;
  font-weight: lighter;
}

.wallet-menu {
  margin-right: 12px;
  padding: 6px 9px 0;
  border-radius: 8px 8px 0 0;
  cursor: pointer;
}

.hide-small-balances-container,
.hide-no-image-container {
  display: inline-flex;
  flex: auto;
  justify-content: flex-end;
  align-items: center;
  font-size: .8em;
  cursor: pointer;
}

.hide-small-balances-container.none,
.hide-no-image-container.none {
  display: none;
}

.hide-small-balances-container .hide-small-balances-icon,
.hide-no-image-container .hide-no-image-icon {
  height: 12px;
  padding: 0;
  margin: 0 6px;
  cursor: pointer;
}

#wallet {
  margin: auto;
  flex: auto;
}

#wallet .loading-message {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 64px;
  border-radius: 0 12px 12px;
  font-weight: lighter;
}

#wallet ul {
  list-style: none;
  padding: 3px;
  margin: 0;
  border-radius: 0 12px 12px;
}

#wallet ul li {
  padding: .5em 1em .5em .5em;
  margin: .25em;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  height: 42px;
  transition: all 400ms ease-in-out;
}

#wallet ul li.expanded {
  height: 128px;
}

#wallet ul div.date {
  margin: 1em .5em .25em .5em;
  font-size: larger;
  letter-spacing: 1px;
  color: #5B5EA6;
  /*text-shadow: 0 0 8px blue;*/
}

#wallet ul li span {
  display: inline-block;
}

#wallet ul li span.network {
  width: 42px;
  min-width: 30px;
  display: flex;
}

#wallet ul li span.network img.network {
  height: 100%;
}

#wallet ul li span.nameSymbol,
#wallet ul li span.txNameSymbol,
#wallet ul li span.nonceTimestamp {
  display: flex;
  flex-flow: column;
}
#wallet ul li span.nameSymbol {
  flex: 1;
  overflow: hidden;
}
#wallet ul li span.txNameSymbol {
  flex: .5;
}
#wallet ul li span.nonceTimestamp {
  flex: .25;
}

#wallet ul li span.symbol.small{
  font-size: .8em;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}
#wallet ul li span.name {
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}
#wallet ul li span.name,
#wallet ul li span.timestamp {
  font-size: .75em;
}

#wallet ul li span.price {
  flex: .25;
  text-align: end;
  font-size: .8em;
  padding-top: .5em;
}

#wallet ul li span.valueBalance {
  flex: .25;
  text-align: end;
  display: flex;
  flex-flow: column;
}

#wallet ul li span.txBalance,
#wallet ul li span.txFunction {
  display: inline-flex;
  flex: .25;
  padding-right: 1em;
  justify-content: flex-end;
}
#wallet ul li span.txBalance {
  font-size: larger;
}
#wallet ul li span.balance {
  font-size: .75em;
}

#wallet ul li a.address {
  font-size: .85em;
  width: 100%;
}

#wallet ul li span.chart {
  width: 100%;
}

#wallet ul li a.address,
#wallet ul li span.chart {
  display: none;
}

#wallet ul li.expanded a.address,
#wallet ul li.expanded span.chart {
  display: inline-flex;
}

/* NFT */
#wallet.nft .loading-message {
  border-radius: 12px;
}

#wallet.nft ul {
  border-radius: 12px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
  grid-auto-rows: minmax(120px, auto);
  grid-column-gap: 12px;
  grid-row-gap: 12px;
  padding: 12px;
}

#wallet ul li.nft {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  display: inline-flex;
  flex-wrap: wrap;
}

#wallet ul li.nft.expanded {
  height: 100%;
  grid-column-start: span 2;
  grid-row-start: span 2;
}

#wallet ul li.nft span.network {
  width: auto;
  padding: 3px;
}

#wallet ul li.nft span.nameSymbol {
  padding: 0;
  width: 70%;
}

#wallet ul li.nft span.tokenID {
  padding-right: 6px;
  word-break: break-all;
  font-size: smaller;
  display: flex;
  flex: auto;
  justify-content: flex-end;
}

#wallet ul li.nft a.tokenURI {
  flex: auto;
  display: flex;
  width: 100%;
  justify-content: center;
  min-height: 45%;
  align-items: center;
}

#wallet ul li.nft a.tokenURI img.preview {
  height: auto;
  max-height: 250px;
  max-width: 100%;
  border-radius: 8px;
}

#wallet ul li.nft a.tokenURI img.preview::before {
  font-size: smaller;
  font-weight: lighter;
  height: 100%;
  display: flex;
  align-items: center;
  word-wrap: anywhere;
}

#wallet ul li.nft.expanded a.tokenURI img.preview {
  max-height: 400px;
}

/* Transactions */
#wallet ul li.transaction.expanded {
  height: 92px;
}

/* helper */
.none {
  max-height: 0;
  padding: 0;
  margin: 0 auto;
  z-index: -1;
  opacity: 0;
}
