html,
body {
    margin: 0;
    padding: 0;
    overflow: hidden;
    /* Prevents scrolling */
    width: 100%;
    height: 100%;
}

svg {
    display: block;
    /* Removes unwanted extra spacing */
}

.main-wrapper {
    height: 100%;
    height: 100%;
}

.node {
    font-family: var(--bs-font-sans-serif);
    font-size: 20px;
}

.link {
    stroke-opacity: 1;
    stroke-width: 2px;
    font-family: var(--bs-font-sans-serif);
    color: #FFFFFF;
    font-size: 1em;
}

#controls {
    position: absolute;
    top: 0;
    left: 0;
    padding-top: 15px;
    padding-left: 15px;
    position: -webkit-sticky;
    position: sticky;
    display: inline;
    width: 100%;
}

body {
    background-image: url('img/sandy-texture.jpg');
    background-size: cover;
    background-position: center;
}

.hud {
    width: 400px;
    min-height: 300px;
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.7);
    border-radius: 10px;
    position: absolute;
    padding: 20px;
    font-family: 'Courier', sans-serif;
    color: greenyellow;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 2px;
    overflow: hidden;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.hud::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    width: 50px;
    height: 50px;
    border-top: 2px solid greenyellow;
    border-left: 2px solid greenyellow;
}

.hud::after {
    content: '';
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 50px;
    height: 50px;
    border-bottom: 2px solid greenyellow;
    border-right: 2px solid greenyellow;
}

.scan-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(transparent 50%, rgba(0, 255, 255, 0.1) 50%);
    background-size: 100% 4px;
    animation: scan 0.5s linear infinite;
}

@keyframes scan {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(4px);
    }
}

#content-target,
#content-cursor {
    text-align: left;
    ;
}

/* Glow effect for clicked nodes */
.node.glow image {
    filter: drop-shadow(0 0 1px yellow);
}

/* Glow effect for clicked links */
.link.glow {
    stroke: yellow !important;
    stroke-width: 1px;
}

.node image {
    filter: drop-shadow(0 0 1px rgb(0, 0, 0));
}

svg {
    touch-action: none;
    /* Prevents browser's default zooming */
}

@media (max-width: 768px) {
    .link {
        stroke-width: 12px !important;
        /* Thicker lines */
    }

    .edgelabel {
        font-size: 60px !important;
        /* Larger font for mobile */
    }

    #btnRefresh {
        display: none;
    }
}