@page {
    size: A4;
    margin: None;
}

body {
    margin: 0;
    padding: 0;
    height: 100vh;
    background-color: #282d45;
}

/* ids */
#a4-page {
    position: absolute;
    width: 21cm;
    height: 29.7cm;
    margin: auto;
    top: 10%;
    background-color: #282d45;
    background-position: center top;
    background-repeat: no-repeat;
    box-shadow: 3px 3px 15px 2px black;
    overflow: show;
}

#a4-page-horizontal {
    top: 10%;
    position: absolute;
    width: 29.7cm;
    height: 21cm;
    margin: auto;
    background-color: #282d45;
    background-position: center top;
    background-repeat: no-repeat;
    box-shadow: 3px 3px 15px 2px black;
    overflow: hidden;
}

#top-image {
    width: 100%;
    position: absolute;
    top: 0;
    z-index: 1;
}

#bottom-image {
    width: 100%;
    position: absolute;
    bottom: 0;
    z-index: 1;
}

#pfp-container {
    display: flex;
    align-items: center;
}

#pfp {
    width: 128px;
    height: 128px;
    border-radius: 50%;
    background-color: #fff;
    background-image: url("/assets/img/pic_resume.webp");
    background-size: cover;
    background-position: center;
    margin-right: 20px;
    border: 2px solid black;
}

#pfp-text {
    margin-top: -32px;
    font-size: 92%;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    color: #fff;
}

#bg-video {
    position: fixed;
    right: 0;
    bottom: 0;
    min-width: 100%;
    min-height: 100%;
    z-index: -1;
}

#ctn{
    overflow-y: auto;
    overflow-x: hidden;
    position: absolute;
    margin: 0;
    padding: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
}

#ctn::-webkit-scrollbar {
    width: 0 !important;
}

#skills-showcase {
    position: relative;
    width: 95%;
    left: 2.5%;
    height: 44%;
    top: 3.5%;
    background-color: #313752;
    border-radius: 20px;
    margin: 0;
    padding: 3%;
    padding-top: 0;
}

#text-scroller {
    position: fixed;
    top: 0;
    left: 0;
    padding-bottom: 5px;
    width: 100%;
    background-color: #151725;
    color: #fff;
    overflow: hidden;
    white-space: nowrap;
    z-index: 1000;
    border-bottom: 1px solid white;
}

#scroller-content {
    display: inline-block;
    padding-left: 100%;
    animation: scroll-text 20s linear infinite;
}

/* classes */
.noSelect {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -o-user-select: none;
    user-select: none;
}

.content-container {
    position: relative;
    bottom: 0;
    z-index: 3;
    width: 100%;
    overflow: None;
}

.content-inside {
    width: 21cm;
    padding: 20px;
    box-sizing: border-box;
    color: white;
    text-align: left;
    font-size: 28px;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}

.questionnaire-window {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #282d45;
    border: 2px solid white;
    padding: 20px;
}

.white-bar {
    background-color: white;
    position: relative;
}

.container-resume-parts {
    background-color: rgba(255, 255, 255, 0.02);
    width: 350px;
    height: 300px;
    position: absolute;
}

.skill {
    position: relative;
    left: 5%;
}

.skill-name {
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    font-size: 16px;
    margin-top: 4px;
    position: relative;
    font-weight: bold;
    margin-bottom: 5px;
}

.progress {
    width: 90%;
    height: 20px;
    background-color: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
    margin: 0;
    z-index: 1;
}

.progress-bar-1 {
    position: relative;
    height: 100%;
    background-color: #3c4968;
    border-radius: 0px;
    width: 0;
    animation: fillBar 0.5s ease forwards;
    transition: background-color 0.3s ease;
    --width: 100%;
}

.TitleProj {
    font-size: 120%;
    margin: 0;
    padding: 0;
}

.underTitleProj {
    font-size: 90%;
    margin: 0;
    padding: 0;
}

.descTitleProj {
    position: relative;
    left: 55%;
    top: -28%;
    font-size: 60%;
    padding: 0;
    margin: 0;
}

.descProj {
    position: relative;
    left: 55%;
    top: -28%;
    width: 45%;
    font-size: 60%;
    padding: 0;
    margin: 0;
}

.project {
    height: 60%;
    width: 85%;
    left: 7.5%;
    position: relative;
    z-index: 1;
    overflow: show;
}

.InfosBox {
    position: absolute;
    width: 0%;
    height: 0%;
    top: 30%;
    left: 95%;
    transform: translate(-50%, -50%);
    font-size: 0%;
    background-color: #0c1122;
    z-index: 2;
    padding: 1.5%;
    padding-left: 3%;
    opacity: 0;
    border: 3px solid white;
    border-radius: 5px;
    transition: all 0.5s ease; /* Smooth transition for the hover effect */
}

.project-img {
    position: relative;
    z-index: 21;
}

.experience {
    position: relative;
    border: 0;
    border-radius: 12px;
    background-color: rgb(49, 55, 82);
    margin-bottom: 10px;
    overflow: hidden;
    transition: background-color 0.5s ease, z-index 0.5s ease;
    cursor: pointer;
    z-index: 1;
    height: 60px;
    margin-top: 0;
}

.skill-sc-element {
    display: inline-flex;
    align-items: center;
    padding-left: 1%;
    padding-right: 2%;
    margin-right: 4px;
    background-color: #ffffff21;
    border-radius: 12px;
    transition: opacity 0.3s ease;
}

.skill-color {
    height: 15px;
    width: 15px;
    border-radius: 50%;
    margin-right: 4px;
}

.skill-progress {
    width: 90%;
    height: 20px;
    background-color: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
    margin: 0;
}

.skill-progress-bar-1 {
    position: relative;
    height: 100%;
    background-color: #3c4968;
    border-radius: 0px;
    width: 0;
    animation: fillBar 0.5s ease forwards;
    transition: background-color 0.3s ease;
    --width: 100%;
}

.main-info {
    animation: fadeIn 0.3s forwards;
}

.alt-info {
    animation: fadeOut 0.3s forwards;
    opacity: 0;
    visibility: hidden;
}

.exp-desc {
    font-size: 14px;
    color: white;
    padding: 0 10px;
    height: 0;
    overflow: hidden;
    opacity: 0;
    transition: height 0.5s ease, padding 0.1s ease, opacity 0.5s ease;
}

.skill-sc-element:hover .main-info {
    animation: fadeOut 0.3s forwards;
    opacity: 0;
    visibility: hidden;
}

.skill-sc-element:hover .alt-info {
    animation: fadeIn 0.3s forwards;
    opacity: 1;
    visibility: visible;
}

.skill-sc-element .alt-info {
    opacity: 1;
    display: none;
}

.skill-sc-element:hover .alt-info {
    display: block;
    opacity: 1;
}

.skill-sc-element:hover .main-info {
    display: none;
    opacity: 0;
}

.darken-on-hover:hover img {
    animation: darken 0.3s ease forwards;
}

.button-hover:hover {
    animation: button_over 0.3s ease forwards;
}

.clickable:hover {
    cursor: pointer;
}

.project:hover {
    z-index: 10;
}

.project:hover .InfosBox {
    opacity: 0.9;
    width: 200%;
    height: auto;
    top: 30%;
    left: 95%;
    font-size: 80%;
    transform: translate(-50%, -50%);
    z-index: 20;
}

.progress-bar-1:hover {
    animation: none;
}

.progress-bar-1:hover::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: inherit;
    animation: fillBar 0.5s ease forwards;
}

.experience:hover {
    animation: expand 0.1s forwards;
}

.experience:not(:hover) {
    animation: shrink 0.5s forwards;
}

.experience:hover .exp-desc {
    height: auto;
    padding: 4px 4px;
    opacity: 1;
}

.highlighted {
    border: 1px solid white;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        visibility: hidden;
    }
    to {
        opacity: 1;
        visibility: visible;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        visibility: visible;
    }
    to {
        opacity: 0;
        visibility: hidden;
    }
}

@keyframes expand {
    from {
        height: 20%;
        margin-top: 0;
    }

    to {
        height: 78%;
        margin-top: calc(var(--order) * -21%);
    }
}

@keyframes shrink {
    from {
        height: 150px;
        margin-top: calc(var(--order) * -21%);
    }

    to {
        height: 20%;
        margin-top: 0;
    }
}

@keyframes appear {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

@keyframes darken {
    from {
        filter: brightness(1);
    }

    to {
        filter: brightness(0.6);
    }
}

@keyframes button_over {
    from {
        background-color: transparent;
    }

    to {
        background-color: #282d45;
    }
}

@keyframes fillBar {
    from {
        width: 0;
    }

    to {
        width: var(--width);
    }
}

@keyframes scroll-text {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}
