body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    text-align: center;
    background-color: #f4f4f4; /* Light background for the page */
}

h1, h2 {
    color: #333; /* Darker color for headings */
}

/* Styling for the timer */
#timer {
    font-size: 48px;
    margin: 20px;
    color: #e74c3c; /* Red color for the timer */
}

/* Stilizacija kontejnera za tajmer dugmad */
.timer-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
}

/* Styling for timer control buttons */
#startTimer, #pauseTimer, #resetTimer {
    font-size: 24px;
    width: 50px; /* Fixed width */
    height: 50px; /* Fixed height */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%; /* Circular buttons */
    border: none;
    background-color: #3498db; /* Blue background */
    color: white; /* White text */
    cursor: pointer;
    margin: 0 10px; /* Space between buttons */
    transition: background-color 0.3s, transform 0.3s;
}

#startTimer:hover, #pauseTimer:hover, #resetTimer:hover {
    background-color: #2980b9; /* Darker blue on hover */
    transform: scale(1.1); /* Slightly enlarge buttons on hover */
}

/* Stilizacija za prikaz rezultata */
#score {
    font-size: 2em;
    margin: 20px 0;
    color: #34495e;
}

/* Container holding both teams */
.team-container {
    display: flex;
    justify-content: center;
    gap: 20px; /* Space between teams */
}

/* Individual team styling */
.team {
    flex-basis: 45%; /* Each team takes up 45% of container width */
    background-color: #fff; /* White background for team list */
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); /* Box shadow for depth */
}

/* Styling for player lists */
ul {
    list-style-type: none; /* Removes bullet points */
    padding: 0; /* Removes padding */
}

/* Styling for each player item */
li {
    border-bottom: 1px solid #ddd; /* Bottom border for separation */
    padding: 8px;
    cursor: pointer; /* Indicates item is clickable */
}

li:hover {
    background-color: #eee; /* Light grey background on hover */
}

/* Styling for input fields */
input[type="text"] {
    padding: 10px;
    border: 1px solid #ddd; /* Grey border */
    border-radius: 4px; /* Rounded corners */
    margin-bottom: 10px; /* Space below input fields */
}

/* Styling for buttons */
button {
    background-color: #3498db; /* Blue background */
    color: white; /* White text */
    border: none;
    padding: 10px 20px;
    text-transform: uppercase; /* Uppercase text */
    border-radius: 4px; /* Rounded corners */
    cursor: pointer; /* Indicates button is clickable */
}

button:hover {
    background-color: #2980b9; /* Darker blue on hover */
}

/* Styling for the goal indicator */
.goal {
    color: gold; /* Gold color for goals */
    margin-left: 5px; /* Space to the left of the goal icon */
}

/* Styling for goal time indicator */
.goal-time {
    color: #e74c3c; /* Red color */
    margin-left: 5px; /* Space to the left of the goal time */
}

/* Responsive adjustments for small screens, like mobile devices */
@media screen and (max-width: 390px) {
    .team-container {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .team {
        flex-basis: 100%;
    }

    #timer, button, input[type="text"], input[type="number"] {
        width: 90%; /* Adjust width to fit smaller screens */
        margin: 10px auto; /* Center elements */
    }

    #timer {
        font-size: 24px; /* Adjust font size for smaller screens */
    }
}

/* CSS Flexbox for main container (use your existing main or similar element) */
main {
    background: #d9d7d5;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

/* Adjustments for larger devices */
@media (min-width: 600px) {
    main {
        flex-wrap: nowrap;
    }

    div {
        flex-basis: 33%; /* Columns will take up about one-third of the container width */
    }
}