/* style.css */
body {
    font-family: sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
    background-color: #f0f0f0;
}

h1, h2, h3 {
    color: #333;
}

#initial-view, #waiting-view, #game-view {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-top: 20px;
    text-align: center;
    min-width: 300px; 
}

button {
    padding: 10px 15px;
    font-size: 16px;
    margin: 5px;
    cursor: pointer;
    border: none;
    border-radius: 5px;
    background-color: #007bff;
    color: white;
    transition: background-color 0.2s;
}

button:hover {
    background-color: #0056b3;
}

button:active {
     background-color: #004085;
}


#game-link {
    padding: 8px;
    font-size: 14px;
    margin-right: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

#choices button {
    font-size: 24px; 
    padding: 15px 20px;
    margin: 10px;
}

#result {
    margin-top: 20px;
    font-weight: bold;
    min-height: 25px; 
}

#error-message {
    background-color: #ffebee;
    color: #c62828;
    padding: 10px;
    border-radius: 4px;
    margin-top: 15px;
    border: 1px solid #c62828;
    min-height: 20px; 
    display: inline-block; 
}

.choice-btn.selected {
    border: 3px solid #007bff;
    background-color: #cce5ff;
    color: #004085;
}

.choice-btn.opponent-choice {
    border: 3px solid #9c27b0;
    background-color: #e1bee7;
    color: #4a148c;
}

.choice-btn.both-choice {
    border: 3px solid transparent;
    background: 
        linear-gradient(90deg, #cce5ff 50%, #e1bee7 50%) padding-box,
        linear-gradient(90deg, #007bff 50%, #9c27b0 50%) border-box;
    color: #333;
}