.tabs > input {
  display: none; }

.tabs .tabs-container > .tab {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
  height: auto;
  padding: 2rem;
  border: 0.1rem solid #ededed; }

#tab1:checked ~ .tabs-container .tab1,
#tab2:checked ~ .tabs-container .tab2 {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  height: 0;
  padding: 0;
  border: 0; }

.tabs {
  width: 100%;
  margin: 0 auto; }
  .tabs-list {
    list-style: none;
    margin: 0;
    padding: 0; }
  .tabs-item label {
    cursor: pointer;
    float: left;
    padding: 1.5rem 2.5rem;
    border: 0.1rem solid #ededed;
    border-bottom: 0;
    background: #ededed; }
    .tabs-item label:hover {
      background: #d4d4d4; }
    .tabs-item label:active {
      background: #ffffff; }
  .tabs-item:not(:last-child) label {
    border-right-width: 0; }
  .tabs-container {
    clear: both; }
    .tabs-container .tab {
      width: 100%;
      background: #ffffff; }

#tab1:checked ~ nav .tab1 label,
#tab2:checked ~ nav .tab2 label {
  position: relative;
  background: #ffffff;
  color: #000000; }
  #tab1:checked ~ nav .tab1 label:after,
  #tab2:checked ~ nav .tab2 label:after {
    content: '';
    display: block;
    position: absolute;
    height: 2px;
    width: 100%;
    background: #ffffff;
    left: 0;
    bottom: -1px; }
