.cv-content {
   margin-top: 0.5rem;
   width: 100%;
   height: 100%;
   flex: 1 1 auto;
   align-items: stretch;
   box-shadow: 0px 0px 20px var(--color-theme-bold-shadow);
   border-radius: 5px;
   overflow: hidden;
}

.cv-content ul {
   margin: 0;
   padding: 0;
}

.cv-content .inside {
   /* background-color: var(--color-theme-accent); */
   background-color: white;
   /* transition: max-height 0.5s ease; */
   align-items: center;
   justify-content: safe center;
}

.cv-chapter {
   align-items: stretch;
   will-change: height,max-height;
}

.cv-chapter-button {
   /* border-color: var( --color-theme-bold); */
   /* border-width: 0px; */
   /* border-style: solid inset; */
   border-width: 0px;
   /* box-shadow: var(--color-font-title) 2px 2px 0 0; */
   /* display: inline-block; */
   touch-action: manipulation;
   height: 1.5rem;
   /* height: auto; */
}

.active .cv-chapter-button {
   /* border-bottom-width: 2px; */
}

.cv-chapter.active button span {
   filter: invert(0.5);
   mix-blend-mode: difference;
   /* filter: revert; */
}

.cv-chapter-button .bg {
  /* height: 100%; */
  /* width: 100%; */
  z-index: -100;
  position: absolute;
  display: block;
  top: 0;
  left: 0;
  width: var(--cv-inactive-bg-width);
  height: 100%;
  /* height: 100%; */
}

.inside .cv-chapter-button .bg {
   width: calc(var(--cv-inactive-bg-width) - var(--cv-inner-offset));
}

.cv-chapter-button .cv-title {
   position: relative;
   /* left: 0;
   top: 0; */
   width: 100%;
   z-index: 100;
}

.cv-chapter-button .border {
   width: 100%;
   /* height: 3px; */
   height: 0px;
}

.toplevel > .cv-chapter-button {
   font-size: var(--size-Large);
}

.inside .cv-chapter-button {
   font-size: var(--size-large);
}

.active .inside .active .cv-chapter-button {
   font-size: var(--size-Large);
   transition: font-size 0.2s ease-in;
}

.active > .cv-chapter-button .bg {
   transition: width 0.3s ease-out;
   width: 100%;
}

.inactive > .cv-chapter-button .bg {
   transition: width 0.0s ease;
}

.cv-chapter-button:hover {
  transform: translate(-2px, 0px);
  filter: brightness(105%);
}

.cv-chapter-button {
   /* hack so that background (.bg) behind is visible without hover */
   filter:brightness(100%);
}

.cv-chapter .inside .expand-button {
   margin-left: var(--cv-inner-offset);
   width: calc(100% - var(--cv-inner-offset));
}

.cv-chapter .inside.smooth {
   /* max-height: auto; */
}

.cv-chapter .inside .inside .expand-button {
   margin-left: calc(2*var(--cv-inner-offset));
   width: calc(100% - 2*var(--cv-inner-offset));
}

.cv-chapter.inactive .inside {
   display: block;
   overflow-y: hidden;
   padding: 0;
   margin: 0;
   opacity: 0;
   flex: 1 1 auto;
   overflow-y: hidden;
   height: 100%;
   line-height: 0;
   border-width: 0;
}

.cv-chapter.inactive .cv-chapter .inside {
   height: 0;
   display: none;
}

.cv-chapter.active .inside {
   justify-content:safe;
   height: 0;
}

#sidebar > div.cv-content.flex-column > div.cv-chapter > div.inside {
   height: 0;
}

.cv-chapter.active .cv-chapter.active .inside {
   flex: 100 1 auto;
   overflow-y: auto;
   /* height: 0; */
}

.cv-chapter {

}

.cv-chapter.active {
   flex: 100 1 auto;
}

/* .cv-chapter.inactive {
   flex: 0.001 1 auto;
   overflow-y: hidden;
   height: 0;
} */

.vert-margin {
   /* margin: 1em 0; */
}

.active .inside {
   flex: 10 1 auto;
   overflow-y: auto;
   height: 0;
}

/* .active .inside::-webkit-scrollbar-thumb {
   
   
} */

/*  */

::-webkit-scrollbar-track
{
	-webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
	background-color: var(--color-theme-normal);
}

::-webkit-scrollbar
{
	width: 0.5rem;
	background-color: var(--color-theme-normal);
}

::-webkit-scrollbar-thumb
{
	border-radius: 5px;
	-webkit-box-shadow: inset 0 0 6px rgba(0,0,0,.3);
	/* -webkit-box-shadow: calc(var(--pixel) * -1) 0 0 0 var(--pixel-border),
   calc(var(--pixel) * -2) 0 0 0 var(--pixel-border-2),
   calc(var(--pixel) * -3) 0 0 0 var(--pixel-border-3),
   inset 0 0 calc(var(--pixel) * -1) 0 var(--pixel-border),
   inset 0 0 calc(var(--pixel) * -2) 0 var(--pixel-border-2),
   inset 0 0 calc(var(--pixel) * -3) 0 var(--pixel-border-3)
   ; */
	background-color: var(--color-theme-bold);
   /* background-image: linear-gradient(90deg, var(--color-theme-bold) 0%, var(--color-theme-accent) 50%, var(--color-theme-bold) 100%); */
}

.cv-chapter, .cv-button {
   width: 100%;
   border-left-width: 8px;
   text-align: center;
   color: var(--color-font-title);
}

.cv-chapter .expand-button {
   /* border-width: 0 8px 0 8px; */
   border-style: solid;
   padding: 0;
   background-color: white;
}

.active .cv-text {
   border-style: solid;
   /* border-left-width: 0.5rem; */
   /* border-width: 0.5rem 0 0 0.5rem; */
   border-width: 0.35rem 0.5rem 0.35rem 0.5rem;
   /* border-color: var(--color-theme-accent); */
   border-color: white;
}

.cv-text {
   padding-right: 0.5em;
   text-align: justify;
}

.years-block {
   display: flex;
   flex-direction: column;
   justify-content: space-between;
   align-items: center;
   color: var(--color-theme-bold);
   margin: 0rem 1rem 0rem 0rem;
}

.year-separator {    
   height: 9px;
   width: 2px;
   background-color: var(--color-theme-bold);
   /* border-radius: 50%; */
   display: inline-block;
   position: relative;
   /* font-weight: 300; */
}

.year-value {
   font-weight: 600;
}

.icons {
   display: flex;
   flex-direction: row;
   /* flex-wrap: wrap; */
   justify-content: space-evenly;
   /* gap: 0.2rem; */
   margin-bottom: 0.5rem;
   font-weight: 600;
}

.icons img, .icons span {
   object-fit: cover;
   transition: scale 100ms ease-in-out;
}

.icons img:hover, .icons span:hover {
   scale: 1.2;
}

.icons img {
   height: calc(var(--size-normalsize) * 3.5);
}

.icons img.large {
   width: calc(var(--size-normalsize) * 5);
}

.icons img.huge {
   width: calc(var(--size-normalsize) * 6);
}

.cv-chapter ul {
   padding-left: 20px;
   list-style-type: disc;
   list-style-position: outside;
}

.cv-chapter li::before {
}

.cv-chapter li::marker {
   /* font-size: 1.1rem; */
}

.cv-chapter ul ul {
   padding-left: 1rem;
   list-style-type: circle;
}

.cv-chapter .header {
   align-items: center; 
   gap:0.0rem
}

#cv-samsung-logo {
   height: calc(var(--size-normalsize) * 1.1);
}

#cv-huawei-logo {
   height: calc(var(--size-normalsize) * 1.6);
}

#cv-polytech-logo {
   height: calc(var(--size-normalsize) * 1.3);
}

#cv-skoltech-logo {
   height: calc(var(--size-normalsize) * 1.3);
   filter: invert(0.5) sepia(1) saturate(5) hue-rotate(35deg);
}