* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #1a1a1a;
    color: grey;
    overflow: hidden;
}

#btn-enter {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, 280%);
}

#screen-failure {
    background-image: url('sigma.WEBP');
    animation: fadeIn ease 10s;
    -webkit-animation: fadeIn ease 10s;
    -moz-animation: fadeIn ease 10s;
    -o-animation: fadeIn ease 10s;
    -ms-animation: fadeIn ease 10s;
    background-color: #1a1a1a;
}

.screen {
    display: none;
    width: 100vw;
    height: 100vh;
    justify-content: center;
    align-items: center;
}

.screen.active {
    display: flex;
}

.screen-content {
    text-align: center;
    padding: 20px;
}

h1 {
    font-size: 3em;
    margin-bottom: 30px;
    color: #E4E329;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

h2 {
    transform: translateY(-120px);
    font-size: 40px;
    margin-bottom: 20px;
    color: #E4E329;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    background-color: #687eb8;
    padding: 10px;
    border-radius: 10px;
}

p {
    font-size: 1.2em;
    margin-bottom: 15px;
}

.btn {
    padding: 15px 40px;
    font-size: 1.2em;
    background-color: #E4E329;
    color: #1a1a1a;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 20px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: #ffed4e;
    transform: scale(1.05);
}

.btn:active {
    transform: scale(0.95);
}

p.text {
    margin-right: 25px;
    font-size: 1.5em;
    color: white;
    font-family: 'Courier New', monospace;
    min-height: 40px;
}

#typed {
    color: #518048;
}

#typed2 {
    color: #518048;
}


#screen-title {
    background-image: url(start.jpeg);
    background-color: #c01010;

}



#screen-intro {
    background-image: url('subway.jpeg');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    background-size: 40% auto;

    background-color: #ffffff;
}


#text-intro {
    transform: translateY(-40px);
    color: #E4E329;
    font-family: "Lucida Console", "Courier New", monospace;
    text-shadow: #5c5c15;
    background-color: rgb(15, 85, 42);
    padding: 10px;
    font-size: 25px;
    border-radius: 13px;
}

#text-intru {
    transform: translateY(-30px);
    color: #E4E329;
    font-family: "Lucida Console", "Courier New", monospace;
    text-shadow: #5c5c15;
    background-color: rgb(15, 85, 42);
    padding: 10px;
    font-size: 25px;
    border-radius: 13px;
}

#text-intra {
    transform: translateY(-30px);
    width: 32%;
    color: #E4E329;
    font-family: "Lucida Console", "Courier New", monospace;
    text-shadow: #5c5c15;
    background-color: rgb(15, 85, 42);
    padding: 10px;
    font-size: 25px;
    border-radius: 13px;
}

#text-intri {
    transform: translateY(130px);
    transform: translateX(945px);
    width: 32%;
    color: #E4E329;
    font-family: "Lucida Console", "Courier New", monospace;
    text-shadow: #5c5c15;
    background-color: rgb(15, 85, 42);
    padding: 10px;
    font-size: 25px;
    border-radius: 13px;
}

#text-intry {
    transform: translateY(130px)X(100px);
    color: #E4E329;
    font-family: "Lucida Console", "Courier New", monospace;
    text-shadow: #5c5c15;
    background-color: rgb(15, 85, 42);
    padding: 10px;
    font-size: 25px;
    border-radius: 13px;
}

#screen-speed-intro {
    background-image: url('kannon.JPG');
    background-position: center center;
    background-size: cover;
    background-size: 100% auto;

    background-color: #151515;
}

#screen-speed-challenge {
    background-image: url('dungeon.jpg');
    background-position: center center;
    background-size: cover;
    background-size: 40% auto;

    background-color: #200c4f;
}



#Seshat {
    font-size: 23px;
    color: #8a2020;
}

#warning1 {
    transform: translateY(-120px);
    font-size: 20px;
    color: #685959;
    background-color:#e74ee0;
    border-radius: 28px;
    font-family: "Lucida Console", "Courier New", monospace;
}

#godspeech1 {
    transform: translateY(-120px);
    font-size: 20px;
    color: #c9b474;
    background-color: #81208a;
    border-radius: 28px;
    font-family: "Lucida Console", "Courier New", monospace;
}
#god1 {
    font-size: 23px;
    color: #e3d21d;
}

#screen-accuracy-challenge {
    background-image: url('dungeon.jpg');
    background-position: center center;
    background-size: cover;
    background-size: 40% auto;

    background-color: #44403d;
}

#screen-accuracy-intro {
    background-image: url('artemis.jpg');
    background-position: center center;
    background-size: cover;
    background-size: 40% auto;

    background-color: #000000;
}

#ch2text {
    color: yellow;
    background-color: rgb(46, 42, 42);
}


#timer-container {
    position: fixed;
    top: 30px;
    right: 50px;
    z-index: 1000;
}

.timer {
    font-size: 3em;
    color: #E4E329;
    font-family: 'Courier New', monospace;
    background: rgba(0,0,0,0.7);
    padding: 0.2em 0.7em;
    border-radius: 0.5em;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    letter-spacing: 0.05em;
}

/* Typing animation for tutorial text */
.typing-text {
    display: inline-block;
    overflow: hidden; /* ensure the text is clipped */
    white-space: nowrap;
    border-right: 0.12em solid rgba(228,227,41,0.9); /* caret */
    font-family: 'Courier New', monospace;
    font-size: 1.4em;
    max-width: 100%;
    /* default: no visible text until animation runs */
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: rgba(228,227,41,0.9); }
}

/* Apply the typing animation when the element is present; duration is conservative */
.typing-text {
    animation:
        typing 3.5s steps(40, end) 0s 1 forwards,
        blink-caret 0.8s step-end infinite;
}

/* Hint fade-in */
.hint {
    opacity: 0;
    color: #dcdcdc;
    font-family: 'Courier New', monospace;
    margin-top: 12px;
    transition: opacity 0.6s ease, transform 0.6s ease;
    transform: translateY(6px);
    /* start animation after typing finishes (approx) */
    animation: hint-fade 0.8s ease 3.6s forwards;
}

@keyframes hint-fade {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Screen fade-in helper used on tutorial screens */
.fade-in-on-load {
    opacity: 0;
    animation: screen-fade 0.6s ease 0s forwards;
}

@keyframes screen-fade {
    to { opacity: 1; }
}

/* Hide second typing animation and hint by default; shown via JS on Enter */
#typing-text-2,
#tutorial-hint-2 {
    display: none;
}

.instruction {
    background-color: white;
    padding: 5px;
    border-radius: 5px;
}

.target {
    background-color: #1a1a1a;
    padding: 5px;
    border-radius: 5px;
}

.white {
    color: #ffffff;
}

.font {
    font-size: 1.5em;
    font-family: 'Courier New', monospace;   
}

#screen-end {
    background-image: url('start.jpeg');
}