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

body {
    font-family: Inter, sans-serif;
    color: white;
    background: rgb(0, 0, 0);
    min-height: 100vh;
    background-attachment: fixed;
}

/* html {
    background: rgb(0, 0, 0);
} */



.hidden {
    display: none !important;
}

.bold {
    font-weight: bold;
}

.light {
    color: rgba(255, 255, 255, 0.5);
}

.margin-ins {
    margin-top: 8px;
    margin-bottom: 8px;
}

.left {
    text-align: start;
}

.center {
    text-align: center;
}

.right {
    text-align: end;
}

.large {
    font-size: 32px;
}



/* header */



header {
    position: sticky;
    top: 0;
    background: linear-gradient(rgba(0, 0, 0, 1) 0%, transparent 30%);
    backdrop-filter: blur(12px);
    z-index: 10;
    padding-top: 16px;
}

.header-fill {
    height: 16px;
    backdrop-filter: blur(12px);
}

.header-text {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.app-title {
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 4px;
}

header .logout-btn {
    margin-right: 24px;
}

.app-date {
    text-align: center;
    font-size: 12px;
    font-weight: lighter;
    margin: 4px;
    margin-bottom: 16px;
}

hr {
    transform: scaleY(0.2);
}

.navbar,
.cashflow-navbar {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 20px;
    height: 40px;
}

.cashflow-navbar {
    margin-top: 10px;
    margin-bottom: 0px;
}

.navbar button,
.cashflow-navbar button {
    background: none;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.5);
    border: none;
    box-shadow: none;
    border-radius: 25px;
    padding: 4px 12px;
}

button.selected {
    color: rgba(255, 255, 255, 1);
    background-color: rgba(255, 255, 255, 0.2);
}



/* main */



main {
    width: 100%;
}

    main.card {
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 20px;
        height: 120px;

        margin: 20px auto;
        width: 420px;
        max-width: 90%;
    }



.container {
    margin: 10px auto;
    width: 420px;
    padding: 12px;
    max-width: 90%;
}

hr.container {
    padding: 0px;
    opacity: inherit;
}



/* main general */



.available-value-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.available-display {
    display: flex;
    justify-content: space-between;
}

.available-daysleft {
    font-style: italic;
    padding: 4px;
}

table.recurring-costs {
    display: table;
    text-align: left;
    width: 100%;
    border-spacing: 0px 4px;
}

table.recurring-costs tr th,
table.recurring-costs tr td {
    text-align: center;
}

table.recurring-costs tr th:first-child,
table.recurring-costs tr td:first-child {
    text-align: start;
}

table.recurring-costs tr th:last-child,
table.recurring-costs tr td:last-child {
    text-align: end;
}

table.recurring-costs th {
    font-weight: normal;
}

table.recurring-costs td {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 4px;
}

.net-worth-display {
    display: flex;
    justify-content: space-between;
}

.saved-this-month {
    font-style: italic;
    padding: 4px;
}

/* main cashflow */



h2 {
    font-size: 16px;
    font-weight: normal;
}

.cat-card {
    margin: 20px auto;
}

.cat {
    font-weight: bold;
}

.cat-bar {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    height: 10px;
    margin-top: 8px;
    margin-bottom: 8px;
}

.cat-bar-fill {
    background: rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    height: 100%;
    width: 70%;
}

.cat-card-sb {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.cat-spent {
    font-weight: lighter;
}

.cat-budget {
    font-weight: lighter;
    color: rgba(255, 255, 255, 0.5);
}



/* footer */



footer .icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
}

.icon {
    transform: scale(1.2);
    color: white;
    border: none;
    background-color: transparent;
    border-radius: 50%;
    padding: 6px;
    padding-bottom: 2px;
    opacity: 0.8;
}

.icon:active {
    /* background-color: rgba(255, 255, 255, 0.2); */
    opacity: 1;
}



/* login */



.login-body {
    position: fixed;
    z-index: 11;
    top: 0;
    left: 0;
    background: linear-gradient(rgba(0, 0, 0, 1) 0%, transparent 20%, transparent 80%, rgba(0, 0, 0, 1) 100%);
    backdrop-filter: blur(24px);
    height: 100%;
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;

}

.login-form {
    border-radius: 36px;
    width: 320px;
    padding: 24px;
    max-width: 90%;
}

.login-form form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.login-form input {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: white;
    padding: 2px;
    font-size: 16px;
    width: 200px;
}

.login-form h1 {
    margin: 0;
}

.pls-login {
    margin: 12px;
}

html.login,
body.login {
    overflow: hidden;
    height: 100vh;
    position: fixed;
    width: 100%;
}

.login-form button {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: white;
    margin: 0px auto;
    font-size: 16px;
    padding: 2px;
    width: 200px;
}

.login-body.login-animation {
    animation: login .5s ease both;
}

.login-body.logout-animation {
    animation: login .5s ease both reverse;
}

@keyframes login {
    0% { 
        opacity: 1;
        backdrop-filter: blur(24px); 
    }
    100% {
        opacity: 0;
        backdrop-filter: blur(0px);
    }
}

.show-animation {
    animation: show .5s ease both;
}

@keyframes show {
    0% { 
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.shake {
    animation: shake .5s ease;
}

@keyframes shake {
  0% { transform: translateX(0); }
  20% { transform: translateX(-12px); }
  40% { transform: translateX(12px); }
  60% { transform: translateX(-5px); }
  80% { transform: translateX(5px); }
  100%  { transform: translateX(0); }
}
