body {
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.custom-cursor {
    position: fixed;
    left: 10px;
    /* width: 10px; */
    /* height: 10px; */
    translate: -50%, -50%;
    transition: transform .1s ease, opacity .1s ease;
    pointer-events: none;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3;
    opacity: .65;
}

.popup, .popup-big {
    position: fixed;
    width: 750px;
    height: 600px;
    background-color: white;
    border: 1px solid black;
    z-index: 5;
    top: 10%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

.popup-big {
    transition: all 1s ease;
    width: 95vw;
    height: 95vh;
    display: flex;
    flex-wrap: wrap;
    top: 2.5%;
    /* opacity: 0; */
    /* display: none; */
}



ul {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 400px;
    line-height: 1;
}

p {
    width: 300px;
    align-self: center;
}

#exit-popup  {
    border: 1px solid black;
    box-shadow: none;
    height: 50px;
    transition: all .3s ease;
}
#exit-popup:hover  {
    background-color: black;
    color: white;
    transform: scale(1);
}



.header {
    width: 99vw;
    height: 20vh;
    margin-top: 2.5vh;
    /* background-color: rgb(40,40,40); */
    /* border: 1px solid black; */
    display: flex;
    /* align-items: center; */
    justify-content: space-evenly;
    /* pointer-events: none; */
    /* gap: 150px; */
    /* margin-bottom: 5vh; */
    /* opacity: .5; */
}


.legend {
    /* width: 100px; */
    /* width: 250px; */
    display: flex;
    flex-direction: column;
    align-items: baseline;
    justify-content: space-around;
}

.align {
    width: 2vw;
}

.key-item {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
}

#visited {
    width: 2vw;
    height: 3vh;
    background-color: blue;
}

#queued {
    width: 2vw;
    height: 3vh;
    background-color: rgb(200, 200, 250);
}

#path {
    width: 2vw;
    height: 3vh;
    background-color: red;
}

.buttons {
    margin: 10px;
    justify-self: center;
    display: flex;
    flex-direction: column;
    /* gap: 20px; */
    gap: 5px;
    justify-content: center;
    /* flex-wrap:wrap; */
    text-align: center;
    /* align-items: center; */
}

.algorithms {
    /* margin-left: 20vh; */
    justify-self: center;
    display: flex;
    flex-direction: column;
    /* gap: 5px; */
    justify-content: space-between;
    text-align: center;
}

button {
    text-decoration: none;
    background-color: white;
    border: none;
    /* border-radius: 50px; */
    height: 25px;
    /* width: 100px; */
    transition: all .3s ease;
    /* box-shadow: 0px 0px 1px rgb(50,50,50); */
    cursor: pointer;
    border-radius: 5px;
}

button:hover {
    transform: scale(1.01);
    box-shadow: 0px 1px 3px rgb(50,50,50);
}


button:active {
    transform: scale(1);
}

.iso {
    box-shadow: 0px 2px 3px rgb(180,180,180);
}
.dropdown {
    display: flex;
    position: relative;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    max-height: fit-content;
    border-radius: 5px;
    padding: 5px;
    width: 100px;
    max-height: 85px;
    overflow-y: auto;
    overflow-x: hidden;
    /* top: -10%; */
}

.dd-head {
    /* position: relative; */
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    cursor: pointer;
    transition: .4s ease all;
    border-radius: 5px;
}

.dd-head:hover {
    box-shadow: 0px 2px 3px rgb(180,180,180);
}

.dd-menu {
    width: 100px;
    /* height: ; */
    /* position: absolute; */
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    gap: 10px;
    padding: 5px;
    margin: 0;
    z-index: 2;
    opacity: 0;
}

.selected {
    position: relative;
    display: flex;
    width: 100px;
    gap: 10px;
    align-items: center;
    justify-content: center;
    text-align: center;
    align-self: center;
    text-align: center;
    padding: 0;
}


.disp {
    display: flex;
    flex-direction: column;
    /* border: 1px solid white; */
    align-items: center;
    justify-content: center;
    color: rgb(0, 0, 0);
    font-weight:100;
    transition: all .5s ease;
}


.resTab {
    display: flex;
    text-align: center;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}
.result {
    /* border: 1px solid black; */
    display: flex;
    align-items: center;
    justify-content: center;
    width: 250px;
    height: 100px;
    transition: all .5s ease;
}




.grid {
    font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
    position: absolute;
    width: 100vw;
    /* height: 50vh; */
    background-color: white;
    /* box-sizing: border-box; */
    /* border: 1px solid black; */
    display: flex;
    flex-wrap: wrap;
    bottom: 0;
}

.cell {
    border: 1px solid rgb(238, 250, 255);
    background-color: white;
    /* box-sizing: border-box; */
    /* opacity: .75; */
    transition: all .65s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    /* border-radius: 5%; */
}

.cell:hover {
    /* cursor: pointer; */
    /* background-color: rgb(200,200, 200); */
    filter: brightness(.75);
    /* border: 1px solid black; */
    /* transform: scale(1.08); */
    /* z-index: 2; */
}

i {
    transition: transform .5s ease;
    transform: scale(.9);
}

.speed-slider {
    display: flex;
    flex-direction: column;
    font-size: small;
}


@media (max-width: 600px) {

    body {
        height: 130vh;
    }

    .legend {
        font-size: x-small;
    }

    #visited, #queued, #path {
        width: 4vw;
        height: 2vh;
    }

    .popup-big {
        flex-wrap: nowrap;
        overflow: scroll;
        min-height: 90vh;
    }

    .grid {
        position: fixed;
        bottom: 0;
        margin: 0;
        padding: 0;
    }


    .header {
        flex-wrap: wrap;
        position: absolute;
        top: 0;
    }
    
    ul {
        gap: 2px;
        width: 90vw;
    }

    li {
        font-size: x-small;
    }

    i {
        transform: scale(.75);
    }

    .cell {
        font-size: xx-small;
    }

    .resTab {
        padding-top: 10px;
    }

    
}

li {
    margin: 0;
    padding: 0;
}
li p {
    margin: 0;
    width: 500px;
    font-size: small;
    font-weight: lighter;
}

.algs p {
    font-size: x-small;
}
