* {
    box-sizing: content-box;
}

body {
    background: black;
    color: greenyellow;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.4em;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    max-width: 100vw;
}

svg#garage {
    width: 90vw;
    max-width:300px;
    cursor: pointer;
}

.no-show {
    display: none !important;
}

.hidden {
    opacity:0;
}

.error {
    color: red !important;
    /* stroke: none;
    fill: red; */
}

button {
    background-color: rgb(164, 164, 164);
    height: 30px;
    font-family: Arial, Helvetica, sans-serif;
    color: black;
    border: 1px solid rgb(176, 176, 176);
    border-radius: 5px;
    margin: 0;
    padding: 0 3rem;
    cursor: pointer;
}

h1 {
    text-align: center;
}

table {
    border-collapse: collapse;
    width: calc(min(500px, 100vw - 2rem));
    /* table-layout: fixed; */
    word-wrap: break-word;
}

td, th {
    border-bottom: 1px solid rgb(164, 164, 164);
    text-align: center;
    line-height: 1em;
    padding: 0.4em 0.6em;
}

thead, tfoot {
    background-color: rgb(164, 164, 164);
}

thead th, tfoot td {
    color: black;
    border: none;
}

tfoot {
    font-weight: 700;
}

thead tr th { 
    border-left: 1px solid black;
    border-right: 1px solid black;
}

thead tr th:first-child {
    border-radius: 5px 0 0 5px;
}

thead tr th:last-child {
    border-radius: 0 5px 5px 0;
}

table tbody tr:last-child td {
    border: none;
}

#events-pagesize, #states-pagesize {
    padding-top: 0.5em;
    font-size: 0.9em;
}

.pagesize-item.active {
    cursor: pointer;
}

.pagesize-item.inactive {
    opacity: 0.5;
    font-weight: 700;
}

.flex-table-footer {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
}

td.table-footer-count {
    word-wrap: break-word;
    border-radius: 5px;
    line-height: 1em;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

td.token {
    word-break: break-word;
}

#states-count, #events-count {
    text-align: left;
}

#states-page-number, #events-page-number {
    text-align: right;
}

#arrows {
    padding-left: 0;
    padding-right: 0;
    font-size: 0.8em;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    flex-wrap: nowrap;
    align-items: center;
    width:100%;
    margin:auto;
    max-width: 10rem;
}

svg.arrows {
    stroke: none;
    fill: black;
    height: 1em;
    margin: 0;
    cursor: pointer;
}

svg.arrows.inactive {
    fill:rgb(100, 100, 100);
    cursor: inherit;
}

svg.arrows.simple {
    padding: 0 0.5em;
}

.cls-front {
    fill: greenyellow;
    stroke: greenyellow;
    stroke-width: 4;
    stroke-linecap: round;
}

.cls-front .heart {
    stroke-width: 1;
}

.cls-background{
    fill: black;
}

.cls-svg-icon, .interrogation {
    fill: greenyellow;
    stroke: greenyellow;
    stroke-width: 1;
}

.cls-svg-icon {
    width: 1em;
}

#user {
    display: flex;
    align-items: center;
    justify-content: center;
    column-gap: 1em;
}

#user p {
    margin: 0;
    padding: 0;
}

#user svg {
    cursor: pointer;
}


#events, #house, #states, #settings, #users {
    position: relative;
    max-width: calc(100vw - 2rem);
}

#settings-items {
    border: 1px solid rgb(164, 164, 164);
    border-radius: 5px;
    padding: 2rem;
}

div#events-spinner, div#states-spinner, div#house-spinner, div#login-spinner, div#users-spinner, div#settings-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
}

div#house-spinner {
    top: 70%;
}

.spinner {
    animation: rotate 2s linear infinite;
    z-index: 3;
    position: absolute;
    top: 50%;
    left: 50%;
    margin: -35px 0 0 -35px;
    width: 70px;
    height: 70px;
}

.path {
    stroke:rgb(174, 174, 174);
    stroke-linecap: round;
    animation: dash 1.5s ease-in-out infinite;
}

.no-scrolling {
    height: 100%;
    overflow: hidden;
}


#backdrop {
    position: fixed;
    z-index: 2;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: black;
    opacity: 70%;
    overflow: hidden;
}

#snackbar {
    z-index: 2;
    position: fixed;
    background-color: black;
    border-radius: 30px;
    padding: 2rem;
    text-align: center;
    margin: 3rem 2rem;
    font-weight: 700;
}

#snackbar.error {
    border: 2px solid red;
    color: red !important;
    fill: red;
}

#snackbar.warning {
    border: 2px solid orange;
    color: orange !important;
    fill: orange;
}

#snackbar.info {
    border: 2px solid greenyellow;
    color: greenyellow !important;
    fill: greenyellow;
}

#snackbar svg {
    width: 2rem;
    stroke: none;
}

.object, .array {
    font-weight: 700;
    opacity: 1;
}

.object-key {
    font-weight: 700;
    opacity: 1;
}

.object-value {
    font-weight: normal;
    opacity: 0.8;
}

#login-form, #confirmation-form {
    z-index: 3;
    display: flex;
    flex-direction: column;
    position: fixed;
    background-color: black;
    border: 2px solid greenyellow;
    border-radius: 30px;
    padding: 3rem 2rem;
    text-align: left;
    margin: 3rem 2rem;
    font-weight: 700;
}

#login-form p, #confirmation-form p {
    margin-top: 0;
}

#login-input {
    background-color: rgb(164, 164, 164);
    color: black;
    border: 1px solid rgb(176, 176, 176);
    border-radius: 2px;
    margin: 0;
    padding: 0.5rem;
}

p#login-error {
    margin: 0.3rem 0;
    font-size: 0.8rem;
    line-height: 0.8rem;
}

#login-button {
    align-self:right;
    margin: 0 0 0 auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

p#login-switch {
    cursor: pointer;
    text-decoration: underline solid;
    font-weight: normal;
    font-size: 0.9em;
    padding: 2em 0 0 0;
    margin: 0 0 0 0;
}

#confirmation-buttons {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    column-gap: 1em;
}

/* Spinner animation */
@keyframes rotate {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes dash {
    0% {
        stroke-dasharray: 1, 150;
        stroke-dashoffset: 0;
    }
    50% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -35;
    }
    100% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -124;
    }
}
