﻿/* c64-startup-screen style sheet */

@font-face {
    font-family: 'Commodore64';
    src: url('fonts/C64_Pro_Mono-STYLE.eot');
    src: url('fonts/C64_Pro_Mono-STYLE.eot?#iefix') format('embedded-opentype'),
    url('fonts/C64_Pro_Mono-STYLE.woff2') format('woff2'),
    url('fonts/C64_Pro_Mono-STYLE.woff') format('woff'),
    url('fonts/Commodore-64-v6.3.TTF') format('truetype');
    font-weight: normal;
}

/* HTML elements */

* {
    margin: 0;
    padding: 0;
}
body {
    font-family: Commodore64, Arial, Helvetica, sans-serif;
    font-size: 1.2em;
}
a {
    color: #6076C5;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

/* IDs */

#c64 {
    height: 100vh;
    color: #6076C5;
}
#c64-startup {
    height: 100%;
    width: 100%;
    position: fixed;
    background-color: #20398D;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    border: #6076C5 70px solid;
}
#c64-startup-header {
    text-align: center;
    padding-top: 40px;
    margin: 0 auto;
}
#c64-startup-prompt {
    padding-top: 40px;
    left: 75px;
}
#c64-startup-footnote {
    position: fixed;
    bottom: 72px;
    right: 76px;
    text-align: right;
    font-size: 80%;
}

/* classes */

.c64-font {
    font-family: 'Commodore64', 'Courier New', Courier, monospace;
    font-size: 160%;
    line-height: 100%;
}

.c64-cursor {
  display: inline-block;
  width: 12px;
  height: 18px;
  background: #00ff00; /* green like C64 */
  animation: blink 0.8s steps(1) infinite;
}
@keyframes blink {
  50% { opacity: 0; }
}


/* layout for small screens */

@media screen and (max-device-width: 1400px) {
    #c64-startup-header {
        padding-top: 35px;
    }
    #c64-startup-prompt {
        padding-top: 35px;
    }
    .c64-font {
        font-size: 130%;
    }
}
@media screen and (max-device-width: 1100px) {
    #c64-startup-header {
        padding-top: 30px;
    }
    #c64-startup-prompt {
        padding-top: 30px;
    }
    .c64-font {
        font-size: 100%;
    }
}



/*  additional */

/* Form styling */
#c64-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

#c64-input {
    background-color: #20398D;
    color: #6076C5;
    font-family: Commodore64, monospace;
    font-size: 1.2em;
    border: 2px solid #6076C5;
    padding: 10px;
    margin-bottom: 20px;
    width: 250px;
}
#c64-input-textarea {
    background-color: #20398D;
    color: #6076C5;
    font-family: Commodore64, monospace;
    font-size: 1.2em;
    border: 2px solid #6076C5;
    padding: 10px;
    margin-bottom: 20px;
    width: 80%;
    
    /* Scrollable textbox */
    height: 150px;       /* fixed height */
    resize: none;        /* prevent resizing if you want */
    overflow-y: auto;    /* vertical scrollbar */
    overflow-x: hidden;  /* hide horizontal scrollbar */
 /* Ensure text wraps inside the box */
    white-space: pre-wrap; /* preserves line breaks and wraps long lines */
    word-wrap: break-word;  /* breaks long words if needed */

}





#c64-input::placeholder {
    color: #6076C5;
}

#c64-submit {
    background-color: #20398D;
    color: #6076C5;
    font-family: Commodore64, monospace;
    font-size: 1.2em;
    border: 2px solid #6076C5;
    padding: 10px 20px;
    cursor: pointer;
    transition: 0.3s;
}

#c64-submit:hover {
    background-color: #6076C5;
    color: #20398D;
}


#login-btn {
    background-color: #20398D;
    color: #6076C5;
    font-family: Commodore64, monospace;
    font-size: 1.2em;
    border: 2px solid #6076C5;
    padding: 10px 20px;
    cursor: pointer;
    transition: 0.3s;
    justify-content: center;
    align-items: center;
}

#login-btn:hover {
    background-color: #6076C5;
    color: #20398D;
}



/* Answer area styling */
#c64-answer {
    background-color: #20398D; /* same as input background */
    color: #6076C5;
    font-family: Commodore64, monospace;
    font-size: 1.2em;
    /*border: 2px solid #6076C5;*/
    border: none;
    padding: 15px;
    width: 95%;
    min-height: 100px;
    margin-top: 20px auto;
    white-space: pre-wrap; /* preserves line breaks */
    overflow: auto;

}




