@font-face {
    font-family: 'PrintChar21';
    src: url('fonts/PrintChar21.ttf') format('truetype');
}

@font-face {
    font-family: 'PRNumber3';
    src: url('fonts/PRNumber3.ttf') format('truetype');
}

:root {
    --c64-blue: #4040a1;
    --c64-light-blue: #8080ff;
    --c64-yellow: #e8e858;
    --c64-border-color: #9f9f9f;
}

body, html {
    height: 100%;
    margin: 0;
    padding: 0;
    background-color: #4040a1; /* C64 blue background */
    font-family: 'PrintChar21', monospace;
    color: #e8e858; /* C64 yellow */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.c64-container {
    width: 640px;
    height: 360px;
    text-align: center;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
}

.c64-screen {
    width: 100%;
    height: 100%;
    padding: 20px;
    box-sizing: border-box;
    background-color: #4040a1;
    text-transform: uppercase;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.screen-header {
    font-size: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e8e858;
    margin-bottom: 10px;
}

.clock-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
}

#analog-clock {
    width: 300px;
    height: 300px;
    margin-bottom: 10px;
}

.digital-container {
    font-size: 16px;
    margin-top: 5px;
    letter-spacing: 1px;
    line-height: 1.2;
    display: block;
    width: 100%;
    text-align: center;
    margin-bottom: 10px;
}

#clock-display {
    font-size: 18px;
    letter-spacing: 2px;
    padding: 5px;
    background-color: #4040a1; 
    color: #e8e858;
    margin-bottom: 5px;
}

#date-display {
    font-size: 16px;
    padding: 5px;
    background-color: #4040a1;
    color: #e8e858;
}

.prompt {
    text-align: left;
    margin-top: 10px;
    font-size: 14px;
}

.cursor {
    animation: blink 1s step-end infinite;
}

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