#game-container,
#landing-page {
    zoom: 0.8;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #121212;
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden;
}

#game-container {
    display: flex;
    flex-direction: row;
    background-color: #000000;
    width: 80%;
    height: 90%;
    border: 2px solid #ffffff;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    gap: 10px;
    padding: 10px;
    box-sizing: border-box;
}

#terminal {
    flex: 2;
    display: flex;
    flex-direction: column;
    background-color: #000000;
    padding: 20px;
    overflow: hidden;
    position: relative;
}

#output {
    flex: 1;
    overflow-y: auto;
    white-space: pre-wrap;
    font-family: monospace;
    font-size: 20px;
    line-height: 1.5;
    margin-bottom: 100px;
    padding-right: 10px;
}

#input {
    border: none;
    padding: 25px;
    font-size: 20px;
    font-family: 'Roboto Mono', monospace;
    background-color: #222222;
    color: #ffffff;
    outline: none;
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
    display: block;
}

#map-container {
    flex: 0 0 500px;
    width: 500px;
    height: 500px;
    background-color: #000000;
    border: 2px solid #ffffff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#map {
    width: 100%;
    height: 100%;
    background-color: #000000;
}

#question-container,
#name-container {
    display: none; /* Initially hidden */
    background-color: #000000;
    color: #ffffff;
    border: 2px solid #ffffff;
    border-radius: 8px;
    padding: 20px;
    font-family: 'Roboto Mono', monospace;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

#question-container h2,
#name-container h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #ffffff;
}

#question-container button,
#name-container button {
    background-color: #222222;
    color: #ffffff;
    border: 2px solid #ffffff;
    padding: 15px 30px;
    font-size: 22px;
    font-family: 'Roboto Mono', monospace;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
    margin: 15px;
}

#question-container button:hover,
#name-container button:hover {
    background-color: #ffffff;
    color: #000000;
}

#question-container button:focus,
#name-container button:focus {
    outline: 2px solid #ffffff;
}

#player-name {
    border: 2px solid #ffffff;
    padding: 20px;
    font-size: 22px;
    font-family: 'Roboto Mono', monospace;
    background-color: #222222;
    color: #ffffff;
    outline: none;
    width: 80%;
    border-radius: 4px;
    margin-top: 15px;
    text-align: center;
    box-sizing: border-box;
}

#player-name::placeholder {
    color: #aaaaaa;
}

#player-name:focus {
    background-color: #333333;
}

/* Media Queries */
@media (max-width: 1024px) {
    #game-container {
        flex-direction: column;
        width: 90%;
        height: 95%;
    }

    #terminal {
        flex: 1;
        margin-bottom: 0;
        padding-bottom: 0;
    }

    #output {
        margin-bottom: 0;
        font-size: 18px;
    }

    #input {
        position: static;
        font-size: 18px;
        padding: 20px;
        margin-top: 10px;
    }

    #map-container {
        flex: 1;
        width: 100%;
        height: auto;
        min-height: 280px;
    }

    #map {
        width: 100%;
        height: 100%;
    }

    #question-container {
        max-width: 90%;
        width: 90%;
    }
}

@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }

    #game-container {
        width: 95%;
        height: 98%;
        gap: 5px;
        padding: 5px;
    }

    #terminal {
        padding: 10px;
        padding-bottom: 0;
        margin-bottom: 0;
    }

    #output {
        margin-bottom: 0;
        font-size: 16px;
    }

    #input {
        position: static;
        font-size: 16px;
        padding: 15px;
        margin-top: 10px;
    }

    #map-container {
        flex: 1;
        width: 100%;
        height: auto;
        min-height: 220px;
    }

    #map {
        width: 100%;
        height: 100%;
    }

    #question-container {
        max-width: 90%;
        width: 90%;
    }
}

@media (max-width: 480px) {
    body {
        overflow-x: hidden;
    }

    #game-container {
        width: 98%;
        height: 99%;
        gap: 3px;
        padding: 3px;
    }

    #terminal {
        padding: 8px;
        padding-bottom: 0;
        margin-bottom: 0;
    }

    #output {
        margin-bottom: 0;
        font-size: 14px;
        line-height: 1.3;
    }

    #input {
        position: static;
        font-size: 14px;
        padding: 12px;
        margin-top: 8px;
    }

    #map-container {
        flex: 1;
        width: 100%;
        height: auto;
        min-height: 180px;
        border: 1px solid #ffffff;
    }

    #map {
        width: 100%;
        height: 100%;
    }

    #question-container {
        max-width: 90%;
        width: 90%;
    }
}

/* Landing Page */
#landing-page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #121212;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    z-index: 1000;
    overflow-y: auto;
    padding-top: 20px;
    padding-bottom: 20px;
}

#landing-page .content {
    background-color: #000000;
    padding: 40px;
    border: 2px solid #ffffff;
    border-radius: 8px;
    max-width: 800px;
    width: 90%;
    color: #ffffff;
    font-family: monospace;
    line-height: 1.6;
}

#landing-page h1 {
    color: #ffffff;
    margin-top: 0;
    text-transform: uppercase;
    border-bottom: 1px solid #ffffff;
    padding-bottom: 10px;
}

#landing-page h2 {
    color: #ffffff;
    margin-top: 20px;
    text-transform: uppercase;
}

#landing-page p {
    margin-bottom: 15px;
    font-size: 20px;
}

#landing-page code {
    background-color: #222;
    padding: 2px 5px;
    border: 1px solid #555;
    border-radius: 4px;
    font-family: 'Roboto Mono', monospace;
    color: #ffffff;
}

#start-btn {
    background-color: #222222;
    color: #ffffff;
    border: 2px solid #ffffff;
    padding: 15px 32px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 20px;
    margin-top: 20px;
    cursor: pointer;
    border-radius: 4px;
    font-family: 'Roboto Mono', monospace;
    transition: background-color 0.3s, color 0.3s;
    width: 100%;
    text-transform: uppercase;
}

#start-btn:hover {
    background-color: #ffffff;
    color: #000000;
}

#start-btn:focus {
    outline: 2px solid #ffffff;
}
