/** Crosshair **/

.crosshair {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);

    /*background: white;*/
    backdrop-filter: invert();
}

.ch-h {
    display: none;

    width: 16px;
    height: 2px;
}

.ch-v {
    display: none;

    width: 2px;
    height: 16px;
}


#floating-hints {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;

    pointer-events: none;
    user-select: none;
}


/** Bit Size **/

#size {
    visibility: hidden;

    position: absolute;
    left: 16px;
    bottom: 16px;

    display: flex;
    flex-direction: column;
    gap: 16px;

    color: white;
}

.size-entry {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;

    padding: 4px;

    background-image: url("../img/ui_background.png");
    background-repeat: repeat;
    background-size: 128px;
    image-rendering: pixelated;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.5);
    outline: 2px solid #cccccc;

    opacity: 0.5;

    transition: 0.2s;
}

.size-entry p {
    margin: 0;
}

.size-entry-selected {
    opacity: 1;
    transform: translateX(16px);

    transition: 0.2s;
}

.size-entry-disabled {
    filter: brightness(50%);

    transform: translateX(calc(-50% - 16px));

    transition: 0.2s;
}


/** Notifications **/

#notifications {
    position: absolute;
    top: 16px;
    right: 16px;

    display: flex;
    flex-direction: column;
    align-items: end;
    gap: 8px;
}

.notification {
    display: flex;
    flex-direction: row;
    gap: 4px;

    width: fit-content;
    padding: 4px;

    background-image: url("../img/ui_background.png");
    background-repeat: repeat;
    background-size: 128px;
    image-rendering: pixelated;
    border: 2px solid #cccccc;
}

.notification p {
    margin: 0;

    color: white;
}

.notification-inner {
    display: flex;
    flex-direction: column;
    gap: 4px;
}


/** Spacial Hint **/

.ui-hint {
    position: absolute;

    display: flex;
    flex-direction: row;
    gap: 6px;

    padding: 4px;

    background-image: url("../img/ui_background.png");
    background-repeat: repeat;
    background-size: 128px;
    image-rendering: pixelated;
    box-shadow: 0 0 4px 2px rgba(0, 0, 0, 0.25);
    border: 1px solid #cccccc;

    color: white;
    text-shadow: 2px 2px 1px rgba(0, 0, 0, 0.25);
}

.ui-hint-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ui-hint p {
    margin: 0;
}

.ui-hint-body {
    opacity: 0.7;
    font-size: 12px;
    font-style: italic;
}

.ui-hint img {
    width: 1rem;
    height: auto;

    filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.4));
}


/** Voxel Tooltip (Looking At) **/

#voxel-tooltip {
    position: absolute;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);

    display: none;

    padding: 8px 16px 8px 8px;

    background-image: url("../img/ui_background.png");
    background-repeat: repeat;
    background-size: 128px;
    image-rendering: pixelated;
    box-shadow: 0 0 4px 2px rgba(0, 0, 0, 0.25);
}

#voxel-tooltip-preview {
    image-rendering: auto;
}

#voxel-tooltip-attributes {
    display: flex;
    flex-direction: column;
}

#voxel-tooltip-attributes p {
    margin: 4px 0;

    font-size: 12px;
    opacity: 0.7;
}

#equip-tooltip {
    display: flex;
    text-align: center;

    width: fit-content;
    margin: 0;
    padding: 4px;

    background-image: url("../img/ui_background.png");
    background-repeat: repeat;
    background-size: 128px;
    image-rendering: pixelated;
    backdrop-filter: blur(16px);
    box-shadow: 0 0 4px 2px rgba(0, 0, 0, 0.25);
    border: 1px solid #cccccc;
    color: white;
    text-shadow: 2px 2px 1px rgba(0, 0, 0, 0.25);

    user-select: none;
}


/** Thing Tooltip **/

#thing-tooltip {
    position: absolute;
    top: calc(50% + 64px);
    left: calc(50% + 64px);

    display: none;

    padding: 4px;

    background-image: url("../img/ui_background.png");
    background-repeat: repeat;
    background-size: 128px;
    image-rendering: pixelated;
    box-shadow: 0 0 4px 2px rgba(0, 0, 0, 0.25);
    border: 1px solid #cccccc;

    color: white;
    text-shadow: 2px 2px 1px rgba(0, 0, 0, 0.25);
}

#thing-tooltip-inner {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
}

#thing-tooltip p {
    margin: 0;
}

#thing-tooltip img {
    width: 1rem;
    height: auto;

    filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.4));
}

#thing-tooltip-line {
    display: none;

    position: absolute;
    top: 50%;
    left: calc(50% + 1px);

    transform-origin: 0 0;
    transform: rotateZ(45deg);

    width: 91px;
    height: 1px;

    background: linear-gradient(to left, white, rgba(255, 255, 255, 0.38));
}

#thing-tooltip-key {
    display: flex;
    align-items: center;
    justify-content: center;

    padding: 4px 9px;

    background-color: rgba(0, 0, 0, 0.2);
    box-shadow: 0 0 4px 2px rgba(0, 0, 0, 0.4);
}


/** Thing Tooltip - Power Clock **/

#clock-wheel {
    position: absolute;
    left: calc(50% + 8px);
    top: calc(50% + 8px);

    display: none;
    flex-direction: row;
    gap: 8px;

    padding: 4px;

    background-image: url("../img/ui_background.png");
    background-repeat: repeat;
    background-size: 128px;
    image-rendering: pixelated;
    backdrop-filter: blur(16px);
    box-shadow: 0 0 4px 2px rgba(0, 0, 0, 0.25);
    border: 2px solid #cccccc;

    color: white;
    text-align: center;

    user-select: none;

    opacity: 0.4;
}

#clock-wheel p {
    margin: 0;
    font-size: 14px;
}

#clock-bottom {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

#clock-speed, #clock-hz {
    font-size: 20px !important;
}

.clock-img-parent {
    flex: 1;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0 8px;
}

#clock-bottom img {
    width: 16px;
    height: auto;

    opacity: 0.6;
}