.no-margin {
    margin: 0 !important;
}

body {
    margin: 0;
    color: #39444e;
}

i {
    font-size: 14px;
    line-height: 14px;
    font-weight: 300;
}

ul {
    margin: 0;
}

.card {
    max-width: 978px;
    font-family: 'Roboto', sans-serif;
    border: 1px solid #d1d7df;
    background-color: #ffffff;
    border-radius: 13px;
}

/* MEDIA QUERIES

@media (min-width: 576px) {}

@media (min-width: 768px) {}

@media (min-width: 992px) {}

@media (min-width: 1200px) {}

@media (min-width: 1400px) {} 

*/

/*** HEADER ***/

.header {
    display: flex;
    justify-content: space-between;
    padding: 10px 20px;
    border-bottom: 1px solid #d1d7df;
}

.header-left {
    display: flex;
    align-items: center;
    flex: 1 1 0;
}

.header-left select {
    border: 1px solid #39444e;
    border-radius: 30px;
    background-color: transparent;
    padding: 5px 20px 5px 10px;
    font-size: 18px;
    font-weight: 700;
    line-height: 22px;
    color: #39444e;
    margin: 0 10px;
    cursor: pointer;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%2339444e" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/><path d="M0 0h24v24H0z" fill="none"/></svg>');
    background-repeat: no-repeat;
    background-position-x: 95%;
    background-position-y: 4px;
    -webkit-appearance: none;
    -moz-appearance: none;
}

@media (min-width: 992px) {
    .header-left select {
        margin: 0 15px;
    }
}

.or-logo {
    display: flex;
    align-items: center;
}

.or-logo img {
    max-height: 30px;
    max-width: 90px;
    height: 30px;
    width: auto;
    object-fit: contain;
}

.organization-logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.organization-logo a {
    display: flex;
}

.organization-logo img {
    max-height: 30px;
    max-width: 90px;
    height: 30px;
    width: auto;
    object-fit: contain;
}

@media (min-width: 992px) {
    .or-logo img {
        max-height: 22px;
        max-width: 130px;
        height: 22px;
        width: auto;
    }

    .organization-logo img {
        max-height: 40px;
        max-width: 130px;
        height: 40px;
        width: auto;
    }
}

.header-menu {
    display: none;
    align-items: center;
    justify-content: end;
    flex: 1 1 0;
}

.header-menu-mobile {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

@media (min-width: 992px) {
    .header-menu {
        display: flex;
    }

    .header-menu-mobile {
        display: none;
    }
}

.header-menu a,
.header-menu-mobile a {
    border: 1px solid transparent;
    font-size: 12px;
    font-weight: 700;
    line-height: 22px;
    text-decoration: none;
    color: #616971;
}

.header-menu a:not(:first-of-type) {
    margin-left: 10px;
}

.header-menu-mobile a:not(:first-of-type) {
    margin-left: 8px;
}

.header-menu a.current-page,
.header-menu-mobile a.current-page {
    background-color: #39444e;
    border-radius: 20px;
    color: #ffffff;
    padding: 4px 16px;
}

.header-menu-mobile a.current-page {
    padding: 4px 8px;
}

.footer {
    display: flex;
    justify-content: center;
}

.footer button {
    border-radius: 10px;
    border: 0;
    background-color: #eaf7d6;
    color: #39444e;
    padding: 8px 24px;
    margin: 0 5px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.footer button img {
    max-height: 14px;
    max-width: 16px;
    margin-right: 10px;
}

#footer-close-button {
    background-color: #cef98e;
}

#footer-info-button {
    width: 145px;
}

#footer-share-button {
    width: 82px;
}

#footer-close-button img {
    max-height: 12px;
    max-width: 12px;
}

.icon {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f7f9;
    border-radius: 5px;
    margin-right: 15px;
}

.icon img {
    max-width: 21px;
    max-height: 21px;
}

.body {
    padding: 20px;
    background-image: url(../images/NVO_ozadje.png); 
    background-repeat: repeat-y;
    background-size: 150% auto;
    border-bottom-left-radius: 13px;
    border-bottom-right-radius: 13px;
    min-height: 544px;
    max-height: 840px;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

@media (min-width: 768px) {
    .body {
        background-size: 100% auto;
    }
}

@media (min-width: 992px) {
    .body-row {
        display: flex;
        justify-content: space-between;
    }

    .body-column:first-child {
        margin-right: 10px;
    }
    
    .body-column:last-child {
        margin-left: 10px;
    }
    
    .body-column {
        flex: 1 1 0;
    }
}

.body-column:first-child:last-child {
    margin: 0;
}

.minicard {
    padding: 20px;
    box-shadow: 0 0 29px rgba(57, 68, 78, 0.1);
    background-color: #FFFFFF;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
}

.minicard h4.mb-10 {
    margin-bottom: 10px;
}

.minicard > div:last-child {
    flex-grow: 1;
}

.card-with-sidebar {
    display: flex;
    flex-direction: column;
}

.minicard .card-with-sidebar .main h4 {
    margin: 0 0 10px 0;
    cursor: pointer;
}

@media (min-width: 768px) {
    .card-with-sidebar {
        flex-direction: row;
    }

    .card-with-sidebar .horizontal-divider {
        display: none;
    }

    .minicard .card-with-sidebar .main h4 {
        margin: 0;
    }

    /* .minicard.show .card-with-sidebar .main h4 {
        margin-bottom: 20px;
    } */
}

.card-with-sidebar .main {
    flex-grow: 1;
}

.card-with-sidebar .main .project-desc-header {
    display: flex;
    padding: 20px 20px 0 20px;
    cursor: pointer;
}

.card-with-sidebar .sidebar .project-desc-header {
    display: none;
    padding: 20px;
    border-left: 1px solid #d1d7df;
    cursor: pointer;
}

@media (min-width: 768px) {
    .card-with-sidebar .main .project-desc-header {
        padding: 20px;
    }

    .card-with-sidebar .sidebar .project-desc-header {
        display: flex;
    }

    .project:not(.show) .card-with-sidebar .sidebar .project-desc-header {
        flex: 1;
    }
}

.card-with-sidebar .sidebar .more {
    padding: 0 20px 20px 20px;
}

@media (min-width: 768px) {
    .card-with-sidebar .sidebar .more {
        border-left: 1px solid #d1d7df;
    }
}

.card-with-sidebar .main i {
    font-size: 11px;
}

.card-with-sidebar .main .show-hide-wrapper {
    width: 28px;
    min-width: 28px;
    text-align: center;
    margin-top: 2px;
}

.show-hide-button {
    cursor: pointer;
    width: 18px;
    transition: transform 0.25s ease-out;
}

.card-with-sidebar .main .additional-info-mobile p {
    margin-bottom: 0;
}

.project .card-with-sidebar .main > div:nth-child(2) {
    padding: 0 20px 20px 20px;
}

@media (min-width: 768px) {
    .project .card-with-sidebar .sidebar {
        width: 310px;
        min-width: 310px;
        display: flex;
        flex-direction: column;
    }

    .project .card-with-sidebar .main > div:nth-child(2) {
        padding: 0 50px 0 20px;
    }

    .project.show .card-with-sidebar .main > div:nth-child(2) {
        padding-bottom: 20px;
    }

    .card-with-sidebar .main .additional-info-mobile {
        display: none;
    }
}

.project.show .project-desc-body {
    padding-bottom: 20px;
}

.project .card-with-sidebar .sidebar i {
    font-size: 11px;
    line-height: 16px;
    display: block;
    margin-bottom: 3px;
}

.project .card-with-sidebar .sidebar b {
    font-size: 14px;
    line-height: 16px;
    margin-bottom: 5px;
    display: block;
    white-space: break-spaces;
}

.project .card-with-sidebar .sidebar p {
    margin-bottom: 0;
}

.project .card-with-sidebar .sidebar > p {
    cursor: pointer;
    display: none;
}

@media (min-width: 768px) {
    .project .card-with-sidebar .sidebar > p {
        display: block;
    }
}

.project.show .minicard-footer {
    padding: 0 20px 20px 20px;
}

@media (min-width: 768px) {
    .project .horizontal-divider {
        margin: 0;
    }

    .project.show .minicard-footer {
        padding: 20px;
    }
}

.minicard h4 {
    font-size: 18px;
    font-weight: 700;
    margin: 4px 0 0 0;
    line-height: 22px;
}

.minicard p, li, ul {
    font-size: 16px;
    line-height: 22px;
    margin: 0 0 12px 0;
}

.minicard a {
    color: #486ed9;
}

.minicard hr {
    border-top: 1px solid #f5f7f9;
    margin: 20px 0;
}

.minicard .note {
    font-size: 14px;
    line-height: 16px;
}

.inline-block {
    display: inline-block;
    vertical-align: top;
}

.payment-ratio-card {
    margin-top: 20px;
    margin-left: -50px;
}

.payment-ratio-card .row {
    display: flex;
    /* justify-content: center; */
    /* align-items: center; */
    margin-bottom: 20px;
}

.payment-ratio-card .row p {
    display: flex;
    align-items: center;
    margin-bottom: 0;
    flex: 1 1 0;
    flex-direction: column;
}

.payment-ratio-card .row .tag {
    font-weight: 700;
    background-color: #ebf1f8;
    border-radius: 20px;
    width: 60px;
    height: 36px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin: 0 10px;
}

.payment-ratio-card .row p:first-child {
    align-items: end;
    margin-right: 10px;
}

.payment-ratio-card .row p:first-child .tag {
    margin-right: 0;
}

.payment-ratio-card .row p:last-child .tag {
    margin-left: 0;
}

.payment-ratio-card .row p:last-child {
    flex-direction: column-reverse;
    align-items: start;
    margin-left: 10px;
}

.payment-ratio-card .row i {
    margin-bottom: 10px;
}

@media (min-width: 768px) {
    .payment-ratio-card {
        margin-left: 0;
    }
    
    .payment-ratio-card .row p,
    .payment-ratio-card .row p:first-child,
    .payment-ratio-card .row p:last-child {
        flex-direction: row;
        align-items: center;
    }

    .payment-ratio-card .row i {
        margin-bottom: 0;
    }

    .payment-ratio-card .row p:first-child {
        justify-content: end;
    }
}

.finances-card {
    display: block;
    position: relative;
}

@media (min-width: 992px) {
    .finances-card {
        display: flex;
        justify-content: center;
    }

    .finances-card-left,
    .finances-card-right {
        flex: 1 1 0;
    }
}

.finances-header-button-wrapper {
    position: absolute;
    left: 50%;
    transform: translate(-50%);
}

.finances-header-button {
    display: flex;
    align-items: center;
    justify-content: space-around;
    width: 160px;
    height: 24px;
    border: 1px solid #39444e;
    border-radius: 13px;
    background-color: #f4f6f8;
    position: relative;
}

.finances-graph-option,
.finances-table-option {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.finances-graph-option div,
.finances-table-option div {
    padding-left: 6px;
    font-size: 14px;
}

.finances-graph-option.active div,
.finances-table-option.active div {
    color: white;
    z-index: 10;
}

#finances-active-presentation {
    position: absolute;
    width: 80px;
    height: 24px;
    background-color: #39444e;
    border: 1px solid #39444e;
    border-radius: 13px;
    right: 0;
    transition: all 0.25s ease-out;
    -webkit-transition: all 0.25s ease-out;
}

#finances-active-presentation.graph {
    /* left: 0; */
    transform: translateX(-80px); /* for the transition animation to work */
}

.finances-header-button svg {
    max-width: 14px;
    max-height: 14px;
    width: 14px;
    height: 14px;
    cursor: pointer;
    z-index: 2;
}

.finances-graph-option svg path,
.finances-table-option svg path {
    fill: #39444e;
}

.finances-graph-option.active svg path,
.finances-table-option.active svg path {
    fill: white;
}

.finances-presentation {
    display: none;
}

.finances-presentation.active {
    display: block;
}

.finances-header-income,
.finances-header-expense {
    display: flex;
}

@media (max-width: 575.98px) {
    .finances-header-income > div:nth-child(2),
    .finances-header-expense > div:nth-child(2) {
        flex-grow: 1;
        display: flex;
        justify-content: space-between;
        margin-bottom: 10px;
    }

    .finances-header-income > div:nth-child(2) p,
    .finances-header-expense > div:nth-child(2) p {
        margin-bottom: 0;
        margin-top: 4px;
    }
}

.finances-header-income {
    margin-top: 50px;
}

.finances-header-expense {
    margin-top: 30px;
}

@media (min-width: 992px) {
    .finances-header-income {
        margin-top: 0;
    }
    
    .finances-header-expense {
        justify-content: end;
        flex-direction: row-reverse;
        margin-top: 0;
    }

    .finances-header-expense .icon {
        margin: 0 0 0 15px;
    }
}

.finance-tree {
    list-style-type: none;
    padding: 0;
    margin: 10px 0;
}

.finance-tree li > div {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #d1d7df;
    padding: 6px 0;
}

.finance-tree li > div span:first-child {
    font-size: 12px;
    font-style: italic;
    line-height: 22px;
}

.finance-tree li > div span:first-child {
    font-size: 14px;
}

.finances-graph {
    margin: 10px 0;
    position: relative;
}

.finance-tree-element {
    list-style-type: none;
    padding-left: 20px;
}

@media (min-width: 992px) {
    .finance-tree.income-tree {
        margin: 10px 20px 10px 0;
        padding: 0 0 0 50px;
    }
    
    .finance-tree.expense-tree {
        margin: 10px 0 10px 20px;
        padding: 0 50px 0 0;
    }
}

.finance-tree-element li {
    margin: 0;
}

.finance-tree-element li > div {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #d1d7df;
    padding: 6px 0;
}

.finance-tree-element li > div span:first-child {
    font-size: 14px;
    font-style: italic;
    font-weight: 300;
    line-height: 22px;
}

.finance-tree li > div span:last-child {
    font-size: 14px;
}

.description p, li {
    font-size: 14px;
    line-height: 21px;
}

.description p:not(:first-child) {
    margin-top: 12px;
}

.description ul {
    list-style: none;
    padding: 0;
}

.description li {
    margin-bottom: 0;
    padding-left: 15px;
    position: relative;
}

.description li:before {
    content: "‣";
    color: #486ed9;
    font-size: 30px;
    position: absolute;
    left: 0;
  }

.minicard .sidebar a {
    color: #39444e;
}

.horizontal-divider {
    background-color: #d1d7df;
    height: 1px;
    width: 100%;
    margin: 20px 0;
}

.horizontal-divider-short {
    background-color: #d1d7df;
    height: 1px;
    width: 80px;
    margin: 20px 0;
}

.vertical-separator {
    display: none;
    min-width: 1px;
    background-color: #d1d7df;
    margin: -20px 20px;
}

.minicard-footer {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo {
    max-width: 160px;
    max-height: 50px;
    margin: 0 10px;
}

.instructions-line {
    display: none;
    justify-content: space-between;
    margin-bottom: 5px;
}

.instructions-line p {
    margin-top: 0;
}

.instructions-line p:first-child {
    margin-left: 50px;
    margin-bottom: 0;
}

.instructions-line p:last-child {
    width: 310px; /* has to be 40px more than .sidebar */
    margin-bottom: 0;
}

.instructions-line p i {
    font-size: 11px;
    line-height: 11px;
}

.instructions-line p:last-child i {
    padding-left: 20px;
}

@media (min-width: 768px) {
    .instructions-line {
        display: flex;
    }

    .vertical-separator {
        display: block;
    }
}

.minicard.project {
    padding: 0;
}

.project {
    display: block;
}

.project .more i {
    font-size: 11px;
}

.project .more {
    display: none;
}

.project.show .more {
    display: block;
    flex: 1;
}

.project.show .show-hide-button {
    transform: rotate(90deg);
}

.minicard-donations-title + p, 
.minicard-donations-title + i {
    margin-top: 20px;
}

.minicard-donations-title h4,
.minicard-finance-title h4,
.minicard-donations-title-long h4 {
    margin: 4px 0;
}

.minicard-donations-title-long > div p,
.minicard-donations-title-long > div li {
    margin: 4px 0;
    font-size: 14px;
    line-height: 21px;
}

@media (min-width: 992px) {
    .minicard-donations-title,
    .minicard-finance-title {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .minicard-donations-title-long {
        display: flex;
        justify-content: space-between;
    }
    
    .minicard-donations-title-long h4 {
        margin-right: 40px;
    }

    .minicard-donations-title h4,
    .minicard-finance-title h4,
    .minicard-donations-title-long h4 {
        white-space: nowrap;
    }
}

@media (min-width: 992px) {
    .minicard-donations-body {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
}

.minicard-donations-body p {
    margin-right: 40px;
    margin-top: 12px;
    line-height: 18px;
}

.minicard-donations-body span {
    font-size: 12px;
    white-space: nowrap;
}

.donator-list-element {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #d1d7df;
    padding: 10px 0;
}

.donator-list-element p {
    margin-bottom: 0;
}

.donator-list-element span {
    font-size: 14px;
}

.info,
.share {
    /* position: absolute;
    top: 72px;
    left: 20px;
    right: 20px; */
    /* transition: all 0.5s ease-in-out; */
}

@media (min-width: 992px) {
    .info,
    .share {
        /* top: 20px; */
        /* overflow-y: scroll; */
        /* max-height: 485px; */
    }
}

.content {
    /* transition: all 0.25s ease-in-out; */
}

.content:not(.active) {
    display: none;
    pointer-events: none;
}

.info:not(.active) {
    display: none;
}

.share:not(.active) {
    display: none;
}

.info-content {
    margin: 20px 0 0 0;
    display: flex;
    flex-direction: column;
}

@media (min-width: 992px) {
    .info-content {
        margin: 20px 100px 0 55px;
    }
}

.info-content i {
    margin-bottom: 6px;
}

.info-content b {
    font-weight: 500;
    font-style: italic;
}

.info-content p {
    font-size: 12px;
    line-height: 14px;
}

.info-content p:last-child {
    margin-bottom: 0;
}

#share-url {
    height: 30px;
    border-radius: 15px;
    border: 1px solid #39444e;
    background-color: #f5f7f9;
    font-size: 12px;
    font-family: 'Roboto', sans-serif;
    line-height: 14px;
    color: #39444e;
    padding: 0 15px;
}

/* GRAFI ZA FINANCE */

.graph-tooltip {
    display: none;
    position: absolute;
    color: white;
    background: black;
    padding: 5px;
    pointer-events: none;
    z-index: 100;
}

.graph-tooltip h6 {
    margin-top: 0;
    margin-bottom: 4px;
}

.graph-tooltip p {
    margin-bottom: 4px;
    font-size: 12px;
    line-height: 1;
    white-space: nowrap;
}

foreignObject {
    position: relative;
}

#graf-expense {
    display: flex;
}

@media (min-width: 992px) {
    #graf-expense {
        justify-content: end;
    }
}

#graf-income .back-button,
#graf-expense .back-button {
    background-image: url('../images/icons/nazaj.svg');
    background-repeat: no-repeat;
    width: 40px;
    height: 40px;
    position: absolute;
    top: 0;
    left: 0;
}

#graf-income svg button,
#graf-expense svg button {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    cursor: pointer;
    border: none;
    border-radius: 0;
    background-color: transparent;
    text-align: left;
}

#graf-income svg button:hover + .graph-tooltip,
#graf-income svg button:focus + .graph-tooltip,
#graf-expense svg button:hover + .graph-tooltip,
#graf-expense svg button:focus + .graph-tooltip {  
    opacity: 0.9 !important;
}

#graf-income svg button:focus,
#graf-expense svg button:focus {
    border: 1px solid black;
}

#graf-income svg h6,
#graf-expense svg h6 {
    margin-top: 0;
    margin-bottom: 0;
    color: black;
    font-weight: 500;
    font-style: italic;
    font-family: 'Roboto', sans-serif;
    line-height: 1;
    padding: 0 10px;
}

#graf-income svg p,
#graf-expense svg p {
    margin-bottom: 0;
    color: black;
    font-family: 'Roboto', sans-serif;
    line-height: normal;
    padding: 0 10px;
}
