/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/
@import url("https://fonts.googleapis.com/css?family=Muli&display=swap");
@import url("https://fonts.googleapis.com/css?family=Quicksand&display=swap");
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}

/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}

body {
  line-height: 1;
}

ol, ul {
  list-style: none;
}

blockquote, q {
  quotes: none;
}

blockquote:before, blockquote:after,
q:before, q:after {
  content: "";
  content: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

a, a:link, a:visited, a:focus, a:hover, a:active {
  text-decoration: none;
  color: white;
}

button {
  text-decoration: none;
  background: none;
  border: none;
}

html {
  font-family: "Muli", sans-serif;
}

h1 {
  font-size: 2rem;
  font-weight: bold;
  padding: 1rem;
  margin: 0;
}

h2 {
  font-size: 1.5rem;
  font-weight: bold;
  padding: 1rem;
  margin: 0;
}

h3 {
  font-size: 1.25rem;
  font-weight: bold;
  margin: 0;
  padding: 0.5rem 0;
}

header {
  grid-area: header;
  width: 100%;
  background: #3c3c3c;
}

nav {
  display: flex;
  justify-content: space-between;
  color: #ffffff;
  height: 100%;
}

nav > ul {
  display: flex;
  flex-direction: row;
  align-items: center;
}

nav > ul li {
  height: 100%;
}

nav > ul li a i {
  margin-left: 8px;
}

nav > ul li a {
  display: flex;
  align-items: center;
  height: 100%;
  width: max-content;
  padding: 0 1rem;
}
nav > ul li a:hover {
  transition: color ease 0.3s;
  color: #6f47e5;
  background: #444444;
}

nav > ul li button {
  background: #6f47e5;
  padding: 1rem;
  cursor: pointer;
  margin-left: 1rem;
  color: #ffffff;
  height: 100%;
}
nav > ul li button:hover {
  background: #7954e7;
  transition: background-color ease 0.3s;
}

nav form {
  display: flex;
}

nav form label {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 0 0.25rem;
  cursor: pointer;
  border-right: 1px dotted rgb(107, 107, 107);
}
nav form label:first-of-type {
  border-left: 1px dotted rgb(107, 107, 107);
}
nav form label:hover {
  transition: color ease 0.3s;
  color: #6f47e5;
  background: #444444;
}
nav form label::after {
  content: "";
  width: 25px;
  height: 25px;
  margin-left: 0.5rem;
  border: 1px solid #ffffff;
}

nav form .label-wall::after {
  background: rgba(107, 0, 194, 0.5);
}

nav form .label-start::after {
  background: rgb(47, 211, 14);
}

nav form .label-checkpoint::after {
  background: rgb(0, 140, 255);
}

nav form .label-end::after {
  background: rgb(255, 0, 0);
}

nav form input {
  display: none;
}

nav form input:checked + label {
  color: #6f47e5;
}

.submenu {
  position: relative;
  z-index: 1;
}

.submenu ul {
  display: none;
}

nav .submenu:hover ul {
  position: absolute;
  display: flex;
  flex-direction: column;
  z-index: 100;
  background-color: #3c3c3c;
}

nav .submenu:hover ul li {
  padding: 0.5rem 1rem;
  border-bottom: 1px solid #444444;
  cursor: pointer;
}
nav .submenu:hover ul li:last-of-type {
  border-bottom: none;
}
nav .submenu:hover ul li:hover {
  transition: color ease 0.3s;
  color: #6f47e5;
  background: #444444;
}

nav .submenu:hover i {
  transform: rotate(180deg);
  transition: transform ease 0.3s;
}

#speed span {
  margin-left: 4px;
}

.board {
  grid-area: board;
}

.board td {
  user-select: none;
  border: 1px solid #c8b6fd;
  width: 25px;
  height: 25px;
  max-width: 25px;
  max-height: 25px;
  cursor: pointer;
  background-repeat: no-repeat;
  transition: ease-in-out background-size 0.25s;
  background-position: 50% 50%;
  background-size: 0% 0%;
}
.board td:hover {
  background-image: linear-gradient(#c8b6fd, #c8b6fd);
  background-size: 100% 100%;
}

td.wall,
.wall {
  background-image: linear-gradient(rgba(107, 0, 194, 0.5), rgba(107, 0, 194, 0.5));
  background-size: 100% 100%;
}

td.start,
.start {
  background-image: linear-gradient(rgb(47, 211, 14), rgb(47, 211, 14));
  background-size: 100% 100%;
}

td.end,
.end {
  background-image: linear-gradient(rgb(255, 0, 0), rgb(255, 0, 0));
  background-size: 100% 100%;
}

td.checkpoint,
.checkpoint {
  background-image: linear-gradient(rgb(0, 140, 255), rgb(0, 140, 255));
  background-size: 100% 100%;
  color: white;
  font-weight: bold;
  font-size: 0.75rem;
  text-align: center;
  line-height: 25px;
}

td.path,
.path {
  background-image: linear-gradient(rgba(0, 255, 0, 0.5), rgba(0, 255, 0, 0.5));
  background-size: 100% 100%;
}

td.visited,
.visited {
  background-image: linear-gradient(rgba(251, 255, 0, 0.5), rgba(251, 255, 0, 0.5));
  background-size: 100% 100%;
}

td.visiting,
.visiting {
  background-image: linear-gradient(orange, orange);
  background-size: 100% 100%;
}

footer {
  grid-area: footer;
  display: flex;
  align-items: center;
  column-gap: 1rem;
  padding: 0 1rem;
  background: #282c34;
  color: #ffffff;
}

aside {
  z-index: 1;
  position: fixed;
  top: 60px;
  left: 0;
  width: 20rem;
  background: #fff;
  height: calc(100vh - 30px - 60px);
  border-right: 1px solid rgb(212, 212, 212);
  box-shadow: 0 0 30px 0 rgba(0, 0, 0, 0.25);
  transition: all ease 0.3s;
  color: #222222;
}

aside .toggle {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: -1rem;
  background: #fff;
  padding: 1rem 0.25rem;
  border-radius: 0 5px 5px 0;
}
aside .toggle--rotated {
  transform: rotate(180deg);
  border-radius: 5px 0 0 5px;
}
aside .toggle:hover {
  background-color: #c8b6fd;
  color: #ffffff;
  cursor: pointer;
}

aside h2 {
  border-bottom: 1px solid rgb(212, 212, 212);
}

.hidden {
  width: 0;
  border-right: none;
}
.hidden *:not(button) {
  display: none;
}

.legend {
  display: flex;
  flex-direction: column;
  padding: 1rem;
  gap: 1rem;
}

.legend li {
  display: flex;
  gap: 1rem;
}

.legend li > span:first-of-type {
  min-width: 1.5rem;
  height: 1.5rem;
  border: 1px solid rgb(212, 212, 212);
  border-radius: 5px;
}

.legend li div {
  display: flex;
  flex-direction: column;
  padding: 0.25rem 0;
}

.legend li div span:first-of-type {
  font-weight: bold;
}

.legend li div span:last-of-type {
  font-size: 0.8rem;
  font-weight: normal;
  color: #6c757d;
  margin-top: 0.5rem;
}

body {
  position: relative;
  height: 100vh;
  width: 100vw;
  display: grid;
  grid-template-rows: 60px 1fr 30px;
  grid-template-areas: "header" "board" "footer";
}

.alert {
  position: absolute;
  bottom: 5px;
  right: 5px;
  width: 18rem;
  height: 5rem;
  color: #fff;
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 1rem;
  border-radius: 5px;
}
.alert--success {
  background: #04aa6d;
}
.alert--error {
  background: #f44336;
}
.alert--info {
  background: #2196f3;
}
.alert--warning {
  background: #ff9800;
}
.alert__closeBtn {
  font-weight: bold;
  font-size: 2rem;
  position: absolute;
  top: 2px;
  right: 8px;
  cursor: pointer;
}
.alert__timer {
  position: absolute;
  bottom: 0;
  left: 0rem;
  background: rgba(0, 0, 0, 0.25);
  width: 0;
  height: 0.5rem;
  transition: width 5s linear;
}

/*# sourceMappingURL=style.css.map */
