body {
    font-family: Arial, sans-serif;
    background: linear-gradient(135deg, #ffb8e3, #9d9bd8);
    color: #333;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

.home-button {
    position: fixed;
    top: 15px;
    left: 15px;
    padding: 10px 15px;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
    color: #fff;
    border: 2px solid #f9ceff;
    background-color: #ff98d4;
    border-radius: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: background 0.3s, transform 0.2s;
    z-index: 1000;
}

.home-button:hover {
    background: #ffd7f3;
    transform: scale(1.1);
}

.container {
    margin-top: 50px; /* Space for the fixed button */
    width: 90%;
    max-width: 600px;
    background: #fff;
    padding: 20px;
    border-radius: 25px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    margin-bottom: 80px; 
    
}

h1 {
    text-align: center;
    margin-bottom: 20px;
    color: #fdd1ff;
    text-shadow: -1px -1px 0 rgb(0, 0, 0), 1px -1px 0 rgb(0, 0, 0), -1px 1px 0 rgb(0, 0, 0), 1px 1px 0 rgb(0, 0, 0);
}

#scoreboard {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.scorecard {
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background-color: #fff9ff; /* Slightly off-white background for better contrast */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 2px solid #d8bfd4;
}

.scorecard span {
    font-weight: bold;
}

.buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.score-input {
    width: 80px;
    padding: 5px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

button {
    padding: 5px 10px;
    font-size: 14px;
    border: none;
    border-radius: 15px;
    border: 2px solid #f9ceff;
    background-color: #ff98d4;
    color: #000000;
    cursor: pointer;
    transition: background 0.3s;
    text-shadow: -1px -1px 0 rgb(255, 255, 255), 1px -1px 0 rgb(255, 255, 255), -1px 1px 0 rgb(255, 255, 255), 1px 1px 0 rgb(255, 255, 255); /* Thin black border */
}

button:hover {
    background: #ffdbea;
}

#resetButton {
    width: 100%;
    margin-top: 20px;
    border: 2px solid #f9ceff;
    background-color: #ff98d4;
    font-weight: bold;
}

#resetButton:hover {
    background: #ffdcef;
}

.scorecard span {
    font-size: 1.2em;
}

.scorecard span:nth-child(1) {
    font-weight: bold;
}

span[name="1st-place"] {
    color: gold;
}

span[name="2nd-place"] {
    color: silver;
}

span[name="3rd-place"] {
    color: tomato /* Bronze color */
}
