html {
    user-select: none;
}

body {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
    font-family: Arial, Helvetica, sans-serif;
    background-color: #222;
}

@media (prefers-color-scheme: dark) {
    body {
        background-color: #222;
        color: #eee;
    }
}

p,
h1,
h2,
h3,
a,
ul {
    margin: 0;
    padding: 0;
    text-decoration: none;
    color: #fff;
}

nav {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 5px;
    border-bottom: 1px solid #ddd;
    text-transform: uppercase;
    font-family: Arial, Helvetica, sans-serif;
}

nav ul {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

nav li {
    list-style-type: none;
    margin-left: 2px;
}

nav h1 {
    font-size: 3em;
}

nav p,
nav a {
    color: #fff;
    font-weight: 300;
}

nav a:hover {
    color: white;
    font-weight: 300;
}

nav img {
    color: #fff;
    border: none;
    filter: invert(50%);
}

nav img:hover {
    color: white;
    filter: invert(100%);
    fill: white;
}

.round-button i {
    height: 18px;
    padding-top: 4px;
    color: #fff;
    vertical-align: middle;
    transition: all 0.3s ease-out;
    border: none;
}

.round-button i:hover {
    color: white;
    border-bottom: 5px solid crimson;
}

.menu {
    position: relative;
    display: inline-block;
}

.round-button {
    background-color: rgba(38, 0, 255);
    color: white;
    padding: 5px 10px 5px 10px;
    font-size: 15px;
    transition: all 0.3s ease-out;
    border: none;
    border-radius: 50%;
}

.round-button a {
    color: white;
}

.round-button:hover {
    background-color: rgba(0, 132, 255, 0.787);
}

.menu-button {
    /*min-width: 120px;*/
    height: 32px;
    background-color: rgba(38, 0, 255);
    color: #fff;
    padding: 5px 18px 5px 18px;
    font-size: 15px;
    text-transform: uppercase;
    transition: all 0.3s ease-out;
    border: none;
    border-radius: 0px;
}

.menu-button:hover {
    color: #fff;
    border-bottom: 5px solid crimson;
}

.menu-button a {
    color: white;
}

.menu-content {
    display: none;
    position: absolute;
    background-color: rgba(38, 0, 255);
    min-width: 120px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1;
    text-transform: none;
}

.menu-content a {
    color: #666;
    padding: 12px 16px;
    text-decoration: none;
    transition: all 0.3s ease-out;
    display: block;
}

.menu-content a:hover {
    color: white;
    background-color: rgba(0, 132, 255, 0.787);
    border-left: 5px solid crimson;
}

.menu:hover .menu-content {
    display: block;
}

.menu:hover .menu-button {
    background-color: rgba(0, 132, 255);
}

footer {
    color: #888;
    text-align: center;
    margin: 20px auto 20px;
}

h2 {
    margin-bottom: 5px;
}

h3 {
    text-transform: capitalize;
    margin-bottom: 8px;
}

.content {
    height: 80%;
    margin-left: 20px;
    border: 0px solid limegreen;
}

.content .title {
    max-width: fit-content;
    padding: 10px 25px 10px 25px;
    background-color: rgb(1, 48, 134);
    border: 1px solid white;
    border-radius: 20px;
}

.content h2 {
    color: white;
}

.content p {
    padding: 10px 10px 10px 10px;
    text-align: center;
}

.errorpage {
    width: 100%;
    margin: 0 auto;
    padding: 10px 20px 10px 20px;
    text-align: center;
    font-weight: bold;
    border: 5px solid crimson;
}


/* Transaction */

#transactions {
    position: relative;
    width: inherit;
    max-height: 82%;
    padding-bottom: 10px;
    font-family: Arial, Helvetica, sans-serif;
    text-align: right;
    border: 0px solid #444;
    border-radius: 20px;
}

#transactions-table-head {
    /*  overflow-y: auto; */
    width: inherit;
    margin-top: 10px;
    /* top: -5px; */
    border: 0px solid #444;
}

#transactions-table-head table {
    width: 100%;
    padding-bottom: 0px;
    color: white;
    table-layout: fixed;
    background-color: rgb(1, 48, 134);
    border: 0px solid red;
    border-spacing: 0;
}

#transactions-table-head table th {
    /* padding: 10px 10px 10px 10px; */
    padding-top: 10px;
    padding-bottom: 10px;
    text-align: center;
    text-transform: uppercase;
    border: 0px solid rgb(1, 48, 134);
}

#transactions-table-head table th.id {
    width: 90px;
    text-align: center;
}

#transactions-table-head table th.date {
    width: 110px;
    text-align: center;
    border: 0px solid red;
}

#transactions-table-head table th.description {
    padding-left: 5px;
    text-align: left;
    border: 0px solid red;
}

#transactions-table-head table th.revenue {
    width: 120px;
    padding-right: 10px;
    text-align: right;
    border: 0px solid red;
}

#transactions-table-head table th.expense {
    width: 120px;
    padding-right: 10px;
    text-align: right;
}

#transactions-table-body {
    max-height: inherit;
    width: 100%;
    overflow-y: auto;
    border: 0px solid #333;
}

#transactions-table-body table {
    width: 100%;
    color: #fff;
    table-layout: fixed;
    background-color: hsl(195, 69%, 35%);
    border: 0px solid red;
    border-spacing: 0;
}

#transactions-table-body table.even {
    border-collapse: collapse;
}

#transactions-table-body table.even tr:nth-child(2n+2) {
    background-color: hsl(195, 100%, 25%);
}

#transactions-table-body table td {
    height: 22px;
    padding: 2px 10px 1px 10px;
    border-spacing: 0;
    /* text-align: center; */
}

#transactions-table-body table td.id {
    width: 70px;
    text-align: center;
}

#transactions-table-body table td.date {
    width: 100px;
    text-align: center;
    border: 0px solid red;
}

#transactions-table-body table td.revenue {
    width: 100px;
    text-align: right;
    border: 0px solid red;
}

#transactions-table-body table td.expense {
    width: 100px;
    text-align: right;
    border: 0px solid red;
}

#transactions-table-body table td.description {
    text-align: left;
    text-transform: capitalize;
}

#transactions-table-body table tr.select-row:hover {
    color: white;
    transition: all 0.3s ease-out;
    background-color: rgb(104, 104, 1);
}

.transaction-data-area {
    width: inherit;
    /* height: 50%; */
    padding: 1px 1px 1px 1px;
    border: 0px solid #333;
}

.transaction-entry-area {
    width: inherit;
    height: 20%;
    padding: 10px 10px 10px 10px;
    border: 0px solid #333;
}

.transaction-entry-area table {
    width: 100%;
    height: 100px;
    padding: 10px 10px 10px 10px;
    text-align: left;
    font-size: 1em;
    border: 0px solid #333;
}

.transaction-entry-area td {
    padding: 0 10px 0 10px;
    border: 0px solid #333;
}

.transaction-entry-area td label {
    padding: 0 0 0 5px;
}

.transaction-entry-area td input {
    width: 100%;
    height: 40px;
    padding: 0 10px 0 10px;
    color: white;
    background-color: #333;
    border: 1px solid #333;
}

.transaction-entry-area td select {
    width: 100%;
    height: 40px;
    padding: 0 10px 0 10px;
    color: white;
    background-color: #333;
    border: 1px solid #333;
}

.transaction-entry-area td.entry-date {
    width: 120px;
    text-align: left;
}

.transaction-entry-area td.entry-category {
    width: 120px;
    text-align: left;
}

.transaction-entry-area td.entry-type {
    width: 100px;
    text-align: left;
}

.transaction-entry-area td.entry-description {
    text-align: left;
}

.transaction-entry-area td.entry-amount {
    width: 120px;
}

.transaction-entry-area td.entry-amount input {
    text-align: right;
}

.transaction-entry-area td.entry-button {
    width: 50px;
    height: 50px;
    text-align: center;
    border: 0px solid #333;
}

.transaction-entry-area button {
    width: 80px;
    height: 80px;
    color: #999;
    font-size: 1em;
    font-weight: bolder;
    transition: all 0.3s ease-out;
    border: 5px solid rgba(2, 5, 209);
    border-radius: 50%;
    background-color: rgba(2, 5, 209);
}

.transaction-entry-area button:disabled {
    color: #333;
    background-color: #555;
    border-color: #555;
}

.transaction-entry-area button:disabled:hover {
    color: #333;
    border: none;
}

.transaction-entry-area button:active {
    color: white;
    background-color: rgba(0, 132, 255);
}

.transaction-entry-area button:hover {
    color: white;
    border: 5px solid rgba(0, 132, 255);
}

.transaction-entry-area p {
    width: inherit;
    padding: 10px 20px 10px 20px;
    font-weight: bolder;
    background: rgb(1, 48, 134);
}

.page-index-area {
    margin-top: -30px;
    text-align: right;
    border: 0px solid #333;
}

.page-index-area select {
    width: 70px;
    padding: 5px 5px 5px 10px;
    text-align: right;
    border: none;
}

#selectedYear {
    width: 100px;
    font-size: 15px;
    padding: 5px 15px 5px 15px;
}

#selectedMonth {
    font-size: 15px;
    padding: 5px 15px 5px 15x;
}

.view-selection {
    margin-top: -30px;
}

.view-selection label {
    padding-left: 20px;
}

.view-selection a.download-button {
    padding: 5px 20px 5px 20px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease-out;
    background-color: rgba(38, 0, 255);
    border-radius: 10px;
}

.download-menu-overlay {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: (0, 0, 0, 0.7);
    transition: opacity 500ms;
    visibility: hidden;
    opacity: 0;
}

.download-menu-overlay:target {
    visibility: visible;
    opacity: 1;
}

.download-menu-popup {
    width: 200px;
    position: relative;
    margin: 70px auto;
    padding: 20px;
    transition: all 5s ease-in-out;
    background-color: #333;
    border-radius: 15px;
}

.download-menu-popup h3 {
    padding-bottom: 10px;
}

.download-menu-popup .close-menu {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 0px 3px 0px 3px;
    transition: all 100ms;
    border: 1px solid crimson;
    border-radius: 50%;
}

.download-menu-popup .close-menu:hover {
    color: crimson;
}

.download-menu-content a {
    padding: 5px 15px 5px 15px;
    color: white;
    transition: all 0.3s ease-out;
    background-color: rgba(38, 0, 255);
}

.download-menu-content a:hover {
    background-color: rgba(0, 132, 255, 0.787);
}

.download-menu-content button {
    padding: 5px 15px 5px 15px;
    color: white;
    transition: all 0.3s ease-out;
    background-color: rgba(38, 0, 255);
    border: none;
    border-radius: 25px;
}

.download-menu-content button:hover {
    background-color: rgba(0, 132, 255, 0.787);
}

.view-selection a.download-button:hover {
    background-color: rgba(0, 132, 255, 0.787);
}

.transaction-entry-area input[type='radio'] {
    width: 20px;
    height: 20px;
    border: 0;
}

input::-webkit-inner-spin-button,
input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.login-fieldset {
    width: 350px;
    margin: 0 auto;
    padding: 20px 20px 20px 20px;
    color: #fff;
    background-color: #333;
    border: 2px solid limegreen;
    border-radius: 25px;
}

.login-fieldset legend {
    padding: 5px 20px 5px 20px;
    font-size: larger;
    font-weight: bold;
    background-color: rgb(0, 56, 23);
    border: 2px solid limegreen;
    border-radius: 25px;
}

.login-fieldset table {
    margin: 0 auto;
    padding: 5px 5px 5px 5px;
    border: 0px solid #444;
}

.login-fieldset table td {
    padding: 5px 5px 5px 5px;
}

.login-fieldset table td.login-username {
    color: #fff;
    text-align: right;
}

.login-fieldset table td.login-password {
    color: #fff;
    text-align: right;
}

.login-fieldset table td input {
    height: 30px;
    color: #fff;
    font-size: 15px;
    background-color: #333;
    border-top: none;
    border-right: none;
    border-left: 0px solid #666;
    border-bottom: 1px solid #666;
}

.login-fieldset table td input:focus {
    outline: 1px double green;
    border: 0px solid green;
}

.login-fieldset table td button {
    padding: 10px 20px 10px 20px;
    font-size: 15px;
    text-transform: uppercase;
    transition: all 0.3s ease-in;
    color: #666;
    background-color: #444;
    border: 1px solid #555;
    border-radius: 25px;
}

.login-fieldset table td button:hover {
    color: #fff;
    background-color: rgb(0, 173, 145);
}

.login-fieldset table td.login-button {
    padding: 10px;
    text-align: right;
}

.login-area {
    margin: 0 auto;
    width: 500px;
    text-align: center;
}

.login-area h2 {
    padding-bottom: 25px;
    color: #fff;
}

.profile-content {
    height: 500px;
    padding: 20px 20px 20px 20px;
    color: white;
    /* background-color: #333; */
    border: 0px solid rgba(38, 0, 255);
}

.profile-content fieldset {
    padding: 10px;
    background-color: rgb(31, 31, 31);
    border-top: 1px solid rgb(1, 48, 134);
    border-bottom: 1px solid rgb(1, 48, 134);
    border-left: none;
    border-right: none;
}

.profile-content fieldset legend {
    padding: 5px 20px 5px 20px;
    font-weight: bolder;
    font-stretch: extra-expanded;
    text-transform: uppercase;
    text-align: right;
    background-color: rgb(1, 48, 134);
    border-radius: 10px;
}

.profile-content fieldset.user-profile {
    width: 80%;
    margin: 0 auto;
    padding: 10px 20px 20px 20px;
    border-radius: 10px;
}

.profile-content fieldset.user-info {
    width: 80%;
    margin: 0 auto;
    margin-top: 15px;
    padding: 10px 20px 20px 20px;
    border-radius: 10px;
}

.profile-content fieldset.user-field {
    width: 200px;
    height: 30px;
    margin-right: 5px;
    margin-bottom: 8px;
    position: relative;
    float: left;
    padding-left: 10px;
    padding-right: 10px;
    text-align: left;
    text-transform: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: clip;
    color: white;
    background-color: #333;
    border: 1px solid green;
}

.profile-content fieldset.user-field legend {
    padding: 0px 10px 0 10px;
    font-size: 12px;
    font-weight: normal;
    font-stretch: expanded;
    text-align: left;
    text-transform: uppercase;
    color: yellow;
    background-color: rgba(0, 0, 0, 0);
    background-color: rgb(36, 58, 0);
    border-right: 1px solid green;
    border-left: 1px solid green;
    border-radius: 0%;
}

.profile-content fieldset.user-field label {
    white-space: nowrap;
    width: 200px;
    overflow: hidden;
    display: inline-block;
    /*  width: fixed; */
    padding-left: 10px;
    text-overflow: clip;
    border: 0px solid crimson;
}

.profile-content .user-profile-group {
    width: 260px;
    float: left;
    border: 0px solid green;
}

.user-accounts {
    color: #fff;
    border: 0px solid crimson;
}

.user-accounts table {
    color: white;
    border-collapse: collapse;
}

.user-accounts thead tr th {
    background-color: rgba(0, 136, 248, 0.63);
    border: 0px solid crimson;
}

.user-accounts th {
    padding: 10px 15px 10px 15px;
    font-size: 1em;
    text-transform: none;
    text-align: center;
}

.user-accounts tbody {
    background-color: #333;
    border: 0px solid crimson;
}

.user-accounts tr.select-row:hover {
    cursor: pointer;
    color: white;
    transition: all 0.3s ease-out;
    background-color: rgb(104, 104, 1);
}

.user-accounts tr.select-row:focus {
    background-color: rgb(104, 104, 1);
}

.user-accounts td {
    cursor: pointer;
    padding: 5px 10px 5px 10px;
    text-overflow: ellipsis;
}

.user-accounts td.last-row {
    background-color: rgba(0, 136, 248, 0.63);
}

.menu-addsubedit-area {
    color: #999;
    border: none;
}

.menu-addsubedit-area button {
    padding: 5px;
    color: #999;
    font-size: 20px;
    text-transform: none;
    background-color: rgba(38, 0, 255);
    border: none;
}

.menu-addsubedit-area button:disabled {
    background-color: #333;
}

.menu-addsubedit-area button:hover:enabled {
    color: #fff;
    background-color: rgba(0, 132, 255, 0.787);
}

#overlay-box {
    width: 100%;
    height: 100%;
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    background-color: rgb(34, 34, 34, 0.5);
}

.add-user-box {
    /* width: 420px; */
    /* height: 300px; */
    padding: 30px 10px 10px 10px;
    z-index: 100;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: block;
    text-align: center;
    background-color: rgba(0, 0, 0, 1);
    border: 3px solid green;
    border-radius: 25px;
    transition: all 3s ease-in;
}

.add-user-box table {
    padding: 15px 10px 15px 10px;
    margin: 0 auto;
    font-size: 18px;
}

.add-user-box td input {
    padding: 5px 10px 5px 10px;
    font-size: 20px;
    color: #fff;
    background-color: #333;
    border: none;
}

.add-user-box td input.checkedbox {
    width: 25px;
    height: 25px;
    color: #666;
    background-color: #333;
}

.box-buttons {
    width: 95%;
    position: absolute;
    bottom: -20px;
    border: 0px solid crimson;
}

.box-buttons button {
    width: 60px;
    padding: 10px;
    margin-left: 10px;
    font-size: 20px;
    font-weight: bolder;
    text-align: center;
    color: #444;
    background-color: green;
    border: 2px solid green;
    border-radius: 10px;
}

.add-user-box button:hover {
    color: #fff;
    background-color: limegreen;
    border-color: #fff;
}

.close-box {
    position: absolute;
    top: -12px;
    right: -12px;
    padding: 3px 5px 3px 5px;
    font-size: 25px;
    text-align: center;
    color: #999;
    background-color: rgba(0, 0, 0, 1);
    border: 2px solid crimson;
    border-radius: 50%;
}

.close-box a {
    color: #999;
}

.close-box a:hover {
    color: #fff;
}

#delete-overlay-box {
    width: 100%;
    height: 100%;
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    background-color: rgb(34, 34, 34, 0.5);
}

.delete-user-box {
    /* width: 420px; */
    /* height: 300px; */
    padding: 30px 20px 30px 20px;
    z-index: 100;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: block;
    text-align: center;
    background-color: rgba(0, 0, 0, 1);
    border: 3px solid green;
    border-radius: 25px;
    transition: all 3s ease-in;
}

.button-area {
    width: inherit;
    padding: 10px 20px 0px 20px;
    background-color: none;
    border: 1px sold crimson;
}

.button-area button {
    padding: 10px 20px 10px 20px;
    font-size: 20px;
    font-weight: bolder;
    color: #555;
    background-color: green;
    border: none;
    border-radius: 25px;
}

.button-area button:hover {
    color: #fff;
    background-color: limegreen;
}

#showusername {
    color: yellow;
    font-size: 15px;
    font-weight: bolder;
}