:root {
    --prim-color: lightblue;
    --sec-color: indianred;
    --accent-color: orange;
    --backgrnd-dark: #80800040;
    --toggle-off: slategray;
    --toggle-off-hover: yellowgreen;
    --toggle-on: slateblue;
    --toggle-on-hover: palevioletred;
}
@font-face {
    font-family: techdot;
    src: url("./techdot.woff2");
}
html, body {
    margin: 0;
    height: 100%;
    width: 100%;
    font-size: 1.1em;
    font-family: monospace;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background-image: url('./backgrnd.svg');
    background-size: cover;
    background-repeat: no-repeat;
}
form{
    padding: 2em 0 0 0;
    display: grid;
    grid-template-columns: max-content min-content;;
    justify-content: center;
    grid-gap: 1em;
}
button{
    padding: 0.15em 0.5em;
    background: var(--accent-color);
    border: dotted;
    border-radius: 1em;
    border-width: 2px;
    display: flex;
    align-items: center;
    font-family: unset;
    font-size: unset;
    cursor: pointer;
    width: fit-content;
    height: 100%;
    span{
        padding-left: 0.5em;
    }
}
button:hover{
    color: white;
    svg{
        fill: white;
    }
}
button:disabled{
    color: darkgrey;
    background: var(--toggle-off);
}
.inputElem {
    font-family: unset;
    font-size: unset;
    background: none;
    border: none;
    padding-left: 1em;
    width: inherit;
    background: var(--prim-color);
    text-align: center;
}
#ttl{
    margin-top: 1em;
    text-align: center;
    color: var(--backgrnd-dark);
    font-size: 6em;
    font-family: techdot;
    user-select: none;
}
pre{
    margin: 0;
    font-variant-caps: all-petite-caps;
    background-color: var(--backgrnd-dark);
}
#con{
    display: flex;
    height: 100%;
    justify-content: center;
}
.bigButton{
    height: fit-content;
    padding: 0;
    border: none;
    background: none;
    font-size: 8em;
    font-family: techdot;
    font-variant: unicase;
    filter: drop-shadow(2px 4px 6px var(--prim-color));
    color: white;
    transition-duration: 1s;
}
.bigButton:hover{
    color: var(--sec-color);
    filter: none;
}
.connect{
    align-items:center;
}
#bar{
    width: 100%;
    display: flex;
    align-items: center;
    padding: 0;
    grid-gap: 0;
    background-color: var(--prim-color);
    span{
        width: 100%;
    }
}
#sts{
    text-align: center;
    background-color: var(--backgrnd-dark);
}


/*Popup message*/
.flash{
    position: absolute;
    display: none;
    align-self: center;
    box-shadow: 5px 5px 5px steelblue;
    border-radius: 1em;
    margin: 1em;
    padding: 0.5em 1em;
    background-color: orangered;
    user-select: none;
    z-index: 1;
}
.flash-x{
    text-decoration: none;
    color: darkred;
    margin-left: 0.7em;
    float: right;
    font-weight: bold;
}
.flash-x:hover{
    color: white;
}


/*Tab view*/
.tabview{
    background: #6495ed73;
    display: flex;
    align-items: start;
    height: inherit;
}
.tabview > div{
    height: fit-content;
}
.tabview > div > a{
    text-decoration: none;
    float: left;
    padding: 0.5em 1em;
    background: var(--accent-color);
    color: black;
}
.tabview > div > a:hover{
    color: white;
    font-weight: bold;
}
.tabview > div > div{
    position: absolute;
    top: 2.5em;
    left: 0;
    bottom: 0;
    right: 0;
    padding: 0.1em 1em;
    background: #ffffff6b;
    z-index: -2;
    overflow: auto;
}
.tabview > div:not(:target) > a{
    background: var(--prim-color);
}
.tabview > div:target > div{
    z-index: 0;
}
.tabview > hr{
    margin: 0;
    height: 5px;
    border: none;
    background: var(--sec-faint);
    cursor: row-resize;
}
.tabview > hr:hover{
    background: var(--disabled);
}


/*Toggle Button Switch*/
.toggle {
  cursor: pointer;
  position : relative ;
  display : inline-block;
  width : 2.55em;
  height : 1.4em;
  background-color: var(--toggle-off);
  border-radius: 1em;
}
.toggle:hover{
  background-color: var(--toggle-off-hover);
}
.toggle:after {
  content: 'OFF';
  position: absolute;
  width: 1.8em;
  height: 1.8em;
  border-radius: 50%;
  background-color: white;
  top: 0.1em;
  left: 0.15em;
  transition:  all 0.5s;
  text-align: center;
  line-height: 1.8em;
  font-size: 0.7em;
}
input[type='checkbox'] {
  display : none;
}
input[type='checkbox']:checked + .toggle {
  background-color: var(--toggle-on);
}
input[type='checkbox']:checked + .toggle:hover {
  background-color: var(--toggle-on-hover);
}
input[type='checkbox']:checked + .toggle:after {
  left : 1.7em;
  content: 'ON';
}

#\32 > div{ /*Messages panel height*/
    bottom: 4em;
}

@media (max-width: 50em) or (max-height: 50em) {
    #ttl {
        font-size: 3em;
    }
    .bigButton {
        font-size: 4em;
    }
    #\32 > div{
        bottom: 5em;
    }
}
