@font-face {
    font-family: 'unbounded';
    src: url('../font/Unbounded-Variable.woff2') format('woff2');
    font-weight: 200 900; /* range of supported weights */
    font-style: normal;
    font-display: swap;
}

body {
    background-color: #ffffff;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    margin: 0px;
    color: #000000;
    display: flex;
    flex-direction: column;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 14px;
    align-items: center;
}

.regular {
    font-family: 'Inter', sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}

.medium {
    font-family: 'Inter', sans-serif;
    font-optical-sizing: auto;
    font-weight: 500;
    font-style: normal;
}

.bold {
    font-family: 'Inter', sans-serif;
    font-optical-sizing: auto;
    font-weight: 700;
    font-style: normal;
}

.no-select {
    user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
}

.hidden {
    visibility: hidden !important;
}

.visible {
    visibility: visible !important;
}

.no-display {
    display: none !important;
}

.flex-spacer {
    flex-grow: 1;
}

.transparent {
    opacity: 0;
}

.mono {
    font-family: 'monospace';
}

a:link,
a:visited,
a:hover,
a:active {
    color: #232323;
    cursor: pointer;
}

.no-select {
    user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
}

hr {
    color: #666666;
    background-color: #666666;
    height: 1px;
    border: none;
    max-width: 100%;
    width: 100%;
    margin: 0px;
}

.aye {
    background-color: #4caf50;
}

.abstain {
    background-color: #aaaaaa;
}

.nay {
    background-color: #f44336;
}

.vote-legend {
    color: white;
    padding: 2px 4px;
    border-radius: 4px;
}

/** content**/
.content-container {
    width: 100%;
    height: 100%;
    background-color: #e6f1ff;
    display: flex;
    overflow-x: clip;
    overflow-y: auto;
    flex-direction: column;
    align-items: center;
}

.filter-outer-container {
    background: transparent;
    width: 820px;
    margin-top: 20px;
    position: fixed;
}

.filter-container {
    width: 100%;
    background-color: #f8faff;
    display: flex;
    flex-direction: row;
    gap: 12px;
    justify-content: start;
    align-items: center;
    padding: 12px;
    box-sizing: border-box;
    border-radius: 12px;
    font-size: 12px;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.filter-container .filter-item {
    display: flex;
    flex-direction: row;
    gap: 4px;
    align-items: center;
}

.filter-container select {
    border: 1px solid #f2f2f2;
    border-radius: 4px;
    padding: 3px;
    box-shadow: 1px 1px 0px rgba(0, 0, 0, 0.1);
}

.filter-container select option {
    font-size: 12px;
}

.content {
    width: 820px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-bottom: 96px;
}

p {
    margin-top: 8px;
    margin-bottom: 0px;
    padding: 0px;
    font-size: 13px;
    line-height: 20px;
    text-align: justify;
}

/* loading */
.loading-container {
    width: 168px;
    height: 150px;
    margin-top: 28px;
    background-color: #ffffff;
    box-sizing: border-box;
    border-radius: 12px;
    position: fixed;
    top: 50%;
    right: 50%;
    transform: translate(50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    font-size: 13px;
    color: #555;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.075);
}

.loading-animation {
    width: 32px;
    border-radius: 24px;
    aspect-ratio: 1;
    background: #bbb;
    animation: loading-animation-frames 0.5s infinite;
}

.loading-description-container {
    width: 100%;
    height: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.loading-description {
    line-height: 16px;
    text-align: center;
    font-size: 12px;
    opacity: 0.85;
}

@keyframes loading-animation-frames {
    0% {
        transform: perspective(150px) rotateX(0deg);
    }
    100% {
        transform: perspective(150px) rotateX(180deg);
    }
}

.page-header-container {
    background: #ffffff;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0px;
    align-items: center;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 11;
}

.page-header {
    font-size: 10px;
    width: 96%;
    height: 62px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.page-header .logo-container-left {
    display: flex;
    flex-direction: column;
    gap: 2px;
    align-items: flex-start;
}

.page-header .logo-container-right {
    display: flex;
    flex-direction: column;
    gap: 2px;
    align-items: flex-end;
    margin-top: 4px;
}

.page-header .submerge-logo {
    height: 22px;
}

.page-header .helikon-logo {
    height: 16px;
    margin-top: 4px;
}

.page-header .helikon-logo-full {
    width: 88px;
}

.header-1 {
    font-size: 26px;
    letter-spacing: 0.3px;
    font-family: 'unbounded';
    font-weight: 600;
    margin-top: 90px;
}

.header-2 {
    font-size: 20px;
    line-height: 26px;
    margin-top: 4px;
}

.section {
    background-color: #ffffff;
    margin-top: 28px;
    padding: 24px;
    box-sizing: border-box;
    border-radius: 12px;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.section-header {
    font-size: 20px;
    font-weight: 500;
    font-family: 'unbounded';
    font-weight: 500;
}

.section-body {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.section-description {
    font-size: 13px;
    line-height: 18px;
    text-align: justify;
    color: #00000099;
}

@media screen and (max-width: 900px) {
    .filter-outer-container {
        width: 86%;
    }

    .content {
        width: 86%;
    }

    .page-header {
        width: 86%;
    }

    .header-1 {
        font-size: 24px;
        font-weight: 600;
        margin-top: 90px;
    }

    .section {
        margin-top: 20px;
    }

    .section-header {
        font-size: 20px;
    }
}

@media screen and (max-width: 600px) {
    .page-header {
        font-size: 8px;
        height: 48px;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .page-header .submerge-logo {
        height: 16px;
    }

    .page-header .helikon-logo {
        height: 12px;
        margin-top: 2px;
    }

    .filter-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .filter-item-title {
        width: 64px;
    }

    .filter-item-select {
        width: 160px;
    }

    .header-1 {
        font-size: 22px;
        font-weight: 500;
        margin-top: 150px;
    }

    p {
        font-size: 12px;
        line-height: 20px;
    }

    .content {
        padding-bottom: 116px;
    }

    .section-description {
        font-size: 12px;
        line-height: 20px;
    }
}

@media screen and (max-width: 300px) {
    .filter-item-title {
        width: 48px;
    }

    .filter-item-select {
        width: 120px;
    }
}

rect:hover {
    opacity: 0.8;
    stroke: #444;
    stroke-width: 0px;
}

.vote-list-container {
    width: 100%;
    display: flex;
    flex-direction: row;
    gap: 1px;
    font-size: 12px;
}

.vote-list-container div.item {
    display: flex;
    height: 36px;
    box-sizing: border-box;
    border: 1px solid #dddddd;
    justify-content: center;
}

.vote-list-container .delegate-column {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.vote-list-container div.delegate {
    flex-direction: column;
    align-items: flex-start;
    width: 116px;
    padding: 0px 4px;
    background-color: #eeeeee;
}

.vote-list-container .vote-list-scroll-container {
    width: 100%;
    overflow-x: auto;
}

.vote-list-container .vote-list {
    display: flex;
    flex-direction: row;
    gap: 1px;
}

.vote-list-container .vote-list div.referendum-column {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.vote-list-container .vote-list div.referendum-column div {
    width: 108px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

.vote-list-container .vote-list div.referendum-column .referendum-index {
    background-color: #eeeeee;
}

.vote-list-container .vote-list div.referendum-column div.vote-indicator {
    width: 8px;
    height: 8px;
    border-radius: 4px;
    margin-right: 6px;
}
