/* [THE ENTIRE TAB] */
.tab {
  position: relative;
  margin: 1px 15%;
  max-width: 100%;
  border:1px solid lightgrey;

}

/* [THE LABEL] */
.tab input {
  display: none;
}
.tab label {
  display: block;
  background: #222222;
  color: #fff;
  font-weight: bold;
  padding: 10px;
  cursor: pointer;
  box-shadow:1px 1px 9px 2px grey; 
}
.tab label::after {
  content: "\25b6";
  position: absolute;
  right: 10px;
  top: 10px;
  display: block;
  transition: all 0.4s;
}
.tab input[type=checkbox]:checked + label::after,
.tab input[type=radio]:checked + label::after {
  transform: rotate(90deg);
}

/* [THE CONTENTS] */
.tab-content {
  overflow: hidden;
  background: #353535;
  /* CSS animation will not work with auto height */
  /* This is why we use max-height */
  transition: max-height 0.4s; 
  max-height: 0;
}
.tab-content p {
  margin: 20px;
}
.tab input:checked ~ .tab-content {
  /* Set the max-height to a large number */
  /* Or 100% viewport height */
  max-height: 100vh;
}
@media screen and (max-width: 600px) {
  .tab{
    margin: 0 5%;
  
}

}