body,
html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #1a1a1a;
    overflow: hidden;
}

#gameContainer {
    position: relative;
    width: 800px;
    height: 600px;
}

#gameCanvas {
    background-color: #e0e0e0;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    border-radius: 4px;
    display: block;
}

#terminal {
    position: absolute;
    top: 50px;
    left: 50px;
    width: 700px;
    height: 500px;
    background-color: rgba(0, 0, 0, 0.9);
    color: #4af626;
    font-family: 'Courier New', Courier, monospace;
    font-size: 18px;
    padding: 20px;
    box-sizing: border-box;
    border: 2px solid #4af626;
    border-radius: 5px;
    display: none;
    flex-direction: column;
    z-index: 10;
}

#terminal-output {
    margin-bottom: 20px;
    white-space: pre-wrap;
}

#terminal-prompt-line {
    display: flex;
    align-items: center;
}

#terminal-prompt-line span {
    color: #4af626;
    margin-right: 10px;
}

#terminal-input {
    background: transparent;
    border: none;
    color: #4af626;
    font-family: 'Courier New', Courier, monospace;
    font-size: 18px;
    outline: none;
    flex-grow: 1;
}

#hintButton {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: #333;
    color: #fff;
    border: 2px solid #555;
    border-radius: 5px;
    padding: 10px 15px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    z-index: 5;
    font-family: Arial, sans-serif;
    transition: background-color 0.2s;
}

#hintButton:hover {
    background-color: #555;
}

#hintDisplay {
    position: absolute;
    top: 70px;
    right: 20px;
    background-color: rgba(51, 51, 51, 0.9);
    color: #4af626;
    border: 1px solid #4af626;
    border-radius: 4px;
    padding: 10px;
    font-family: 'Courier New', Courier, monospace;
    font-weight: bold;
    z-index: 5;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
}

#endMenu {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 40px;
    border: 3px solid #4af626;
    border-radius: 8px;
    text-align: center;
    z-index: 20;
    font-family: Arial, sans-serif;
}

#endMenu h2 {
    color: #4af626;
    margin-top: 0;
}

#restartButton {
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #4af626;
    color: black;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.1s;
}

#restartButton:hover {
    transform: scale(1.05);
}