* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

#wrapper {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background-color: #18171c;

    display: flex;
    flex-direction: column;
    align-items: center;
}

header {
    width: 100%;
    min-height: 156px;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
}

#first-row {
    display: flex;
    margin: 10px 0;
    justify-content: center;
    align-content: center;
    flex-wrap: wrap;
    gap: 2px 10px;
    font-variant-numeric: tabular-nums;
    line-height: 1em;
}

#first-row span {
    display: flex;
    white-space: pre;
    align-items: center;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
}

#first-row img {
    height: 20px;
    margin: auto 4px auto 0;
    image-rendering: pixelated;
}

#second-row {
    display: flex;
    flex-direction: row;
    width: 100%;
    min-height: 40px;
}

#second-row-left-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    line-height: 1em;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    justify-content: space-around;
    flex-basis: 50%;
}

.second-row-subcontainer {
    display: flex;
    align-items: center;
    width: calc(38px + 7.5em);
    min-width: 150px;
}

.res-icon {
    height: 32px;
    width: 32px;
    image-rendering: pixelated;
}

.second-row-disp {
    padding-left: 6px;
    margin: auto 0;
    line-height: 1em;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
    font-size: 10pt;
}

#version_num {
    display: inline-block;
    animation: shake 400ms ease 0s infinite normal forwards, color_rotate 1500ms ease 0s infinite normal forwards;
    font-size: 11pt;
}

.unit0 {
    font-size: 11pt;
}

.unit1 {
    color: ghostwhite;
    font-size: 9pt;
}

nav {
    width: 100%;
    min-height: 21px;
    display: flex;
    justify-content: center;
    margin-top: auto;
}

#tabs {
    text-align: center;
    width: 100%;
    list-style: none;
    margin: 0px;
    margin-inline: unset;
    margin-block: unset;
    padding-inline: unset;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0px 5px;
}

#tabs button {
    display: block;
    border: 1px solid;
    min-width: 100px;
    min-height: 21px;
    line-height: 1em;
    font-size: min(1em, 20px);
    padding: 1px;
    color: white;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    border-bottom: none;
    text-align: center;
    overflow: hidden;
    white-space: nowrap;
    background-color: #101828;

    transition: background-color 0.15s, border-color 0.15s;
}

#tabs button:hover {
    background-color: #006;
    cursor: pointer;
}

.active {
    background-color: white;
}

button#home-btn {
    border-color: orange;
}

button#features-btn {
    border-color: green;
}

button#changelog-btn {
    border-color: plum;
}

button#github-btn {
    border-color: cyan;
}

button#about-btn {
    border-color: white;
}

.b-orange {
    background-color: orange !important;
}

.b-green {
    background-color: green !important;
}

.b-blue {
    background-color: blue !important;
}

.b-plum {
    background-color: plum !important;
}

#border {
    height: 2px;
    width: 100%;
    position: relative;
    z-index: 0;
}

#page-container {
    flex-grow: 1;
    width: 100%;
    overflow-y: auto;
    padding: 15px;
}

.page-wrapper {
    color: ghostwhite;
    font-family: sans-serif;
    display: none;
    padding-right: 50vw;
    padding-left: 15px;
}

.page-wrapper ul, dl {
    margin-left: 40px;
}

.page-wrapper p {
    margin-left: 30px;
}

.page-wrapper dt {
    margin-left: 20px;
}

.page-wrapper dd {
    margin-left: 35px;
}

.page-wrapper h1, h2, h3 {
    margin-bottom: 10px;
    margin-top: 10px;
}

.page-wrapper h2 {
    margin-left: 10px;
}

.page-wrapper.visible {
    display: block;
}

#github-logo {
    width: 180px;
    background-color: ghostwhite;
    border-radius: 10px;
    margin-left: 30px;
    margin-top: 10px;
}


/* Base styles for all anchor elements */
a {
    /* Text styling */
    color: #0066cc;
    text-decoration: none;
    font-weight: normal;
    
    /* Optional spacing and layout */
    padding: 2px 4px;
    display: inline-block;
    
    /* Optional transitions for smooth state changes */
    transition: all 0.1s ease;
  }
  
  /* Hover state - when user hovers over the link */
  a:hover {
    color: #004499;
    text-decoration: underline;
  }
  
  /* Active state - when link is being clicked */
  a:active {
    color: #cc0000;
    text-decoration: underline;
  }
  
  /* Visited state - after the link has been clicked */
  a:visited {
    color: #8d39db;
  }
  
  /* Focus state - when link is focused via keyboard navigation */
  a:focus {
    outline: none;
  }
  
  /* Example of combination states */
  a:hover:visited {
    color: #b503b5;
  }

@keyframes shake {
    0% {
        transform: translate(0);
    }

    20% {
        transform: translate(1px, -1px);
    }

    40% {
        transform: translate(1px, 1px);
    }

    60% {
        transform: translate(-1px, 1px);
    }

    80% {
        transform: translate(-1px, -1px);
    }

    100% {
        transform: translate(0);
    }
}

@keyframes color_rotate {
    0% {
        color: yellow;
    }

    20% {
        color: red;
    }

    40% {
        color: cyan;
    }

    60% {
        color: chartreuse;
    }

    80% {
        color: red;
    }

    100% {
        color: yellow;
    }
}

.fluid-img {
    max-width: 400px;
}

.doc-img {
    margin-left: 30px;
    margin-top: 10px;
    margin-bottom: 10px;
}

p.sm {
    font-size: 10pt;
}

/* Small mobile devices in portrait */
@media only screen and (max-width: 480px) and (orientation: portrait) {
    .page-wrapper {
        padding-right: 0;
        padding-left: 0;
    }

    .fluid-img {
        width: 100%;
        width: -moz-available;
        width: -webkit-fill-available;
        width: fill-available;
    }
}

/* Medium mobile devices in portrait */
@media only screen and (min-width: 481px) and (max-width: 767px) and (orientation: portrait) {
    .page-wrapper {
        padding-right: 0;
        padding-left: 0;
    }

    .fluid-img {
        width: 100%;
        width: -moz-available;
        width: -webkit-fill-available;
        width: fill-available;
    }
}

/* Tablets in portrait */
@media only screen and (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
    .page-wrapper {
        padding-right: 0;
        padding-left: 0;
    }

    .fluid-img {
        width: 100%;
        width: -moz-available;
        width: -webkit-fill-available;
        width: fill-available;
    }
}