body {
    margin: 0;
    padding: 0;
}

div {
    margin: 0;
    padding: 0;
}

span {
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
}

ul {
    margin: 0;
    padding: 0;
}

.page-container {
    height: 100vh; 
    display: flex; 
    flex-direction: column; 
    overflow: hidden;
}

.page-content { 
    flex-grow: 1;
    flex-shrink: 1;
    overflow: hidden scroll; 
    scrollbar-width: thin;
    scrollbar-color: rgb(199 199 199) white;
    padding: 20px 20px 20px 20px;
}

.navbar {
    margin: 0;
    padding: 0;
    height: fit-content;
    flex-grow: 0;
    flex-shrink: 0;
    display: flex;
    overflow: hidden;
    background-color: rgb(72, 72, 72);
}

.footer {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    padding-top: 10px;
    height: fit-content;
    flex-grow: 0;
    flex-shrink: 0;
    display: flex;
    overflow: hidden;
    justify-content: center;
    font-size: 8pt;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    margin: 0;
    padding: 0;
}

h1.nav-text {
    width: auto;
    color: white;
    margin: 20px 20px 20px 20px;
}

button, input, option, select {
    font-family: system-ui;
    font-weight: normal;
}

label, fieldset {
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
}

fieldset {
    border: 1px solid rgb(142 142 142);
    border-radius: 5px;
}

button.ui {
    background-color: black;
    border: none;
    border-radius: 5px;
    color: white;
    padding: 10px 10px;
    text-align: center;
    text-decoration: none;
    margin: 0px 15px 15px 0px;
    transition-duration: 0.1s;
}

button.text-button {
    width: auto;
    border: none;
    border-radius: 5px;
    color: white;
    background-color: rgb(72, 72, 72);
    padding: 0;
    text-align: left;
    text-decoration: none;
    margin: 20px 20px 20px 20px;
    transition-duration: 0.1s;
}

button.delete {
    background-color: red;
}

button.ui:hover {
    background-color: rgb(199, 199, 199);
    color: black;
}

button.delete:hover {
    background-color: rgb(179, 0, 0);
    color: white;
}

button.nav-auth {
    margin: 0 20px 0 0;
    font-size: 28pt;
    background-color: rgb(72, 72, 72);
}

button.nav-auth:hover {
    background-color: rgb(72, 72, 72);
    color: rgb(209, 209, 209);
    transform: scale(1.1);
}

button.nav {
    margin: 0 20px 0 0;
    font-size: 28pt;
    background-color: rgb(72, 72, 72);
}

button.nav:hover {
    background-color: rgb(72, 72, 72);
    color: rgb(209, 209, 209);
    transform: scale(1.1);
}

button.text-button:hover {
    background-color: rgb(72, 72, 72);
    color: rgb(209, 209, 209);
}

button.push-right {
    margin-left: auto;
}

button.ui.button-back {
    width: fit-content;
    color: white;
    font-size: 20pt;
    background-color: rgb(72, 72, 72);
    box-shadow: 0 0 15px rgb(142 142 142);
    display: inline-flex;
    align-items: center;
}

button.ui.button-back.nudge-left {
    margin-right: 20px;
}

button.ui.button-back.nudge-right {
    margin-left: 20px;
}

button.ui.button-back.align-bottom {
    margin-top: auto;
}

button.ui.button-back.align-top {
    margin-bottom: auto;
}

button.ui.button-back:hover {
    background-color: rgb(72, 72, 72);
    color: rgb(209, 209, 209);
    transform: scale(1.1);
}

form.ui.form-delete {
    display: inline-flex;
}

button.ui.button-delete {
    width: fit-content;
    color: white;
    font-size: 20pt;
    background-color: red;
    box-shadow: 0 0 15px rgb(142 142 142);
    min-width: 81.6666667px;
    display: inline-flex;
    align-items: center;
}

button.ui.button-delete.nudge-left {
    margin-right: 20px;
}

button.ui.button-delete.nudge-right {
    margin-left: 20px;
}

button.ui.button-delete.align-bottom {
    margin-top: auto;
}

button.ui.button-delete.align-top {
    margin-bottom: auto;
}

button.ui.button-delete:hover {
    background-color: rgb(219, 0, 0);
    color: rgb(229, 229, 229);
    transform: scale(1.1);
}

span.ui.button-text-right {
    margin-left: 5px; 
    font-size: 12pt;
}

span.ui.button-text-double-right {
    margin-left: 10px; 
    font-size: 12pt;
}

span.ui.button-text-center {
    margin-left: 10px; 
    margin-right: 5px;
    font-size: 12pt;
}

.button-group {
    display: inline-block;
}

/*-----ui design things-----*/

#container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

#container.container-align-left {
    justify-content: flex-start;
}

#container.container-align-right {
    justify-content: flex-end;
}

.flex-row {
    flex-basis: 1000px;
    flex-grow: 1;
    max-width: 1010px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    gap: 40px;
    margin: 20px 15px;
}

.flex-row.flex-row-single {
    flex-basis: 350px;
}

.flex-row.flex-row-align-left {
    justify-content: flex-start;
}

.flex-row.flex-row-align-right {
    justify-content: flex-end;
}

.flex-multirow-container {
    flex-basis: 310px;
    flex-grow: 1;
    display: flex;
    flex-wrap: wrap;
    row-gap: 40px;
}

.ui-box {
    position: relative;
    display: flex;
    border: none;
    border-radius: 15px;
    box-shadow: 0 0 20px rgb(199 199 199);
    transition-duration: 0.2s;
}

.ui-box.ui-box-small {
    flex-grow: 1;
    flex-basis: 310px;
    max-width: 360px;
}

.ui-box.ui-box-large {
    flex-grow: 0;
    flex-basis: 660px;
    flex-wrap: wrap;
    justify-content: center;
}

.ui-box.hover:hover {
    transform: scale(1.06667);
}

.ui-grid-width {
    max-width: 350px;
    flex-basis: 310px;
}

.ui-box-small .ui-grid-width {
    flex-grow: 1;
}

.ui-grid-height {
    position: relative;
    height: 0;
    padding-top: 100%;
}

.ui-element-flexbox {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
}

.ui-element-box {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.ui-element-flex-zone {
    position: absolute;
    top: 25%;
    left: 0;
    width: 100%;
    height: 75%;
    display: flex;
}

.ui-element-flex-zone-large {
    position: absolute;
    top: 77.5px;
    left: 0;
    bottom: 0;
    width: 100%;
    min-height: 75%;
    display: flex;
    flex-wrap: wrap;
}

.flex-zone-grid {
    flex-wrap: wrap;
    justify-content: space-evenly;
    align-content: center;
    gap: 5px 25px;
}

.flex-zone-stack {
    flex-direction: column; 
    flex-wrap: nowrap;
    justify-content: space-evenly;
}

.ui-box-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 25%;
    max-height: 77.5px;
    border: none;
    border-radius: 15px 15px 0 0;
    background-color: white;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.header-text {
    padding: 10px 20px;
}

.header-text.header-text-center {
    padding: 0 0 10px 0;
    margin: auto;
}

.icon-container {
    position: relative;
    text-align: center;
}

.icon-small {
    color: black;
    font-size: 30px;
    z-index: 2;
}

.icon-bg-container {
    position: relative;
    display: flex;
    align-items: center;
}

.icon-button {
    height: 75px;
    width: 75px;
    position: relative;
    color: black;
    border: none;
    border-radius: 15px;
    background-color: white;
    box-shadow: 0 0 10px rgb(142 142 142);
    transition-duration: 0.1s;
}

.icon-button:hover {
    background-color: rgb(242 242 242);
}

.icon-text {
    width: 75px;
    margin-top: 5px;
    display: block;
    font-size: 10pt;
}

.list-flexbox {
    list-style: none;
    flex-basis: 340px;
    flex-grow: 1;
    margin: 10px 10px;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: space-evenly;
    align-items: center;
    row-gap: 10px;
}

.list-element-flexbox {
    width: 100%;
    flex-basis: 63px;
    flex-grow: 1;
    border: none;
    border-radius: 10px;
    background-color: white;
    display: flex;
    align-items: center;
}

.list-element-flexbox.hover {
    box-shadow: 0 0 10px rgba(174, 174, 178, 0.6);
    transition-duration: 0.1s;
}

.list-element-flexbox.hover:hover {
    background-color: rgb(242 242 242);
}

.list-element-flexbox.short {
    max-height: 63px;
}


.list-element-flexbox-small {
    width: 100%;
    flex-basis: 50px;
    flex-grow: 1;
    border: none;
    border-radius: 10px;
    background-color: white;
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
}

.horiz-line {
    border: 1px solid rgb(99 99 99);
    width: 87.5%;
}

.inner-flexbox {
    flex-grow: 1;
    flex-basis: 280px;
    min-height: 212.5px;
    margin: 10px 10px;
    display: flex;
    flex-direction: column;
}

.inner-flexbox-small {
    flex-grow: 1;
    flex-basis: 280px;
    min-height: 50.6667px;
    margin: 7px;
    display: flex;
    flex-direction: column;
    height: fit-content;
}

.delete-form {
    margin-left: auto;
    margin-right: 12px;
}

/* FOUC fix for firefox */
html {
    visibility: visible;
    opacity: 1;
}