@tailwind base;
@tailwind components;
@tailwind utilities;

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial,
        sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    margin: 0;
    padding: 0;
    background: #222;
    overflow: hidden;
    user-select: none;
    cursor: crosshair;
}

a,
a:visited {
    text-decoration: none;
    color: #5bab46;
    padding: 0 2px;
}

a:hover {
    color: #fff;
    background: #5bab46;
}

hr {
    border: none;
    border-top: solid 1px #aaa;
    margin: 24px 0;
    width: 40px;
}

sup {
    vertical-align: top;
}

.minimap {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 128px;
    height: 128px;
    border-radius: 64px;
    margin: 24px;
    border: solid 1px #ccc;
    overflow: hidden;
    pointer-events: all;
    background: transparent;
    transition: 500ms;
    z-index: 1;
    cursor: pointer;
}
.minimap:hover {
    width: 512px;
    height: 512px;
    border-radius: 0;
}
.minimap * {
    pointer-events: none;
}
.minimap > canvas {
    position: absolute;
    left: 50%;
    top: 50%;
    transition: 500ms;
}
.minimap:hover > canvas {
    margin: -256px !important;
}
.minimap > .hover {
    background: #fd0;
    opacity: 0;
    position: absolute;
    width: 16px;
    height: 16px;
    transition: opacity 0ms;
}
.minimap:hover > .hover {
    opacity: 0.8;
    transition: opacity 1ms 500ms;
}
.minimap > .dir {
    position: absolute;
    opacity: 1;
    z-index: 2;
    width: 100%;
    top: 50%;
    margin-top: -4px;
    transition: opacity 200ms 500ms;
}
.minimap > .dir > div {
    width: 0;
    height: 0;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    border-left: 8px solid #fff;
}
.minimap:hover > .dir {
    opacity: 0;
    transition: opacity 0ms;
}

.summary-panel {
    position: absolute;
    top: 0;
    width: 280px;
    color: #fff;
    top: 8px;
    right: 18px;
    padding: 8px;
    font-size: 11px;
    pointer-events: none;
}

.depthText {
    position: absolute;
    transform: translateX(50px) translateY(-15px);
    top: 50%;
    color: #fff;
}

.y-slicer {
    position: absolute;
    transform: translateX(-46px) rotate(-90deg);
    top: 50%;
    width: 160px;
}
.y-slicer:focus {
    outline: none;
}

.about-btn {
    font-weight: 800;
    font-family: Times, serif;
    position: absolute;
    background: #444;
    top: 18px;
    right: 18px;
    width: 30px;
    height: 30px;
    border-radius: 40px;
    line-height: 30px;
    text-align: center;
    font-size: 20px;
    color: #222;
    cursor: pointer;
}
.about-btn:hover {
    background: #666;
}

.modal-bg {
    position: fixed;
    z-index: 10;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    opacity: 0;
    background: rgba(0, 0, 0, 0.3);
    transition: opacity 0.5s;
    pointer-events: none;
}

.modal-bg.active {
    opacity: 1;
    pointer-events: all;
}

.modal {
    position: absolute;
    box-sizing: border-box;
    background: #fff;
    width: 480px;
    max-width: 90%;
    padding: 8px 18px;
    font-size: 12px;
    line-height: 15px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}
