:root {
  --map-columns: 50;
  --grid-size: 50;
  --map-size: 500px;
}

html {
  font-family: sans-serif;
  font-size: 16px;
  background-image: url("./images/brick.png");
  background-repeat: repeat;
  margin: 0;
  padding: 0;
}

body {
  width: 1000px;
  background-color: #fff7df;
  height: 100vh;
  margin: 0 auto;
  padding: 1rem;
}

#footer {
  width: 100%;
}

#footer ul {
  display: flex;
  justify-content: center;
  gap: 1rem;
  list-style-type: none;
}

#main-nav {
  display: flex;
  justify-content: center;
  gap: 1rem;
  text-transform: uppercase;
}

#map-wrapper {
  position: relative;
  display: flex;
  margin-top: 1rem;
}

.modal {
  padding: 1rem;
}

#map {
  overflow-y: auto;
  overflow-x: auto;
  height: var(--map-size);
  width: var(--map-size);
  border: 1px solid black;
  display: grid;
  grid-template-columns: repeat(var(--map-columns), 1fr);
  box-shadow: 0.25rem 0.5rem 0.5rem black;
}

#sidebar {
  width: 480px;
  border: 1px solid black;
  margin-left: 1rem;
  box-shadow: 0.25rem 0.5rem 0.5rem black;
}

#zoom-buttons {
  margin-top: 1rem;
}

.cell {
  height: calc(var(--grid-size) * 1px);
  width: calc(var(--grid-size) * 1px);
  border: 1px black solid;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.cell:hover {
  box-shadow: inset 0 0 0 0.1rem #d1adfd;
}
.cell:active {
  box-shadow: inset 0 0 0 0.3rem #b57df9;
}

.selected {
  box-shadow: inset 0 0 0 0.2rem purple;
}

.structure-radio input[type="radio"] {
  display: none;
}

.structure-radio img {
  cursor: pointer;
  border: 2px solid transparent;
}

.structure-radio input[type="radio"]:checked + img {
  border-color: #007bff;
  box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

/* Settings for background images */
.cell {
  background-size: calc(var(--grid-size) * 1px);
  image-rendering: pixelated;
}
.wand-button {
  background-color: rgb(192, 162, 216);
  color: white;
  height: 3rem;
  width: 5rem;
}
.wand-selected {
  background-color: rgb(89, 28, 150);
}
