@import url('https://fonts.googleapis.com/css2?family=Tilt+Prism&display=swap');

* {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

body {
    margin: 0;
    overflow: hidden;
}

.hide {
    display: none;
}

nav {
    position: relative;
    width: 100vw;
    min-width: 768px;
    background: #1d3557;
    padding: 12px 0;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    font-family: sans-serif;
}

.logo {
    position: absolute;
    width: 100%;
    padding-left: 30px;
}

.logo img {
    position: relative;
    height: 25px;
}

.logo a {
    position: relative;
    font: 600 200% 'Tilt Prism';
    margin: 0;
    -webkit-animation: font-color-change 15s linear infinite;
    animation: font-color-change 15s linear infinite;
    background: -webkit-gradient(linear, left top, right top, from(#49b6ff), color-stop(#fff), color-stop(#64b5f6), color-stop(#c5d11c), color-stop(#4ecdc4), to(#49b6ff));
    background: -o-linear-gradient(left, #49b6ff, #fff, #64b5f6, #c5d11c, #4ecdc4, #49b6ff);
    background: linear-gradient(90deg, #49b6ff, #fff, #64b5f6, #c5d11c, #4ecdc4, #49b6ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    background-size: 400%;
}

@-webkit-keyframes font-color-change {
    0% {
        background-position: 0%;
    }

    100% {
        background-position: 400%;
    }
}

@keyframes font-color-change {
    0% {
        background-position: 0%;
    }

    100% {
        background-position: 400%;
    }
}

@-webkit-keyframes jump-animation {

    0%,
    60%,
    100% {
        -webkit-transform: translateY(0);
        transform: translateY(0);
    }

    30% {
        -webkit-transform: translateY(-12px);
        transform: translateY(-12px);
    }

    80% {
        -webkit-transform: translateY(-5px);
        transform: translateY(-5px);
    }
}

@keyframes jump-animation {

    0%,
    60%,
    100% {
        -webkit-transform: translateY(0);
        transform: translateY(0);
    }

    30% {
        -webkit-transform: translateY(-12px);
        transform: translateY(-12px);
    }

    80% {
        -webkit-transform: translateY(-5px);
        transform: translateY(-5px);
    }
}

@media (max-width: 1300px) {
    .logo {
        position: relative;
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-pack: center;
        -ms-flex-pack: center;
        justify-content: center;
        margin-bottom: 10px;
    }

    .logo img {
        top: 8px;
        margin-right: 2px;
    }
}

nav .actions {
    position: relative;
    width: 90vw;
    min-width: 690px;
    max-width: 850px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
}

nav .btn {
    position: relative;
    background: #46c2a9;
    color: #fff;
    padding: 10px 15px;
    border-radius: 5px;
    -webkit-transition: all .4s;
    -o-transition: all .4s;
    transition: all .4s;
}

nav .btn:hover {
    background: #50dabe;
}

nav .options {
    position: absolute;
    background: #1d3557;
    top: 120%;
    left: -80%;
    padding: 5px;
    border-radius: 5px;
    z-index: 5;
}

nav .options p {
    width: 250px;
    margin: 1px;
    padding: 10px 15px;
    border-radius: 5px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-transition: all .3s;
    -o-transition: all .3s;
    transition: all .3s;
}

nav .speed-options {
    position: absolute;
    background: #1d3557;
    top: 120%;
    left: -10%;
    padding: 5px;
    border-radius: 5px;
    z-index: 5;
}

nav .speed-options p {
    margin: 1px;
    padding: 6px 10px;
    border-radius: 5px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-transition: all .3s;
    -o-transition: all .3s;
    transition: all .3s;
}

nav .options p:hover,
nav .speed-options p:hover,
nav .options .clicked,
nav .speed-options .clicked {
    background: #46c2a9;
}

.description {
    position: relative;
    width: 100vw;
    min-width: 768px;
    padding: 20px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    font-family: sans-serif;
}

.description b {
    margin: 0 4px;
    font-style: italic;
}

@-webkit-keyframes alert-animation {
    0% {
        opacity: .2;
    }

    100% {
        opacity: 1;
    }
}

@keyframes alert-animation {
    0% {
        opacity: .2;
    }

    100% {
        opacity: 1;
    }
}

.board {
    position: relative;
    width: 100vw;
    min-width: 768px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
}

.board table {
    border-collapse: collapse;
    border: 1px solid #67a5e8;
}

.board td {
    position: relative;
    height: 25px;
    width: 25px;
    border: 1px solid #67a5e8;
    padding: 0;
}

.board .st {
    background: url('./img/start.svg') center/80% no-repeat;
}

.board .end {
    background: url('./img/end.svg') center/80% no-repeat;
}

.board .lead {
    background: #f3f736;
}

.board .rock,
.board .go,
.board .found {
    border: none;
}

.board .rock::before,
.board .go::before,
.board .found::before {
    content: "";
    position: absolute;
    display: block;
    background: #1d3557;
    height: 100%;
    width: 100%;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    -webkit-animation: rock-animation .2s linear;
    animation: rock-animation .2s linear;
}

.board .go::before {
    background: #5cd8ec;
    -webkit-animation: going-animation .7s linear;
    animation: going-animation .7s linear;
}

.board .found::before {
    background: #70e000;
    -webkit-animation: founded-animation .3s linear;
    animation: founded-animation .3s linear;
}

@-webkit-keyframes rock-animation {
    0% {
        height: 50%;
        width: 50%;
    }

    70% {
        height: 120%;
        width: 120%;
    }

    100% {
        height: 100%;
        width: 100%;
    }
}

@keyframes rock-animation {
    0% {
        height: 50%;
        width: 50%;
    }

    70% {
        height: 120%;
        width: 120%;
    }

    100% {
        height: 100%;
        width: 100%;
    }
}

@-webkit-keyframes going-animation {
    0% {
        height: 50%;
        width: 50%;
        border-radius: 50%;
        background: #5356f5;
    }

    60% {
        height: 115%;
        width: 115%;
        border-radius: 0;
        background: #5cd9ecc8;
    }

    100% {
        height: 100%;
        width: 100%;
        border-radius: 0;
        background: #5cd8ec;
    }
}

@keyframes going-animation {
    0% {
        height: 50%;
        width: 50%;
        border-radius: 50%;
        background: #5356f5;
    }

    60% {
        height: 115%;
        width: 115%;
        border-radius: 0;
        background: #5cd9ecc8;
    }

    100% {
        height: 100%;
        width: 100%;
        border-radius: 0;
        background: #5cd8ec;
    }
}

@-webkit-keyframes founded-animation {
    0% {
        height: 80%;
        width: 80%;
    }

    70% {
        height: 120%;
        width: 120%;
    }

    100% {
        height: 100%;
        width: 100%;
    }
}

@keyframes founded-animation {
    0% {
        height: 80%;
        width: 80%;
    }

    70% {
        height: 120%;
        width: 120%;
    }

    100% {
        height: 100%;
        width: 100%;
    }
}
