html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    height: 100%;
}
.main-page {
    height: 100%;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

/* Style body to clear top bar */
.body-content {
    padding-top: 50px;
    width: 100%;
    height: 100%;
}

/* Style related to the top bar */
.top-bar {
    width: 100%;
    height: 50px;
    position: fixed;
    top: 0px;
    left: 0px;
    background-color: lightgray;
    z-index: 1;
    -webkit-box-shadow: 0px 4px 4px 0px rgba(0,0,0,0.75);
    -moz-box-shadow: 0px 4px 4px 0px rgba(0,0,0,0.75);
    box-shadow: 0px 4px 4px 0px rgba(0,0,0,0.75);
    display: flex;
    justify-content: flex-end;
    align-content: center;
}

/* Styles related to the user account name when login in the top bar */
.user-name-top-bar {
    margin-top: auto;
    margin-bottom: auto;
    margin-right: 10px;
}

/* Styles related to the Power button to pop up the menu in the top bar */
.disconnect-btn {
    height: 100%;
    width: 50px;
    background: url("/power-button.png") no-repeat center/48px;
    cursor: pointer;
    outline: none;
}

    .disconnect-btn:focus,
    .disconnect-btn:hover,
    .disconnect-btn:active {
        transform: scale(0.95);
    }

/* Styles to create an invisible back window to allow to know when a click was perform outside the menu */
.back-window {
    background-color: transparent;
    z-index: 2;
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0px;
    left: 0px;
}

/* Styles related to the pop up menu from the top bar */
.disconnect-menu {
    opacity: 1;
    box-sizing: border-box;
    position: fixed;
    top: 50px;
    right: 5px;
    background-color: lightgray;
    border-radius: 2px;
    -webkit-box-shadow: 0px 0px 2px 0px rgba(0,0,0,0.75);
    -moz-box-shadow: 0px 0px 2px 0px rgba(0,0,0,0.75);
    box-shadow: 0px 0px 2px 0px rgba(0,0,0,0.75);
}

    .disconnect-menu ul {
        margin: 0px;
        padding: 18px 20px;
    }

    .disconnect-menu li {
        list-style: none;
        margin-top: 2px;
        margin-bottom: 2px;
        cursor: pointer;
        outline:none;
    }

        .disconnect-menu li a:link,
        .disconnect-menu li a:hover,
        .disconnect-menu li a:focus,
        .disconnect-menu li a:active,
        .disconnect-menu li a:visited {
            text-decoration: none;
            color: black;
            outline:none;
        }

        .disconnect-menu li:hover,
        .disconnect-menu li:focus{
            opacity: 0.6;
            transition: 0.1s;
        }

/* Styles to create black back window to allow to know when a click was perform outside the menu */
.black-back-window {
    background: rgba(0, 0, 0, 0.75);
    z-index: 2;
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0px;
    left: 0px;
    animation: slowShow 0.5s 1;
    display: flex;
    align-content: center;
    justify-content: center;
}

/* Styles related to the pop up form on various action, like adding and deleting a transaction */
.overlay-display {
    box-sizing: border-box;
    position: relative;
    display: flex;
    width: 90%;
    height: 90%;
    max-height: 90%;
    background-color: lightgray;
    border-radius: 8px;
    -webkit-box-shadow: 10px 10px 5px 0px rgba(0,0,0,0.75);
    -moz-box-shadow: 10px 10px 5px 0px rgba(0,0,0,0.75);
    box-shadow: 10px 10px 5px 0px rgba(0,0,0,0.75);
    transform: translateY(10px);
    animation: slowShow 0.5s 1, slowGrow 0.5s 1;
}
/* animations to show the form on openning */
@keyframes slowGrow {
    0% {
        transform: scale(0) translateY(0px);
    }

    100% {
        transform: scale(1) translateY(10px)
    }
}

@keyframes slowShow {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

.overlay-content {
    box-sizing: border-box;
    overflow-y: auto;
    margin: 20px 0px 20px 20px;
    padding-right: 20px;
    width: 100%;
}

.overlay-close-btn {
    position: fixed;
    top: 0px;
    right: 6px;
    height: 20px;
    font-weight: bolder;
    font-size: large;
    cursor: pointer;
    outline: none;
}
    .overlay-close-btn:hover,
    .overlay-close-btn:focus,
    .overlay-close-btn:active {
        transform: scale(0.95);
    }

/* Styles related to the + sign button on bottom of page to add a transaction */
.add-entry-btn {
    position: fixed;
    bottom: 10px;
    right: 10px;
    width: 50px;
    height: 50px;
    border-radius: 25px;
    z-index: 1;
    background-color: cornflowerblue;
    color: white;
    -webkit-box-shadow: 5px 5px 10px 0px rgba(0,0,0,0.75);
    -moz-box-shadow: 5px 5px 10px 0px rgba(0,0,0,0.75);
    box-shadow: 5px 5px 10px 0px rgba(0,0,0,0.75);
    cursor: pointer;
    outline:none;
}

    .add-entry-btn:after {
        content: '+';
        font-size: 36px;
        position: absolute;
        left: 14px;
        top: -1px;
    }

    .add-entry-btn:focus,
    .add-entry-btn:hover,
    .add-entry-btn:active {
        transform: scale(0.95);
    }


/* Styles related to button on the various form of the app */
.button {
    border: none;
    color: white;
    background-color: cornflowerblue;
    padding: 10px;
    border-radius: 2px;
    cursor:pointer;
}

    .button:active,
    .button:focus {
        outline: none;
        -webkit-box-shadow: 0px 0px 5px 0px cornflowerblue;
        -moz-box-shadow: 0px 0px 5px 0px cornflowerblue;
        box-shadow: 0px 0px 5px 0px cornflowerblue;
    }

    .button:active,
    .button:hover {
        transform: scale(0.95);
    }

    .button.disabled {
        cursor: default;
        background-color: #7a87a7;
        color: lightgray;
    }

        .button.disabled:active,
        .button.disabled:focus {
            -webkit-box-shadow: none;
            -moz-box-shadow: none;
            box-shadow: none;
        }

        .button.disabled:active,
        .button.disabled:hover {
            transform: none;
        }

/* Styles related to input fields in the various form of the app */
.field {
    position: relative;
    width: 90%;
    height: 75px;
    margin-bottom: 20px;
}

    /*height of the input is 66% so we can squeeze the validation message in the remaining 34%*/
    .field .input {
        width: 100%;
        height: 66%;
        top: 0px;
        color: #595f6e;
        padding: 20px 0px 0px 0px;
        border: none;
        background-color: transparent;
        outline: none;
    }

    .field .label {
        position: absolute;
        top: 0px;
        left: 0px;
        width: 100%;
        height: 66%;
        margin-bottom: 0px;
        pointer-events: none;
        border-bottom: 1px solid black;
    }

        /* the after represent the blue line on focus, by default is is "off screen" */
        .field .label::after {
            content: "";
            position: absolute;
            left: 0px;
            bottom: -1px;
            height: 66%;
            width: 100%;
            border-bottom: 3px solid cornflowerblue;
            transform: translateX(-150%);
            transition: transform 0.4s ease;
        }

    .field .content-name {
        position: absolute;
        bottom: 5px;
        left: 0px;
        transition: all 0.3s ease;
    }

    /* Place the label on top when the input is not empty or when focused */
    .field .input:focus + .label .content-name,
    .field .input:not(.empty) + .label .content-name {
        transform: translateY(-80%);
        font-size: 15px;
    }

    /* when the input is focus, bring the blue line from "off screen" */
    .field .input:focus + .label::after {
        transform: translateX(0%);
    }

/* Styles related to the Participants input on add/edit a transaction */
.user-group {
    width: 100%;
    height: 66%;
    top: 0px;
    display: flex;
}
.input-group {
    position:relative;
}

/*height of the input is 66% so we can squeeze the validation message in the remaining 34%*/
.field .input-participant {
    color: #595f6e;
    border: none;
    background-color: transparent;
    outline: none;
    padding: 20px 0px 0px 0px;
    flex-basis:100%;
}
    /* Place the label on top when the input is not empty or when focused */
.field .user-group:focus-within + .label .content-name,
.field .user-group:not(.empty) + .label .content-name {
    transform: translateY(-80%);
    font-size: 15px;
}

    /* when the input is focus, bring the blue line from "off screen" */
.field .user-group:focus-within + .label::after {
    transform: translateX(0%);
}

.selected-user-container {
    margin: 24px 5px 4px 0px;
    background-color: gray;
    border-radius: 5px;
    padding:5px;
    display: flex;
    align-items:center;
    justify-content: space-between;
}

.selected-user{
    font-size:0.9rem;
    color:white;
    pointer-events:none;
}

.selected-user-delete-btn {
    margin-left: 3px;
    background-color: transparent;
    padding: 1px;
    color: black;
    line-height: 13px;
}
    .selected-user-delete-btn:hover {
        background-color: lightgray;
    }

.proposed-user-menu
{
    position:absolute;
    top:90%;
    left:5px;
    border-radius:2px;
    background-color:gray;
    color:white;
    z-index:2;
}

    .proposed-user-menu ul {
        margin: 0px;
        padding:  10px 40px 10px 10px;
    }

    .proposed-user-menu li {
        list-style: none;
        margin-top: 2px;
        margin-bottom: 2px;
        cursor: pointer;
    }

        .proposed-user-menu li:hover,
        .proposed-user-menu li:active,
        .proposed-user-menu li:focus {
            opacity: 0.6;
            transition: 0.1s;
            outline:none;
        }


/* Styles related to the various error message display */
.validation-message,
.notification-error {
    color: red;
    animation: warningBounce 0.4s 1;
}

.notification-error {
    margin: 10px 0px 10px 0px;
}

/* animations to bounce the elements, used for error message display */
@keyframes warningBounce {
    0% {
        transform: translateY(0%);
    }

    25% {
        transform: translateY(25%);
    }

    50% {
        transform: translateY(0%);
    }

    75% {
        transform: translateY(15%);
    }

    90% {
        transform: translateY(0%);
    }

    95% {
        transform: translateY(5%);
    }

    100% {
        transform: translateY(0%);
    }
}

/* Styles related to checkbox used in form */
.field-checkbox {
    position: relative;
    margin-bottom: 20px;
}

    .field-checkbox .input {
        opacity: 0;
    }

    .field-checkbox .label {
        position: absolute;
        top: 0px;
        left: 0px;
        width: 100%;
        height: 100%;
        padding-left: 20px;
        user-select: none;
    }

        /* the after represents the checkbox box */
        .field-checkbox .label::after {
            content: "";
            position: absolute;
            top: 4px;
            left: 0px;
            width: 1rem;
            height: 1rem;
            border: 1px solid cornflowerblue;
            border-radius: 2px;
        }

        /* the before represent the checkbox checkmark */
        .field-checkbox .label::before {
            content: "";
            opacity: 0;
            position: absolute;
            left: 0.35rem;
            top: 0.4rem;
            width: 5px;
            height: 10px;
            border: solid cornflowerblue;
            border-width: 0 3px 3px 0;
            transform: rotate(45deg)
        }

        /* add a "glow" around the check box on hover and focus */
        .field-checkbox .label:hover::after,
        .field-checkbox .input:focus + .label::after {
            -webkit-box-shadow: 0px 0px 5px 0px cornflowerblue;
            -moz-box-shadow: 0px 0px 5px 0px cornflowerblue;
            box-shadow: 0px 0px 5px 0px cornflowerblue;
        }

        /* remove the "glow" when the element is clicked (mouse is held down only) */
        .field-checkbox .label:active::after {
            -webkit-box-shadow: none;
            -moz-box-shadow: none;
            box-shadow: none;
        }

    /* display the checkmark when the checkbox is checked */
    .field-checkbox .input:checked + label::before {
        opacity: 1;
        animation: checkboxShowBounce 0.3s ease;
    }

/* animation used to show the checkmark on checkboxes when clicked*/
@keyframes checkboxShowBounce {
    0% {
        transform: scale(0) rotate(45deg);
    }

    50% {
        transform: scale(1.1) rotate(45deg);
    }

    75% {
        transform: scale(0.8) rotate(45deg);
    }

    90% {
        transform: scale(1) rotate(45deg);
    }

    95% {
        transform: scale(0.95) rotate(45deg);
    }

    100% {
        transform: scale(1) rotate(45deg);
    }
}

/* style related to transaction container */
.transaction-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    color: white;
}

    .transaction-container h2,
    .transaction-container p {
        width: 90%;
    }

        .transaction-container h2 span,
        .transaction-container p span {
            color: black;
        }

    /* Styles related to the display of a single transacation */
    .transaction-container .transaction {
        width: 90%;
        background-color: cornflowerblue;
        border-radius: 5px;
        box-shadow: black 1px 1px 3px;
        padding: 20px;
        margin-bottom: 20px;
        display: grid;
        grid-template-columns: auto auto;
        grid-template-rows: auto auto;
        grid-column-gap: 10px;
        grid-row-gap: 15px;
        animation: bringToScreen 0.3s ease;
    }

        .transaction-container .transaction .participants {
            grid-column: 1;
            grid-row: 2;
        }

        .transaction-container .transaction .modify-transaction {
            grid-column: 2;
            grid-row: 1;
            color: white;
            justify-self: end;
        }

            .transaction-container .transaction .modify-transaction a {
                color: white;
            }

        .transaction-container .transaction .readonly {
            pointer-events: none;
        }

        .transaction-container .transaction .transaction-locked {
            pointer-events: none;
            transform: rotate(15deg) translate(-10%,-100%);
            font-size: 0.6rem;
            background-color: grey;
            border-radius: 2px;
            padding: 4px;
            width: auto;
            text-align: center;
            opacity: 0.75;
            margin: 0px;
            position: absolute;
        }
/* animation to bring the Transaction from left to screen */
@keyframes bringToScreen {
    from {
        transform: translateX(-150%);
    }

    to {
        transform: none;
    }
}


/* Styles relates to the text box for the total amount due/owe */
.message-total-transaction {
    width: 100%;
    height: 9.375rem;
    color: white;
    background-color: lightgray;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    font-size: 2.25rem;
    margin-bottom: 10px;
    padding:15px;
}

    .message-total-transaction.background-strip {
        background: repeating-linear-gradient( 45deg, red, red 40px, #34eb3d 40px, #34eb3d 80px );
    }

    .message-total-transaction.background-red {
        background-color: red;
    }

    .message-total-transaction.background-green {
        background-color: #34eb3d;
    }

    .message-total-transaction .userdebt-container {
        position: relative;
        display: flex;
        align-items: center;
        justify-items: center;
        margin-bottom: 10px;
    }

        .message-total-transaction .userdebt-container:last-child {
            margin-bottom: 0px;
        }

    .message-total-transaction .text-amount-own { 
        text-shadow: 2px 2px black;
        line-height:2.25rem;
    }

    .message-total-transaction .is-paid-tag {
        pointer-events: none;
        transform: rotate(-45deg);
        font-size: 0.75rem;
        background-color: grey;
        border-radius: 2px;
        padding: 4px;
        width: auto;
        text-align: center;
        opacity: 0.9;
        margin: 0px;
        position:absolute;
    }

    .message-total-transaction .button {
        height: auto;
        padding: 2px 4px;
        font-size: 0.7rem;
        align-self: flex-end;
        margin-left: 5px;
    }

.blur-label {
    margin-top:10px;
    margin-bottom :10px;
    border-radius:10px;
    background-color:#444242;
    height:1rem;
}
.blur-label-extra-short {
    width: 36px;
    margin-top: 3px;
    margin-bottom:3px;
    height:18px;
}
.blur-label-short {
    width: 50px;
}
.blur-label-med {
    width: 100px;
}
.blur-label-long {
    width: 200px;
}
.blur-label-title {
    width: 500px;
    background-color: white;
    height: 2.25rem;
}

/* Styles relates to the tab page button */
.tab-page-button {
    border: none;
    color: white;
    background-color: dimgray;
    padding: 10px;
    cursor: pointer;
}

    .tab-page-button:hover,
    .tab-page-button:focus,
    .tab-page-button-active {
        background-color: cornflowerblue;
        outline: none;
        -webkit-box-shadow: 0px 0px 5px 0px black;
        -moz-box-shadow: 0px 0px 5px 0px black;
        box-shadow: 0px 0px 5px 0px black;
    }

.tab-control{
    display:flex;
    flex-direction:row;
    width:100%;
    height:100%;
}
.tab-control-content {
    width: 100%;
    margin-left:55px;
}
.btn-page-group {
    position:fixed;
    width: 55px;
    height:100%;
    background-color:lightgray;
    z-index:2;
}