/* CSS is how you can add style to your website, such as colors, fonts, and positioning of your
   HTML content. To learn how to do something, just try searching Google for questions like
   "how to change link color." */

body {
  background-color: #050505;
  color: #00ff41;
  font-family: "VT323", monospace;
  text-shadow: 0 0 5px #00ff41;
}

.terminal {
    width: 80%;
    margin: 0;
    padding: 0;
    font-size: 32px;
    line-height: 1;
}

.terminal p {
    opacity: 0;
    animation: appear 0.5s forwards;
}

.line1 {
    animation-delay: 0.5s;
}

.line2 {
    animation-delay: 1.2s;
}

.line3 {
    animation-delay: 1.9s;
}

.line4 {
    animation-delay: 2.6s;
}

.line5 {
    animation-delay: 3.3s;
}

.line6 {
    animation-delay: 4s;
}

.line7 {
    animation-delay: 4.7s;
}

.line8 {
    animation-delay: 5.4s;
}

.line9 {
    animation-delay: 6.1s;
}

@keyframes appear {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.cursor {
    display: inline-block;
    margin-left: 5px;
    animation: blink 0.8s infinite;
}

@keyframes blink {
    0%, 50% {
        opacity: 1;
    }

    51%, 100% {
        opacity: 0;
    }
}

.login-screen {
    min-height: 100vh;
    background-image: url("/batcomputer.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.login-screen {
    position: fixed;
    inset: 0;
    background-image: url("/batcomputer.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

/* area where the profiles will eventually sit */
.profiles {
    position: absolute;
    top: 42%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70%;
    height: 350px;
}

/* arrows */
.arrow {
    position: absolute;
    top: 45%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #66cfff;
    font-size: 55px;
    cursor: pointer;
    text-shadow: 0 0 12px #008cff;
}

.arrow.left {
    left: 16%;
}

.arrow.right {
    right: 16%;
}

/* name + password + login button */
.login-info {
    position: absolute;
    top: 65%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

.profile-name {
    margin: 0 0 15px 0;
    color: #8edcff;
    font-size: 30px;
}

.arrow {
    z-index: 10;
}

.profiles {
    z-index: 1;
}

.profiles {
    position: absolute;
    top: 42%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70%;
    height: 500px;

    display: flex;
    align-items: center;
    gap: 18px;

    overflow: hidden;
}

.profile {
    flex: 0 0 auto;
    text-align: center;

    opacity: 0.35;
    transform: scale(0.65);

    transition:
        transform 0.35s ease,
        opacity 0.35s ease;
}

.profile img {
    width: 170px;
    height: 220px;
    object-fit: cover;

    border: 2px solid #3aaeff;
    box-shadow: 0 0 12px #008cff;
}

.profile p {
    color: #8edcff;
    margin-top: 8px;
    font-size: 16px;
}

.profile.active {
    opacity: 1;
    transform: scale(1.45);
    z-index: 5;
}

.profile.active img {
    box-shadow:
        0 0 10px #3aaeff,
        0 0 25px #008cff;
}

.profiles {
    position: absolute;
    top: 42%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 75%;
    height: 500px;

    display: block;
    overflow: hidden;
}

.profile {
    position: absolute;
    left: 50%;
    top: 50%;
    margin: 0;

    text-align: center;

    transition:
        transform 0.4s ease,
        opacity 0.4s ease;

    transform-origin: center center;
}

.profile img {
    width: 170px;
    height: 220px;
    object-fit: cover;
    border: 2px solid #3aaeff;
    box-shadow: 0 0 12px #008cff;
}

.profile p {
    color: #8edcff;
    margin-top: 8px;
}

.profile.active {
    z-index: 10;
}

.login-info {
    position: absolute;
    top: 65%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

.password-box {
    width: 360px;
    padding: 14px;
    font-size: 20px;
}

.login-button {
    margin-top: 12px;
    padding: 12px 35px;
    font-size: 18px;
      background-color: #4a0b0b;
    color: #ffb3b3;

    border: 1px solid #8b1e1e;
}

.access-transition {
    position: fixed;
    inset: 0;

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

    background: #02070c;
    color: #7fdcff;

    font-size: 52px;
    letter-spacing: 8px;

    opacity: 0;
    visibility: hidden;

    z-index: 9999;

    transition: opacity 0.5s ease;
}

.access-transition.show {
    opacity: 1;
    visibility: visible;
    animation: accessGlitch 0.9s steps(2, end);
}

@keyframes accessGlitch {
    0% {
        opacity: 0;
        transform: translateX(0);
    }

    10% {
        opacity: 1;
        transform: translateX(-4px);
    }

    20% {
        transform: translateX(4px);
    }

    30% {
        opacity: 0.4;
        transform: translateX(-2px);
    }

    40% {
        opacity: 1;
        transform: translateX(2px);
    }

    60% {
        opacity: 0.6;
    }

    70% {
        opacity: 1;
        transform: translateX(-1px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.screen-off {
    position: fixed;
    inset: 0;
    background: black;
    opacity: 0;
    visibility: hidden;
    z-index: 9998;
    pointer-events: none;
}

.screen-off::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 100%;
    transform: translateY(-50%);
    background: #bfefff;
    box-shadow: 0 0 20px #7fdcff, 0 0 50px #7fdcff;
    opacity: 0;
}

.screen-off.active {
    opacity: 1;
    visibility: visible;
}

.screen-off.active::before {
    animation: tvOff 0.9s ease forwards;
}

@keyframes tvOff {
    0% {
        height: 100%;
        opacity: 0.15;
        transform: translateY(-50%) scaleX(1);
    }

    60% {
        height: 3px;
        opacity: 1;
        transform: translateY(-50%) scaleX(1);
    }

    100% {
        height: 3px;
        opacity: 0;
        transform: translateY(-50%) scaleX(0);
    }
}
.access-page-transition {
    position: fixed;
    inset: 0;
    background: #000;
    color: #00ff41;

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

    font-size: 48px;
    letter-spacing: 6px;

    opacity: 0;
    visibility: hidden;

    z-index: 9999;
    transition: opacity 0.5s ease;
}

.access-page-transition.show {
    opacity: 1;
    visibility: visible;
}

.access-code {
    background: transparent;
    border: none;
    outline: none;
    color: #00ff41;
    font-family: inherit;
    font-size: 28px;
    width: 320px;
    caret-color: #00ff41;
}

.access-line {
    display: flex;
    align-items: center;
    gap: 10px;
}

.access-code {
    background: transparent;
    border: none;
    outline: none;
    color: #00ff41;
    font-family: inherit;
    font-size: 28px;
    width: 260px;
    caret-color: #00ff41;
}

.access-button {
    background: transparent;
    border: none;
    color: #00ff41;
    font-family: inherit;
    font-size: 28px;
    cursor: pointer;
    padding: 0;
}

.access-code {
    background: transparent;
    border: none;
    outline: none;
    color: #00ff41;
    font-family: inherit;
    font-size: 28px;
    width: 260px;
    caret-color: #00ff41;
}

.access-line {
    display: none;
}
.connect-text {
    animation: connectGlitch 0.7s infinite;
}

.connect-dots {
    margin-left: 10px;
    animation: dotsBlink 1s infinite;
}

@keyframes connectGlitch {
    0% {
        opacity: 1;
        transform: translateX(0);
    }

    20% {
        opacity: 0.6;
        transform: translateX(-2px);
    }

    40% {
        opacity: 1;
        transform: translateX(2px);
    }

    60% {
        opacity: 0.8;
        transform: translateX(-1px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes dotsBlink {
    0%, 20% {
        opacity: 0.2;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.2;
    }
}

.denied-message {
    position: fixed;
    top: 40%;
    left: 50%;
    transform: translateX(-50, -50%);

    color: #ff3b3b;
    font-size: 42px;
    letter-spacing: 6px;

    opacity: 0;
    visibility: hidden;

    text-shadow:
        0 0 8px #ff0000,
        0 0 20px #8b0000;

    z-index: 9999;
}

.denied-message.show {
    visibility: visible;
    animation: deniedFlash 1.2s ease;
}

@keyframes deniedFlash {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }

    15% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.05);
    }

    30% {
        opacity: 0.35;
        transform: translate(-50%, -50%) scale(1);
    }

    45% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1);
    }
}