﻿*, body, html {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100vw;
    height: 100vh;
    max-width: 100%;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 100;
}

h1 {
    margin-bottom: 10px; 
    font-size: 20px
}

.card-form-container {
    height: 60vh;
    padding: 1rem;
}


.btn-main {
    width: 15rem;
    height: 3rem;
    background-color: #333333;
    color: #ffffff;
    border: none;
    border-radius: 0;
    margin-top: 0.75rem;
    padding: 1rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

#submit-btn:hover:enabled {
    background-color: #555555;
}

#submit-btn:disabled {
    background-color: #d8d8d8;
    cursor: not-allowed;
}

label {
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: 600;
    display: block;
}

.input-field {
    padding-bottom: 1rem;
}

    .input-field input {
        font-size: 16px;
        line-height: 28px;
        padding: 8px 16px;
        width: 100%;
        min-height: 44px;
        border: unset;
        border-radius: 4px;
        outline-color: rgb(84 105 212 / 0.5);
        background-color: rgb(255, 255, 255);
        box-shadow: rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(60, 66, 87, 0.16) 0px 0px 0px 1px, rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0) 0px 0px 0px 0px;
    }

#balance-button-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
}

#modal-header {
    height: 3rem;
    display: flex;
    justify-content: flex-end;
}

#close-modal-btn {
    width: auto;
    display: block;
    padding: 1rem;
    cursor: pointer;
    margin-top: 0;
    background-color: transparent;
    border: none;
}

    #close-modal-btn:hover {
        color: #ED4A1E;
    }

#modal-overlay {
    display: none;
    position: fixed;
    justify-content: center;
    align-items: center;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.7);
}

#modal {
    z-index: 10;
    margin: auto;
    max-height: 40%;
    max-width: 60%;
    background-color: white;
    transition: max-height 0.3s linear;
}

    #modal.full-view {
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        max-height: 100vh;
        max-width: 100%;
    }

#balance-view-container {
    max-height: calc(100vh - 3rem);
    height: 100%;
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1rem;
    align-items: center;
}

.full-view .balance-label {
    font-size: 1rem;
}

.full-view .balance-amount {
    font-size: 2rem;
    padding-bottom: 1rem;
}

.details-view-container {
    display: none;
}

    .details-view-container.opened {
        width: 100%;
        padding: 1rem;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

.details-view-btn-container {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    padding: 1rem;
}

#view-card-details-btn {
    background-color: transparent;
    color: #333333;
    border: none;
    border-radius: 0;
}

.chevron::before {
    border-style: solid;
    border-width: 0.25em 0.25em 0 0;
    content: '';
    display: inline-block;
    height: 0.45em;
    left: 0.15em;
    position: relative;
    top: 0.15em;
    transform: rotate(-45deg);
    vertical-align: top;
    width: 0.45em;
}

.chevron.down:before {
    top: 0;
    transform: rotate(135deg);
}

.card-info-field-value {
    justify-self: end;
}

.loader {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    display: inline-block;
    border-top: 3px solid #FFF;
    border-right: 3px solid transparent;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
}

#trx-span {
    justify-self: flex-start;
}

#trx-list {
    flex-grow: 1;
    width: 100%;
    overflow: auto;
}

    #trx-list::-webkit-scrollbar {
        width: 12px;
    }

    #trx-list::-webkit-scrollbar-track {
        border-radius: 8px;
        background-color: #e7e7e7;
        border: 1px solid #cacaca;
        box-shadow: inset 0 0 6px rgba(0, 0, 0, .3);
    }

    #trx-list::-webkit-scrollbar-thumb {
        border-radius: 8px;
        background-color: #363636;
    }

.transaction-card {
    display: grid;
    grid-template-columns: 3rem 2fr 1fr;
    grid-template-rows: 1fr 1fr 1fr;
    margin: 0.75rem auto;
    padding: 0.25rem;
    border: 1px solid #00000020;
    border-radius: 0.8rem;
    height: 4rem;
}

.trx-type {
    grid-row: 1 / 2;
    grid-column: 2 / 3;
    font-size: 1.3rem;
    font-weight: 500;
}

.trx-date {
    grid-row: 2 / 3;
    grid-column: 2 / 3;
}

.trx-info {
    grid-row: 3 / 4;
    grid-column: 2 / 3;
}

.trx-amount {
    grid-row: 1 / 4;
    grid-column: 3 / 4;
    justify-self: center;
    align-self: center;
    padding: 0.5rem;
    border: 1px solid #000;
    border-radius: 1rem;
}

    .trx-amount.positive {
        color: #FBFBFB;
        background-color: #05ce05;
        border-color: #05ce05bd;
    }

    .trx-amount.negative {
        color: #FBFBFB;
        background-color: #ff0000;
        border-color: #ff0000bd;
    }

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}
