:root {
  --imgsize: 48px;
  --wrappersize: 350px;
}

.body,
html {
  background-color: #232323;
  height: auto;
  width: 100%;
  font-family: "Open Sans", sans-serif;
  padding: 0;
  margin: 0;
}

header {
  display: none;
  color: whitesmoke;
  font-weight: bold;
  font-size: 30px;
  text-align: center;
  margin: 30px 0;
}

.wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  width: var(--wrappersize);
  margin: 40px auto 0;
}
.wrapper .grid {
  display: grid;
  gap: 5px;
  grid-template-columns: auto auto auto auto auto auto;
}
.grid div {
  background-repeat: no-repeat;
  background-size: cover;
  height: var(--imgsize);
  width: var(--imgsize);
  cursor: pointer;
  transition: 100ms;
}

.grid div:hover {
  transform: scale(1.1);
  transition: 100ms;
}

#gridResetBtn, #tipsResetBtn{
  padding: 10px;
  font-family: "Open Sans", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin: 20px 0;
  width: 150px;
}

#tipsResetBtn{
  max-width:200px;
  margin-left: 20px;
}

.tips-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0 5px;
  width: var(--wrappersize);
}

.input-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 30px;
  margin: 5px 0;
  gap: 5px;
}
.input-wrapper input {
  height: 30px;
  flex-grow: 1;
}
.input-wrapper label {
  flex-grow: 0;
}

.input-wrapper ~ div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 5px 0;
}
.input-wrapper ~ div label{
flex-grow: 1;
width: 298px;
}

.location-tracker-checkbox {
  height: 20px;
  width: 20px;
  margin:3px;
  flex-grow:0;
}

.delete-button{
  padding: 0;
  height:20px;
  width:20px;
  line-height: 0;
  vertical-align: middle;
  margin:3px;
  flex-grow:0;
}

.input-wrapper label,
.input-wrapper ~ div label {
  color: white;
  font-weight: bold;
  word-wrap: break-word;
  max-width: calc(var(--wrappersize) - 50px);
}

.grey {
  filter: grayscale(0.91);
}

.completed{
  filter: grayscale(.8) brightness(.5)
}

.grid p {
  color: white;
  font-size: 14px;
  font-weight: bold;
  text-shadow: black 0 0 3px;
  user-select: none;
  text-align: center;
  vertical-align: middle;
  line-height: var(--imgsize);
}

.skull-count {
  font-size: 23px !important;
  text-align: start !important;
  line-height: initial !important;
}

.instructions {
  position: absolute;
  display: none;
  width: 215px;
  transform: translateX(-30%) translateY(40px);
  font-size: 14px;
  font-weight: normal;
  background-color: rgba(25, 25, 25, 0.75);
  padding: 10px;
  border-radius: 10px;
  box-shadow: 0 0 2px 2px rgba(200, 200, 200, 0.15);
  text-align: justify;
}

.input-wrapper label:hover span {
  display: inline-block;
}

.instructions em {
  color: #40cf47;
}
.instructions em:last-of-type {
  color: #f07069;
}

.instructions ul {
  list-style-type: disc;
  list-style-position: inside;
}
.instructions li {
  padding: 3px;
}

footer {
  position: absolute;
  color: #bbb;
  font-size: 12px;
  top: 10px;
  width: 100%;
  text-align: center;
}

@media screen and (min-width: 700px) {
  header {
    display: block;
  }

  .wrapper {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-evenly;
    width: auto;
    max-width: 1024px;
    margin: auto;
  }
}
