#container {
    margin: 0 auto;
    width: 1500px;
    height: 700px;
    border: 1px solid #000;
    position: relative;
}

button {
    margin: 10px;
    width: 100px;
    height: 30px;
}

.line {
    width: 1450px;
    height: 115px;
    border-top: 1px solid #000;
    display: flex;
    align-items: center;
}

.vertical {
    position: absolute;
    top: 115px;       
    left: 150px;
    width: 0px;
    height: 585px;
    border: 1px solid #000;
}

#img {
    position: absolute;
    top: 115px;
    left: 1300px;
    height: 585px;
}

#horse1 {
    z-index: 3;
    position: absolute;
    top: 130px;
    left: 10px;
    height: 100px;
    width: 140px;
}
#horse2 {
    z-index: 3;
    position: absolute;
    top: 245px;
    left: 10px;
    height: 100px;
    width: 140px;
}
#horse3 {
    z-index: 3;
    position: absolute;
    top: 360px;
    left: 10px;
    height: 100px;
    width: 140px;
}
#horse4 {
    z-index: 3;
    position: absolute;
    top: 475px;
    left: 10px;
    height: 100px;
    width: 140px;
}
#horse5 {
    z-index: 3;
    position: absolute;
    top: 590px;
    left: 10px;
    height: 100px;
    width: 140px;
}