@import 'https://fonts.googleapis.com/css?family=Montserrat:400,700|Raleway:300,400';

html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  background: white;
  color: #333;
  font-family: "Raleway", sans-serif;
}

body h1 {
  text-align: center;
  color: #428BFF;
  font-weight: 300;
  padding: 40px 0 20px;
  margin: 0;
}

.tabs {
  position: relative;
  background: white;
  padding: 0;
  margin: 0;
  width: 100%;
  min-width: 240px;
  box-sizing: border-box;
}

.tabs input[name=tab-control] {
  display: none;
}

.tabs .content section h2,
.tabs ul li label {
  font-family: "Montserrat", sans-serif;
  font-weight: bold;
  font-size: 18px;
  color: #428BFF;
}

.tabs ul {
  list-style: none;
  padding: 0 0 10px 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: flex-start;
}

.tabs ul li {
  box-sizing: border-box;
  flex: none;
  width: auto;
  margin-right: 16px;
  margin-bottom: 10px;
  text-align: center;
}

.tabs ul li label {
  color: #565656;
  background-color: transparent;
  padding: 5px 10px;
  cursor: pointer;
  user-select: none;
  display: block;
  transition: background-color 0.3s ease, color 0.3s ease;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.tabs input#tab1:checked ~ ul li label[for="tab1"],
.tabs input#tab2:checked ~ ul li label[for="tab2"],
.tabs input#tab3:checked ~ ul li label[for="tab3"],
.tabs input#tab4:checked ~ ul li label[for="tab4"],
.tabs input#tab5:checked ~ ul li label[for="tab5"],
.tabs input#tab6:checked ~ ul li label[for="tab6"],
.tabs input#tab7:checked ~ ul li label[for="tab7"],
.tabs input#tab8:checked ~ ul li label[for="tab8"],
.tabs input#tab9:checked ~ ul li label[for="tab9"],
.tabs input#tab10:checked ~ ul li label[for="tab10"] {
  color: white;
  background-color: #964d2d;
}

.tabs input[name=tab-control]:checked ~ ul > li > label svg {
  fill: white;
}

.tabs ul li label svg {
  fill: #929daf;
  transition: fill 0.3s ease;
}

.tabs ul li label:hover {
  color: #bec5cf;
}

.tabs ul li label:hover svg {
  fill: #bec5cf;
}

.tabs .content {
  margin-top: 30px;
}

.tabs .content section {
  display: none;
  animation: content 0.3s ease-in-out 1 normal;
  line-height: 1.4;
}

.tabs .content section h2 {
  color: #666;
  display: none;
}

.tabs input[name=tab-control]:nth-of-type(1):checked ~ .content > section:nth-child(1),
.tabs input[name=tab-control]:nth-of-type(2):checked ~ .content > section:nth-child(2),
.tabs input[name=tab-control]:nth-of-type(3):checked ~ .content > section:nth-child(3),
.tabs input[name=tab-control]:nth-of-type(4):checked ~ .content > section:nth-child(4),
.tabs input[name=tab-control]:nth-of-type(5):checked ~ .content > section:nth-child(5),
.tabs input[name=tab-control]:nth-of-type(6):checked ~ .content > section:nth-child(6),
.tabs input[name=tab-control]:nth-of-type(7):checked ~ .content > section:nth-child(7),
.tabs input[name=tab-control]:nth-of-type(8):checked ~ .content > section:nth-child(8),
.tabs input[name=tab-control]:nth-of-type(9):checked ~ .content > section:nth-child(9),
.tabs input[name=tab-control]:nth-of-type(10):checked ~ .content > section:nth-child(10) {
  display: block;
}

@keyframes content {
  from {
    opacity: 0;
    transform: translateY(5%);
  }
  to {
    opacity: 1;
    transform: translateY(0%);
  }
}

@media (max-width: 1000px) {
  .tabs ul li label {
    white-space: normal;
  }
  .tabs ul li label svg {
    height: 1.5em;
  }
}

@media (max-width: 600px) {
  .tabs ul {
    flex-wrap: wrap;
    justify-content: center;
    padding: 0 10px;
    margin: 0 auto;
    max-width: 100%;
    box-sizing: border-box;
    gap: 10px 12px;
  }

  .tabs ul li {
    flex: 0 1 auto;
    white-space: normal;
    padding: 0;
    margin: 0;
    text-align: center;
  }
  .tabs ul li label {
    font-size: 13px;
  }
}