body {
    font-family: Arial, sans-serif;
    text-align: center;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
    overflow: hidden; /* Prevents scrolling */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh; /* Full height of the viewport */
}

#betting-section {
    margin-bottom: 20px;
}

#race-track {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    width: 100%; /* Full width of the viewport */
    height: 70%; /* Occupies 70% of the screen height */
}

.horse {
    width: 150px;
    height: 30px;
    margin: 10px 0;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute; /* Absolute positioning for precise control */
    left: 0;
    transition: left 0.5s ease; /* Smooth transition */
}

#horse0 {
    background-color: #ff0000; /* Red */
    top: 5%; /* Position each horse vertically */
}

#horse1 {
    background-color: #0000ff; /* Blue */
    top: 22%;
}

#horse2 {
    background-color: #00ff00; /* Green */
    top: 39%;
}

#horse3 {
    background-color: #ffff00; /* Yellow */
    top: 56%;
}

#horse4 {
    background-color: #ff00ff; /* Magenta */
    top: 73%;
}

#horse5 {
    background-color: #00ffff; /* Cyan */
    top: 90%;
}

#winner {
    margin-top: 20px;
    font-size: 24px;
    font-weight: bold;
    color: green;
}

button {
    margin-top: 20px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
}

#balance {
    margin-top: 10px;
    font-size: 18px;
    font-weight: bold;
}
