* {
    box-sizing: border-box;
}

html, body {
    background-color: rgba(189, 229, 255, 0.164);
}

/*  */

.page {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    position: relative;
    width: 99%;
    height: 99%;
    padding: 5px;
}

/* Control And Style */

.btn {
    outline: 0;
    border: 0;
    background-color: rgb(102, 206, 102);
    width: 80%;
    min-height: 45px;
    border-radius: 6px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
    color: white;
    font-size: 16px;
    font-weight: 500;
    margin: 10px 0;
    cursor: pointer;
    position: relative;
}

label {
    margin: 5px 0;
    height: 45px;
    border-radius: 6px;
    overflow: hidden;
    width: 80%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
    cursor: pointer;
}

input[type=radio] {
    display: none;
    transition: all 300ms ease;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

label>input[type=radio]:checked+span {
    background-color: rgb(72, 127, 230);
    width: 100%;
    height: 100%;
    color: white;
}

.btn:hover.animate, a:hover.animate {
    transition: margin 300ms ease;
    margin-right: 25px;
}

.control {
    position: fixed;
    display: flex;
    flex-direction: column;
    align-items: center;
    right: 0;
    margin: 30px;
    width: 400px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
    color: black;
    font-size: 24px;
    font-weight: 500;
    padding: 0;
    z-index: 100;
    background-color: rgba(0, 0, 0, 0.09);
}

/*  */

.about_me {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: center;
    color: rgb(54, 121, 221);
}

.about_me-link {
    text-decoration: none;
    color: rgb(54, 121, 221);
    background-color: rgba(0, 0, 0, 0.075);
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    font-size: 18px;
}

/* Patterns */

.container {
    width: 100%;
    height: 100%;
    margin: 35px;
}

.container-cell {
    position: relative;
    transform-origin: center;
    fill: rgb(202, 202, 202);
    stroke-width: 3;
    stroke: rgb(2, 2, 2);
    transition: all 400ms ease;
    cursor: pointer;
    border: 5px solid orange;
}

.container-cell:active {}

.container-cell.start {
    fill: #3aff09;
}

.container-cell.target {
    fill: rgb(0, 195, 255);
}

.container-cell.explored {
    fill: rgb(104, 167, 107);
}

.container-cell.block {
    fill: rgb(41, 47, 48);
}

.container-cell.path {
    fill: rgba(162, 0, 255, 0.781);
}

@keyframes fade_in {
    from {
        opacity: 1;
    }
    to {
        opacity: 0.1;
    }
}

@media (max-width:1300px){
    .control {
        position: relative;
        margin: 0;
    }
}