.hidden { display: none; } #actions { position: absolute; bottom: 0; width: 80%; margin: 0 auto 0 auto; transform: translateY(80%); transition: transform 0.2s ease-in-out; padding: 1em; border: solid 2px black; border-bottom: none; border-radius: 1em 1em 0 0; background-color: slategray; &:hover { transform: translateY(0); } } .action button { border-color: lightpink; background-color: rgba(41, 24, 24, 0.4); color: floralwhite; } .sakura { transition-property: opacity; transition-duration: 0.5s; opacity: 1; /* noninteractive and style override */ pointer-events: none; -webkit-appearance: none; appearance: none; background-color: transparent; &::before { content: "🌸" } font-size: 2em; @starting-style{ opacity: 0; } } body { overflow: hidden; } .background { position: absolute; top: 0; height: 100%; background-image: url("/game/assets/sea-water-texture-seamless.jpg"); animation: alternate scroll 60s infinite ease-in-out; z-index: -1; filter: contrast(10%); width: 200vw; } #arena { margin: 0 2em; display: flex; flex-direction: row-reverse; justify-content: left; & #distance { & .label { position: relative; bottom: 0; &.pool-name { left: 0; } &.pool-value { right: 0; } } & .sakura { height: 0.6em; text-shadow: 0 0 0.5em #70b8da; @media (prefers-reduced-motion: no-preference) { animation: 1s sway ease-in-out alternate infinite; } &:not(:checked) { filter: grayscale(85%) contrast(25%); } } & .content { display: flex; justify-content: center; flex-direction: column; } } } @keyframes sway { from { transform: translateY(6%) rotateX(-5deg) } to { transform: translateY(-6%) rotateX(5deg) } } @keyframes scroll { from { transform: translateX(-30%) rotateX(5deg) } to { transform: translateX(-60%) rotateX(-5deg) } } #remote-player { transform: rotateX(180deg); } .pool { display: flex; flex-wrap: wrap; justify-content: space-around; &.life { background-color: rgba(139, 0, 0, 0.57); border: solid 0.2em indianred; border-top: none; } &.aura { background-color: rgba(173, 216, 230, 0.6); border-radius: 1em 1em 0 0; box-shadow: 0 0 0.4em lightskyblue; } } #shadow { flex-basis: 50%; }