.header { background-color: #460000; }
.header-buttons { border: #460000 1px solid }
.content-container { box-shadow: #460000 0 0 5px; }

.filters {
  color: #000034;
  display: flex;
  margin: 0.5rem 1rem 0.5rem 1rem;
  flex-direction: row;
  width: auto;

  .select2-container { flex: 1; }
}

.header-filter {
  background-color: white;
  display: flex;
  flex-direction: column;
  padding-top: 5px;
  padding-bottom: 5px;
  box-shadow: inset #460000 0 0 10px;
  margin-bottom: 10px;
}

.header-filter-toggle { cursor: pointer; }

.header-tags {
  display: flex;
  flex-direction: row;
  justify-content: center;
  text-align: center;
}

.header-tags ul{
  list-style: none;
  margin: 0;
  padding: 0;
}

.header-tags li {
  display: inline-block;

  &:not(:empty) {
    padding: 3px 12px 5px 12px;
    margin: 4px 2px;
    border-radius: 1.25rem;
    font-size: 0.7rem;
    font-weight: bold;

    &.active {
      color: #e1da0d;
      text-shadow: -1px 0 #09175d , 0 1px #09175d, 1px 0 #09175d , 0 -1px #09175d;
      border: transparent 0.1rem solid;
      &.category_cicd { text-shadow: -1px 0 #850a1f, 0 1px #850a1f, 1px 0 #850a1f , 0 -1px #850a1f; }
      &.category_framework { text-shadow: -1px 0 #372c50 , 0 1px #372c50, 1px 0 #372c50 , 0 -1px #372c50; }
      &.category_os {
        color: #650000;
        text-shadow: unset;
      }
      &.category_programming-language { text-shadow: -1px 0 #115d09 , 0 1px #115d09, 1px 0 #115d09 , 0 -1px #115d09; }

      &.basis {
        background-color: #bdc2e8;
        &.category_cicd { background-color: #c497a2; }
        &.category_framework { background-color: #cfb0e0; }
        &.category_os { background-color: #f1d8bb; }
        &.category_programming-language { background-color: #c4e1c1; }
      }

      &.intermediate {
        background-color: #8891f8;
        &.category_cicd { background-color: #a45867; }
        &.category_framework { background-color: #ad88cb; }
        &.category_os { background-color: #f1bf80; }
        &.category_programming-language { background-color: #62be59; }
      }

      &.advanced {
        background-color: #233aa8;
        &.category_cicd { background-color: #913244; }
        &.category_framework { background-color: #926faf; }
        &.category_os { background-color: #faa53e; }
        &.category_programming-language { background-color: #298c20; }
      }

      &.expert {
        background-color: #09175d;
        &.category_cicd { background-color: #850a1f; }
        &.category_framework { background-color: #372c50; }
        &.category_os { background-color: #e8820a; }
        &.category_programming-language { background-color: #115d09; }
      }
    }

    &:not(.active) {
      background: #d2d3d9;
      color: #424242;
      border: #09175d 0.1rem solid;
      &.category_cicd { border: #850a1f 0.1rem solid; }
      &.category_framework { border: #926faf 0.1rem solid; }
      &.category_os { border: #e8820a 0.1rem solid; }
      &.category_programming-language { border: #115d09 0.1rem solid; }
    }
  }
}

.header-tags li {
  cursor: pointer;
}

.box {
  display: flex;
  flex-direction: column;
  border-radius: 7px;

  &.active {
    background-color: #e8e8e8;
    box-shadow: #828eec 0 0 0.5rem;}
  &:not(.active) {
    background-color: #b47171;
    box-shadow: #651111 0 0 0.3rem;}
}

.box {
  h1 {
    margin: 0;
    line-height: 1.5;
    font-size: 1.1rem;
    font-weight: bolder;}
  h2 {
    margin: 0;
    line-height: 1.3;
    font-size: 0.8rem;
    font-weight: bold;
    color: black;
  }
}
.experience_enabled { display: none;}

.top-section {
  min-height: 3rem;
  display: flex;
  flex-direction: row;
  padding: 5px 5px 0 5px;
  margin-bottom: 5px;
  border-radius: 5px 5px 0 0;
}

.left-section {
  display: flex;
  flex: 2;
  flex-direction: column;
  justify-content: space-between;
}
.right-section {
  text-align: right;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 7.5rem;
}

.middle-section {
  background-color: whitesmoke;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  text-align: center;
  padding: 0 10px 0 10px;
  box-shadow: #09175d 0 0 5px;
  margin-right: 1rem;
  margin-left: 1rem;
  flex: 1;
}

.title {
  h1 {
    font-size: 1.4em;
    font-weight: bold;
    font-style: italic;
    font-variant-caps: small-caps;
  }
}

.bottom-section {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  border-radius: 0 0 5px 5px;
  padding-top: 5px;
  padding-bottom: 5px;
  margin-bottom: 0.2rem;
}

.duration {
  font-weight: bold;
  font-size: 0.8em;
}

.location {
  color: #2b811c;
  font-size: 0.8rem;
  margin-top: 10px;
  font-weight: bold;
  font-variant-caps: small-caps;
}

.description {
  padding-right: 10px;
  flex-grow: 1;

  p {
    margin: 0.5rem 0 0 0;
  }

  textarea {
    height: 100%;
  }
}

.skill_progress_container {
  width: 20%;
  min-width: 9.5rem;
  display: flex;
  flex-direction: column;
  padding: 0.5rem 0.5rem 0 1rem;
  gap: 0.3rem;
}
.skill_progress_background, .skill_progress_front {
  display: flex;
  height: 1.5rem;
  border-radius: 5px;
}
.skill_progress_background {
  width: 100%;
  position: relative;

  &.active {
    color: #e1da0d;
    text-shadow: -1px 0 #09175d , 0 1px #09175d, 1px 0 #09175d , 0 -1px #09175d;

    background-color: #bdc2e8;
    &.category_cicd { background-color: #c497a2; }
    &.category_framework { background-color: #cfb0e0; }
    &.category_os {
      color: #650000;
      text-shadow: unset;
      background-color: #f1d8bb; }
    &.category_programming-language { background-color: #c4e1c1; }
  }
  &:not(.active){
    color: #d2d3d9;
    text-shadow: -1px 0 black , 0 1px black, 1px 0 black , 0 -1px black;
    background-color: #d2d3d9; }
}

.skill_progress_front {
  position: absolute;
  top: 0;
  left: 0;

  &.active {
    background-color: #09175d;
    box-shadow: inset #bdc2e8 0 0 5px;

    &.category_cicd {
      background-color: #850a1f;
      box-shadow: inset #c497a2 0 0 5px;}
    &.category_framework {
      background-color: #372c50;
      box-shadow: inset #cfb0e0 0 0 5px;}
    &.category_os {
      background-color: #e8820a;
      box-shadow: inset #f1d8bb 0 0 5px;}
    &.category_programming-language {
      background-color: #115d09;
      box-shadow: inset #c4e1c1 0 0 5px;}
  }
  &:not(.active){
    background-color: #656565;
    box-shadow: inset #d2d3d9 0 0 5px;}
}
.progress_basis{ width: 25%; }
.progress_intermediate{ width: 50%; }
.progress_advanced{ width: 75%; }
.progress_expert{ width: 100%; }

.scrolling-container {
  display: flex;
  align-items: center;
  font-size: 0.85em;
  font-weight: bold;
  white-space: nowrap;
  overflow: hidden;
  position: absolute;
  height: 100%;
  width: 100%;
  top: 0;
  left: 0;
}

.scrolling-text {
  padding-left: 0.2rem;
  padding-right: 0.2rem;
  display: flex;
  align-items: center;
  --translateX: 0px;
  animation: linear scroll 5s infinite;
}

@keyframes scroll {
  4% {transform: translateX(0%);}
  48% {transform: translateX(var(--translateX));}
  52% {transform: translateX(var(--translateX));}
  100% {transform: translateX(0%);}
}