.tab-container {
  position: relative;
  margin-bottom: var(--base-size);
}

.tab-title {
  padding : 1rem;
  border: solid var(--border-width) var(--gray3);
  background-color: var(--white);
  margin: 0.25rem;
  cursor: pointer;
  color: var(--font-color);
  vertical-align: center;
}

.tab-title span {
  display: inline-block;
  vertical-align: middle;
}

.tab-title span.tab-icon {
  padding: var(--gutter-eighth);
  margin: -0.5rem var(--gutter-half) -0.5rem 0;
  background: var(--white, #fff);
  color: var(--font-color);
  border-radius: var(--gutter);
  width: calc(var(--gutter)* 1.3);
}

.tab-title.active,
.tab-title:hover {
  font-weight: bold;
  background-color: var(--gray2);
  color: var(--white);
  border: solid var(--border-width) var(--gray2);
}

.tab-contents {
  position: absolute;
  top: 0;
  right: 0;
}

@media (max-width: 768px) {
  .tab-contents {
    position: relative;
    top: auto;
    right: auto;
  }
  .tab-container {
    position: relative;
    height: auto !important;
  }
  .tab-content.active {
    padding: var(--gutter-half);
  }
}

.tab-content {
  height: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: height 0.3s ease-out, opacity 0.3s ease-out;
}

.tab-content.active {
  height: auto;
  opacity: 1;
  visibility: visible;
  transition: height 0.3s ease-in, opacity 0.3s ease-in;
}

.content_elements {
  margin-top: 3.5rem;
}