@import url('https://fonts.googleapis.com/css2?family=Montserrat&display=swap');

html, body {
    top: 0;
    margin: 0;
    width: auto;
    min-height: 95vh;
    font-family: 'Montserrat', sans-serif;
    flex-direction: column;
    background: #333333;
}

.link {
    text-decoration: none;
    font-weight: bold;
    color: #7683D1;
}

#menu, #random, #start {
    margin-right: 10px;
    cursor: pointer;
}

.title {
    background-color: #9CA5DE;
    text-decoration: none;
    text-align: center;
    font-size: large;
    margin: 0;
    padding: 20px;
}

.center {
    margin: 0 auto;
    border: 2px solid #C2C8EB;
    width: 900px;
    height: 450px;
    max-width: 411px;
    max-height: 731px;
}

#box {
    height: 450px;
}

.array {
    display: flex;
    align-items: flex-start;
    min-height: 80vh;
    height: 40vh;
    padding: 1rem;
    flex-direction: row;
}

.cell {
    display: flex;
    align-items: flex-start;
    flex: 0.5;
    width: 0.000001%;
    margin: 1px;
    background-color: #D6D6D6;
    resize: horizontal;
    position: relative;
    transition: all .4s ease-in;
}

.cell.done {
    background-color: #9CEC5B;
    border-color: #9CEC5B;
    color: white;
    transition: all .4s ease-out;
}

.cell.visited {
    border-color: #6184D8;
    background-color: #6184D8;
    color: white;
    transition: .5s;
}

.cell.current {
    border-color: #50C5B7;
    background-color: #50C5B7;
    color: white;
    transition: all .4s ease-out;
}

.cell.min {
    background-color: #FF1493;
    border-color: #FF1493;
    color: white;
    transition: all .4s ease-out;
}

.navbar {
    top: 0;
    left: 0;
    width: 100%;
    padding: 0px;
    font-size: 16px;
    min-height: 60px;
    overflow: hidden;
    text-align: center;
    background-color: #7683D1;
    transition: all 0.25s cubic-bezier(0.645,0.045,0.355,1);
}

.navbar .options {
    text-align: center;
}

.navbar a {
    outline: none;
    cursor: pointer;
    color: #ccd6f6;
    font-weight: bold;
    padding: 13px 13px;
    text-decoration: none;
}

.navbar #menu {
    margin-top: 15px;
    width: 150px;
    height: 25px;
    outline: none;
}

.navbar > a:hover {
    color: #64ffda;
}

.navbar > .icon {
    display: none;
}

footer {
    bottom: 10px !important;
    margin-top: auto;
    text-align: center;
    position: relative;
    font-size: 20px;
}

.text {
    color: #fff;
    text-align: center;
    margin: 20px 30px;
}

@media screen and (max-width: 900px) {
    .navbar a, .navbar .options {
        display: none;
    }
    .navbar a.icon {
        float: right;
        display: block;
    }
    .navbar.responsive {
        position: relative;
    }
    .navbar.responsive a.icon {
        position: absolute;
        right: 0;
        top: 0;
    }
    .navbar.responsive a, .navbar.responsive .options {
        float: none;
        display: block;
        text-align: center;
    }
}
