﻿/* ==================================================
   Axis Gizmo
   ================================================== */

#axisGizmoContainer {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 120px;
    height: 120px;
    z-index: 900;
    pointer-events: none;
    user-select: none;
}


/* ==================================================
   Gizmo
   ================================================== */

#axisGizmo {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 100px;
    height: 100px;
    pointer-events: auto;
}


/* ==================================================
   Axel
   ================================================== */

.axisLine {
    position: absolute;
    left: 50px;
    top: 50px;
    width: 42px;
    height: 18px;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    transform-origin: 0 50%;
    cursor: pointer;
    overflow: visible;
    transition: opacity 0.08s linear;
}


    /* ==================================================
   Axelstreck
   ================================================== */

    .axisLine::before {
        content: "";
        position: absolute;
        left: 0;
        right: 8px;
        top: 8px;
        height: 2px;
        background: #555b5f;
    }


/* ==================================================
   Pilspets
   ================================================== */

.axisArrow {
    position: absolute;
    right: 0;
    top: 4px;
    width: 0;
    height: 0;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 8px solid #555b5f;
}


/* ==================================================
   Etikett
   ================================================== */

.axisLabel {
    position: absolute;
    right: -16px;
    top: -2px;
    min-width: 16px;
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: 12px;
    font-weight: 600;
    line-height: 18px;
    text-align: center;
    color: #444;
}


/* ==================================================
   X
   ================================================== */

.axisX::before {
    background: #555b5f;
}


.axisX
.axisArrow {
    border-left-color: #555b5f;
}


.axisX
.axisLabel {
    color: #444;
}


/* ==================================================
   Y / Norr
   ================================================== */

.axisY::before {
    height: 3px;
    background: #c62828;
}


.axisY
.axisArrow {
    border-left-color: #c62828;
}


.axisY
.axisLabel {
    color: #c62828;
    font-weight: 700;
}


/* ==================================================
   Z
   ================================================== */

.axisZ::before {
    background: #777d81;
}


.axisZ
.axisArrow {
    border-left-color: #777d81;
}


.axisZ
.axisLabel {
    color: #666;
}


/* ==================================================
   Hover
   ================================================== */

.axisLine:hover::before {
    height: 3px;
}


.axisLine:hover
.axisLabel {
    font-weight: 700;
}


/* ==================================================
   Origo
   ================================================== */

#axisOrigin {
    position: absolute;
    left: 44px;
    top: 44px;
    width: 13px;
    height: 13px;
    padding: 0;
    border: 1px solid rgba(80, 80, 80, 0.55);
    border-radius: 50%;
    background: rgba(235, 235, 235, 0.88);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.14);
    cursor: pointer;
    z-index: 10;
}


    /* ==================================================
   Origin hover
   ================================================== */

    #axisOrigin:hover {
        background: #ffffff;
        border-color: #b81867;
    }


/* ==================================================
   Diskret bakgrund
   ================================================== */

#axisGizmo::before {
    content: "";
    position: absolute;
    left: 19px;
    top: 19px;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: rgba( 245, 245, 245, 0.38 );
    border: 1px solid rgba( 120, 120, 120, 0.12 );
    backdrop-filter: blur(2px);
    pointer-events: none;
}
