input {
    overflow: visible;
    position: absolute;
    top: 0%;
    right: 120%;
    width: 0;
    height: 0;
    border: none;
    background-color: #000;
    color: #000;
    font-size: 0
}

h1 {
    border-top: 4px solid blue;
    font-size: 25px;
    border-bottom: 4px solid blue
}

h2 {
    text-align: center;
    color: #b8b8b8;
    font-size: 20px;
    font-family: sans-serif
}

canvas {
    cursor: crosshair;
    display: block
}

body {
    width: 100%;
    height: 100vh;
    margin: 0;
    background: #050445;
    background: linear-gradient(0deg,rgb(5 4 69) 0%,rgb(0 0 0) 20%,rgb(0 0 0) 70%,rgb(5 4 69) 100%);
    color: #000;
    font-size: 15px;
    text-align: center;
    overflow: hidden
}

.info {
    overflow: hidden;
    position: absolute;
    top: 50%;
    left: 50%;
    font-size: 20px;
    font-family: sans-serif;
    color: #b8b8b8;
    transform: translate(-50%,-50%)
}

.button {
    background-color: #064a8a;
    border: none;
    border-radius: 5px;
    color: #fff;
    padding: 15px 32px;
    text-align: center;
    letter-spacing: .1em;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 4px 2px;
    cursor: pointer
}

.imgbutton {
    background-color: #000;
    border: none;
    margin: 0 6px
}

img {
    border: 2px solid #ddd;
    border-radius: 10px;
    padding: 0;
    width: 256px;
    height: 256px;
    cursor: pointer
}

.navbar {
    overflow: visible;
    display: flex;
    justify-content: center;
    background-color: #131945
}

    .navbar a {
        float: left;
        font-size: 16px;
        color: #fff;
        text-align: center;
        padding: 14px 16px;
        text-decoration: none
    }

.dropdown {
    float: left;
    overflow: hidden
}

    .dropdown .dropbtn {
        font-size: 16px;
        border: none;
        outline: none;
        color: #fff;
        padding: 14px 16px;
        background-color: inherit;
        font-family: inherit;
        margin: 0
    }

    .navbar a:hover, .dropdown:hover .dropbtn {
        background-color: darkblue
    }

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #b8b8b8;
    min-width: 160px;
    box-shadow: 0 8px 16px 0 rgb(0 0 0 / .2);
    z-index: 1
}

    .dropdown-content a {
        float: none;
        color: #000;
        padding: 12px 16px;
        text-decoration: none;
        display: block;
        text-align: left
    }

        .dropdown-content a:hover {
            background-color: #0b1350;
            color: #fff
        }

.dropdown:hover .dropdown-content {
    display: block
}

.tooltip {
    position: relative;
    display: inline-block;
    border-bottom: 1px dotted #000
}

    .tooltip .tooltiptext {
        visibility: hidden;
        width: max-content;
        background-color: #121b6e;
        font-size: 16px;
        color: #fff;
        text-align: center;
        border-radius: 4px;
        padding: 6px 10px;
        position: absolute;
        z-index: 1000;
        bottom: -58px;
        left: 50%;
        transform: translateX(-50%);
        opacity: 0;
        transition: opacity 0.3s ease,visibility 0s linear 0.5s;
        transition-delay: 0s,0.5s
    }

    .tooltip:hover .tooltiptext {
        visibility: visible;
        opacity: 1;
        transition-delay: 0.2s,0s
    }

    .tooltip .tooltiptextx {
        visibility: hidden;
        width: max-content;
        background-color: #121b6e;
        font-size: 14px;
        color: #fff;
        text-align: center;
        border-radius: 4px;
        padding: 6px 10px;
        position: absolute;
        z-index: 1000;
        bottom: -34px;
        left: 50%;
        transform: translateX(-50%);
        opacity: 0;
        transition: opacity 0.3s ease,visibility 0s linear 0.5s;
        transition-delay: 0s,0.5s
    }

    .tooltip:hover .tooltiptextx {
        visibility: visible;
        opacity: 1;
        transition-delay: 0.2s,0s
    }

    .tooltip .tooltipcheckbox {
        visibility: hidden;
        width: max-content;
        background-color: red;
        font-size: 14px;
        color: #fff;
        text-align: center;
        border-radius: 4px;
        padding: 6px 10px;
        position: absolute;
        z-index: 1000;
        bottom: 22px;
        left: 50%;
        transform: translateX(-50%);
        opacity: 0;
        transition: opacity 0.3s ease,visibility 0s linear 0.5s;
        transition-delay: 0s,0.2s
    }

    .tooltip:hover .tooltipcheckbox {
        visibility: visible;
        opacity: 1;
        transition-delay: 0.2s,0s
    }

.payload-row {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 40px
}

.payload-group {
    text-align: center
}

.checkbox-label {
    display: block;
    margin-top: 10px;
    font-size: 14px
}

.imgbutton {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer
}

/* popup wrapper: no dark background */
.popup {
    display: none;
    position: fixed;
    inset: 0;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

/* popup content: black background with white border */
.popup-content {
    background-color: rgba(0, 0, 0, 0.95); /* dark background in box only */
    border: 2px solid white;
    border-radius: 10px;
    padding: 20px;
    max-width: 560px;
    max-height: 400px;
    width: 80%;
    height: 60%;
    font-size: 18px;
    color: #b8b8b8;
    box-shadow: 0 0 50px 15px rgba(1, 3, 59, 0.9);
    position: relative;
}

/* Show state (fade-in active) */
.popup.show {
    display: flex;
    opacity: 1;
    pointer-events: auto;
}

/* Close button */
.close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    color: white;
    cursor: pointer;
}

/* Scroll the text ifit doesn't all fit */
.scroll-container {
    max-height: 365px; /* or any height you need */
    overflow-y: auto;
    padding-right: 10px;
    scrollbar-width: none; /* Firefox */
}

    .scroll-container::-webkit-scrollbar {
        display: none; /* Chrome, Safari */
    }

/*header for popup box*/
h3 {
    text-align: center;
    color: white;
    font-size: 20px;
    font-family: sans-serif
}
