html,
.dark {
    background-color: #020e15;
}

/* unvisited link */
a:link,
a:visited,
a:hover,
a:active {
    color: #79945a;
}

.darkText {
    color: lightgray;
}

#layout,
#menu {
    -webkit-transition: all 0.2s ease-out;
    -moz-transition: all 0.2s ease-out;
    -ms-transition: all 0.2s ease-out;
    -o-transition: all 0.2s ease-out;
    transition: all 0.2s ease-out;
}

#main {
    margin-left: 5%;
    margin-right: 5%;
    margin-bottom: 100px;
}

#main.is-preload {
    display: none;
}

body {
    opacity: 0;
    animation-name: fadeIn;
    animation-duration: 1s;
    animation-timing-function: ease-in-out;
    animation-fill-mode: forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes goLeft {
    from {
        margin-left: 0px;
    }

    to {
        margin-left: -125px;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.movingLeft {
    animation-name: goLeft;
    animation-duration: 0.5s;
    animation-fill-mode: forwards;
}

.fadingIn {
    animation-name: fadeIn;
    animation-duration: 0.5s;
    animation-fill-mode: forwards;
}

#menu {
    margin-left: 0px;
    /* "#menu" width */
    width: 125px;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 1000;
    /* so the menu or its navicon stays above all content */
    background: #191818;
    overflow-y: auto;
}

.docs {
    text-align: right;
}

#loggedIn {
    opacity: 0;
}

#accordian {
    max-height: 300px;
    height: auto;
    /* allow the div to grow as needed */
    overflow-y: auto;
    /* only show scrollbar when necessary */
}


.ui-accordion-header.ui-state-active {
    background-color: #336699;
    color: lightgray;
    border-color: lightgray;
}

.ui-accordion-header.ui-state-active .ui-icon {
    background-color: #336699;
    color: lightgray;
}

.ui-accordion-header {
    background-color: #144455;
    color: rgb(146, 146, 146);
}

.ui-accordion-header .ui-icon {
    background-color: #144455;
    color: rgb(146, 146, 146);
}

.time {
    width: 6em;
}

.input {
    width: 20em;
}

input::placeholder {
    color: #aaa;
    opacity: 0.5;
    font-style: italic;
    font-size: 0.8em;
}

.button-success,
.button-error,
.button-warning,
.button-secondary {
    color: white;
    border-radius: 4px;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}

.button-success {
    background: #79945a;
    /* this is a green */
}

.button-error {
    background: rgb(202, 60, 60);
    /* this is a maroon */
}

.button-warning {
    background: rgb(223, 117, 20);
    /* this is an orange */
}

.button-secondary {
    background: rgb(66, 184, 221);
    /* this is a light blue */
}

table {
    margin-top: 1em;
    width: 100%;
    border-collapse: collapse;
}

table tr:nth-child(even) {
    background-color: #f2f2f2;
}

table th,
table td {
    padding: 10px;
    text-align: center;
    font-size: 14px;
    border: 1px solid #ddd;
}

table th {
    background-color: #4caf50;
    color: white;
}

table tr:nth-child(even) {
    background-color: #1d2d2a;
}

.logo {
    background-repeat: no-repeat;
    background-position: center;
    background-size: 200px auto;
    width: 100%;
    height: 200px;
    display: flex;
    justify-content: center;
    background-image: url("header.jpg");
}

.logo_footer {
    background-repeat: no-repeat;
    background-position: center;
    background-size: 200px auto;
    width: 100%;
    display: flex;
    justify-content: center;
    color: white;
    margin-bottom: 1em;
    margin-top: -1em;
}

.qrcodes {
    background-repeat: no-repeat;
    background-position: center;
    background-size: 200px auto;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    margin-bottom: 5em;
    margin-top: 5em;
    flex-wrap: wrap;
    /* Added to make sure items wrap if they overflow */
}

.qrcodes .qrcontainer {
    position: relative;
    margin: 0 5em;
    text-align: center;
    /* Center the text */
}

.qrcodes img {
    display: block;
    margin-top: 1em;
    /* Add space between label and image */
}

.qrcodes p,
.qrcodes a {
    color: white;
    font-weight: bold;
    white-space: nowrap;
    /* Prevent the text from wrapping */
}



@media (max-width: 768px) {
    input {
        font-size: 0.8em !important;
    }
}

.flex-container {
    display: flex;
    align-items: center; /* for vertical centering */
    justify-content: center; /* for horizontal centering */
    gap: 10em;
    flex-wrap: wrap;
}

@media (max-width: 600px) {
    .flex-container {
        flex-direction: column;
    }
}
