:root{
    --backgroundcolor: #0d0d0f;
    --divcolor: #1c1c1f;
    --divider: #27272a;
    --maintext: #ffffff;
    --buttonColor: #ff0a0a;
    --subtext: #d4d4d8;
}

*{
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body{
    display: flex;
    gap: 1rem;
    justify-content: center;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    overflow: hidden;
    background-color: var(--backgroundcolor);
    color: var(--maintext);
    width: 100vw;
    padding: 2%;
    flex-direction: column;
    overflow-y: scroll;
    user-select: none;
    scroll-behavior: smooth;
}

.popupcontainer{
    position: fixed;
    height: 100dvh;
    width: 100dvw;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: none;
    backdrop-filter: blur(40px);
    visibility: visible;
    z-index: 10;
}

.exitbutton{
    font-size: 1rem;
    position: absolute;
    top: 0%;
    right: 0%;
    background-color: transparent;
    border: 0;
    margin: 0;
    padding: 0.1rem 1rem;
    color: var(--subtext);
    transition: 0.3s ease;
    cursor: pointer;
}

.exitbutton:hover{
    background-color: red;
}

small{
    margin: 0;
    padding: 0;
    color: red;
}

h2{
    margin: 0;
    text-align: center;
}

.popup{
    background-color: var(--divcolor);
    position: absolute;
    padding: 2%;
    display: flex;
    flex-direction: column;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--subtext);
    gap: 0.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.048);
    animation: pop 0.5s ease;
    width: 50vw;
}

@keyframes pop {
    0%{transform: scale(0.4) translate(0% 0%); top: 30%; left: 50%;}
    100%{transform: scale(1) translate(-50%, -50%); top: 50%; left: 50%}
}

.inputcontainer{
    height: fit-content;
    min-width: 10vw;
    max-width: 50vw;
    margin: 0;
    padding: 0;
    flex-direction: column;
    gap: 0.5rem;
    display: flex;
    justify-content: space-between;
    border-radius: 10px;
}

input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button{
    -webkit-appearance: none;
}

.input{
    background: none;
    border: 0;
    border-bottom: 1px solid var(--subtext);
    color: var(--subtext);
    width: 45vw;
}

.input:focus{
    outline: 0;
    border: 0;
    border-bottom: 1px solid var(--buttonColor);
    padding-left: 0.2rem;
    animation: inputcenter 1s ease forwards;
    margin: 0;
}

@keyframes inputcenter {
    0%{border-color: var(--subtext); transform: scale(0.95);}
    100%{border-color: var(--buttonColor); transform: scale(1);}
}

.input::placeholder{
    opacity: 0.2;
}
.btn{
    border: 0;
    padding: 0.3rem 1rem;
    border-radius: 5px;
    background-color: var(--backgroundcolor);
    color: var(--subtext);
    transition:0.5s ease; 
    cursor: pointer;
    align-content: left;
    font-size: 1rem;
}

.btn:hover{
    background-color: var(--buttonColor);
    transform: scale(0.9)
}

.btn:active{
    transform: scale(0.85);
}

.heading{
    display: flex;
    justify-content: space-between;
}

.headingname{
    display: flex;
    justify-content: flex-start;
    gap: 0.4rem;
    align-items: center;
}

.headingacctnum{
    display: flex;
    justify-content: center;
    align-items: end;
    color: var(--subtext);
}

.imgcontain img{
   border-radius: 50%;
   height: 5rem; 
   aspect-ratio: 1/1;
   box-shadow: 0 0 3px rgba(255, 255, 255, 0.158);
}

.divider{
    width: 100%;
    border-bottom: 1px solid var(--divider);
}

#acctbalance.blur{
    filter: blur(5px);
}

#showaccnum{
    cursor: pointer;
    height: 50px;
    width: 50px;
    display: flex;
}

#show{
    display: none;
}

#show.hide{
    display: block;
}

#hideacc.cover{
    display: none;
}

#acctbalancediv{
    display: flex;
    gap: 0.5rem;
    align-items: baseline; 
}

.acctdiv{
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
}

.transactionflex{
    display: flex;
    justify-content: space-evenly;
}

#depositdiv, #transferdiv, #withdrawdiv{
    position: relative;
    background-color:rgb(1, 1, 27);
    padding: 1.5%;
    height: 1rem;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.055);
    border-radius: 10px;
}

#depositdrop, .transferdrop, .withdrawdrop{
     cursor: pointer;
}

#depositdiv.divdropdown, #transferdiv.divdropdown, #withdrawdiv.divdropdown{
    padding: 3% 1% ; 
    height: fit-content;
    transition: all 0.5s ease;
}

.transactiondiv{
    margin-top: 1rem;
    background-color:rgb(1, 1, 27);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: fit-content;
    padding: 3%;
    box-sizing: border-box;
}

.transactiondiv input{
    width: 25vw;
}

.icons{
    position: absolute;
    padding-top: 0.5rem;
    top: 0;
    display: flex;
    justify-content: space-between;
    width: 25vw;
}

h4{
    margin-top: 0;
}
.history{
    background-color: rgb(1, 1, 27);
    padding: 3%;
    border-radius: 20px;
    gap: 1rem;
    display: flex;
    flex-direction: column;
    max-height: 80vh;
    overflow-y: auto;
    border: 0.2px solid var(--divider);
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.048); 
}

.history::-webkit-scrollbar{
    width: 0.5rem;
    height: 70vh;
    border-radius: 40px;
}


.history::-webkit-scrollbar-thumb{
    background: linear-gradient(360deg, rgba(220, 20, 60, 0.562), darkblue);
}

.history::-webkit-scrollbar-thumb:hover{
    background:linear-gradient(360deg, #ff3b5c, #0202cc)
}  


#showhistory{
    color: var(--subtext);
    height: 150px;
    width: 150px;
    margin-top: 3rem;
    transition: 0.3s ease;
}

#showhistory:hover{
    transition: 0.3s ease;
    color: var(--buttonColor);
}

.chevron{
    transform: rotate(180deg);
    color: var(--buttonColor);
}

.historyheading{
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.visible{
    visibility: hidden;
    display: none;
}

.historyrecords{
    border-radius: 10px;
    background-color: var(--divider);
    padding: 0.5rem;
}

.historybuttons{
    font-size: 2rem;
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.showhistory{
    transition: 0.5s ease;
    cursor: pointer;
}

.showhistory:active{
    transform: rotate(180deg);
}

.historyactive{
    transform: scaleZ(0.5);
    background-color: var(--buttonColor);
}

@media (max-width: 768px) {
    body{
        font-size: 16px;
    }

    input{
        width: fit-content;
    }

    .btn{
        padding: 0.1rem 0.5rem;
    }

    .popupcontainer{
        width: 100dvw;
        height: 100dvh;
        position: fixed;
    }

    .popup{
        padding: 2rem;
        width: max-content;
    }

    .heading{
        flex-direction: column;
    }

    .headingacctnum{
        font-size: 1rem;
    }

    .transactionflex{
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    #depositdiv, #transferdiv, #withdrawdiv{
        padding: 2rem;
        justify-content: space-between;
    }

    .transactiondiv{
        margin: 1rem;
        padding: 1rem;
        border-radius: 5px;
    }

}