html {
    scroll-behavior: initial;
}

body {
    background: linear-gradient(135deg, #6b38a9 25%, transparent 25%) -32px 0, linear-gradient(225deg, #6b38a9 25%, transparent 25%) -32px 0, linear-gradient(315deg, #6b38a9 25%, transparent 25%), linear-gradient(45deg, #6b38a9 25%, transparent 25%);
    background-size: 64px 64px;
    background-color: #4f1992;

    overflow: hidden;


    font-family: "Wellfleet", serif;
    font-weight: 400;
    font-style: normaladd_balance;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

* {
    font-family: "Wellfleet", serif;
    font-weight: 400;
    font-style: normal;
    box-sizing: border-box;
}

#signout {
    background-color: #e95b3e;
    border-radius: 50ch;
    color: antiquewhite;
    margin-left: auto;
    padding: 10px;
    font-size: 15px;
    border: #ffffff00 solid 3px;
    transition: all .2s ease-in;
}

#signout:hover {
    border: #ffffff solid 3px;
}

#delete {
    background-color: #7b7776;
    border-radius: 50ch;
    color: antiquewhite;
    margin-left: auto;
    padding: 10px;
    font-size: 15px;
    border: #ffffff00 solid 3px;
    transition: all .2s ease-in;
}

#delete:hover {
    border: #424242 solid 3px;
}

#confirm_delete {
    background-color: #7b7776;
    border-radius: 50ch;
    color: antiquewhite;
    margin-left: auto;
    padding: 10px;
    font-size: 15px;
    border: #ffffff00 solid 3px;
    transition: all .2s ease-in;
}

#confirm_delete:hover {
    border: #424242 solid 3px;
}

#cancel_delete {
    background-color: #d3745c;
    border-radius: 50ch;
    color: antiquewhite;
    margin-left: auto;
    padding: 10px;
    font-size: 15px;
    border: #ffffff00 solid 3px;
    transition: all .2s ease-in;
}

#cancel_delete:hover {
    border: #872121 solid 3px;
}

.confirm_delete {
    width: 100%;
    display: flex;
    flex-direction: row;
}

.confirm_delete input {
    border-radius: 50ch;
    padding: 5px;
    margin: 5px;
}

.confirm_delete button {
    margin-left: auto;
    right: 0px;
}

.grid {
    display: flex;
    flex-direction: column;
}

.row {
    flex: 1;
    display: flex;
    flex-direction: row;
}

.column {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.header {
    background-color: #fee376;
    border-radius: 20px;
    margin: 10px;
}

.main {
    display: flex;
    flex-direction: column;
    background-color: #f8b800;
    width: min(95vw, 400px);
    border-radius: 20px;
    text-align: center;
    padding: 20px;
    margin: 20px;
    box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.3);
}

.title_container {
    flex: 1;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    container-type: inline-size;
    min-height: 120px;
    border-radius: 10px;
    margin-bottom: 10px;
}

.title_container h2 {
    padding: 0px;
    margin: 5px 0 0 0;
    width: 100%;
    font-size: clamp(0.8rem, 6cqw, 1.5rem);
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.3);
}

.title_container h1 {
    color: #6b38a9;
    font-weight: 800;
    padding: 0px;
    margin: 0px;
    width: 100%;
    font-size: clamp(1.5rem, 12cqw, 3.5rem);
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.3);
}

#back,
#next {
    background-color: transparent;
    border-style: hidden;
    text-decoration: underline;
    text-decoration-color: transparent;
    font-weight: 500;
    font-size: larger;
    transition: all .1s ease-in;
}

#back:hover,
#next:hover {
    text-decoration-color: black;
    transition: all .1s ease-in;
}

.sign_in {
    flex: 2;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form_box {
    display: flex;
    justify-content: center;
    align-items: stretch;
    flex-direction: column;
    padding: 0 20px;
}

.form_box h3 {
    width: 100%;
    text-align: left;
    margin: 0 0 8px 0;
    font-size: clamp(1rem, 4vw, 1.2rem);
}

#error {
    color: #af0000;
    min-height: 20px;
}

#add_balance {
    border-radius: 50ch;
    background-color: green;
    color: white;
    margin-left: auto;
    margin-right: auto;
    padding: 5px;
    transition: all 0.2s ease-in-out;
}

#add_balance:hover{
    border-color: white;
}
#confirm_balance {
    border-radius: 50ch;
    background-color: rgb(204, 104, 16);
    color: white;
    margin-left: auto;
    margin-right: auto;
    padding: 5px;
    transition: all 0.2s ease-in-out;
}

#confirm_balance:hover{
    border-color: white;
}

.spending {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin: 0px;
}

.spendingPeriod {
    flex: 1;
    margin: 5px;
}

.spendingPeriod input {
    width: 100%;
    margin: 0px;
}

.spendingPeriod p {
    margin: 0px;
}

.main input {
    font-size: clamp(1rem, 4vw, 1.2rem);
    width: 100%;
    padding: 12px 16px;
    border-radius: 25px;
    border: 2px solid #ccc;
    outline: none;
    transition: border-color 200ms ease-in;
}

.main input:focus {
    border-color: #637df3;
}

.button_box {
    display: flex;
    width: 100%;
    justify-content: space-between;
    gap: 10px;
}

.button_box button {
    font-size: clamp(0.9rem, 3.5vw, 1.1rem);
    padding: 12px 16px;
    border-radius: 25px;
    flex: 1;
    outline-style: outset;
    outline-color: black;
    outline-width: 2px;
    border-style: none;
    cursor: pointer;
    transition: background-color 200ms ease-in, outline-width 100ms ease-in;
}

.button_box button:hover {
    background-color: bisque;
    outline-width: 4px;
}

.button_box button:active {
    transform: translateY(1px);
}

.setup button {
    padding: 12px 16px;
    border-radius: 25px;
    flex: 1;
    outline-style: outset;
    outline-color: black;
    outline-width: 2px;
    border-style: none;
    cursor: pointer;
    transition: background-color 80ms ease-in, outline-width 100ms ease-in;
    margin: 5px;
}

.setup button:hover {
    background-color: darkgray;
    transition: background-color 80ms ease-in, outline-width 100ms ease-in;
}

/* Mobile-specific adjustments */
@media (max-width: 480px) {
    .main {
        width: 95vw;
        margin: 10px;
        padding: 15px;
    }

    .form_box {
        padding: 0 10px;
    }

    .title_container {
        min-height: 100px;
    }
}

#super {
    position: fixed;
    padding: 0;
    margin: 0;

    top: 0;
    left: 0%;

    width: 500%;
    height: 100%;

    display: flex;
}

.header {
    position: fixed;
    top: 2.5%;
    left: 50%;
    display: flex;
    flex-direction: row;
    transform: translate(-50%, -50%);
    width: 100%;
    text-align: center;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.3);


    flex: 1;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    container-type: inline-size;
    min-height: 120px;
    background-color: transparent;
    color: #f8b800;
    font-weight: 800;
}

.page {
    width: 20%;
    max-width: 600px;
    margin: 0 auto;
    max-height: calc(90% - 15cqh);

    margin-top: 15cqh;
    display: flex;
    flex-direction: column;
}

.info {
    background-color: #f8b800;
    border-radius: 10px;
    padding: 10px;
    margin: 10px;
    box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.3);
    max-height: 100%;
}

/* Scrollbar for Webkit browsers (Chrome, Safari) */
.info::-webkit-scrollbar {
    width: 10px;
    /* width of the vertical scrollbar */
}

.info::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
}

.info::-webkit-scrollbar-thumb {
    background-color: #e0c9b4;
    /* matches your theme */
    border-radius: 10px;
    border: 2px solid rgba(0, 0, 0, 0.05);
    /* gives padding effect */
}

.info::-webkit-scrollbar-thumb:hover {
    background-color: #e0c9b4;
}

#feedback {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 10px;
    box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.3);
    margin: 0px;
}

#feedback_submit {
    background-color: #fee376;
    border: #e0a500 solid 3px;
    border-radius: 50ch;
    padding: 10px;
    transition: all 0.2s ease-in-out;
}

#feedback_submit:hover {
    border: #000000 solid 3px;
}

.feedback_submit_parent {
    text-align: right;
    padding-top: 10px;
}

.flow {
    display: flex;
    flex-direction: column;
    background-color: #e0a500;
    border-radius: 5px;
    padding: 5px;
    margin-bottom: 5px;
}

.flow_row {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin-bottom: 2px;
}

.flow input:disabled {
    background-color: #00000000;
    border-color: #00000000;
    color: #000000;
}

.flow select:disabled {
    appearance: none;
    /* Removes native styling (including arrow) */
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: #00000000;
    border-color: #00000000;
    color: #000000;
}

.flow_row div[contenteditable="true"] {
    background-color: white;
    border-radius: 4px;
    border: 1px solid black;
}


#balance[contenteditable="true"] {
    background-color: white;
    border-radius: 5px;
}


.control {
    position: fixed;
    top: 10%;
    left: 50%;
    display: flex;
    flex-direction: row;
    transform: translate(-50%, -50%);

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.nav-btn {
    background: #ffffff;
    border: 2px solid #5A2D82;
    /* purple */
    color: #5A2D82;
    font-weight: bold;
    padding: 6px 14px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.nav-btn:hover {
    background: #5A2D82;
    color: white;
}

.dots {
    display: flex;
    gap: 10px;
}

.dots input {
    display: none;
}

.dots label {
    width: 14px;
    height: 14px;
    background: #ddd;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: background 0.2s;
}

.dots input:checked+label {
    background: #F5B700;
    /* yellow highlight */
    box-shadow: 0 0 0 2px #5A2D82 inset;
}