﻿@font-face {
    font-display:swap;
    font-family: 'CBB Default';
    src: url('../fonts/IMPRISHA.TTF') format('truetype'), /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}  

.desktop-view {
    background-position: center center;
    background-attachment: fixed;
    background-size: cover;
    background-repeat: no-repeat;
    height: 100vh;
    overflow-x: hidden;
}

.mobile-view {
    background-position: center center;
    background-attachment: fixed;
    background-size: cover;
    height: 100vh;
    overflow-x: hidden;
    background-repeat: no-repeat;
}

.add_expense {
    margin-bottom: 1vh;
}

table.add_expense > tr {
    background-color: transparent;
    border: none;
}

    table.add_expense > tr > td {
        border: none;
    }

div.navi > div a:hover, .dropdown:hover .dropbtn {
    background-color: purple;
}

.navbtn:hover {
    background-color: purple;
}

.dropdown-content {
    display: none;
    position: fixed;
    background-color: #f9f9f9;
    min-width: 160px;
    margin-top: 3.5vh;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 10;
}

    .dropdown-content a {
        color: white;
        padding: 12px 16px;
        text-decoration: none;
        display: block;
        text-align: left;
        background-color: purple;
        font-family: 'CBB Default';
    }

        .dropdown-content a:hover {
            background-color: midnightblue;
        }

.table {
    display: table; /* Allow the centering to work */
    margin: 0 auto;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

    .switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
}

    .slider:before {
        position: absolute;
        content: "";
        height: 26px;
        width: 26px;
        left: 4px;
        bottom: 4px;
        background-color: white;
        -webkit-transition: .4s;
        transition: .4s;
    }

input:not(:checked) + .slider {
    background-color: darkorange;
}

input:checked + .slider {
    background-color: #2196F3;
}

input:focus + .slider {
    box-shadow: 0 0 1px #2196F3;
}

input:checked + .slider:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
}

/* Rounded sliders */
.slider.round {
    border-radius: 34px;
}

    .slider.round:before {
        border-radius: 50%;
    }

.income-bad, .equity-bad {
    color: red;
}

/* Style the tab content */
.tabcontent {
    width: 100%;
    display: block;
    padding: 6px 12px;
    border: 1px solid #ccc;
    border-top: none;
}

.right {
    transform: rotate(-45deg);
    -webkit-transform: rotate(-45deg);
}

.down {
    transform: rotate(45deg);
    -webkit-transform: rotate(45deg);
}

/* width */
::-webkit-scrollbar {
    width: 10px;
}

/* Track */
::-webkit-scrollbar-track {
    box-shadow: inset 0 0 5px grey;
    border-radius: 10px;
}

/* Handle */
::-webkit-scrollbar-thumb {
    background: #384152;
    border-radius: 10px;
}

    /* Handle on hover */
    ::-webkit-scrollbar-thumb:hover {
        background: #203957;
    }

/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox */
input[type=number] {
    -moz-appearance: textfield;
}

select {
    background-color: transparent;
    border: solid white 1px;
    color: white;
}

span {
    color: white;
}

option {
    color: black;
}

td {
    vertical-align: middle;
    text-align: center;
}

td a, td input, td img {
    vertical-align: middle;
    display: inline-block;
}

.borderless-table {
    border-radius: 0;
}

.borderless-table tr td {
    border: none;
    text-align: center;
    vertical-align: middle;
    font-size: large;
    padding: .5em;
    margin: 0;
}

.flex-r-100 {
    display: flex;
    flex-direction: row;
    justify-content: center;
    width:100%;
}

.flex-r {
    display: flex;
    flex-direction: row;
    justify-content: center;
}

.flex-c {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.flex-c-start {
    display: flex;
    flex-direction: column;
    justify-content: start;
}

.container-env {
    position: relative;
    text-align: center;
    color: black;
    margin-bottom: 2vh;
}

.bottom-left {
    position: absolute;
    bottom: 8px;
    left: 16px;
}

.top-left {
    position: absolute;
    top: 8px;
    left: 16px;
}

.top-right {
    position: absolute;
    top: 8px;
    right: 16px;
}

.bottom-right {
    position: absolute;
    bottom: 8px;
    right: 16px;
}

.centered {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index:1;
}

.top-centered {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.bottom-mid-centered {
    position: absolute;
    top: 70%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.bottom-centered {
    position: absolute;
    top: 80%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}


.btn-grad {
    background-image: linear-gradient(to right, #5C258D 0%, #4389A2 51%, #5C258D 100%);
    margin: 5px;
    padding: 8px 22px;
    text-align: center;
    text-transform: uppercase;
    transition: 0.5s;
    background-size: 200% auto;
    color: white;
    box-shadow: 0 0 10px #eee;
    border-radius: 10px;
    display: block;
    height: fit-content;
}

.btn-grad:hover {
    background-position: right center; /* change the direction of the change here */
    color: #fff;
    text-decoration: none;
}

.slide-right {
    width: 50%;
    overflow: hidden;
    margin-left: 10em;
}

.slide-right * {
    animation: slide-hor 2s forwards;
    transform: translateX(-100%);
}

.slide-left {
    width: 50%;
    overflow: hidden;
    margin-right: 10em;
}

.slide-left * {
    animation: slide-hor 2s forwards;
    transform: translateX(100%);
}

.slide-up {
    width: 50%;
    overflow: hidden;
    margin-bottom: 10em;
}

.slide-up * {
    animation: slide-vert 2s forwards;
    transform: translateY(100%);
}

.slide-down {
    width: 50%;
    overflow: hidden;
    margin-top: 10em;
}

.slide-down * {
    animation: slide-vert 2s forwards;
    transform: translateY(-100%);
}

@keyframes slide-hor {
    to {
        transform: translateX(0);
    }
}

@keyframes slide-vert {
    to {
        transform: translateY(0);
    }
}

.footer {
    margin-top:auto;
}

.componentWrapper {
    border: solid gold;
    border-radius: 40px;
    padding: 15px 10px 10px;
    -webkit-box-shadow: 0 0 10px gold;
    -moz-box-shadow: 0 0 10px gold;
    box-shadow: 0 0 10px gold;
}

.header-bottom {
    position: absolute;
    margin-bottom: 0px;
    margin-right: auto;
    margin-left: auto;
    color: #384153;
    background: gold;
    border-radius: 10px;
    font-size: medium;
    padding: 2px 10px;
}

.header {
    position: relative;
    width: fit-content;
    margin-top: -25px;
    right: 10px;
    color: #384153;
    background: gold;
    border-radius: 10px;
    padding: 2px 10px;
}

.header-left {
    position: relative;
    margin-top: -25px;
    margin-left: 10px;
    width: fit-content;
    color: #384153;
    background: gold;
    border-radius: 10px;
    padding: 2px 10px;
}

.sel-span {
    padding: .5em;
    border-radius: 5px;
    background-color: white;
    color: black;
    cursor:pointer;
}

.unsel-span {
    padding: .5em;
    background-color: transparent;
    color: white;
    cursor: pointer;
}
.chart {
    padding: 1rem;
    border-radius: 12px;
    background-color: #f8dfff;
    text-align: center;
    display: flex;
    justify-content: space-around;
    height: 20rem;
    overflow-x: auto;
}

.chart-back {
    width: 100%;
    padding: 1rem;
    border-radius: 12px;
    background-color: #f8dfff;
    text-align: center;
    display: inline-block;
    height: 23rem;
}
.chart-bar {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    margin: 0 5px;
}
.chart-bar__inner {
    height: 100%;
    width: 100%;
    border: 1px solid #313131;
    border-radius: 12px;
    background-color: #c3b4f3;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}
.chart-bar__fill-bad {
    background-color: red;
    width: 100%;
    transition: all 0.3s ease-out;
}
.chart-bar__label {
    font-weight: bold;
    font-size: 1rem;
    text-align: center;
    color: black;
}
.chart-bar__fill {
    background-color: forestgreen;
    width: 100%;
    transition: all 0.3s ease-out;
}
label {
    font-family: 'CBB Default';
    font-size:large;
}
.plain-announce {
    font-family: 'CBB Default';
    text-align: center;
}
.spaced-table tr
{
    border-top: .5px solid silver;
    border-bottom: .5px solid silver;
}
.spaced-table td
{
    padding: 1em 0;
}