@import url('https://fonts.googleapis.com/css2?family=Aldrich&display=swap');

html{
  height: 100%;
}
body {
  padding: 0;
  margin: 0;
  background-color: #000000;
  color: #C0C0C0;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  font-size: 18px;
  font-family: 'Aldrich', sans-serif;
  overflow: auto;
  --primary: #4AF;
  min-height: 100%;
}
/* @mobile */
@media screen and (max-width: 720px) {
  body {
    font-size: 14px;
  }
}

button{
  font-family: 'Aldrich', sans-serif;
  text-transform: uppercase;
}

pre{
  font-family: 'Aldrich', sans-serif;
}

a {
  color: var(--primary);
  position: relative;
}

.badge{
  background-color: #f44336;
  color: white;
  text-decoration: none;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 100%;
  font-size: 0.75em;
  font-weight: bold;
  position: absolute;
  right: -9px;
  bottom: -9px;
}
.badge:empty{
  display: none;
}

table td {
  padding: .2em 0;
}

.container {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 12px;
  position: relative;
  overflow-x: auto;
}

.svg-icon {
  font-size: 2em;
  width: 1em;
  height: 1em;
}

.svg-icon>* {
  fill: currentColor;
}


.grid-2,.grid-2-m {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 10px;
  margin-top: 10px;
}
table .grid-2{
  margin: 0;
}

@media screen and (max-width: 720px) {
  .grid-2-m{
    grid-template-columns: 1fr;
  }    
}


/*==== GRID AUTOS  ====*/

.grid-3-auto{
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap:1em;
}
/* on mobile */
@media screen and (max-width: 720px) {
  .grid-3-auto{
    display: flex;
    flex-direction: column;
  }
}

.grid-2-auto{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap:1em;
}
/* on mobile */
@media screen and (max-width: 720px) {
  .grid-2-auto{
    display: flex;
    flex-direction: column;
  }
}

/*=== FLEX-AUTO ===*/

.flex-x-auto{
  display: flex;
  flex-direction: row;
  gap: 1;
}
/* on mobile */
@media screen and (max-width: 720px) {
  .flex-x-auto{
    display: block;
  }
}

/*==== WALL ====*/

.wall{
  position: relative;
  background: #0008;
  padding: 1em;
  border-radius: 1em;
  text-shadow: none;
  font-weight: bold;
  border: 1px solid;
  backdrop-filter: blur(5px);
}
table.wall{
  box-shadow: 0 0 0 1px white;
  border:none;
}
table.wall tr td:first-child,table.wall tr th:first-child{
  border-left:none;
}
table.wall tr td:last-child,table.wall tr th:last-child{
  border-right:none;
}
table.wall tr:first-child td,table.wall tr:first-child th{
  border-top:none;
}
table.wall tr:last-child td,table.wall tr:last-child th{
  border-bottom:none;
}

.light{
  width :1.2em;
  height:1.2em;
  border-radius: 100%;
}

/*==== BUTTONS ====*/

button ,.button {
  padding: .4em;
  padding-top: .6em;
  padding-bottom: .6em;
  font-size: .8em;
  margin-top: .5em;
  border: none;
  border-radius: .2em;
  box-shadow: 0 0 .5em #000;
  background-color: #FFF;
  color:#222;
  text-decoration: none;
  font-weight: bold;
  cursor: pointer;
  margin-top: .2em;
  margin-bottom: .2em;
  display: inline-block;
}

button:active ,.button:active {
  box-shadow: inset 0 0 1000px #000;
}

button.block,.button.block{
  width: 100%;
}

.btn-1{
  background: #333;
  border-radius: 8px;
  padding: 4px;
  border: 2px solid #4AF;
}
.btn-1:hover{
  background: #111;
}

.space-y {
  display: flex;
  flex-direction: column;
  gap: .5em;
}

button#buy-order {
  background-color: #00AA00;
  color: white;
}

button#sell-order {
  background-color: #AA0000;
  color: white;
}






/*==== ATheme.Comp.Table ====*/
table {
  color: inherit;
  min-width: 100%;
  table-layout: fixed;
  border-spacing: 0px;
  border-collapse: collapse;
  font-size: 1em;
}


table td,
table th {
  border:  1px solid #FFF2;
  padding: .25em;
}


message,.message{
  margin-top: 1em;
  margin-bottom: 1em;
  border:1px solid #FFF2;
  border-radius: 1em;
  display: block;
  width: 100%;
  padding: 1em;
}

message:empty,.message:empty{
  display: none;
}


hr{
  border: none;
  border-bottom: 1px solid #FFF;
  box-shadow: 0 0 5px;
}

[num]{
  font-size:.92em;
  /* font-family: monospace; */
  text-align: right;
  /* padding-right: 20px; */
}
tr [num],tr[num]{
  white-space: pre;
}
e{
  min-width: 0.75em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
order{
  margin:4px 0;
  font-weight: bold;
  display: block;
}
/* FOR BUG */
#buy-list > e,#sell-list > e{
  display: none;
}
@media screen and (max-width: 720px) {
  order{
    display: flex;
    flex-direction: column;
  }
}

#buy-form .grid-2,#sell-form .grid-2{
  align-items: center;
}

#buy-form input,#sell-form input,.input{
  font-size:1em;
  font-family: monospace;
  padding: 6px;
  outline: none;
  border: 2px solid #888;
  max-width: unset;
  width: calc(100% - 1em);
}
#buy-form input:focus,#sell-form input:focus,.input:focus{
  border: 2px solid #4AF;
}

.inline-center{
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
a{
  display: inline-flex;
  /* align-items: center; */
  gap: .2em;
}
icon{
  font-size:1em;
  line-height: 0;
}


/*=== NAVBAR ===*/

navbar{
  padding: 0 1em;
  background-color: #111;
  color: white;
  margin: 0;
  display: flex;
  flex-direction: row;
  position: relative;
  z-index: 1;
}

navbar icon {
  font-size: 1.4em;
}

navbar a,
navbar a * {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
}
navbar a{
  padding: .8em;
  font-weight: bold;
  text-decoration: none;
}

navbar a:hover,navbar a.current{
  background: #4AF;
  color: white;
}
/* on mobile */
@media screen and (max-width: 720px) {
  navbar{
    padding:0 .25em;
  }
  navbar a{
    display: block;
    font-size:15px;
    padding:0.5em;
  }
  navbar a span {
    display: none;
  }
}

/*--------------------------*/


/** NEWS **/
.news-paper{
  background:#000A;
  backdrop-filter: blur(10px);
  padding: 1em;
  border-radius: 1em;
  color: white;
  margin-bottom: 1em;
  --margin : 1em;
}
.news-paper [web-editable--component]{
  margin-bottom: var(--margin)!important;
}
.news-paper--title{
  font-size: 40px;
  font-weight: bold;
}
.news-paper img{
  max-width: 100%;
  display: block;
}
.news-paper--image-text img{
  width: 50%;
  float: left;
  margin-right: var(--margin);
}
.news-paper--image-text::after{
  content: "";
  display: table;
  clear: both;
}
.news-paper--text{
  font-size: 1.2em;
  line-height: 1.2;
  opacity: 0.8;
}
.news-paper--quotation{
  font-family: monospace;
  text-align: center;
  font-size: 1.4em;
}
/*--------------------------------*/




th,td{
  position: relative;
}

/** INFO SYSTEM

Usage:

  <icon class="info" name="info"></icon>
  <div class="well"><div class="corner"></div><b>Authorized shares:</b> Maximum number of shares a company is allowed to issue to investors.<br></div>

*/


.well{
  background-color: #333;
  color: white;
  border: 1px solid #0004;
  box-shadow: rgb(0 0 0 / 24%) 0px 3px 8px;
  -webkit-box-shadow: rgb(0 0 0 / 24%) 0px 3px 8px;
  border-radius: 0.2em;
  -webkit-border-radius: 0.2em;
  max-width: 100%;
  z-index: 2;
  -webkit-transition-property: -webkit-transform;
  display: none;
  padding: 0.5em;
  position: absolute;
}

.info,.info:hover,.info:focus,.info:active{
  color: #00bcd4;
  cursor: pointer;
  font-size: 1.5em;
  vertical-align: middle;
  padding: 0;
  background: transparent;
  margin: 0;
  display: inline-flex;
  width: 1em;
  height: 1em;
  box-shadow: unset;
}
.info:focus{
  filter: drop-shadow(0 0 0.5em #00bcd4);
}
.info:hover + .well , .info:focus + .well{
  display: block;
}


/** LAYOUT **/
[layout-y]{
  display: flex;
  flex-direction: column;
  gap: 8px;
}
[layout-x],[layout-x-center]{
  display: flex;
  flex-direction: row;
  gap: 10px;
}

[layout-x-center]{
  align-items: center;
}





/*==== BASIC STYLES ====*/
.hover-underline:hover{
  text-decoration: underline;
  cursor: pointer;
}


/*===== WALL SYSTEM =====*/
.background-image{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.wall-text{
  flex:1;
  position:relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-shadow: 0 0 10px #000, 1px 1px 10px #000, -1px 1px 10px #000;
  text-transform: uppercase;
}
.wall-bottom{
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  margin: -1em;
  margin-top: 1em;
  border-top: 1px solid #FFF;
  text-shadow: 0 0 10px #000;
}
.wall-bottom>*{
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1em;
  padding-top:1.25em;
  cursor: pointer;
  font-size: .8em;
  border-left: 1px solid #FFF;
  backdrop-filter: blur(1px);
  transition: all .2s ease-in-out;
  text-decoration: none;
  background-color: #0008;
  color: #FFF;
  text-align: center;
}
.wall-bottom>*:hover{
  background-color: #000C;
}
.wall-bottom>*:first-child{
  border-left: none;
}

.cas{
  display: block;
  font-size: 0.75em;
  padding-top: .2em;
}





li[prefix="-"], li[prefix="+"], li[prefix="*"]{
  list-style:none;
  position:relative;
  line-height:1.5em;
}

li[prefix="-"]:before, li[prefix="+"]:before, li[prefix="*"]:before{
  content: "";
  font-size:1em;
  display: inline-block;
  width: 1em;
  height: 1em;
  border: 1px solid;
  line-height: 0;
  vertical-align: top;
  transform: translate(0, 0.25em);
}
li[prefix="+"]:before{
  color: var(--color-primary);
}
li[prefix="+"]:after{
  content: "";
  color: var(--color-primary);
  border-right: 1px solid;
  border-bottom: 1px solid;
  display: inline-block;
  width: 0.3em;
  height: 0.8em;
  position: absolute;
  left: 0.4em;
  top: 0.25em;
  transform: rotate(45deg);
}

li[prefix="*"]:before{
  border-radius: 100%;
  padding: 0;
  width : 0.25em;
  height: 0.25em;
  margin: 0.38em;
  background: var(--color);
}
