body {
    font-family: Arial, sans-serif;
    background: linear-gradient(to right, #8e44ad, #3498db);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

.game-container {
    text-align: center;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

#room, #intro, #key, #door, #pointsTable {
    margin-top: 20px;
}

.puzzle, #key, #door {
    margin-bottom: 20px;
}

.hidden {
    display: none;
}

button {
    padding: 10px 20px;
    margin: 5px;
    font-size: 1em;
}

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

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: black; }
}

#instructions {
    white-space: nowrap;
    overflow: hidden;
    border-right: 2px solid;
    width: 0;
    animation: typing 8.5s steps(40, end), blink-caret .75s step-end infinite;
}

#door {
    animation: doorOpen 1s ease-out;
}

@keyframes doorOpen {
    from { transform: scale(0.5); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
