@media (max-width: 480px) {
.tab {
  overflow: hidden;
  border: 1px solid #ccc;
  background-color: #f1f1f1;
}

.tab button {
  background-color: inherit;
  float: left;
  border: 1px solid black;
  border-bottom: 0;
  border-radius: 1ex 1ex 0 0;
  outline: none;
  cursor: pointer;
  padding: 8px 6px;
  transition: 0.3s;
}

.tab button:hover {
  background-color: #ddd;
}

.tab button.active {
  background-color: #ccc;
}

.tabcontent {
  display: none;
  padding: 6px 12px;
  border: 1px solid #ccc;
  border-top: none;
}

.tabcontent legend {
  display: none;
}
}

@media (min-width: 481px) {
    div.tab {
      display: none;
    }
}
