@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=Lexend:wght@100..900&display=swap');


:root{
    --primary: #4b05a6;
}

* {
    margin: 0;
    padding: 0;
    border: 0;
    box-sizing: border-box;
    font-family: 'DM Sans',Arial,Helvetica,sans-serif;
    transition: all 0.2s ease;
}

body,html{
    height: 100%;
    width: 100%;
}
body, main, nav, nav > ul{
    display: flex;
}
body{
    flex-direction: column;
    align-items: center;
}
a{
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

img, button, a, summary, form, form *{
    user-select: none;
}
main{
    gap: 50px;
}
nav{
    height: 50px;
}

nav > ul{
    height: 100%;
    list-style: none;
}

nav ul a{
    padding: 10px;
}

aside section{
    display: flex;
    flex-direction: column;
    padding: 20px;
    background-color: white;
    gap: 15px;
}

aside section .options{
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 16px;
}

aside section .options a{
    position: relative;
    font-weight: 500;
    padding-left: 17px;
}

aside section .options a::after{
    display: flex;
    justify-content: center;
    align-items: center;
    content: url('/assets/images/greater.svg');
    height: 16px;
    width: 16px;
    position: absolute;
    font-weight: 700;
    left: 0;
    top: 50%;
    translate: 0 -50%;
}


aside section h4.heading{
    font-weight: 700;
    font-size: 18px;
}
aside{
    display: flex;
    flex-direction: column;
    gap: 10px;
    background-color: #f0f0f0;
    border: 1px solid #d6d6d6;
    border-radius: 10px;
    padding: 20px;
}

.page-wrapper {
    width: 500px;
}


/* Different account styles */

.account {
    background: wheat;
    margin-top: 10px;
}

.account .top{
    display: flex;
    gap: 5px;
}
.account .middle{
    margin-top: 20px;
    font-weight: 700;
}

.account .bottom{
    display: flex;
    gap: 5px;
}

.account .bottom button a{
    font-weight: 600;
    color: black;
}
button:hover{
    background-color: #dadada;
}

.account .balance{
    font-size: 2rem;
    font-weight: 600;
}

/* End of Diff account styles */

details, details summary, #spinner{
    transition: none;
}

.transfer-funds[open], .account{
    border-radius: 25px;
    padding: 15px 20px;
}

.transfer-funds{
    border-radius: 25px;
    background-color: #c5ff96;
}
.transfer-funds summary {
    font-weight: 700;
    font-size: 18px;
}
button:hover, summary:hover{
    cursor: pointer;
}

details:not([open]) summary{
    padding: 15px 20px;
}

button{
    padding: 5px 15px;
    border-radius: 50px;
}

.qr_code:has(img) {
    transition: none;
    background: #b3c1f5;
    width: fit-content;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius:10px;
    overflow:hidden;
    border: 5px solid #111;
    margin-top: 5px;
    position: relative;
}

.qr_code:has(img) .wrapper{
    background: #333;
    border-top: 5px solid #111;
    padding: 5px;
}

.qr_code:has(img) .wrapper, .qr_code:has(img) .wrapper p{
    width: 100%;
    padding-bottom:5px;
}

.qr_code:has(img) .wrapper p {
    text-align: left;
    font-weight: 600;
    letter-spacing: 2.5px;
    margin-left: 5px;
    color: white;
}

.qr_code:has(img) button.copy {
    position: absolute !important;
    right: 5px;
    bottom: 5px;
}

.page-wrapper > form{
    background-color: #4b05a6;
    padding: 25px 50px;
    border-radius: 50px;
}

form .heading{
    display: flex;
    justify-content: center;
    border-bottom: 3px solid white;
    margin-bottom: 20px;
    h2{
        font-size: 28px;
        font-weight: 800    ;
        color: white;
    }
}


.page-wrapper > form .input-wrapper{
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
        input{
            padding: 5px 15px;
            border-radius: 50px;
            background-color: white;
        }
        label{
            color: white;
            padding: 5px;
            font-weight: 700;
        }
}

.page-wrapper > form button[type="submit"] {
    display: flex;
    justify-self: right;
}


button#toggle-theme{
    position: absolute;
    right: 5px;
    top: 5px;
    padding: 5px 10px !important;
    border-radius: 50% !important;
    height: 30px;
    width: 30px;
    text-align: center;
    margin-top: 5px;
}