body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #ececec;
    text-align: center;
    padding: 20px;
}

section {
    background: white;
    max-width: 800px;
    margin: 20px auto;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}


#scoreBoard {
    display: flex;
    justify-content: center;
    gap: 40px;
    background: #2c3e50;
    color: white;
    padding: 15px;
    border-radius: 50px;
    margin-bottom: 20px;
    font-size: 1.2rem;
}


.game-container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 20px;
}

.history-box {
    flex: 1;
    background: #f8f9fa;
    border: 2px dashed #ccc;
    border-radius: 15px;
    padding: 10px;
    min-height: 250px;
    max-height: 400px;
    overflow-y: auto;
}

.history-box ul {
    list-style: none;
    padding: 0;
    text-align: left;
}

.history-box li {
    padding: 5px;
    border-bottom: 1px solid #eee;
    font-size: 0.9rem;
}

.input-area {
    flex: 1.2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}


#winnerOverlay {
    position: fixed;
    top:0; left:0; width:100%; height:100%;
    background: rgba(0,0,0,0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    color: white;
}

.winner-content h1 {
    font-size: 3rem;
    color: gold;
}


.avatar-sec {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}
.avatar-sec input {
    display: none;
}

.avatar-sec img {
    border: 3px solid transparent;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
}

.avatar-sec input:checked + img {
    border-color: #27ae60;
    transform: scale(1.1);
}

button {
    padding: 10px 25px;
    background-color: #27ae60;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    margin-top: 10px;
}