:root {
    --c64-light-blue: #786ef0;
    --c64-dark-blue: #35287c;
    --c64-dark: #161515;
    --c64-light: #575152;
    --c64-accent: rgb(161, 137, 137);
    --c64-alert: #e6d92c;
}
@font-face {
font-family: 'C64';
    src: url('../fonts/Commodore-64-v6.3.woff2') format('woff2'),
    url('../fonts/Commodore-64-v6.3.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}
body {
    -ms-overflow-style: none; /* IE and Edge*/
    scrollbar-width: none; /* Firefox */
    white-space:nowrap;
    text-wrap: balance;
    word-break: normal;
    font-family: 'C64', monospace;
    font-size: 18px;
    background-color: #f0f0f0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    background: #575152;
    background: radial-gradient(circle, rgba(87, 81, 82, 1) 0%, rgb(48, 49, 51) 100%);
    background-color: #5e6877;
    transition: background-color 10000ms ease-in-out;
}
boddy::-webkit-scrollbar {
    display: none;
}
p {
    text-wrap: balance;
}
ul {
    text-align: left;
}
h1, h2, h3 {
    font-size: 18px;
    text-transform: uppercase;
}
h1::before {
    content: ">>> ";
}
    h1::after {
    content: " <<<";
}
    h2::before {
    content: ">> ";
}
    h2::after {
    content: " <<";
}
    h3::before {
    content: "> ";
}
    h3::after {
    content: " <";
}
button, input {
    font-family: 'C64', monospace;
    font-size: 14px;
    padding: 10px 20px;
    margin: 10px;
    font-size: 16px;
    color: var(--c64-dark-blue); /* Classic C64 dark blue */
    background-color: var(--c64-light-blue); /* Classic C64 light blue */
    border: 2px solid var(--c64-light-blue);
    border-radius: 0px;
    box-shadow: inset 0 0 0 2px var(--c64-dark-blue);
    cursor: pointer;
    transition: opacity 1850ms ease-in-out;
    position: relative;
    z-index: 2;
}
button:hover {
    background-color: #598043;
}
input {
    background-color: white; /* Classic C64 light */
    outline: none;
}
input:focus {
    outline: none;
}
#resultRow {
    opacity: 0;
    color: var(--c64-alert); /* Classic C64 alert color */ 
    transition: opacity 750ms ease-in-out;
}
/* COMMODORE 64 STYLES */

.C64_black_screen, .C64, .C64_border {
    -ms-overflow-style: none; /* IE and Edge*/
    scrollbar-width: none; /* Firefox */
    
    /* Curves the sides more than the top/bottom */
    border-radius: 60% / 6%;
    border: 2px solid #3f3a3b;

    position: absolute;
    height: 80vh;
    aspect-ratio: 4 / 3;
    width: calc(80vh * 1.333333);
    max-height: 450px;
    max-width: 600px;
    margin: 0 auto 60px;
    padding: 10px;
}
.C64_black_screen {
    /*Gloss on Black Screen*/
    background-image:
        radial-gradient(ellipse at right bottom, rgba(219, 230, 253, 0.308), rgba(255, 255, 255, 0)),
        radial-gradient(ellipse at left top, rgba(252, 250, 123, 0.11), rgba(255, 255, 255, 0));

    background-color: black;
}
.C64 {
    /*Colors on the screen*/
    color: var(--c64-light-blue); /* Classic C64 light blue */
    background-color: var(--c64-dark-blue); /* Classic C64 dark blue */

    /* Stripes on the screen*/
    background-image:
        repeating-linear-gradient(44deg, rgba(0,0,0,0.05) 0 10px, transparent 10px 20px),
        radial-gradient(ellipse at right bottom, rgba(219, 230, 253, 0.308), rgba(255, 255, 255, 0)),
        radial-gradient(ellipse at left top, rgba(252, 250, 123, 0.11), rgba(255, 255, 255, 0));

    opacity: 0; /* Start with black screen*/
    text-align: left;
    
    transition: opacity 250ms ease-in-out, background-color 7000ms ease-in-out;
    overflow:scroll;
}
.C64_border {
    /* Optional: Add a subtle bezel or shadow for depth */
    box-shadow: 
        inset 0 0 0 1px var(--c64-light),
        inset 0 0 20px rgba(0, 0, 0, 1),
        inset 0 0 2px 8px rgb(101, 97, 107),
        inset 0 0 2px 4px rgb(108, 142, 165);
    background-color: transparent;
    opacity: 1;
    text-align: left;
   
    pointer-events: none; /* Allow clicks to pass through the border */
}
.C64_black_screen::-webkit-scrollbar, .C64::-webkit-scrollbar, .C64_border::-webkit-scrollbar {
    display: none;
}
#C64_logo {
    position: fixed;
    left: calc(50% - 44px);
    bottom: -140px;
    transform: scale(0.3);
    display: block;
    z-index: 1;
}
#C64_circles_msk {
    height: 100px;
    width: 66px;
    border-radius: 6px;
    overflow: hidden;
}
#C64_blk_big {
    height: 100px;
    width: 100px;
    background-color:var(--c64-dark); /* Classic C64 dark */
    border-radius: 100px;
}
#C64_wht_med_msk {
    height: 100px;
    width: 61px;
    overflow: hidden;
    position: relative;
    bottom: 100px;
}
#C64_wht_med {
    height: 90px;
    width: 90px;
    background-color: var(--c64-light); /* Classic C64 light */
    border-radius: 100px;
    position: relative;
    left: 5px;
    top: 5px;
}
#C64_blk_sml {
    height: 50px;
    width: 50px;
    background-color: var(--c64-dark); /* Classic C64 dark */
    border-radius: 100px;
    position: relative;
    left: 25px;
    bottom: 175px;
}
#C64_blk_rect {
    width: 18px;
    height: 54px;
    background-color: var(--c64-dark); /* Classic C64 dark */
    position: relative;
    bottom: 77px;
    left: 66px;
}
#C64_wht_top_rect {
    width: 20px;
    height: 20px;
    background-color: var(--c64-light); /* Classic C64 light */
    position: relative;
    bottom: 127px;
    left: 62px;
}
#C64_wht_bot_rect {
    width: 20px;
    height: 20px;
    background-color: var(--c64-accent); /* Classic C64 accent */
    position: relative;
    bottom: 122px;
    left: 62px;
}
#C64_top_blk_trngl {
    width: 0;
    height: 0;
    border: 15px solid var(--c64-dark); /* Classic C64 dark */
    border-right: 15px solid transparent;
    border-bottom: 15px solid transparent;
    position: relative;
    bottom: 171px;
    left: 83px;
}
#C64_bot_blk_trngl {
    width: 0;
    height: 0;
    border: 15px solid var(--c64-dark); /* Classic C64 dark */
    border-right: 15px solid transparent;
    border-top: 15px solid transparent;
    position: relative;
    bottom: 177px;
    left: 84px;
}
#C64_top_wht_trngl {
    width: 0;
    height: 0;
    border: 10px solid var(--c64-light); /* Classic C64 light */
    border-right: 10px solid transparent;
    border-bottom: 10px solid transparent;
    position: relative;
    bottom: 227px;
    left: 82px;
}
#C64_bot_wht_trngl {
    width: 0;
    height: 0;
    border: 10px solid var(--c64-accent); /* Classic C64 accent */
    border-right: 10px solid transparent;
    border-top: 10px solid transparent;
    position: relative;
    bottom: 222px;
    left: 82px;
}
#C64_LED {
    position: fixed;
    left: calc(50% + 12px);
    bottom: 32px;
    width: 8px;
    height: 8px;
    background-color: #786ef0;
    border-radius: 100px;
    box-shadow: 0 0 14px #786ef0;
    transition: box-shadow 150ms ease-in-out, background-color 50ms ease-in-out;
    display: block;
    z-index: 2;
}
.container {
    opacity: 0;
    display: none;
    text-align: left;
    position: relative;
    color: var(--c64-light-blue); /* Classic C64 light blue */
    max-width: calc(100% - 40px);
    overflow: hidden;
    padding: 0 20px;
    border: 0px;
    transition: opacity 250ms ease-in-out;
}
.typed::after {
    content: "█";
    animation: blink 1s infinite;
}
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}
.return {
    opacity: 0;
        transition: opacity 25ms ease-in-out;
}
.label {
    text-align: right;
    padding-right: 10px;
}
.value {
    text-align: left;
    padding-left: 10px;
}
#bigNumber {
    color: var(--c64-alert); /* Classic C64 alert color */
    font-size: 60px;
    transition: opacity 250ms ease-in-out;
}

/* PAPER STYLES */

.paperWrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none; /* Allow clicks to pass through the wrapper */
    z-index: 100; /* Ensure it appears above the C64 screen */
    overflow: hidden;
}
.paper {
    transform: perspective(1000px) rotateX(10deg);
    top: 2000px;

    text-align: left;
    font-family: 'Courier New', Courier, monospace;
    color: #000000; /* Classic C64 light blue */
    background-color: #ffffff; /* Classic C64 dark blue */
    /*border: 2px solid #4c5b45;*/
    position: absolute;
    width: 60%;
    min-height: calc(100vh - 400px);
    max-width: 600px;
    padding: 50px;
    border-radius: 0px;
    box-shadow: 4px 8px 6px rgba(0, 0, 0, 0.548);
    transition: opacity 250ms ease-in-out, top 800ms ease-in-out;
    overflow: hidden;
    pointer-events: auto; /* Allow interactions with the paper */
}
#paper1{position: fixed; z-index: 103;}
#paper2{position: fixed; z-index: 102;}
#paper3{position: fixed; z-index: 101;}
#paper4{position: fixed; z-index: 100;}

.highlight {
    background: url(https://s2.svgbox.net/pen-brushes.svg?ic=brush-1&color=fbff1d);
    /*color: #fff;*/
}
.label {
    text-align: right;
    padding-right: 10px;
    text-transform: capitalize;
}
.value {
    text-align: left;
    padding-left: 10px;
}
.page-number {
    position: absolute;
    bottom: 50px;
    left: 10px;
    font-size: 12px;
    color: #444;
    pointer-events: none;
}
.page-nav {
    position: absolute;
    bottom: 50px;
    right: 10px;
    font-size: 12px;
    color: #444;
    cursor: pointer;
}
.topSecretStamp {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 100px;
    height: 100px;
    opacity: 0.8;
    z-index: 0;
    pointer-events: none;
}
.topSecretStamp::after {
    content: "TOP SECRET";
    position: absolute;
    top: 350px;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-20deg);
    font-size: 66px;
    padding: 10px;
    color: #e618187e;
        border: 4px solid #e618187e;
    border-radius: 30px;
    font-weight: bold;
}
.horny {
    font-size: 30px;
    text-align: center;
    animation: blink 100ms infinite;
    cursor: pointer;
}
#cumputer{
    cursor: pointer;
}
.unselectable {
    -moz-user-select: -moz-none;
    -khtml-user-select: none;
    -webkit-user-select: none;

    /*
     Introduced in IE 10.
     See http://ie.microsoft.com/testdrive/HTML5/msUserSelect/
    */
    -ms-user-select: none;
    user-select: none;
    cursor: pointer;
}