body {
    font-family: sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #f0f0f0;
}

.container {
    text-align: center;
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 800px;
}

.input-area {
    margin: 1rem 0;
}

#guess-input {
    padding: 0.5rem;
    font-size: 1rem;
    width: 100px;
}

#guess-button {
    padding: 0.5rem 1rem;
    font-size: 1rem;
    cursor: pointer;
}

.log-area {
    margin-top: 1rem;
}

.ai-area {
    margin-top: 1rem;
}

#ai-button {
    padding: 0.5rem 1rem;
    font-size: 1rem;
    cursor: pointer;
}

#ai-suggestion {
    margin-top: 0.5rem;
    font-weight: bold;
}

#history, #player-history, #ai-history {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    max-width: 300px;
}

#history li, #player-history li, #ai-history li {
    margin-bottom: 5px;
    border: 1px solid #ccc;
    padding: 5px;
    border-radius: 3px;
}

#new-game-button {
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    cursor: pointer;
}

#game-mode-selector {
    margin-bottom: 1rem;
}

.log-container {
    display: flex;
    justify-content: space-around;
    margin-top: 1rem;
}

.log-area h2 {
    text-align: center;
}

.log-container .log-area {
    width: 45%;
}

/* Popup styles */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    display: none; /* Hidden by default */
}

.popup-content {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    position: relative;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    cursor: pointer;
    color: #aaa;
}

.close-button:hover {
    color: #333;
}

.popup-content h2, .popup-content h3 {
    text-align: center;
    margin-bottom: 15px;
}

.popup-content p, .popup-content ul {
    margin-bottom: 10px;
    line-height: 1.6;
}

.popup-content ul {
    list-style-type: disc;
    padding-left: 20px;
    text-align: left;
}

.popup-content a {
    color: #007bff;
    text-decoration: none;
}

.popup-content a:hover {
    text-decoration: underline;
}