@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500&display=swap');

* {
    margin: 0;
    padding: 0;
}

html {
    height: 100%;
}

.message {
    position: absolute;
    background-color: white;
    color: black;
    z-index: 99;
    top: 10px;
    left: 10px;
    width: 50%;
    padding: 150px;
    margin: auto;
}

body {
    background-color: #051627;
    overflow: hidden;
    font-family: Helvetica, sans-serif;
    letter-spacing: 1px;
    min-height: 100%;
    min-width: 100%;
    position: fixed;
}

.c1 {
    position: absolute;
    width: 772px;
    height: 498px;
    left: -212px;
    top: -362px;

    background: #75BDFF;
    filter: blur(200px);

}

.c2 {

    position: absolute;
    width: 1320px;
    height: 853px;
    left: -258px;
    top: 1140px;

    background: #359CFB;
    opacity: 0.3;
    filter: blur(300px);
    transform: rotate(-90deg);
}

.c3 {
    position: absolute;
    width: 1320px;
    height: 853px;
    left: 904px;
    top: 1169.58px;

    background: #005AAC;
    opacity: 0.2;
    filter: blur(300px);
    transform: rotate(-32.41deg);
}

#graph {
    position: absolute;
    left: 0px;
}

header {
    width: 100%;
    height: 8vh;
    background-color: #26262b;
    padding-left: 7vw;
    background-color: #001728;
    /* background: rgba(38, 38, 42, 0.63); */
    backdrop-filter: blur(6px);
}

.flex {
    display: flex;
    height: 100%;
    align-items: center;
}

.nav {
    position: relative;
    color: #e6e6e7;
    font-family: Arial, Helvetica, sans-serif;
    margin-right: 40px;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
    border-bottom: 1px solid rgba(0, 0, 0, 0)
}

.nav.active {
    border-color: #e6e6e7;
}

.left {
    margin-top: 7vh;
    margin-left: 7vw;
    display: inline-block;
    position: relative;
    background: transparent;
    backdrop-filter: blur(20px);
    box-sizing: border-box;
    width: 38%;
    max-width: 415px;
    transition: all 0.2s ease-in-out;
}

.table {
    display: flex;
    overflow-y: auto;
    max-height: 30vh;
    overflow-x: hidden;
}

.table-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* border: #01c4b7 1px solid; */
    width: 33%;
}

.table-item {
    background-color: transparent;
    color: white;
    padding: 12px 8px;
    font-size: small;
    cursor: pointer;
    border-bottom: #9494941e 1px solid;
    text-align: center;

    box-sizing: border-box;
    white-space: nowrap;
    overflow-x: hidden;
    overflow-y: visible;
    text-overflow: ellipsis;
    max-width: 138px;
    width: 100%;
    min-height: 40px;
}

.table-item:hover {
    background-color: #8686860d;
}

.relat:hover {
    background-color: transparent;
    cursor: text;
}

.search-icon {
    width: 20px;
    height: 20px;
    position: relative;
    top: 32px;
    left: 10px;
}

.ring {
    width: 11px;
    background-color: transparent;
    border: #5a9188 solid 2px;
    aspect-ratio: 1;
    border-radius: 99%;
}

.handle {
    width: 6px;
    height: 2px;
    background-color: #5a9188;
    transform: rotate(45deg);
    position: relative;
    left: 12px;
    top: -2px;
}

#input {
    width: 100%;
    box-sizing: border-box;
    background-color: transparent;
    color: white;
    padding: 10px;
    border: none;
    border-bottom: solid 1px #809a9b;
    font-size: large;
    font-weight: lighter;
    padding-bottom: 15px;
    padding-left: 40px;
}

#input:focus {
    outline: none;
}

input:focus {
    outline: none;
}

#input::placeholder {
    color: rgba(255, 255, 255, 0.684);
    letter-spacing: 1px;

}

#input:focus::placeholder {
    color: transparent;
}

.node-label {
    font-size: medium;
    color: transparent;
}

.node-btn-in-table:hover {
    background: #8e8e8e2f;
    backdrop-filter: blur(6px);
    cursor: pointer;
}

button:disabled {
    color: #979797;
}

.context-menu {
    position: absolute;
    width: 170px;
    background-color: white;
    border-radius: 6px;
    visibility: hidden;
    z-index: 99;
}

#context-menu {
    padding-bottom: 5px;
}

#connection-menu {
    padding-bottom: 5px;
    padding-top: 5px;
}

.context-menu-btn {
    width: 100%;
    height: 30px;
    border: none;
    border-radius: 5px;
    background-color: white;
    cursor: pointer;
    font-size: 12px;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-left: 10px;
    padding-right: 10px;
}

.context-menu-btn:hover {
    background-color: #75bcff2b;
    border-radius: 0;
}

#rename-node-field {
    width: 90%;
    height: 30px;
    margin-left: 6.5px;
    margin-top: 5px;
    border: none;
    border-radius: 5px;
    background-color: white;
    border: 1px rgb(208, 208, 208) solid;
    color: #5c5c5c;
    font-size: 12px;
    padding: 1px;
    text-align: center;
}

#rename-node-field:focus {
    outline: none;
}

.footer-navigation {
    position: absolute;
    bottom: 6px;
    right: 10px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.footer-navigation>.nav#download-data {
    margin-right: 0;
    margin-bottom: 6px;
}

.navigation-info {
    font-size: 9px;
    color: rgba(203, 203, 203, 0.578);
    user-select: none;
}

.relationship-menu-header-footer {

    width: 100%;
    height: 35px;
    background: linear-gradient(to right, #1cca9a, #18aaa9);
    color: white;
    text-align: center;
    font-size: small;
    padding-top: 10px;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-left: 10px;
    padding-right: 10px;
    box-sizing: border-box;

}

#relationship-menu-object-name {
    border-radius: 6px 6px 0px 0px;
}

#relationship-menu-subject-name {
    border-radius: 0px 0px 6px 6px;
}

#loading-bar {
    position: absolute;

    height: 4px;
    background-color: #01c4b7;
    bottom: 0px;
    animation-name: loadingBarAnim;
    animation-duration: 50s;
}

#switch-btn {
    width: 40px;
    height: 40px;
    background: url('images/arrow-up-down-fill.svg') no-repeat center, linear-gradient(to top, #1cca9a, #18aaa9);
    border: none;
    border-radius: 5px;
    position: absolute;
    background-size: 27px;
    top: 46%;
    cursor: pointer;
}

#switch-btn:active {
    margin-top: 1px;
}

#download-data {
    color: #75BDFF;
    background: url('images/download-line.svg') no-repeat;
    background-size: 18px;
    padding-left: 25px;
}

#download-data-style {
    color: #75BDFF;
    background: url('images/download-line.svg') no-repeat;
    background-size: 18px;
    padding-left: 25px;
}

.default-link-style {
    position: relative;
    font-family: Arial, Helvetica, sans-serif;
    /* margin-right: 40px; */
    font-size: 14px;
    display: block;
    cursor: pointer;
    white-space: nowrap;
}

.guide-box__right-col {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.upload-ex-btn {
    display: flex;
    justify-content: center;
}

.no-decorations {
    text-decoration: none;
}

.upload-box {
    margin-top: 5vh;
    display: flex;
    align-items: center;
    flex-direction: column;
    /* padding-bottom: 5vh; */

    display: none;
}

.upload-label {
    color: white;
    font-size: 16px;
    margin-bottom: 30px;
    text-align: center;
}

#uploaded-file-name {
    position: relative;
    color: #ffffff59;
    font-size: 12px;
    text-align: center;
    top: 130px;
}

#json-input {
    width: 100%;
    border: #ffffff3f 1px dashed;
    height: 19vh;
    border-radius: 10px;
    color: transparent;
    cursor: pointer;
}

#json-input:hover {
    box-shadow: inset 0px 0px 15px #ffffff1a;
}

::file-selector-button {
    display: block;
    width: 12%;
    background: url('images/json-icon.webp') center center / contain no-repeat;
    height: 95%;
    opacity: 0.2;
    border: none;
    color: transparent;
    margin: auto;
    cursor: pointer;
    filter: grayscale(100%) invert(100%);
}

.guide-box {
    display: none;
    margin-top: calc(2vh);
    ;
    /* border: #01c4b7 1px solid; */
    padding-bottom: 15px;
    border-bottom: #ffffff18 1px dashed;
}

.guide-label {
    color: white;
    font-size: 16px;
    margin-bottom: 30px;
    text-align: center;
}

.guide-text {
    color: white;
    font-size: 14px;
    margin-bottom: 20px;
    width: 235px;
}

.guide-flex {
    display: flex;
}

.guide-img {
    background: url('images/example-img.png') center center / contain no-repeat;
    margin-left: 20px;
    margin-top: 20px;
    width: 211px;
    height: 151px;
    border-radius: 7px;
    /* border: #01c4b762 1px dotted; */
}

.custom-relationship-box {
    display: flex;
    margin-top: 4px;
    margin-bottom: 2px;
    justify-content: center;
}

#custom-relationship-btn {
    width: 25px;
    height: 25px;
    padding: 1px;
    background: url('images/check-line.svg') no-repeat center, linear-gradient(to top, #1cca9a, #18aaa9);
    border: none;
    border-radius: 99px;
    background-size: 20px;
    cursor: pointer;
    margin-left: 8.8px;
    margin-top: 4px;
}

#custom-relationship-btn:disabled {
    filter: grayscale(100%);
}

#custom-relationship-field {
    width: 115px;
    height: 33px;

    border: none;
    border-radius: 5px;
    background-color: white;
    border: 1px rgb(208, 208, 208) solid;
    color: #5c5c5c;
    font-size: 12px;
    padding-left: 10px;
    text-align: left;
    box-sizing: border-box;
}

#about-box {
    margin-top: 2vh;
    margin-bottom: 2vh
}

.control-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: #ffffff18 1px dashed;
    padding-bottom: 4vh;
    margin-bottom: 3vh;
}

.middle-part {
    display: flex;
    align-items: center;
    flex-direction: column;
    width: 70%;
}

a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.288);
    margin-top: 2vh;
}

#title {
    width: 100%;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    color: white;
    font-size: 16px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 3;
    /* Limit the text to 2 lines */
    line-height: 20px;
    margin-top: 20px;
}

#arrow-left {
    width: 30px;
    min-width: 15px;
    height: 30px;
    background: url('images/arrow-left-line.svg') center no-repeat;
    border: none;
    background-size: 25px;
    cursor: pointer;
    margin: 10px;
}

#arrow-right {
    width: 30px;
    min-width: 15px;
    height: 30px;
    background: url('images/arrow-right-line.svg') center no-repeat;
    border: none;
    background-size: 25px;
    margin: 10px;
    cursor: pointer;
}

#details-text {
    padding: 0 20px;
    color: rgba(255, 255, 255, 0.73);
    max-height: 105px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 4;
    /* Limit the text to 2 lines */
    font-size: 17px;
    line-height: 21px;
    font-family: Calibri;
    font-weight: lighter;
    transition: max-height 0.2s ease-in-out;
    /* transition-delay: -webkit-line-clamp s; */
}


@media screen and (min-width: 768px) {
    

    #details-text.active{
        -webkit-line-clamp: 1000;
        max-height: 1000px;
    }

    .left.active #details-text.active{
        -webkit-line-clamp: 1000;
        max-height: 1000px;
        transition-delay: 0.2s;
    }

    .left.active{
        width: 80%;
        max-width: 80%;
    }
}

@media screen and (min-width: 1024px) {
    .left.active{
        width: 60%;
        max-width: 700px;
    }
}

#read-mode{
    margin-left: 20px;
    padding:5px 10px; margin-top:10px; cursor: pointer;
    background-color: rgba(255,255,255,1);
    color:  #051627;
    border: none;
    border-radius: 8px;
    transition: background-color 0.1s ease-out;
}

#read-mode:hover{
    background-color: rgba(255, 255, 255, 0.8);
}

#LinkDemo {
    font-weight: bolder;
}

#mobile-go-to-table {
    display: none;
}

#mobile-go-to-graph {
    display: none;
}

/* loading bar animation */
@keyframes loadingBarAnim {
    0% {
        width: 0%;
    }

    15% {
        width: 90%;
    }

    100% {
        width: 100%;
    }
}


/* Set the style of the scrollbar */
::-webkit-scrollbar {
    width: 10px;
    /* Set the width of the scrollbar */
}

/* Track */
::-webkit-scrollbar-track {
    background: #f1f1f10f;
    /* Set the background color of the track */
}

/* Handle */
::-webkit-scrollbar-thumb {
    background: #88888844;
    /* Set the color of the scrollbar handle */
    border-radius: 5px;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
    background: #555;
    /* Set the color of the scrollbar handle on hover */
}

@media screen and (min-width: 769px) {

    #mobile-go-to-table,
    #mobile-go-to-graph {

        display: none !important;
    }
}



@media only screen and (max-width: 768px) {
    #read-mode{
        display: none;
    }
    header {
        display: flex;
        padding-left: 0px;
        justify-content: space-evenly;
    }

    /* .guide-flex {
        flex-direction: column;
    }

    .guide-text {
        width: auto;
    } */

    .table {
        max-height: 60vh;
        /* height: 70vh; */
    }

    body {}

    .nav {
        /* margin-right: 17px; */
        /* letter-spacing: normal; */
        /* font-size: small; */
        margin: 0px;
    }



    .left {
        width: 100vw;
        margin-top: 0px;
        padding-top: 0px;
        margin-left: 0px;
        padding-left: 0px;
        padding-right: 0px;
        max-width: none;
        min-width: none;
    }

    .control-box {
        margin-bottom: 0px;
        padding-bottom: 0px;
        padding-top: 10px;
        border: none;
        /* border: #01c4b7 1px solid; */
        padding-left: 10px;
        padding-right: 10px;
    }

    #search-table-box {
        margin: 0px;
        padding: 0px;
        padding-left: 15px;
        padding-right: 15px;
        /* border: #01c4b7 1px solid; */
        margin-top: 80px;
        /* display: none; */
    }

    #details-text {
        -webkit-line-clamp: 3;
        margin-bottom: -20px;
        font-size: 14px;
        letter-spacing: normal;
        line-height: normal;

        display: none;
    }

    #input {
        /* padding-top: 0px; */
    }

    #about-box {
        margin-top: 0px;
        margin-bottom: 8px;
    }

    #title {
        /* -webkit-line-clamp: 2; */
        /* font-size: small; */
        letter-spacing: normal;
    }

    .navigation-info {
        display: none;
    }

    .table-item {
        font-size: 12px;
        letter-spacing: normal;
        width: 100%;
        /* border: #01c4b7 1px solid; */

    }

    #examples-btn {
        display: none;
    }

    #sandbox-btn {
        display: none;
    }

    #download-data {
        display: none;
    }

    #mobile-go-to-table {
        display: block;
        position: absolute;
        bottom: 25px;
        left: 50%;
        width: 40px;
        height: 40px;
        background: url('images/arrow-left-line.svg') no-repeat center, linear-gradient(to top, #75BDFF, #005AAC);
        border: none;
        background-size: 25px;
        cursor: pointer;
        margin: 10px;
        border-radius: 99%;
        transform: rotate(-90deg) translateY(-75%);
        z-index: 99;
    }

    #mobile-go-to-graph {
        display: none;
        position: absolute;
        top: 25px;
        left: 50%;
        width: 40px;
        height: 40px;
        background: url('images/arrow-left-line.svg') no-repeat center, linear-gradient(to top, #75BDFF, #005AAC);
        border: none;
        background-size: 25px;
        cursor: pointer;
        margin: 10px;
        border-radius: 99%;
        transform: rotate(90deg) translateY(75%);
        z-index: 99;
    }


}


.popup-container {
    position: fixed;
    z-index: 100;
    width: 100%;
    height: calc(100vh);
    background-color: rgba(35, 35, 40, 0.2);
    /* background-color: red; */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 35px;
    max-height: 100vh;
    overflow: hidden;
    box-sizing: border-box;
}

.popup-filter {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    backdrop-filter: blur(5px);
}

.popup-wrap {
    width: 850px;
    max-width: 100vw;
    /* background-color: red; */
    background: rgba(35, 35, 40, 0.9);
    position: relative;
    min-height: 80px;
    max-height: calc(100%);
    border-radius: 8px;
    box-shadow: 0px 0px 90px rgba(0, 0, 0, 0.45);
}

.popup-inner {

    max-height: calc(100vh - 60px);
    overflow-y: auto;
    overflow-x: hidden;
}

.popup {
    padding: 48px 56px;
    padding-bottom: 0;
}

.popup-btn {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    border: none;
    border-radius: 50%;
    /* padding: 24px; */
    width: 64px;
    height: 64px;
    display: inline-flex;
    justify-content: center;
    align-items: center;

    background: linear-gradient(264.23deg, #00C4B8 4.42%, #0ACE88 98.24%), #D9D9D9;

    position: absolute;
    bottom: 20px;
    right: 0;
    transform: translateX(32px);

    cursor: pointer;
    outline: none;
}

.popup-inner>.popup {
    color: white;
    display: none;
    font-size: 18px;
    font-family: 'Inter', sans-serif;
    line-height: 40px;
    font-weight: 300;
}

.popup-inner>.popup.show {
    display: block;
}

.pagination-list {
    display: flex;
}

.pagination-item {
    width: 8px;
    height: 8px;
    background-color: rgba(217, 217, 217, 0.2);
    border-radius: 50%;
    list-style: none;
    margin-right: 8px;
}

.pagination-item.active {
    background: linear-gradient(264.23deg, #00C4B8 4.42%, #0ACE88 98.24%);
}

.pagination {
    padding: 48px 56px;
    padding-top: 16px;
}

.hidden {
    display: none;
}

@media screen and (max-width:380px) {
    .pagination {
        padding: 30px;
        padding-top: 10px;
    }

    .popup {
        padding: 30px;
        padding-bottom: 0;
    }
}

/* modal variant #2 */

.popupV2-container {
    position: fixed;
    width: 100%;
    height: 100vh;
    z-index: 100;
    top: 0;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8px;
    box-sizing: border-box;
}


.popupV2-wrap {
    max-width: 100%;
    padding: 32px;
    position: relative;
    width: 850px;
    max-width: 100%;
    /* max-height: calc(100vh - 64px); */
    /* margin: auto; */
}

.popupV2-wrap .swiper {
    max-height: calc(100vh - 64px);
}

.popupV2-wrap .swiper-slide {
    max-height: calc(100vh - (32px * 2) - (48px * 2));
    overflow-y: auto;
}

.popupV2.swiper {
    background: rgba(35, 35, 40, 0.9);
    box-shadow: 0px 0px 90px rgba(0, 0, 0, 0.45);

    padding: 48px 56px;
    /* margin: 35px; */
    color: white;
    font-size: 18px;
    font-family: 'Inter', sans-serif;
    line-height: 40px;
    font-weight: 300;
    border-radius: 8px;
}

.popupV2-container * {
    max-width: 100%;
    box-sizing: border-box;
}

.popupV2-wrap .swiper-button-next {
    top: unset;
    bottom: 55px;
    width: 64px;
    height: 64px;
    right: 0;
    /* transform: translateX(32px); */
    /* background: linear-gradient(264.23deg, #00C4B8 4.42%, #0ACE88 98.24%), #D9D9D9; */
    background: linear-gradient(264.23deg, #75BDFF 4.42%, #005AAC 98.24%), #D9D9D9;
    border-radius: 50%;
}

.popupV2-wrap .swiper-button-next::after {
    content: "";
    background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12.172 6.99998L6.808 1.63598L8.222 0.221985L16 7.99998L8.222 15.778L6.808 14.364L12.172 8.99998H0V6.99998H12.172Z' fill='white' /%3E%3C/svg%3E");
    width: 16px;
    height: 16px;
    background-repeat: no-repeat;
    background-position: center;

}

.popupV2-wrap .swiper-button-next.swiper-button-disabled {
    pointer-events: all;
    opacity: 1;
    display: none;
}

.popupV2-wrap .swiper-button-next.clone {
    display: flex;
    z-index: 9;
}



.popupV2-wrap .swiper-button-next.swiper-button-disabled::after {
    background-image: url("data:image/svg+xml,%3Csvg width='16' height='auto' viewBox='0 0 18 13' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7.00023 10.172L16.1922 0.979004L17.6072 2.393L7.00023 13L0.63623 6.636L2.05023 5.222L7.00023 10.172Z' fill='white'/%3E%3C/svg%3E");
}

.popupV2-wrap .swiper-button-next.clone::after {
    background-image: url("data:image/svg+xml,%3Csvg width='16' height='auto' viewBox='0 0 18 13' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7.00023 10.172L16.1922 0.979004L17.6072 2.393L7.00023 13L0.63623 6.636L2.05023 5.222L7.00023 10.172Z' fill='white'/%3E%3C/svg%3E");

}

.popupV2-wrap .swiper-button-next.swiper-button-disabled {
    cursor: pointer;
}


.popupV2-wrap .swiper-pagination {
    position: relative;
    text-align: left;
    line-height: 10px;
    padding-top: 12px;
}

.popupV2-wrap .swiper-pagination-bullet {
    background: #D9D9D9;
    opacity: 0.2;
    width: 8px;
    height: 8px;
    margin: 0 !important;
    margin-right: 8px !important;
}

.popupV2-wrap .swiper-pagination-bullet.swiper-pagination-bullet-active {
    opacity: 1;
    background: linear-gradient(264.23deg, #75BDFF 4.42%, #005AAC 98.24%), #D9D9D9;
}

@media screen and (max-width: 768px) {
    .popupV2.swiper {
        padding: 32px;
        font-size: 16px;
        line-height: 1.8;
    }

    .popupV2-wrap .swiper-slide {
        max-height: calc(100vh - 20px - (32px * 2) - (32px * 2));
    }

    .popupV2-wrap .swiper-pagination-bullet {
        width: 6px;
        height: 6px;
        margin-right: 6px;
        ;
    }

    .popupV2-wrap .swiper-button-next {
        width: 50px;
        height: 50px;
        right: 7px;
    }
}