/* CV Tabs */

.cv {
  display: flex;
  flex-direction: column;
  margin: 20px auto;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0 auto;
  align-items: flex-end;
  border-bottom: #03b2e753 solid 1px;
  width: 95%;
  overflow: hidden;
}

.tab-button {
  flex: 1;
  background-color: var(--buttons-bg);
  color: var(--buttons-txt);
  padding: 10px clamp(5px, 10px, 20px);
  border: none;
  border-radius: 5px 5px 0 0;
  width: max-content;
  transition: all 0.3s;
  min-height: max-content;
}

.tab-button:hover,
.tab-button.active {
  background-color: var(--buttons-hover-bg);
  color: var(--buttons-hover-txt);
  padding: 15px clamp(5px, 10px, 20px);
}
.tab-button.active {
  flex: 3;
}

/* slide in */
@keyframes slideInLeft {
  0% {
    transform: translateX(-100%);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideInRight {
  0% {
    transform: translateX(100%);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

.tab-content {
  display: none;
  width: 100%;
  border: 1px solid #ddd;
  padding: 20px;
  border-radius: 0 0 4px 4px;
  opacity: 0;
  transition: opacity 0.3s;
}

.tab-content.active {
  display: block;
  opacity: 1;
}

.tab-content.slide-in-left {
  animation: slideInLeft 0.5s forwards;
}

.tab-content.slide-in-right {
  animation: slideInRight 0.5s forwards;
}

.cv-part {
  display: flex;
  flex-wrap: wrap;
  width: 90%;
  margin: 0 auto;
  gap: 50px;
}

#tab-content-2 > .cv-part {
  text-align: right;
  flex-wrap: wrap-reverse;
}

.cv-img {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 100%;
  height: 40vh;
  border-radius: 5px;
  position: relative;
}

.cv-info {
  flex: 4;
  width: 100%;
}
.cv-info h3 {
  margin-block-start: 0;
}
.functie {
  font-weight: 700;
  margin-block-end: 0;
  color: var(--h2);
}

@media (min-width: 768px) {
  .tabs {
    width: 80%;
    gap: 2%;
  }
  .cv-part,
  #tab-content-2 > .cv-part {
    flex-wrap: nowrap;
    width: 70%;
  }
  .cv-img {
    width: 20%;
    height: 20vh;
  }
  .cv-info {
    width: 75%;
  }
}
