.tile {
    display: inline-block;
    position: relative;
    margin: 0.33%;
}

.tile:hover {
    cursor: grab;
}

.square {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
}

.btn.focus, .btn:focus {
    outline: 0;
    box-shadow: none!important;
}

.highlight {
    background: yellow;
}

h1 {
    text-align: center;
    color: #0d6efd;
}

#player1row, #player2row {
    font-size: 0.83em;
    line-height: 2em;
}

#statusline {
    text-align: center;
    min-height: 32px;
}

#status {
    font-weight: bold;
}

#gameboard {
    text-align: center;
    line-height: 0;
}

#tile_tray {
    margin-bottom: 1rem;
    text-align: center;
}

#tile_instructions {
    text-align: center;
    font-size: 0.8rem;
    margin-bottom: 0;
}

.buttonrow {
    margin-bottom: 0.5rem;
}

#clipshare {
    display: inline-block;
    font-size: 0.75rem;
    word-break: break-all;
}

#left_buttons {
    font-size: 1.5em;
    position: fixed;
    top: 3px;
    left: 3px;
}

#right_buttons {
    font-size: 1.5em;
    position: fixed;
    top: 3px;
    right: 3px;
}

#oldgames {
    overflow-y: auto;
    max-height: 200px;
    height: 200px;
}

#oldgames table {
    width: 100%;
    border-collapse: collapse;
}

#oldgames table tbody tr td:nth-child(2) {
    padding-left: 0.5em;
    padding-right: 0.5em;
}

#oldgames table tbody tr td {
    border-bottom: 1px solid #ccc;
}

#createNewGame {
    margin-top: 0.5em;
}

#control_body {
    padding-bottom: 0;
}

#selected_tile {
    position: absolute;
    right: 4px;
    top: 4px;
}

#big_message {
    position: fixed;
    top: -20%;
    left: 50%;
    background-color: red;
    z-index: 999;
    color: white;
    font-size: 6vw;
    font-weight: bold;
    text-align: center;
    width: fit-content;
    transform: translate(-50%, -50%);
}

#gamefoot {
    text-align: center;
}

#etsy {
    color: blue;
    text-decoration: underline;
}

@keyframes spindownup {
    0% {
        opacity: 1;
        transform-origin: center;
        transform: rotate(0deg) scale(1);
    }

    40% {
        opacity: 0;
        transform-origin: center;
        transform: rotate(-720deg) scale(0);
    }

    60% {
        opacity: 0;
        transform-origin: center;
        transform: rotate(-720deg) scale(0);
    }

    100% {
        opacity: 1;
        transform-origin: center;
        transform: rotate(0deg) scale(1);
    }
}

@keyframes pulse {
    0% { opacity: 1; transform: scale(1.0); }
    100% { opacity: 0.75; transform: scale(0.75); }
}

@keyframes bouncedown {
    0% { top: -20%; }
    100% { top: 50%; }
}

@keyframes bouncewait {
    0% { top: 50%; }
    100% { top: 50%; }
}

@keyframes bounceup {
    0% { top: 50%; }
    100% { top: -20%; }
}

@keyframes fadeout {
    0% { opacity: 1; }
    100% { opacity: 0; }
}

.anim-spindownup {
    animation-name: spindownup;
    animation-duration: 3.5s;
    animation-direction: normal;
    animation-timing-function: linear;
    animation-fill-mode: forwards;
}

.anim-bounce {
    animation-name: bouncedown, bouncewait, bounceup;
    animation-duration: 0.75s, 1.5s, 0.75s;
    animation-delay: 0s, 0.75s, 2.25s;
    animation-timing-function: ease-in, linear, ease-out;
}

.anim-bounce-stay {
    animation-name: bouncedown, boundwait, fadeout;
    animation-duration: 1s, 2.5s, 1s;
    animation-delay: 0s, 1s, 3.5s;
    animation-timing-function: ease-in, linear, linear;
    animation-fill-mode: forwards, forwards, forwards;
}
