*, *::before, *::after {
  box-sizing: border-box;
}

*:not(dialog) {
  margin: 0;
}

body {
    font-family: "Lora", serif;
    font-optical-sizing: auto;
    font-size: 1rem;
}

.global_header{
    display: flex;
    flex-direction: column;
}

.global_header h1{
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    font-size: 1rem;
    padding-left: 0.5rem;
}

.global_header hr {
    width: 100vw;
    border: none;
    height: 1px;
    background-color: black;
}

.global_header ul {
    list-style: none;
    padding-left: 0;
    padding-top: 0.25rem;
    padding-bottom: 0.5rem;
}

.global_header a{
    font-weight: 800;
    font-size: 1rem;
    color: blue;
    padding-left: 0.5rem;
}

.body_content{
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}

.body_content h1 {
    padding-top: 5rem;
    width: 50vw;
    font-size: 2rem;
    font-weight: 500;
}

.body_content p {
    margin-top: 5rem;
    font-weight: 500;
    width: 50vw;
}

.intro a {
    color: blue;
    font-weight: 800;
}

.password_login {
    display: flex;
    flex-direction: column;
}

.password_login h1 {
    font-size: 2rem;
    font-weight: 500;
}

.password_login p {
    margin-top: 5rem;
    font-weight: 500;
}

.password_container {
    width: 100%;
    margin-top: 1.5rem;
    border: 2px solid gray;
    border-radius: 8px;
}

.password_container input {
    width: 100%;
    height: 100%;
    background: none;
    border: none;
}

.password_container input[type="password"] {
    box-sizing: border-box;
    font-family: inherit;
    font-size: 1rem;
    padding: 6px;
    color: gray;
}

.password_container input[type="password"]:focus {
    border-color: black;
    border-radius: 6px;
}

.password_button {
    height: 2rem;
    margin-top: 0.5rem;
    width: 100%;
    font-family: inherit;
    font-weight: 1000;
    font-size: 1rem;
    color: blue;
    border-radius: 12px;
    background-color: white;
    box-shadow: none;
    text-shadow: none;
    border: 2px solid blue;
}

.password_button:hover {
    color: white;
    background-color: blue;
}

.password_login form{
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.checkbook_header{
    display: flex;
    align-items: center;
    height: 3.5rem;
}

.checkbook_header h1{
    color: blue;
    font-size: 1rem;
    padding-left: 0.5rem;
}

.checkbook_header_decoration {
    color: green;
}

.checkbook_menu_options {
    display: flex;
    padding: 15px;
    margin: 10px;
    border-radius: 12px;
    background-color: rgb(243, 240, 240);
}
.checkbook_menu_options p + p {
    margin-left: 15px;
}

.checkbook_menu_options p:hover {
    color: grey;
    cursor: pointer;
}

.checkbook_menu_options p {
    user-select: none;
    -webkit-user-select: none;
}

.checkbook_window {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.checkbook_home {
    display: flex;
    flex-direction: column;
    width: calc(100% - 40px);
    margin: 0 20px;
}

.checkbook_home h1 {
    color: green;
    font-style: inherit;
    font-size: 1.15rem;
    margin-top: 1rem;
}

.transactions_table {
    width: 100%;
    margin: 1rem;
    border: 1px solid black;
    table-layout: fixed;
    border-collapse: collapse;
    margin: 20px 0;
}

.transactions_table th, td {
    text-align: left;
    border-bottom: 1px solid black;
}

.transactions_table tr:nth-child(even) {
    background-color: lightgrey;
}

tr:hover {
    background-color: #f1f1f1;
}

.spacer {
    margin-left: auto;
}

.checkbook_input {
    display: none;
    height: 100vh;
    width: 35rem;
    background-color: white;
    position: fixed;
    margin-top: 56px;
    top: 0;
    right: 0;
    padding-top: 25px;
    padding-bottom: 25px;
    padding-left: 10px;
    padding-right: 10px;
    border: 1px solid black;
}

.cb_input_1 {
    display: flex;
}

.checkbook_input h1 {
    font-size: inherit;
    margin-bottom: 1rem;
}

.cb_input_3 {
    margin-top: 1rem;
    display: flex;
}

.cb_input_3 p {
    margin-left: 1rem;
    margin-right: 1rem;
}

.cb_input_4 {
    margin-top: 15px;
}

.cb_input_4 hr{
    margin-top: 25px;
    margin-bottom: 25px;
}

.cb_input_5 {
    display: flex;
}

.cb_input_6 table{
    margin-top: 15px;
    margin-bottom: 15px;
    width: 100%;
}

.add_row {
    background-color: green;
    color: white;
}

.currently_empty {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 45rem;
    height: 20rem;
    background: rgb(249, 246, 246);
    border: 1px solid black;
    border-radius: 12px;
}

.currently_empty h1 {
    margin-bottom: 0.5rem;
}

.checkbook_funds {
    display: none;
    flex-direction: column;
    padding-left: 10px;
    height: 100vh;
    width: 35rem;
    background-color: white;
    position: fixed;
    margin-top: 56px;
    top: 0;
    right: 0;
    padding-top: 25px;
    padding-bottom: 25px;
    padding-right: 10px;
    border: 1px solid black;  
}

.checkbook_funds h1 {
    font-size: 1.5rem;
    margin-bottom: .2rem;
}

.checkbook_funds h2 {
    margin-top: 2rem;
    margin-left: 2rem;
    font-size: 1rem;
    margin-bottom: 2rem;
}

.checkbook_funds button {
    width: 8rem;
    background-color: rgb(242, 242, 242);
    border: 1px solid black;
    border-radius: 8px;
    font-size: .75rem;
}

.checkbook_funds button:hover {
    cursor: pointer;
    background-color: grey;
    color: white;
}

.account {
    display: flex;
    align-items: center;
}

.account p {
    margin-left: .5rem;
}

.new_account {
    display: none;
    margin-top: 2rem;
    padding: 1rem;
    border: 1px solid black;
    border-radius: 8px;
    flex-direction: column;
    width: 32rem;
    background-color: rgb(242, 242, 242);
}

.new_account h1 {
    font-size: 1.5rem;
}

.new_account label {
    margin-top: 1rem;
}

.save_button {
    border: none !important;
    margin-top: 1rem;
    background: green !important;
    color: white;
}