:root {
    --background-dark: #1e1e1e;
    --background-darker: #090909;
    --background-darkest: #000;
}


body {
    background-color: var(--background-darkest);
    display: grid;
    grid-template-rows: 100vh 100vh;
    margin: 0;
    font-family: 'Electrolize';
}

#heights-container {
    display: grid;
    align-items: end;
    justify-items: center;
    background: linear-gradient(180deg,#000000 0%, #000000 40%, #00103a 100%);
}

#heights-container img {
    position: absolute;
    bottom: 5px;
    height: 80%;
}

#tower-heights {
    z-index: 1;
}

#niko-heights {
    z-index: 3;
}

#niko-heights.hover {
    filter: brightness(1.3);
}

#star-background {
    position: absolute;
    width: 100%;
    height: 90%;
    top: 0;
}

#star-background canvas {
    position: absolute !important;
}

#fade-overlay {
    position: absolute;
    width: 100%;
    height: 20%;
    bottom: 0;
    background: linear-gradient(180deg,#00000000 0%, #00103a 98%);
    z-index: 4;
    pointer-events: none;
}

#niko-button {
    align-self: center;
    justify-self: center;
    width: 20%;
    height: 50%;
    opacity: 0;
    z-index: 2;
    background-color: #ff0000;
}

#niko-popup {
    color: #fff;
    position: absolute;
    left: 65%;
    bottom: 58%;
    border: 1px solid white;
    padding: 10px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 500ms ease;
    background-color: #0000002c;
}

#niko-popup.active {
    opacity: 1;
}

#niko-popup #title {
    font-size: 1.3rem;
}

#info-container {
    width: 100%;
    height: 100%;
    background: #00103A;
}

#connector {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: visible;
    pointer-events: none;
    z-index: 5;
}

#connector path {
    fill:none;
    stroke:  #fff;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
}

#connector.active #diagonal {
    transition: stroke-dashoffset 500ms ease !important;
}

#connector.active #horizontal {
    transition: stroke-dashoffset 380ms ease 490ms !important;
}

#connector.active #diagonal, #connector.active #horizontal {
    stroke-dashoffset: 0 !important;
}