@charset "UTF-8"; #menu { position: absolute; top: 50%; left: 50%; translate: -50% -50%; } #menu h1 { text-align: center; font-size: 50px; margin: 10px; color: rgb(97, 47, 0); } #menu .box { background: rgb(180, 124, 52); box-shadow: 0 0 70px rgba(0, 0, 0, 0.7); padding: 10px 25px; padding-bottom: 25px; border-radius: 8px; display: box; } #menu .box input { display: block; margin: 15px; padding: 10px 0px; font-size: 22px; width: 250px !important; margin-left: auto; margin-right: auto; } #menu .box button { display: block; margin: 15px; padding: 10px 20px; font-size: 22px; width: 250px; margin-left: auto; margin-right: auto; } #menu .box h2 { color: wheat; font-size: 30px; text-align: center; } #menu .box p { padding: 15px; width: 220px; max-height: 100px; margin-left: auto; margin-right: auto; overflow-y: auto; background: rgba(0, 0, 0, 0.1); color: rgb(255, 255, 255); border-radius: 10px; border: 2px solid rgba(0, 0, 0, 0.7); } #pieces-area { width: 100%; height: 100%; position: absolute; } #pieces-area > div { width: 80px; position: absolute; aspect-ratio: 1; background-position: center; background-size: 70px; background-repeat: no-repeat; transition-duration: 0.5s; transition-property: top, left; transition-timing-function: cubic-bezier(0.62, 0.055, 0.28, 0.965); z-index: 1; border-radius: 6px; cursor: pointer; } #pieces-area > div.selected { box-shadow: 0 0 15px rgb(0, 255, 242); transition-property: top, left, box-shadow; } #pieces-area > div.white.basic { background-image: url("../resources/pieces/white-basic.svg"); } #pieces-area > div.white.queen { background-image: url("../resources/pieces/white-queen.svg"); } #pieces-area > div.black.basic { background-image: url("../resources/pieces/black-basic.svg"); } #pieces-area > div.black.queen { background-image: url("../resources/pieces/black-queen.svg"); } #pieces-area > div .removable-tag { border-radius: 25px; background: rgb(180, 124, 52); box-shadow: 0 0 10px rgba(0, 0, 0, 0.7); color: wheat; font-size: 15px; text-align: center; padding: 10px 20px; position: absolute; z-index: 100; top: 50%; left: 50%; max-width: 60px; translate: -50% -50%; opacity: 0; transition: 0.2s; } #pieces-area > div .removable-tag::before { content: "odebrat kámen" !important; } #pieces-area > div:hover .removable-tag { opacity: 1; } #game #playfield { background: rgb(180, 124, 52); display: flex; box-shadow: 0 0 100px rgba(0, 0, 0, 0.7); padding: 5px; border-radius: 8px; width: -moz-fit-content; width: fit-content; position: relative; } #game #playfield .row { display: inline-block; } #game #playfield .row .tile { border-radius: 6px; margin: 2px; margin-bottom: 2px; margin-top: 4px; width: 80px; aspect-ratio: 1; background: black; } #game #playfield .row .tile:nth-child(odd) { background: white; box-shadow: -10px -10px 25px inset rgba(0, 0, 0, 0.4); } #game #playfield .row:nth-child(odd) .tile { background: white; box-shadow: -10px -10px 25px inset rgba(0, 0, 0, 0.4); } #game #playfield .row:nth-child(odd) .tile:nth-child(odd) { background: black; } @keyframes invalid-move-animation { 0% { transform: translateX(0); } 25% { transform: translateX(5px); } 50% { transform: translateX(-5px); } 75% { transform: translateX(5px); } 100% { transform: translateX(0); } }/*# sourceMappingURL=game.css.map */