body {
    font-family: 'Arial', sans-serif;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    background-color: #333;
    padding: 20px;
    box-sizing: border-box;
}


.scoreboard {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 800px;
    background-color: rgba(0, 0, 0, 0.9);
    color: #fff;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    margin-bottom: 20px;
    padding: 10px;
    box-sizing: border-box;
}

.team {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 30%;
}

.timer {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 40%;
}

h3 { margin: 0; font-size: 24px; font-weight: bold; }
.score { font-size: 72px; font-weight: bold; margin: 0; }
#match-status { font-size: 48px; font-weight: bold; margin: 0; }
#current-quarter { font-size: 24px; margin: 0; }

.container {
    width: 100%;
    max-width: 800px;
    margin-top: 20px;
}

.controls {
    display: flex;
    justify-content: space-between;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.team-controls, .timer-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
}

button {
    margin: 5px;
    padding: 10px 15px;
    font-size: 16px;
    cursor: pointer;
    background-color: #0C2340;
    color: white;
    border: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

button:hover { background-color: #17408B; }
.reset { background-color: #860038; }
.reset:hover { background-color: #C9082A; }

input {
    margin: 5px;
    padding: 5px;
    font-size: 16px;
    border: 2px solid #0C2340;
    border-radius: 5px;
}

.last-scored {
    margin-top: 20px;
    font-size: 18px;
    font-weight: bold;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    text-align: center;
}

footer {
    margin-top: 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

@media (max-width: 800px) {
    body {
        padding: 10px;
    }

    .scoreboard {
        flex-direction: row;
        justify-content: space-around;
        padding: 5px;
    }

    .team, .timer {
        width: auto;
    }

    h3 { font-size: 18px; }
    .score { font-size: 36px; }
    #match-status { font-size: 24px; }
    #current-quarter { font-size: 18px; }

    .controls {
        flex-direction: column;
        align-items: center;
        padding: 10px;
    }

    .team-controls, .timer-controls {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        margin: 5px 0;
    }

    button {
        padding: 8px 12px;
        font-size: 14px;
        margin: 3px;
    }

    input {
        width: 60px;
    }

    .last-scored {
        padding: 10px;
        font-size: 16px;
    }
}
