body { margin: 0; background-color: #05060c; font-family: calibri; } h1 { font-weight: bold; background-color: #1b203f; min-width: 500px; color: white; margin: 0; font-size: 36px; text-align: center; line-height: 100px; height: 100px; } #game { margin-left: auto; margin-right: auto; margin-bottom: 40px; border-top: 10px dashed #222222; border-bottom: 10px dashed #222222; width: 500px; height: 500px; } p { text-align: center; color: #eeeeee; font-style: italic; font-size: 17px; } .bestScore { position: absolute; top: 100px; left: 0px; padding: 0 20px; background-color: #222222; color: rgba(0, 0, 0, 0); height: 0px; line-height: 0px; margin: 0; } .isDefined { animation: reveal 1s ease; height: 50px; line-height: 50px; color: white; } @keyframes reveal { 0% { height: 0px; line-height: 0px; color: rgba(0, 0, 0, 0); } 30% { color: rgba(0, 0, 0, 0); } 100% { height: 50px; line-height: 50px; color: white; } } ul.rounds { padding-left: 0; color: white; list-style-type: none; position: absolute; width: 300px; left: 50%; margin-left: -150px; top: 110px; } ul.rounds > li { background-color: #333333; text-align: center; border-radius: 2px; animation: hide 5s ease; opacity: 0; height: 0px; line-height: 0px; margin-bottom: 0px; } @keyframes hide { 0% { opacity: 1; height: 40px; line-height: 40px; margin-bottom: 10px; } 90% { opacity: 1; height: 40px; line-height: 40px; margin-bottom: 10px; } 95% { opacity: 0; height: 40px; line-height: 40px; margin-bottom: 10px; } 100% { opacity: 0; height: 0px; line-height: 0px; margin-bottom: 0px; } }