/* Reset and Box Sizing */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Header Container */
.header-container {
    align-items: center; 
    justify-content: center; 
    position: relative; 
    padding: 20px; 
}

/* Body Styling */
body {
    background-color: #1b1f23;
    color: #e4e6eb;
    font-family: 'Roboto', sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Main Container */
.container {
    display: flex;
    flex-direction: column;
    background-color: #2c2f33;
    border-radius: 10px;
    width: 90%;
    max-width: 1200px;
    box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.4);
    margin: 20px auto;
    padding: 30px;
}

/* Header Styling */
h1 {
    color: #43b581;
    margin-bottom: 30px;
    text-align: center;
    font-weight: 600; 
}

/* Label and Input Styles */
label {
    font-size: 16px;
    margin-bottom: 5px;
    display: block;
    color: #b9bbbe;
}

select {
    width: 100%;
    padding: 15px;
    border: 1px solid #7289da;
    border-radius: 5px;
    background-color: #3a3f45;
    color: #e4e6eb;
    font-size: 16px;
    margin: 10px 0 20px; 
}

/* Score Buttons Styling */
.score-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.button-grid {
    display: flex;
    flex-direction: column;
    align-items: center; /* Center align the button rows */
}

.button-row {
    display: flex;
    justify-content: center;
    margin: 10px 0; /* Margin between rows */
}

/* Score Button Styles */
.score-button {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 60px; /* Breyta stærð kassa ef þörf krefur */
    height: 60px; /* Breyta stærð kassa ef þörf krefur */
    font-size: 18px; /* Stærð textans */
    font-weight: bold; /* Feitletra tölurnar */
    margin: 5px; /* Bil á milli hnappa */
    border: 1px solid #ccc; /* Rammaaðferð */
    border-radius: 5px; /* Slétt horn */
    background-color: #43b581; /* Bakgrunnslitur */
    cursor: pointer; /* Breytir bendlinum þegar mús fer yfir */
    box-sizing: border-box; /* Til að innri padding/römmun trufli ekki */
}

.score-button:hover {
    background-color: #3a924e;
    transform: scale(1.05); 
}

.score-button.green {
    background-color: #28a745; /* Green for 25 */
}

.score-button.green:hover {
    background-color: #218838; /* Darker green on hover */
}

.score-button.red {
    background-color: #dc3545; /* Red for 50 */
}

.score-button.red:hover {
    background-color: #c82333; /* Darker red on hover */
}

/* Score Multiplier Styles */
.score-multipliers {
    text-align: center;
    margin-top: 20px;
}

.small-button {
    background-color: #43b581;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin: 10px; /* Space between multiplier buttons */
}

.small-button:hover {
    background-color: #3a924e;
    transform: scale(1.05); /* Slightly scale on hover */
}

/* Endurstilla Button Styling */
#reset-score {
    background-color: #dc3545; /* Red color for emphasis */
    color: #ffffff;
    border: none;
    border-radius: 5px;
    padding: 15px 20px; /* Adjust padding for a comfortable click area */
    font-size: 16px; /* Font size for visibility */
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin: 20px auto; /* Center the button horizontally */
    display: block; /* Make it a block element to center */
    width: 200px; /* Fixed width for uniformity */
}

#reset-score:hover {
    background-color: #c82333; /* Darker red on hover */
    transform: scale(1.05); /* Slightly scale on hover */
}

/* Player Container Styles */
.flex-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 20px;
}

/* Player Box Styles */
.player {
    background-color: #3a3f45;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.3); /* Increased shadow for depth */
    text-align: center;
    min-width: 150px;
    max-width: 200px;
    color: #e4e6eb;
}

/* Score Display Styles */
h3 {
    font-size: 2em; /* Increase font size for the score */
    margin: 10px 0;
}

/* Specific styles for the score span */
.player-score {
    display: inline-block; /* Allows padding to be applied */
    padding: 10px 15px; /* Add padding for a bigger box effect */
    border-radius: 5px; /* Rounded corners for the score display */
    background-color: #2c2f33; /* Background color for better visibility */
    color: #43b581; /* Color for the score text */
    font-weight: bold; /* Bold text for emphasis */
}

/* Blinking Effect for Current Player */
.blinking {
    animation: blinking 1s infinite;
}

@keyframes blinking {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Footer Styling */
/* Footer Styling */
footer {
    text-align: center;
    margin-top: auto;
    color: #b9bbbe;
    font-size: 0.85em;
    padding: 10px 0;
    background-color: #2c2f33; /* Optional: Add a background color to the footer */
    width: 100%; /* Ensures the footer spans the full width of the page */
    position: relative; /* Ensure proper placement */
    box-shadow: 0px -2px 5px rgba(0, 0, 0, 0.3); /* Optional: Add a subtle shadow */
}


/* Responsive Design */
@media (max-width: 768px) {
    .flex-container {
        flex-direction: column;
    }

    .player {
        max-width: 100%;
    }

    button {
        width: 100%;
    }
}
