.fade {
    opacity: 1;
    animation-name: zeroToAHundred;
    animation-iteration-count: 1;
    animation-timing-function: ease-in;
}

.fade1 {
    animation-duration: 1s;
}

.fade2 {
    animation-duration: 2s;
}

.fade3 {
    animation-duration: 3s;
}

@keyframes zeroToAHundred {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

.zoom-in-out {
    animation: zoomy 0.2s;
}

@keyframes zoomy {
    0% {
        transform: scale(1.0);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1.0);
    }
}

@keyframes zoomy-b {
    0% {
        transform: scale(1.0);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1.0);
    }
}

body {
    touch-action: pan-y;
    font-family: sans-serif;
    color: #ccc;
    background: #000;
    text-align: center;
    height: 100%;
    margin: 0;
}

.split {
    position: fixed;
    left: 0;
    right: 0;
}

.top {
    top: 0;
    height: 75%;
    background-color: #555;
    overflow: scroll;
}

.bottom {
    bottom: 0;
    height: 25%;
    background-color: #222;
}

span {
    /* color: lightgray;
    padding: 5px 5px;
    text-decoration: none; */
    border-radius: 5px;
    cursor: default;
    border: 1px solid #000;
}

.title {
    padding: 20px 20px;
    font-size: 2em;
    animation: zoomy 0.5s;
    cursor: default;
}

.options {
    position: fixed;
    top: 0%;
    font-size: 1.5em;
    text-align: left;
    color: rgb(0, 131, 150);
    cursor: help;
}

table {
    margin-left: auto;
    margin-right: auto;
}

th,
td {
    color: lightgray;
    border: 1px solid #000;
    background-color: #222;
    text-decoration: none;
    width: 40px;
    height: 40px;
    padding: 5px 5px;
    margin-top: 10px;
    border-radius: 8px;
    font-size: 2em;
    cursor: default;
}

a {
    color: rgb(0, 131, 150)
}

/* Buttons */
.button-group .button {
    cursor: pointer;
    color: lightgray;
    border: 1px solid #888;
    padding: 5px 5px;
    margin-top: 5px;
    text-decoration: none;
    font-size: 1em;
    width: 30px;
    height: 30px;
    border-radius: 5px;
    transition: 0.2s;
}

.button-wide {
    cursor: pointer;
    color: lightgray;
    border: 1px solid #888;
    padding: 5px 5px;
    margin-top: 5px;
    text-decoration: none;
    font-size: 1em;
    width: 75px;
    height: 30px;
    border-radius: 5px;
    transition: 0.2s;
}

.button-row {
    text-align: center;
    left: 50%;
}

.matched {
    background-color: rgb(0, 150, 0);
}

.button-group .matched:hover {
    background-color: rgb(0, 100, 0);
}

.button-group .matched:active {
    background-color: rgb(0, 180, 0);
    transform: scale(1.2);
}

.contains {
    background-color: rgb(0, 131, 150);
}

.button-group .contains:hover {
    background-color: rgb(0, 101, 115);
    transform: scale(1.2);
}

.button-group .contains:active {
    background-color: rgb(1, 150, 150);
    transform: scale(1.2);
}

.neutral {
    background-color: rgb(100, 100, 100);
}

.button-group .neutral:hover {
    background-color: rgb(80, 80, 80);
    transform: scale(1.2);
}

.button-group .neutral:active {
    background-color: rgb(110, 110, 110);
    transform: scale(1.2);
}

.between-grey {
    background-color: rgb(110, 110, 110);
    animation: zoomy-b 0.2s;
}

.not-grey {
    background-color: #222;
}

/* SNACKS */
#snackbar {
    visibility: hidden;
    background-color: #333;
    z-index: 5;
    position: fixed;
    text-align: center;
    top: 20%;
    width: 40%;
    left: 50%;
    transform: translate(-50%, 0);
    border-radius: 10px;
    padding: 16px;
    font-size: 1.5em;

}

#snackbar.show {
    visibility: visible;
    -webkit-animation: fadein 0.5s, fadeout 0.5s 4.5s;
    animation: fadein 0.5s, fadeout 0.5s 4.5s;
}

#help {
    visibility: visible;
    background-color: #333;
    z-index: 5;
    position: relative;
    top: 20%;
    width: 60%;
    left: 50%;
    transform: translate(-50%, 0);
    border-radius: 10px;
    padding: 16px;
    font-size: 1em;
    overflow-y: auto;
}

#help.hide {
    visibility: hidden;
}

.help-ul {
    text-align: left;
}

@-webkit-keyframes fadein {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadein {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@-webkit-keyframes fadeout {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

@keyframes fadeout {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}