@font-face {
    font-family: 'Pixel';
    src: url('../static/fonts/Pixel.ttf');
}

@font-face {
    font-family: 'ljTurtlesTMNT_Bold_Cyrillic';
    src: url('../static/fonts/ljTurtlesTMNT_Bold_Cyrillic.ttf');
}

@font-face {
    font-family: 'Deutsch_Gothic';
    src: url('../static/fonts/Deutsch_Gothic.ttf');
}

@font-face {
    font-family: 'Capture_it';
    src: url('../static/fonts/Capture_it.ttf');
}

@font-face {
    font-family: 'AA-Akashi';
    src: url('../static/fonts/AA-Akashi.ttf');
}

body {
    background-color: #ffffff;
    color: #000000;
    font-family: 'Therminal', monospace;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100vh;
}

body.loaded #preloader {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.spinner {
    border: 8px solid #f3f3f3;
    border-top: 8px solid #025993;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
}

.task-container {
    background-color: #f0f0f0;
    border-radius: 5px;
    padding: 20px;
    width: 80%;
    max-width: 800px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.task {
    line-height: 1.5;
}

.input-command {
    font-family: 'Therminal', monospace;
    font-size: 16px;
    padding: 5px;
}

.input-symbol {
    font-family: 'Therminal', monospace;
    font-size: 16px;
    width: 32px;
    text-align: center;
    padding: 5px;
}

.run-button {
    margin-top: 10px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    background-color: #a9a9ca;
    color: #ffffff;
    border: none;
    border-radius: 3px;
}

.run-button:hover {
    background-color: #0056b3;
}

.console {
    background-color: #e6e6e6;
    border-radius: 5px;
    padding: 20px;
    width: 80%;
    max-width: 800px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    height: 300px;
    overflow-y: auto;
}

.console-text {
    line-height: 1.5;
    color: #000000;
    word-wrap: break-word;
}

.highlight-input {
    font-weight: bold;
    color: #008000;
}

.error-text {
    font-weight: bold;
    color: #ff0000;
}

.function-keyword {
    color: #a020f0;
}

.function-name {
    color: #0000ff;
}

.cursor {
    display: inline-block;
    width: 10px;
    height: 20px;
    background-color: #000000;
    animation: blink 1s infinite;
}

@keyframes blink { 
    0%, 100% { background-color: #000000; }
    50% { background-color: transparent; }
}

@keyframes spin { 
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hint-container {
    background-color: #f0f0f0;
    border-radius: 5px;
    padding: 20px;
    width: 80%;
    max-width: 800px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    height: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hint-text {
    color: black;
    font-size: 16pt;
    font-family: 'Therminal', monospace;
    text-align: center;
    font-weight: bold;
}

.comment {
    font-family: 'Therminal', monospace;
    font-size: 16px;
    font-style: italic;
    color: #858484;
    margin: 10px 0;
} 

.laptop-screen {
    width: 80%;
    max-width: 750px;
    height: 350px;
    background-color: #333;
    border-radius: 18px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-family: 'Pixel';
    font-size: 32pt;
    transition: background-color 0.3s ease-in-out;
    position: relative;
    border: 8px solid #222;
    padding: 20px;
}

.monitor-stand {
    width: 80px;
    height: 20px;
    background-color: #333;
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 5px 5px 0 0;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

.monitor-base {
    width: 150px;
    height: 20px;
    background-color: #333;
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid #222;
    border-radius: 5px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

.screen-text {
    display: none;
    text-align: center;
    font-size: 32pt;
}

.laptop-screen.active {
    background-color: #a9a9ca;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.laptop-screen.active .screen-text {
    display: block;
}

.laptop-screen.inactive {
    background-color: #333;
    color: #888;
}

#map {
    width: 80%;
    height: 400px;
    border-collapse: collapse;
    margin: 0 auto;
    border: 3px dashed #c6d6ff;
}

#map td {
    border: 3px dashed #c6d6ff;
    width: 16.66%;
    height: calc(400px / 6);
    background-color: #e3f1fc;
    text-align: center;
}

.green {
    background-color: rgb(205, 219, 255);
}

#character {
    width: 60px;
    height: 60px;
    top: 0;
    left: 0;
    transition: transform 0.3s ease;
}

.select-container {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.select-container label {
    margin-right: 10px;
    font-weight: bold;
}

.select-container select {
    padding: 8px;
    font-size: 16px;
    border: 2px solid #a9a9ca;
    border-radius: 5px;
    background-color: #fff;
    color: #333;
    appearance: none; 
    cursor: pointer;
    margin-right: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    width: 200px;
    height: auto;
}

#conv-task select {
    font-size: 16px;
    border: 2px solid #a9a9ca;
    border-radius: 5px;
    background-color: #fff;
    color: #333;
    appearance: none; 
    cursor: pointer;
    margin-bottom: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    width: 200px;
    height: auto;
}

.select-container select:hover {
    border-color: #0056b3;
}

.select-container select:focus {
    outline: none;
    border-color: #0056b3;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

#audit_page_cont {
    width: 750px;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
}

.auditory_container {
    width: 300px;
}

.audit_main_text {
    font-family: 'Therminal', monospace;
    font-size: 16pt;
    font-weight: bold;
}

.audit_desc_text {
    font-family: 'Therminal', monospace;
    font-size: 16pt;
}

.result_audit {
    border-radius: 32px;
    width: 400px;
    height: 600px;
    background-color: #a9a9ca; 
    display: flex;
    justify-content: center; 
    align-items: center; 
    overflow: hidden; 
}

.result_audit img { 
    width: auto;
    height: 100%; 
}

.result_audit.parallax {
    background-image: url('../static/images/paralax.gif');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.auditory_container select, input {
    padding: 8px;
    font-size: 16px;
    border: 2px solid #a9a9ca;
    border-radius: 5px;
    background-color: #fff;
    color: #333;
    appearance: none;
    cursor: pointer;
    margin-right: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    width: 200px; 
    height: auto;
}

.auditory_container select:hover, input:hover {
    border-color: #0056b3;
}

.auditory_container select:focus, input:focus {
    outline: none;
    border-color: #0056b3;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

.auditory_container button {
    margin-top: 10px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    background-color: #a9a9ca;
    color: #ffffff;
    border: none;
    border-radius: 3px;
    transition: background-color 0.3s ease;
}

.auditory_container button:hover {
    background-color: #0056b3;
}

.gameName {
    color: white;
    font-family: 'Pixel';
    font-size: 32pt;
}

.gameName.horror {
    font-family: 'ljTurtlesTMNT_Bold_Cyrillic'; 
    color: #FF0000; 
    background-color: #3a3a3a;
    padding: 10px 20px;
    border-radius: 8px;
}

.gameName.adventure {
    font-family: 'AA-Akashi';
    color: #FFFF00; 
    background-color: #4744ff;
    padding: 10px 20px;
    border-radius: 8px;
}

.gameName.fantasy {
    font-family: 'Deutsch_Gothic';
    color: #0000FF;
    background-color: #f7df76;
    padding: 10px 20px;
    border-radius: 8px;
}

.gameName.shooter {
    font-family: 'Capture_it'; 
    color: #FFFF00;
    background-color: #ad1f1f;
    padding: 10px 20px;
    border-radius: 8px;
}

.pacman {
    position: absolute;
    left: 2vw;
    top: 50%;
    transform: translateY(-50%);
    width: 16vw; 
    height: 16vw; ;
    background-image: url('../static/images/pacman.gif'); 
    background-size: contain;
    background-repeat: no-repeat;
    z-index: 1;
}

.conveyor-item {
    position: absolute;
    top: 50%;
    width: 8vw;
    height: 8vw;
    background-size: contain;
    background-repeat: no-repeat;
    transform: translateY(-50%);
}

.circle {
    width: 2vw;
}

.cssName {
    color: #f37b3f;
}