/* tennis-live-scoring.css */

#tennis-live-scoring {
    max-width: 600px;
    margin: 0 auto;
    font-family: Arial, sans-serif;
    background-color: #f0f0f0;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

#tennis-live-scoring h2 {
    text-align: center;
    color: #333;
}

.player-names {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.player-names input {
    width: 45%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.score-board {
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.set, .current-game {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.set-label, .game-label {
    flex-basis: 30%;
    font-weight: bold;
}

.set span:not(.set-label), .current-game span:not(.game-label) {
    flex-basis: 35%;
    text-align: center;
    background-color: #eee;
    padding: 5px;
    border-radius: 3px;
}

.score-buttons {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

button {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

#player1-point, #player2-point {
    background-color: #4CAF50;
    color: white;
    width: 45%;
}

#player1-point:hover, #player2-point:hover {
    background-color: #45a049;
}

#end-match, #start-match {
    background-color: #f44336;
    color: white;
    width: 100%;
}

#end-match:hover, #start-match:hover {
    background-color: #d32f2f;
}

#match-duration {
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    margin-top: 20px;
}

/* Responsive design */
@media (max-width: 480px) {
    .player-names {
        flex-direction: column;
    }
    
    .player-names input {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .score-buttons {
        flex-direction: column;
    }
    
    #player1-point, #player2-point {
        width: 100%;
        margin-bottom: 10px;
    }
}