@import url('https://fonts.googleapis.com/css2?family=Micro+5&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@400..700&display=swap');

body {
    background-color: black;
    /*color: #a0ff90;
    font-family: 'Courier New', Courier, monospace;*/
    margin: 0;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    user-select: none;
    overflow: hidden;
}

/*Introduction video*/

.intro_game {
    position: absolute;
    top: 0px;
    left: 0px;
    height: 100vh;
    width: 100vw;
    background-color: black;
    z-index: 2;
}

.intro_video {
    position: absolute;
    top: 0px;
    left: 0px;
    height: 100vh;
    width: 100vw;
}

.dark_cover {
    position: absolute;
    top: 0px;
    left: 0px;
    background-color: black;
    z-index: 3;
    height: 100vh;
    width: 100%;
}

.discalimer_element {
    opacity: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #71be63;
    font-family: 'Courier New', Courier, monospace;
    font-size: 18px;
    text-align: justify;
    text-shadow: 
        1px 1px 2px rgba(160, 255, 144, 0.7),
        -1px -1px 2px rgba(160, 255, 144, 0.5),
        2px 2px 4px rgba(160, 255, 144, 0.3),
        -2px -2px 4px rgba(160, 255, 144, 0.2),
        1px -1px 2px rgba(160, 255, 144, 0.4),
        -1px 1px 2px rgba(160, 255, 144, 0.6),
        3px -3px 4px rgba(160, 255, 144, 0.2),
        -3px 3px 4px rgba(160, 255, 144, 0.2);
}

/*Game itself.*/

.error {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    height: 50px;
    width: 60%;
    background-color: black;
    border: 1px solid #71be63;
    padding: 20px;
    z-index: 2;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    visibility: hidden;
}

.data_failure {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    height: 50px;
    width: 60%;
    background-color: black;
    border: 1px solid #d25050;
    color: #d25050;;
    padding: 20px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
}

#dialogue_box {
    position: absolute;
    z-index: 4;
    bottom: 5%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #71be63;
    font-family: 'Courier New', Courier, monospace;
    font-size: 22px;
    text-align: justify;
    text-shadow: 
        1px 1px 2px rgba(160, 255, 144, 0.7),
        -1px -1px 2px rgba(160, 255, 144, 0.5),
        2px 2px 4px rgba(160, 255, 144, 0.3),
        -2px -2px 4px rgba(160, 255, 144, 0.2),
        1px -1px 2px rgba(160, 255, 144, 0.4),
        -1px 1px 2px rgba(160, 255, 144, 0.6),
        3px -3px 4px rgba(160, 255, 144, 0.2),
        -3px 3px 4px rgba(160, 255, 144, 0.2);
}

.crt {
    position: relative;
    overflow: hidden;
    width: 60%;
    display: flex;
    background: black;
    border: 1px dotted #a0ff90;
    padding: 2%
}

.crt-text {
    color: #a0ff90;
    font-family: 'Courier New', Courier, monospace;
    font-size: 18px;
    line-height: 1;
    position: relative;
    opacity: 0.9;
    width: 100%;
    text-shadow: 1px 1px 2px rgb(160 255 144), -1px -1px 2px rgb(160 255 144), 2px 2px 4px rgb(160 255 144), -2px -2px 4px rgba(160, 255, 144, 0.2), 1px -1px 2px rgb(160 255 144), -1px 1px 2px rgb(160 255 144), 3px -3px 4px rgb(160 255 144 / 58%), -3px 3px 4px rgb(160 255 144 / 31%);
}

.crt:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(255, 255, 255, 0.03),
        rgba(255, 255, 255, 0.03) 1px,
        transparent 1px,
        transparent 3px
    );
    pointer-events: none;
    opacity: 0.1;
    z-index: 1;
    animation: scanline-flicker 0.1s infinite;
}

@keyframes scanline-flicker {
    0%, 100% {
        opacity: 0.1;
    }
    50% {
        opacity: 0.3;
    }
}

.crt:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.02),
        rgba(255, 255, 255, 0.02) 1px,
        transparent 1px,
        transparent 3px
    );
    pointer-events: none;
    opacity: 0.05;
    z-index: 1;
}

table {
    width: 100%;
    border-collapse: separate; /* Allows spacing between cells */
    border-spacing: 0px 5px; /* Horizontal and vertical spacing between cells */
}

td, th {
    padding: 2px 10px;
    text-align: left;
    font-family: 'Courier New', Courier, monospace; /* Matches the CRT look */
    color: #a0ff90; /* Washed-out green to match the CRT theme */
}

.position_table td {
    padding: 2px 30px;
}

.treatment_card {
    position: absolute;
    bottom: -2%;
    left: 50%;
    transform: translate(-50%, 0%);
    background-image: url(assets/Documents/Card.png);
    height: 43vh;
    width: 60%;
    z-index: 10;
    background-size: contain;
    filter: brightness(0.8) hue-rotate(354deg);
    font-family: "Caveat", cursive;
    color: #0000a9;
    font-size: 24px;
    visibility: hidden;
}