body{
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f0f0;
}

.dark-mode{
    background-color: #333 !important;
    color: white !important;
}

#grid {
    display: grid;
    grid-gap: 0.7rem;
    max-width: max-content;
    margin-bottom: 5rem;
}

.inputs{
    display: flex;
    justify-content: center;
    align-items: center;
}

/* test */
.cell {
    display: flex;
    flex: 1;
    justify-content: center;
    align-items: center;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 5px;
}

.painter-container{
    display: flex;
    flex: 1;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    margin: 1rem;
}

.container{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
}

.cell:hover {
    opacity: 0.75;
    transition: 0.5s;
}

.empty {
    background-color: gray;
}

.wall {
    background-color: black;
    color: white;
}

.start {
    background-color: green !important;
}

.end {
    background-color: red !important;
}

.isPath {
    background-color: purple;
}


#cell-data,
#painter-form,
#generate_dijkstra {
    display: none;
}

/* .cell */

#painter-type{
    margin-left: 1rem;
}

button {
    margin: 0.5rem;
    padding: 0.5rem;
    border-radius: 5px;
    background-color: #f0f0f0;
    cursor: pointer;
    border: 2px solid black
}

input[type="number"] {
    width: 4rem;
    margin: 0.5rem;
}

label{
    margin: 0.5rem;
}

.tsp-option{
    display: none;
}

.float-right{
    display: flex;
    flex: 1;
    width: 100%;
    justify-content: flex-end;
    align-items: center;
    margin-right: 1rem;
}


.input-container{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.selector{
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    margin: 1rem;
}


/* The switch - the box around the slider */
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
  }
  
  /* Hide default HTML checkbox */
  .switch input {
    opacity: 0;
    width: 0;
    height: 0;
  }
  
  /* The slider */
  .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
  }
  
  .slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
  }
  
  input:checked + .slider {
    background-color: #2196F3;
  }
  
  input:focus + .slider {
    box-shadow: 0 0 1px #2196F3;
  }
  
  input:checked + .slider:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
  }
  
  /* Rounded sliders */
  .slider.round {
    border-radius: 34px;
  }
  
  .slider.round:before {
    border-radius: 50%;
  }