body {
    overflow: hidden;
    margin: 0;
    background-color: #ffffff;
    color: #232323;
    font-style: normal;
    font-size: 14px;
}

.open-sans {
    font-family: 'Open Sans', sans-serif;
    font-optical-sizing: auto;
    font-variant-numeric: tabular-nums;
    font-variation-settings: 'wdth' 100;
    font-weight: 300;
}

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

.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;
}

.content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: row;
}

/* left panel */
.left-panel {
    position: absolute;
    top: 0;
    left: 0;
    padding-top: 16px;
    padding-left: 8px;
    height: 100%;
    width: 230px;
    display: flex;
    flex-direction: column;
    background: #0000000c;
}

.logo-container {
    position: fixed;
    top: 12px;
    left: 12px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.logo-container em {
    font-size: 12px;
    opacity: 0.6;
    cursor: pointer;
}

.logo-container em:hover {
    opacity: 0.85;
}

.logo-container div {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-content: center;
    align-items: center;
    gap: 8px;
    font-family: 'Cutive Mono', monospace;
    font-weight: 400;
    font-style: normal;
    font-size: 18px;
}

.logo-container span.version {
    font-family: 'Cutive Mono', monospace;
    font-size: 12px;
    margin-left: 28px;
}

@media screen and (max-width: 900px) {
    .logo-container {
        left: 50%;
        transform: translateX(-50%);
    }

    .logo-container span.version {
        opacity: 0;
    }
}

.logo-container img {
    width: 18px;
}

/* right panel */
.right-panel {
    position: absolute;
    top: 0;
    right: 0;
    padding: 8px;
    height: 100%;
    width: 220px;
    display: flex;
    flex-direction: column;
    background: #0000000c;
}

/* loading */
.loading-container {
    width: 154px;
    height: 154px;
    border-radius: 77px;
    background: #ffffffaa;
    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;
}
.loading-animation {
    width: 48px;
    border-radius: 24px;
    aspect-ratio: 1;
    background: #bbb;
    animation: loading-animation-frames 0.5s infinite;
}

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

/* search */
.search-bar-container {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translate(-50%, 0);
}

.search-bar-container label {
    position: absolute;
    left: 16px;
    top: 14px;
    font-size: 16px;
    color: #888;
}

.search-bar-container input {
    width: 256px;
    height: 40px;
    font-size: 14px;
    background: #fffe;
    border: 1px solid #00000022;
    border-radius: 12px;
    color: #555;
    padding-left: 42px;
    padding-right: 38px;
}

.search-animation {
    position: absolute;
    top: 16px;
    right: 18px;
    width: 10px;
    aspect-ratio: 1;
    background: #bbb;
    border-radius: 6px;
    animation: search-animation-frames 0.5s infinite;
}

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

.search-result-container {
    position: absolute;
    top: 58px;
    left: 50%;
    transform: translate(-50%, 0);
    width: 336px;
    font-size: 14px;
    background: #fffe;
    border: 1px solid #00000022;
    border-radius: 12px;
    color: #555;
    overflow-y: auto;
    max-height: 356px;
}

.search-result-container .search-result {
    height: 26px;
    font-size: 14px;
    gap: 6px;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: nowrap;
    padding-left: 16px;
    padding-top: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid #00000022;
    cursor: pointer;
}

.search-result-container .search-result img {
    width: 16px;
    height: 16px;
}

.search-result-container .search-result:hover {
    background: #efefef;
}

.search-result-container .search-result:last-child {
    border-bottom: none;
}

@media screen and (max-width: 900px) {
    .search-bar-container {
        top: 40px;
    }

    .search-result-container {
        top: 96px;
    }
}

/* graph */
.graph-container {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
}

.account-display-label {
    opacity: 0.75;
    font-size: 12px;
    font-weight: 500;
}

.account-subscan-display-label {
    opacity: 0.75;
    font-size: 12px;
    font-weight: 500;
}

.account-balance-label {
    opacity: 0.65;
    font-size: 12px;
    font-weight: 400;
}

.identity-icon {
    width: 14px;
    height: 14px;
}

.account-merkle-science-icon {
    width: 14px;
    height: 14px;
}

.transfer-label {
    color: #aaa;
    font-size: 12px;
}

.icon-container {
    position: fixed;
    bottom: 12px;
    left: 12px;
    background: #fffe;
    border: 1px solid #00000044;
    border-radius: 10px;
    padding: 8px 14px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

@media screen and (max-width: 900px) {
    .icon-container {
        position: fixed;
        bottom: 12px;
        left: 50%;
        transform: translateX(-50%);
    }
}

.icon-container a,
img {
    width: 18px;
    height: 18px;
}

.icon-container img {
    opacity: 0.6;
}

.icon-container img:hover {
    opacity: 1;
}

#polkadot-icon,
#helikon-icon,
#github-icon {
    filter: invert(1);
}

div.help {
    width: 360px;
    border-radius: 16px;
    border: 1px solid #0003;
    padding: 12px;
    background: #fffe;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    line-height: 22px;
}

div.help .title {
    background: #efefef;
    border-radius: 8px;
    padding: 8px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

div.help .about {
    margin-top: 16px;
}

div.help .title em {
    color: #0008;
    cursor: pointer;
    padding: 5px 0 5px 5px;
}
