* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 20px;
}

/* Title Styling */
.title-section {
    text-align: center;
    margin-bottom: 20px;
}

.title-section h1 {
    font-family: 'Helvetica', sans-serif;
    font-size: 32px;
    font-weight: bold;
    color: black;
    letter-spacing: 1px;
}

.instructions {
    font-family: 'Helvetica', sans-serif;
    font-size: 12px;
    text-align: center;
    color: black;
    margin-top: 5px;
}

/* Score Section */
.score-section {
    display: flex;
    justify-content: center;
    align-items: center; /* Ensure vertical alignment */
    gap: 50px;
}

.column {
    display: flex;
    flex-direction: column;
    justify-content: center; /* Ensure vertical alignment within the column */
}

/* Ball Counters (Restored to Two Rows with margin for vertical space) */
.color-section {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.color-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.score-box {
    width: 50px;
    height: 50px;
    font-size: 24px;
    text-align: center;
    line-height: 50px;
    color: white;
    background-color: gray;  /* Default gray for unclicked */
    margin-bottom: 10px; /* Adds 10px vertical space between rows */
}

/* Color updates for the ball counters */
#blue-counter {
    background-color: blue;
    color: white; /* White text for better contrast */
}

#black-counter {
    background-color: black;
    color: white; /* White text for better contrast */
}

#red-counter {
    background-color: red;
    color: white; /* White text for better contrast */
}

#yellow-counter {
    background-color: yellow;
    color: black; /* Black text for yellow background */
}

/* Wicket Grid */
.number-grid {
    display: grid;
    grid-template-columns: repeat(6, 50px); /* 6 columns for the wickets */
    grid-auto-rows: 50px; /* Match the row height to the ball grid */
    gap: 5px;
    height: 110px; /* Ensure grid height aligns with ball counters */
}

.number {
    width: 50px;
    height: 50px; /* Match size with the ball counters */
    font-size: 20px;
    text-align: center;
    line-height: 50px; /* Vertically center text */
    background-color: white;
    color: black;
    border: 1px solid black;
    cursor: pointer;
}

.number.active {
    background-color: #7CFC00;
    color: white;
}

/* Team Scores and Reset Button */
.team-score-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 5px;
}

.team-label {
    font-size: 12px;
    margin-left: 5px;
    margin-right: 5px;
    text-align: center;
}

.team-score-box {
    width: 40px;
    height: 40px;
    font-size: 20px;
    text-align: center;
    line-height: 40px;
    background-color: white;
    border: 1px solid black;
}

/* Reset Game Button aligned with team scores */
.reset-button {
    padding: 5px 15px;
    background-color: #A9A9A9;
    border: none;
    color: white;
    font-size: 14px;
    cursor: pointer;
    display: inline-block;
    margin-left: 10px;
    height: 40px; /* Same height as team score boxes */
}

.reset-button:hover {
    background-color: #808080;
}

/* Timer Section */
.timer-section {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    width: 100%;
}

.timer {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 20px;
}

/* Timer Header Font Reduction */
h2 {
    margin-bottom: 10px;
    font-family: Arial, sans-serif;
    font-size: 18px; /* Reduced font size for headers */
}

/* Timer Face Styling */
.timer-face {
    font-size: 36px;
    background-color: black;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    margin-bottom: 10px;
    text-align: center;
    min-width: 100px;
    border: 2px solid #000;
}

.timer-face.red {
    background-color: red;
    color: white;
}

.start-stop, .reset, .adjust {
    padding: 10px 20px;
    background-color: #4CAF50;
    color: white;
    border: none;
    cursor: pointer;
    margin: 5px;
    font-size: 18px;
}

.start-stop:hover, .reset:hover, .adjust:hover {
    background-color: #45a049;
}

.button-row {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 5px;
}

.ten-ten-timer {
    display: flex;
    justify-content: space-around;
    gap: 10px;
}

button {
    font-family: Arial, sans-serif;
}




