/* ==================================================
   GENERAL
   ================================================== */

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    background: #050505;
    color: #c8ffc8;
    font-family: "Courier New", monospace;
}


/* ==================================================
   FRONT PAGE
   ================================================== */

.front-page {

    min-height: 100vh;

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

    background:
        radial-gradient(
            circle at center,
            #1b0000 0%,
            #090000 40%,
            #000000 100%
        );

    overflow: hidden;
}


.front-container {

    text-align: center;

    user-select: none;
}


.warning-text {

    color: #6b0000;

    font-size: 11px;

    letter-spacing: 4px;

    margin-bottom: 25px;

    text-shadow:
        0 0 5px #300000;
}


.button-link {

    display: inline-block;

    width: 240px;
    height: 240px;

    cursor: pointer;
}


.red-button {

    width: 100%;
    height: 100%;

    object-fit: contain;

    display: block;

    transition:
        transform 0.12s ease,
        filter 0.12s ease;

    filter:
        drop-shadow(0 10px 12px #000);
}


.red-button:hover {

    transform: scale(1.025);

    filter:
        brightness(1.08)
        drop-shadow(0 0 15px #550000);
}


.red-button:active {

    transform: scale(0.92);

    filter:
        brightness(0.8)
        drop-shadow(0 3px 5px #000);
}


.button-label {

    margin-top: 15px;

    color: #3d3d3d;

    font-size: 9px;

    letter-spacing: 3px;
}



/* ==================================================
   ADMIN PAGE
   ================================================== */

.adm-page {

    min-height: 100vh;

    display: flex;

    justify-content: center;

    align-items: center;

    background:

        radial-gradient(
            circle,
            #252525 0%,
            #101010 45%,
            #000 100%
        );

    overflow: auto;

    padding: 30px;
}


/* ==================================================
   COMPUTER
   ================================================== */

.computer {

    position: relative;

    width: min(900px, 95vw);

    aspect-ratio: 382 / 281;

    margin: auto;
}


.computer-frame {

    position: absolute;

    left: 0;
    top: 0;

    width: 100%;
    height: 100%;

    object-fit: fill;

    z-index: 5;

    pointer-events: none;
}


/*
   The terminal sits behind
   computer overlay.
*/

.computer-screen {

    position: absolute;

    z-index: 2;

    /*
       These values correspond to
       the screen opening in 
       382 x 281 image.
    */

    left: 12%;
    top: 14%;

    width: 76%;
    height: 69%;

    overflow: hidden;

    background: #071007;

    border: 2px solid #151515;

    box-shadow:
        inset 0 0 30px #000;
}


.terminal {

    position: relative;

    width: 100%;
    height: 100%;

    overflow: hidden;

    background:
        radial-gradient(
            ellipse at center,
            #102010 0%,
            #071007 70%,
            #020502 100%
        );

    color: #65c965;

    text-shadow:
        0 0 5px #227722;

    font-size: clamp(9px, 1.2vw, 15px);

    line-height: 1.45;
}


/* ==================================================
   TERMINAL HEADER
   ================================================== */

.terminal-header {

    display: flex;

    justify-content: space-between;

    padding: 7px 10px;

    border-bottom: 1px solid #285428;

    color: #83e783;

    font-size: 0.8em;
}


.terminal-body {

    height: calc(100% - 30px);

    padding: 12px;

    overflow-y: auto;

    scrollbar-color:
        #285428
        #050805;

    scrollbar-width: thin;
}


.terminal-body p {

    margin: 3px 0;
}


/* ==================================================
   FILE LIST
   ================================================== */

.file-list {

    display: flex;

    flex-direction: column;

    gap: 5px;
}


.file-list a {

    color: #72db72;

    text-decoration: none;

    cursor: pointer;
}


.file-list a:hover {

    color: #ffffff;

    text-shadow:
        0 0 8px #00ff00;
}


.map-file {

    display: inline-flex;

    align-items: center;

    gap: 8px;

    color: #72db72;

    text-decoration: none;
}


.map-file:hover {

    color: white;
}


.file-icon {

    font-size: 18px;
}


.online {

    color: #9aff9a;

    animation: blink 1.5s infinite;
}


@keyframes blink {

    50% {
        opacity: 0;
    }

}


/* ==================================================
   CRT SCANLINES
   ================================================== */

.scanlines {

    position: absolute;

    inset: 0;

    pointer-events: none;

    z-index: 10;

    background:

        repeating-linear-gradient(
            to bottom,
            rgba(0,0,0,0),
            rgba(0,0,0,0) 3px,
            rgba(0,0,0,0.13) 4px
        );

    opacity: 0.7;
}


/* ==================================================
   LOG WINDOWS
   ================================================== */

.log-overlay {

    position: fixed;

    inset: 0;

    z-index: 50;

    display: none;

    justify-content: center;

    align-items: center;

    padding: 20px;

    background:
        rgba(0, 0, 0, 0.82);
}


/*
   Clicking a file changes the URL to #log1,
   #log2, etc.

   :target makes the appropriate window appear.
*/

.log-overlay:target {

    display: flex;
}


.log-window {

    width: min(650px, 92vw);

    max-height: 80vh;

    overflow: auto;

    background: #080b08;

    border: 2px solid #777;

    box-shadow:
        15px 15px 0 #000,
        0 0 40px #000;

    color: #c7ffc7;
}


.log-window-title {

    display: flex;

    justify-content: space-between;

    padding: 7px 10px;

    background: #bcbcbc;

    color: #111;

    font-family: monospace;

    font-weight: bold;

    font-size: 13px;
}


.log-window-title a {

    color: #111;

    text-decoration: none;
}


.log-text {

    padding: 25px;

    line-height: 1.8;

    white-space: pre-line;
}


.log-text p {

    margin-top: 0;

}


.log-text hr {

    border: 0;

    border-top: 1px dashed #356435;

    margin: 25px 0;
}


.clue {

    color: #4b884b;

    font-size: 10px;

    letter-spacing: 2px;
}


/* ==================================================
   PASSWORD WINDOWS
   ================================================== */

.locked-log {

    padding: 35px;

    text-align: center;

    line-height: 1.8;
}


.locked-log input {

    width: min(350px, 90%);

    padding: 10px;

    display: block;

    margin: 15px auto;

    background: #020402;

    border: 1px solid #555;

    color: #9cff9c;

    outline: none;

    font-family: "Courier New", monospace;
}


.locked-log input:focus {

    border-color: #8cff8c;

    box-shadow:
        0 0 8px #163d16;
}


.locked-log button {

    padding: 8px 25px;

    background: #111;

    border: 1px solid #777;

    color: #bbb;

    font-family: "Courier New", monospace;

    cursor: pointer;
}


.locked-log button:hover {

    color: white;

    border-color: white;
}


.error {

    color: #ff3030;

    font-size: 11px;

    min-height: 15px;

    text-shadow:
        0 0 5px #600000;
}


.hidden {

    display: none;
}


/* ==================================================
   MAP IMAGE
   ================================================== */

.image-window {

    width: min(900px, 95vw);

    max-height: 90vh;

    overflow: auto;

    background: #111;

    border: 2px solid #777;

    box-shadow:
        15px 15px 0 #000;
}


.map-image {

    display: block;

    width: 100%;

    height: auto;
}


/* ==================================================
   MOBILE
   ================================================== */

@media (max-width: 600px) {

    .adm-page {

        padding: 10px;

    }


    .computer {

        width: 100%;

    }


    .terminal-body {

        padding: 8px;

    }


    .log-window {

        max-height: 90vh;

    }


    .log-text {

        padding: 18px;

    }

}