#main-cv {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    transform: translate(0, 15vh);
    background: url('../img/cv.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-blend-mode: multiply;
    background-size: cover;
    background-position: center;
}

#main-cv ul {
    position: relative;
    right: 20px;
}

#cv-section {
    padding-top: 30px;
    padding-bottom: 30px;
    margin-top: 50px;
    margin-bottom: 50px;
    max-width: 70vw;
    overflow: auto;
    background: rgb(255, 255, 255);
    color: black;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.cv-article {
    display: none;
    word-wrap: break-word;
    text-align: justify;
    padding-right: 30px;
    padding-left: 30px;
}

#cv-section h2 {
    display: none;
}

#cv-section h2.open {
    display: block;
}

.cv-article.open {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

#btn-div {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid #ddd;
    overflow: auto;
    max-width: 90%;
    margin-left: 0;
    margin-right: 0;
}

.btn-cv
{
    position: relative;
    background: transparent;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    color: #666;
    opacity: 1;
    z-index: 11;
}

.btn-cv::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;  
    left: 0;
    background-color: #f5f5f5;
    opacity: 0;
    z-index: -1;
    transition: opacity 230ms;
}

.btn-cv:hover::after {
    opacity: 1;
}

.btn-cv.active {
    color: #3b5998;
    border-bottom-color: #3b5998;
}

hr {
    margin: 0;
}

@media all and (max-width: 780px) {
    #cv-section {
        position: relative;
        top: 0;
        left: 0;
        transform: translate(0, 3vh);
    }
}

@media all and (max-width: 600px) {
    #cv-section {
        max-width: 90%;
        width: auto;
    }
}

@media all and (max-width: 450px) {
    #cv-section {
        padding-left: 5px;
        padding-right: 5px;
    }
}