﻿#pie-segment-modal-title {
    color: var(--bs-heading-color);
    font-weight: 500;
    margin: 1.5rem 0;
}
.pie-link {
    text-decoration: none;
    color: #000;
}
    .pie-link:hover {
        color: rgba(var(--bs-link-color-rgb), var(--bs-link-opacity, 1));
    }
    #pie-segment-modal-title:hover {
        color: rgba(var(--bs-link-color-rgb), var(--bs-link-opacity, 1));
    }
#pie-segment-modal-body {
    margin: 1rem 0;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    grid-gap: 1em;
    row-gap: 2em;
    justify-content: flex-start;
    align-items: flex-start;
    height: fit-content;
}
#pie-segment-modal-body > div {
    margin: 0;
    flex: 0.5;
    height: fit-content;
    width: 100%;
}

.pie-chart-container {
    position: relative;
    border-radius: 100%;
    overflow: visible;
    margin: 1rem 0;
}

.pie-disable-mouse {
    /* Disable mouse before blossom*/
    pointer-events: none;
}

.circle {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    border-radius: 100%;
}
/* Starting from inner to outer */
.p1-inner {
    width: 56%;
    height: 56%;
    background-color: white;
}

.p1 {
    width: 30%;
    height: 30%;
    background-color: rgba(35,50,107,255);
}

/* Fixes hover/selection issues  */
.pie-chart-selector {
    pointer-events: none;
}

.p1-svg {
    pointer-events: none;
}

.segment {
    cursor: pointer;
    opacity: .8;
}

    .segment:hover {
        opacity: 1;
    }

.segment-text {
    cursor: pointer;
    opacity: 0;
}

.pie-link {
}

@font-face {
    font-family: NotoSans;
    src: url('../notosansvariablefont.html');
}

.pie-chart-text {
    font-family: Noto Sans;
    opacity: 0.8;
    font-size: 5.8px;
    letter-spacing: 0.4px;
    font-weight: 100;
}

@media screen and (min-width: 0px) {
    #pie-segment-modal-body {
        flex-direction: column;
    }
    .p1-inner.circle > div {
        transform: scale(0.4);
    }
    #pie-segment-modal-title {
        font-size: calc(1.275rem + 0.3vw);
    }
    .pie-manual-text {
        text-align: center;
    }
}

@media screen and (min-width: 476px) {
    .p1-inner.circle > div {
        transform: scale(0.5);
    }
}

@media screen and (min-width: 768px) {
    .p1-inner.circle > div {
        transform: scale(0.7);
    }
}

@media screen and (min-width: 992px) {
    .p1-inner.circle > div {
        transform: scale(0.9);
    }
}
@media screen and (min-width: 1000px) {
    #pie-segment-modal-body {
        flex-direction: row;
    }
    .pie-manual-text {
        text-align: unset;
    }
}
@media screen and (min-width: 1400px) {
    .pie-chart-container {
        width: 1002px;
        height: 1002px;
    }

    .p1-inner.circle > div {
        transform: scale(1);
    }
    #pie-segment-modal-title {
        font-size: 1.5rem;
    }
    #pie-segment-modal-body {
        flex-direction: row;
    }

}
