*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Nunito Sans', sans-serif;
  font-weight: 300;
}
*:focus {
  outline: 0;
  outline: none;
}


html,
body {
  width: 100vw;
  height: 100vh;
  color: #333;
  background-color: #fff;
  font-size: 62.5%;
  line-height: 1.6;
  overflow: hidden;
}

a { color: inherit; background-color: transparent; text-decoration: none; }
a:active, a:hover { outline: 0; }
input, textarea, select, button { font-size: inherit; font-family: inherit; }
img { border: 0; }
ul, li { list-style: none; }

#wrapper {
  position:fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

header {
  padding: 15px 5px 5px;
}

header h1 {
  font-size: 1.8rem;
  text-align: center;
}

footer {
  background: rgb(52, 40, 2);
}

main {
  position: relative;
  flex: 1;
  overflow-y: scroll;
  -webkit-overflow-scrolling: touch;  
}

.zone {
  margin-bottom: 10px;
}

.zone-header {
  padding: 2px 10px;
  color: #fff;
  background: rgb(86, 67, 6);
  font-size: 1.8rem;
  text-align: center;
}

section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.boxset {
  padding: 10px;
  background: #eee;
}

.boxset h2 {
  margin-bottom: 8px;
  color: rgb(86, 67, 6);
  font-size: 1.8rem;
  font-weight: bold;
}

.boxset-input {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
}

.boxset-input input {
  padding: 4px 8px;
  color: #333;
  font-size: 1.4rem;
}

.boxset-input label {
  color: #333;
  font-size: 1.4rem;
}

.mainmenu {
  padding: 1px 0 38px;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
}

.mainmenu a {
  display: block;
  text-align: center;
  padding: 4px 8px;
  font-size: 1.6rem;
  font-weight: bold;
  color: #eee;
  background: rgb(86, 67, 6);
  /* border: 1px solid #eee; */
  /* border-radius: 3px;  */
  text-decoration: none;
  cursor: pointer;
}

#stats {
  position: fixed;
  left: 0;
  bottom: 10px;
  width: 100%;
  color:  rgb(255, 240, 144);
  font-size: 1.3rem;
  text-align: center;
}

#message {
  position: fixed;
  top: 15px;
  right: 15px;
  padding: 2px 6px;
  background: #eee;
  border-radius: 4px;
  font-size: 1.2rem;
  opacity: 0;
  transition: 400ms ease-in-out;
}

#message.show {
  opacity: 1.0;
}


@media only screen and (min-width: 600px) {
  header {
    padding: 20px 10px 10px;
  }
  
  header h1 {
    font-size: 2rem;
  }

  section {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .mainmenu {
    grid-template-columns: repeat(4, 1fr);
  }

  #stats {
    left: 25px;
    bottom: 7px;
    font-size: 1.6rem;
    text-align: left;
  }
}

@media only screen and (min-width: 900px) {
  header {
    padding: 20px 15px 15px;
  }
  
  header h1 {
    font-size: 2.5rem;
  }

  section {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

@media only screen and (min-width: 1200px) {
  header {
    padding: 20px 15px 15px;
  }
  
  header h1 {
    font-size: 2.5rem;
  }

  section {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }

  .mainmenu {
    grid-template-columns: repeat(6, 1fr);
  }
}

@media only screen and (min-width: 1600px) {
  header {
    padding: 20px 15px 15px;
  }
  
  header h1 {
    font-size: 2.5rem;
  }

  section {
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
  }

}

