@import url("https://fonts.cdnfonts.com/css/switzer");

body {
    font-family: "Switzer", sans-serif;
}

.container-fluid {
    padding-right: 1.5rem;
    padding-left: 1.5rem;
}

.navbar {
    height: 72px;
    background: #fff;

    .navbar-collapse {
        flex-grow: 0;
    }
}

#map {
    position: fixed;
    top: 72px;
    width: 100vw;
    height: calc(100vh - 72px);
    z-index: 0;
}
#top-filter {
    position: fixed;
    top: calc(72px + 1rem);
}

#contents {
    margin-top: calc(100vh - 18px - 1rem);
    margin-bottom: 1.5rem;
    z-index: 1;
    position: relative;
}

.ghg-label {
    width: 18px;
    height: 18px;
    margin-right: 0.5rem;
    border-radius: 0.2rem;
}

#contents #governance {
    margin-top: calc(-100vh - 35px - 1rem);
    background-color: #f5f5f5;
    z-index: 1;
    height: 115vh;
    /* width: 100vw; */
    overflow-y: auto;
    position: fixed;

    .bg {
        overflow-y: auto;
        padding-top: 10rem;
        padding-bottom: 10rem;
    }
}

@keyframes progress {
    0% { --percentage: 0; }
    100% { --percentage: var(--value); }
}

@property --percentage {
    syntax: '<number>';
    inherits: true;
    initial-value: 0;
}

#progress {
    --percentage: var(--value);
    --primary: #7239EA;
    --secondary: #F6F2FF;
    --size: 300px;
    animation: progress 2s 0.5s forwards;
    width: var(--size);
    aspect-ratio: 2 / 1;
    border-radius: 50% / 100% 100% 0 0;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

#progress::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: conic-gradient(from 0.75turn at 50% 100%, var(--primary) calc(var(--percentage) * 1% / 2), var(--secondary) calc(var(--percentage) * 1% / 2 + 0.1%));
    mask: radial-gradient(at 50% 100%, white 55%, transparent 55.5%);
    mask-mode: alpha;
    -webkit-mask: radial-gradient(at 50% 100%, #0000 55%, #000 55.5%);
    -webkit-mask-mode: alpha;
}

#progress::after {
    counter-reset: percentage var(--value);
    content: '4/5';
    font-family: Helvetica, Arial, sans-serif;
    font-size: calc(var(--size) / 5);
    color: var(--primary);
}
