@font-face {
    font-family: "C64 Pro Mono Local";
    src: url(fonts/C64ProMonoRegularUmlauts.woff2) format("woff2")
}

@font-face {
    font-family: "C64 Pro Local";
    src: url(fonts/C64_Pro-STYLE.woff2) format("woff2")
}

body {
    line-height: 1.6;
    font-size: 16px;
    font-weight: 400;
    color: #161615;

    background-image: url(img/bg_c64.jpg);
}

.c64pm,
#app {
    font: normal .75rem/1.2rem "C64 Pro Mono Local", verdana, helvetica, sans-serif;
    letter-spacing: .2px;
    padding: 0;
    margin: 0
}

body {
    background: #060606;
}

a,
.marker {
    color: #bcc076;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.mt-2 {
    margin-top: 2rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

h1 {
    color: #605720;
    font-size: 1rem;
    text-align: center;
    text-transform: uppercase;
    margin: 1.25rem 0;
}

h2 {
    font-size: .75rem;
    color: #fff;
    margin-top: 1.5rem
}

ul {
    list-style-type: none;
    list-style-position: unset;
    padding: 0 0;
    color: #bcc076;
}

li:after {
    content: "·";
    padding: 0 18px;
}

ul li:last-child::after {
    content: "";
}

li {
    display: inline-block;
    list-style-position: initial;
    text-transform: uppercase;
}

#app {
    width: 75%;
    max-width: 640px;
    margin: 2vh auto;
}

@media (max-width: 640px) {
    body { margin: 0 }
    #app {
        width: 100%;
        max-width: 640px;
        margin: 0 auto 2vh auto;
        font-size: .75rem !important;
    }

    #game {
        margin: 0 0
    }

    h1 {display: none;}

    #intro_text .btn-wrapper {
        flex-direction: column;
        gap: 1rem;
        width: auto;
    }

    div#commandline div:first-child {
        content: "?";
        display: none;
    }

    div#commandline:before {
        content: "?";
    }

    .hide-mobile {
        display: none;
    }

    #specials div:first-child {
        display: none;
    }

    div#specials {
        margin-top: 1rem;
    }
    #txt_cmd_wrapper {
        display: flex;
        flex-direction: column-reverse;
        gap: 24px;
    }

    #txt_cmd_wrapper #story_text {
        height: auto;
        position: fixed;
        top: 0;
        width: 100%;
        max-height: 104px;
        margin-top: 12px;
        padding: 0 0 0 12px;
        left: 0;
    }
    div#specials {
        margin-top: 1rem;
    }

    /* DEAD */
    .dead #txt_cmd_wrapper #story_text,
    .success #txt_cmd_wrapper #story_text {
        position: relative;
        max-height: none;
        padding: 0;
        margin: 0;
    }
    .dead div#txt_cmd_wrapper {
        flex-direction: column;
    }

    .success div#specials,
    .success #directions,
    .dead div#specials,
    .dead #directions {
        display: none;
    }
}

#game {
    box-shadow: #100f01 0 0 3px 2px;
    border-radius: 12px;
}

#game.start #splash.show {
    opacity: 1;
    z-index: 1;
    background-color: #413406 !important;
    background-size: contain;
}

#game.info #splash.show {
    background-size: cover;
    filter: brightness(0.5) sepia(.75);
}

.btn-wrapper {
    margin: 0 auto 2rem auto;
    width: 100%;
    display: flex;
    gap: 3rem;
    z-index: 11;
    justify-content: center;
}

.btn {
    background-color: #fff;
    color: #222;
    cursor: pointer;
    padding: 2px 4px;
    text-transform: uppercase;
    transition: .2s ease;
}

.btn:hover {
    background-color: #413406;
    color: #fff;
}


.extra_info.hidden,
.success .extra_info {
    visibility: hidden;
}

#specials {
    padding-bottom: 2rem;
    display: flex;
    gap: 8px;
}

#story_container {
    background-color: #000000;
    color: #efefef;
    padding: 20px;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
    border-top: 2px solid #5f322a;
}


#story_text {
    height: 20vh;
    max-height: 20vh;
    overflow-y: scroll;
    scrollbar-width: 8px;
    /* Firefox */
    -ms-overflow-scrollbar: none;
    /* IE and Edge */
}

#story_text::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Opera */
}

.danger {
    color: #9d3d3d;
}
.hurry.danger {
    color: #9d3d3d;
    background-color: #000;
    padding: 2px;
}

#image_container {
    position: relative;
    text-align: center;
    /* height: 27vw; */
    overflow: hidden;
    background-color: #000000;
    color: #efefef;
    /* background-image: url(http://localhost:5173/img/19.png); */
    background-position: 50% 28%;
    background-size: 100%;
    background-size: cover;
    width: 100%;
    aspect-ratio: 100 / 64;
    background-repeat: no-repeat;
}

#image_container.success {
    background-image: none !important;
    display: flex;
}

#image_container.dead {
    background-color: #26161c !important;
    background-size: contain;
}

#splash {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #000000;
    opacity: 0;
    background-position: 50%;
    background-size: 100%;
    background-size: cover;
    background-repeat: no-repeat;
    transition: opacity 1s ease .2s;
    z-index: -1
}

#splash.show {
    opacity: 1;
    z-index: 1;
    background-color: #26161c !important;
    background-size: contain;
}

.dead #splash {
    filter: sepia(100%);
}

.red {
    color: #772115
}

.green {
    color: #4e8631
}

#image_container .splash_text {
    margin: 20px;
    margin: 20px;
    /* height: 100%; */
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 2;
}

#image_container #success.splash_text {
    background-color: #000000f7;
    height: 100%;
    margin: 0;
    padding: 32px;
}

#image_container img {
    display: none;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 50%;
}



#commandline {
    display: flex;
    flex-direction: row;
    align-content: center;
    align-items: baseline;
    gap: 8px;
    text-transform: uppercase;
}

input,
#cmd {
    width: 100%;
    /* margin-top: 1rem; */
    display: block;
    /* border-bottom: 2px solid #fff; */
    background-color: transparent;
    border-style: none;
    /* border-bottom-style: solid; */
    font: normal .75rem/1.2rem "C64 Pro Mono Local", verdana, helvetica, sans-serif;
    letter-spacing: .2px;
    color: #fff;
    padding: .5rem 0;
    outline: none;
    opacity: 1;
}

input {
    opacity: 0;
}

#cmd {
    /* font-size: 14px; */
    background: black;
    color: #cce7cf;
    overflow: hidden;
    margin-top: -36px;
    margin-left: -3px;
}

#cmd span {
    float: left;
    padding-left: 3px;
    white-space: pre;
}

#cmd.focused #cursor {
    animation: cursor-blink 1.5s steps(2) infinite;
}

#cursor {
    float: left;
    width: 14px;
    height: 14px;
    background: #cce7cf;
    animation: none;
    margin-left: 4px;
    margin-top: 2px;
}

@keyframes cursor-blink {
    0% {
        opacity: 0;
    }
}

@keyframes shake {
    0% {
        transform: translate(0, 0);
    }

    10%,
    30%,
    50%,
    70%,
    90% {
        transform: translate(-2px, 0);
    }

    20%,
    40%,
    60%,
    80% {
        transform: translate(2px, 0);
    }

    100% {
        transform: translate(0, 0);
    }
}

.shake {
    animation: shake 1.25s ease-in-out;
    animation-iteration-count: infinite;
    animation-fill-mode: forwards;
}