html {
    scrollbar-gutter: stable;
    overflow-y: scroll;
    font-family: sans-serif;
    min-height: 100%;
    /* background-color: #141e30; */
}

body {
    height: 100%;
    min-height: 100%;
    background: linear-gradient(#141e30, #243b55);

    /* background-attachment: fixed; */
}

* {
    hyphens: auto;
    overflow-wrap: break-word;
    box-sizing: border-box;
    margin: 0;
    border: 0;
    padding: 0;
    font-family: sans-serif;
    font-size: 0.95rem;
}

header {
    z-index: 99999;
    position: sticky;
    top: 0;
    background: rgb(44 62 90);
    margin-bottom: 1rem;
    padding: 1.2rem 1rem 0 1rem;
}

h1,
h2,
h3,
h4,
h5,
h6 {

    padding: 0;
    color: rgb(236, 236, 236);
}

h1 {
    font-size: 2rem;
}

h2 {
    font-size: 1.5rem;
}

h3 {
    font-size: 1rem;
}

button {
    cursor: pointer;
    background: transparent;
    padding: 0.25rem 0 0.25rem 0.4rem;
    font-size: 0.9rem;
    color: #939ac0;
    transition: 0.2s;

}

#submit-button,
#clear-form-button,
#login-button,
#open-form-button {
    padding: 0.15rem;
    font-size: 1.05rem;
    /* font-weight: 600; */
}

#open-form-button {
    display: none;
    position: fixed;
    right: 2.5rem;
    bottom: 2.5rem;
    background-color: #3d5b88;
    color: rgb(245, 243, 243);
    padding: 0.5rem;
    border-radius: 4px;
}

#open-form-button:hover {
    color: rgb(217, 215, 215);
    background-color: #354f75
}

#close-form-button {
    position: absolute;
    top: 12px;
    right: 22px;
    width: unset !important;
    padding: 0;
    /* color: #b63636 */
}

*::-webkit-scrollbar {
    width: 8px;
    /* width of the entire scrollbar */
}

*::-webkit-scrollbar-track {
    background: #364a63;
    border-radius: 2px;
}

*::-webkit-scrollbar-thumb {
    cursor: pointer;

    background: rgb(230, 230, 230);
    border-radius: 20px;
    /* roundness of the scroll thumb */

}

button:hover {
    transition: 0.4s;
    transform-origin: center;
    color: #4f5578;
}

#form-dialog {
    position: relative;
    background: transparent;
    flex-direction: column;
    width: 30%;
    padding: 1rem 0.5rem;
    position: fixed;
    margin: unset;
    inset-inline-start: unset;
    border-radius: 4px;
    top: 120px;
    right: 2rem;
    bottom: 0;
    overflow-y: auto;
    height: auto;
    margin-bottom: 20px;

}

#login-dialog {
    text-align: center;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50%;
    background: linear-gradient(#141e30, #243b55);
    padding: 1.5rem 1.8rem;
    width: 30%;
    box-sizing: border-box;
    box-shadow: 0 15px 25px rgba(0, 0, 0, .1);
    border-radius: 4px;
}

input,
textarea {
    padding: 0 0.35rem;
}

#login-dialog .form-input {
    text-align: center;
    border-right: 1px solid rgb(198 198 198);
    border-left: 1px solid rgb(198 198 198);
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-background-clip: text;
    -webkit-text-fill-color: rgb(236, 236, 236);
    transition: background-color 5000s ease-in-out 0s;
    box-shadow: none
}

#login-dialog::backdrop {
    background: #03060c;
    opacity: 0.9;
}

#form-dialog .form-input,
#login-dialog .form-input,
textarea,
#search-bar {
    width: 100%;
    color: rgb(236, 236, 236);
    outline: none;
    background: transparent;
}

#form-dialog .form-input,
#login-dialog .form-input,
textarea,
#search-bar {
    margin-bottom: 1.2rem;
}

#search-bar {
    margin: 0.8rem 0 1.4rem 0;
}

input[disabled],
input[disabled]:hover {
    background: rgba(13, 13, 17, 0.25);
    color: rgb(189, 187, 187);
    border-radius: 4px;
}

input::placeholder,
textarea::placeholder {
    color: rgb(243, 239, 252);
    opacity: 0.5;
}

#form-action,
#form-id {
    font-size: 0.7rem;
    margin-bottom: 0.25rem;
    padding: 0.25rem;
}

#form-meta {
    margin-bottom: 1rem;
}

.button-container {
    margin-top: 0.5rem;
}

.button-container button {
    margin-top: 0.25rem;
}

#list-container {
    width: calc(70% - 3rem);
}

#content {
    padding: 0 2rem;
    display: flex;
    width: 100%;
}

#list-container .list-item {
    position: relative;
    margin-bottom: 1.5rem;
    background-color: transparent;
    padding: 0.75rem 1rem 0.75rem 0;
    border-right: 1.5px solid rgb(198 198 198);
    color: rgb(198 198 198);
    border-radius: 1px;
}


.item-header-container {
    display: flex;
    align-content: flex-start;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.list-item-button-container button {
    margin-left: 0.25rem;
}

#form-dialog * {
    width: 100%;
}

#error-popup {
    z-index: 999999999;
    position: fixed;
    width: unset;
    max-width: 1100px;
    right: 1rem;
    left: 1rem;
    bottom: 0.5rem;
    background-color: #e84f4f;
    padding: 0.75rem 1rem 0.75rem 2rem;
    border-radius: 4px;
    color: rgb(227, 226, 226);
    max-height: 100%;
    height: auto;
    overflow-y: auto;
    transform: scale(0.95);
}

#error-popup li {
    padding-bottom: 0.25rem;
}

#error-wrapper {
    position: relative;
}

#error-popup #error-popup-button {

    color: #ffb9b9;
    position: absolute;
    top: 0;
    right: 0;
}

#error-popup #error-popup-button:hover {
    color: #ffe6e6;

}

#error-popup::-webkit-scrollbar-track {
    background-color: #e84f4f;
    border-radius: 2px;
}


#close-form-button {
    display: none;
}

@media screen and (max-width: 850px) {
    #login-dialog {
        width: 45%;
    }

    h1 {
        font-size: 1.6rem;
    }

    h2 {
        font-size: 1.2rem;
    }

    h3 {
        font-size: 1.1rem;
    }

    #form-dialog {
        /* top: 50%;
        background: linear-gradient(#141e30, #243b55);
        padding: 1.5rem 1.8rem;
        padding-top: 2.5rem;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 70%;
        box-sizing: border-box;
        box-shadow: 0 15px 25px rgba(0, 0, 0, .1);
        height: revert; */

        z-index: 99999999;
        top: 50%;
        background: linear-gradient(#141e30, #243b55);
        padding: 1.5rem 1.8rem;
        padding-top: 2.5rem;
        left: 50%;
        width: 70%;
        transform: translate(-50%, -50%);
        height: 80%;
        max-height: 500px;
    }

    #backdrop {
        z-index: 9999999;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgb(3, 6, 12, 0.92);
    }

    #list-container {
        width: 100%;
    }

    #content {
        flex-direction: column;
    }

    #open-form-button {
        display: block;
    }

    #close-form-button {
        display: block;
    }

}

@media screen and (max-width: 500px) {
    #login-dialog {
        width: 65%;
    }

    #form-dialog {
        /* top: 25%;
        left: 50%;
        transform: translate(-50%, -25%); */
        width: 90%;
    }

}