:root {
    --black: #282a35;
    --grey: #bcba90;
    --red: #a33635;
    --orange: #c96937;
    --blue: #60bec7;
    --green: #70ac4c;
    --white: #d4d4d4;
    --yellow: #eae174;  
}

@font-face {
    font-family: 'PressStart2P';
    src: url('./src/assets/fonts/PressStart2P.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'PixelMPlus';
    src: url('./src/assets/fonts/PixelMPlus.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    size-adjust: 120%;
}

@font-face {
    font-family: 'NGC';
    src: url('./src/assets/fonts/NGC.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    size-adjust: 120%;
}

html, body {
    position: relative;
    margin: 0;
    padding: 0;
    overflow: hidden;
    width: 100%;
    height: 100%;
}

body {
    user-select: none;
    font-family: "PressStart2P", sans-serif;
    font-weight: 400;
    font-style: normal;
    background: #111;
}

input {
    all: unset;
    box-sizing: border-box;
}

body.is-dragging-start,
body.is-dragging-start * {
  cursor: grab !important;
}

body.is-dragging,
body.is-dragging * {
  cursor: grabbing !important;
}

#view-port {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

#screen-root {
    position: absolute;
    width: 1238px;
    height: 674px;
}

#screen {
    position: absolute;
    width: 1238px;
    height: 674px;
    background: #2a2b2d;

    overflow: hidden;
}

canvas {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: block;
    outline: 1px solid black;
    touch-action: none;
}

.stroke {
    text-shadow:
    -1px -1px 0 #000,
     0   -1px 0 #000,
     1px -1px 0 #000,
     1px  0   0 #000,
     1px  1px 0 #000,
     0    1px 0 #000,
    -1px  1px 0 #000,
    -1px  0   0 #000;
}

.notification-container {
    position: absolute;
    bottom: 0;
    left: 213px;
    right: 213px;
    height: 46px;
    line-height: 56px;
    color: var(--white);
    background: rgba(0, 0, 0, 0.8);
    text-align: center;
}

.link-red {
    cursor: pointer;
    font-weight: 800;
    color: #8a47a6;
    text-decoration: none;
    padding-bottom: 2px;
    border-bottom: 2px solid #8a47a6;
}

.link-red:hover {
    filter: brightness(1.2);
}

.link-blue {
    cursor: pointer;
    font-weight: 800;
    color: var(--blue);
    text-decoration: none;
}

.pos-right {
    position: absolute;
    right: 0px;
}

.tooltip {
    position: absolute;
    max-width: 280px;
    min-width: 180px;
    height: auto;

    background: #242426;

    color: var(--white);
    padding: 10px;
    
    border: 1px solid #000;
    border-left: 4px solid var(--red);
    
    box-shadow: 
        inset 1px 1px 0 rgba(255, 255, 255, 0.05),
        3px 3px 0 rgba(0, 0, 0, 0.8); 

    transition: opacity 0.15s;
    pointer-events: none;
    display: none;
    z-index: 9999;
}

.tooltip-content {
    display: flex;
    flex-direction: column; 
    gap: 4px;
}

.tooltip-name {
    width: 100%;
    color: var(--red);
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: left; 
    border-bottom: 1px solid rgba(163, 54, 53, 0.3);
    padding-bottom: 4px;
    margin-bottom: 4px;
    text-shadow: 1px 1px 0px #000;
}

.tooltip-description {
    width: 100%;
    font-size: 10px; 
    line-height: 1.8;
    color: #ccc;
    text-align: left;
    text-shadow: 1px 1px 0px #000;
}

.loading-text {
    position: absolute;
    width: 100%;
    top: 50.5%; 
    transform: translateY(-50%);
    text-align: center;
    font-size: 11px;
    font-weight: bold;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 0px #000;
    pointer-events: none;
}

.loading-bar-bg {
    position: absolute;
    left: 50%;
    top: 54%;
    transform: translate(-50%, -50%);
    width: 240px; 
    height: 20px; 
    
    background-color: rgba(0, 0, 0, 0.1);
    border: 1px solid #000;
    
    box-shadow: inset 0 0 4px rgba(0,0,0,0.8);
    overflow: hidden;
    pointer-events: none;
}

.loading-bar {
    height: 100%;
    width: 0%;
    background-color: var(--red);
    
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.2);
    
    border-right: 1px solid #000;
    transition: width 0.4s ease;
    pointer-events: none;
}
