*, *::before, *::after {
    box-sizing: border-box;
}

* {
    margin: 0;
}

body {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #303030;
    height: 100vh;
    padding: 0;
    margin: 0;
    border-radius: 8px;
    overflow: hidden;
}

body:hover::before {
    opacity: 1;
}

body::before {
    content: "";
    background: radial-gradient(
        1400px circle at var(--mouse-x) var(--mouse-y),
        #8A2BE2,
        transparent 40%
    );
    height: 100%;
    width: 100%;
    opacity: 0;
    transition: opacity 500ms;
    position: absolute;
    left: 0px;
    top: 0%;
    z-index: 1;
}

main {
    background-color: #1b1b1b;
    height: calc(100% - 6px);
    width: calc(100% - 6px);
    border-radius: inherit;
    margin: 1px;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

main a {
    color: aliceblue;
}

.title {
    color: aliceblue;
    padding: 2rem;
}

#grid {
    pointer-events: none;
}

.grid_row {
    height: calc(100vw / 45);
    max-height: 1rem;
}

.grid_item {
    display: block;
    height: calc(100vw / 45);
    max-height: 1rem;
    width: calc(100vw / 45); 
    max-width: 1rem;
    border: 1px solid #333;
    float:left;
}

.grid_item.start {
    background-color: #8A2BE2;
}

.grid_item.path {
    background-color: #8A2BE2;
}

.grid_item.wall {
    background-color: #444;
}