/* CV page: Matija Trstenjak */

.cv-container{
    background: rgba(156, 156, 156, 0.33);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 0px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.cv-container .title h1{
    font-size: 18px;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.cv-wrapper{
    max-width: 980px;
    margin: 0 auto;
    line-height: 1.65;
    font-size: 15px;
    color: rgba(0, 0, 0, 0.82);
}

.cv-hero{
    display: flex;
    justify-content: center;
    margin: 10px 0 18px 0;
}

.cv-photo{
    margin: 5px;
    min-width: 50px;
    max-width: 150px;
    aspect-ratio: 1 / 1;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.18);
    border: 1px solid rgba(0,0,0,0.08);
    background: rgba(255,255,255,0.75);
}


.cv-photo-left{
    float: left;
    margin: 5px 18px 14px 0;
}

.cv-photo-right{
    float: right;
    margin: 0 0 14px 18px;
}

.cv-photo img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cv-wrapper h1{
    margin: 6px 0 2px 0;
    font-size: 34px;
    color: rgb(98, 0, 0);
    letter-spacing: 0.2px;
}

.cv-wrapper h2:nth-of-type(n+2),
.cv-wrapper h3:nth-of-type(n+2){
    clear: both;
}

.cv-wrapper h2{
    margin: 18px 0 8px 0;
    font-size: 18px;
    color: rgb(98, 0, 0);
}

.cv-wrapper h3{
    margin: 14px 0 6px 0;
    font-size: 15px;
    color: rgba(0, 0, 0, 0.78);
}

.cv-wrapper p{
    margin: 0 0 10px 0;
}

.cv-wrapper strong{
    color: rgba(0, 0, 0, 0.9);
}

.cv-wrapper a{
    color: rgb(98, 0, 0);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.cv-wrapper a:hover{
    color: rgb(120, 0, 0);
    text-decoration-thickness: 2px;
}

.cv-wrapper a:active{
    color: rgb(70, 0, 0);
}

.cv-wrapper hr{
    border: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.10);
    margin: 18px 0;
}

.cv-wrapper ul{
    margin: 0 0 14px 18px;
    padding: 0;
}

.cv-wrapper ul li{
    list-style-type: disc;
    margin: 0 0 8px 0;
    padding-right: 0;
}

.cv-wrapper ul li + li{
    margin-top: 6px;
}

.cv-wrapper table{
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 10px 0 16px 0;
    font-size: 14px;
    overflow: hidden;
    border-radius: 10px;
}

.cv-wrapper th,
.cv-wrapper td{
    border: 1px solid rgba(0, 0, 0, 0.08);
    padding: 10px 12px;
    text-align: left;
    vertical-align: top;
    background: rgba(255, 255, 255, 0.70);
}

.cv-wrapper thead th{
    background: rgba(98, 0, 0, 0.10);
    color: rgba(0, 0, 0, 0.85);
}

@media (min-width: 721px) {
    .cv-wrapper table{display: table;}
    .cv-wrapper thead{display: table-header-group;}
    .cv-wrapper tbody{display: table-row-group;}
    .cv-wrapper tr{display: table-row;}
    .cv-wrapper th,
    .cv-wrapper td{display: table-cell;}
    .cv-wrapper td::before{content: none;}
}

@media (max-width: 720px) {
    .cv-wrapper{
        font-size: 14px;
    }

    .cv-photo-left,
    .cv-photo-right{
        float: none;
        margin: 0 auto 14px auto;
        display: block;
    }

    .cv-photo-left{
        float: none;
        margin: 5px 18px 14px 0;
        display: block;
    }

    .cv-wrapper h1{
        font-size: 28px;
    }

    .cv-wrapper table{
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border-radius: 10px;
    }

    .cv-wrapper th,
    .cv-wrapper td{
        white-space: nowrap;
    }
}

@media (max-width: 720px) and (hover: none) and (pointer: coarse) {
    .cv-wrapper table,
    .cv-wrapper thead,
    .cv-wrapper tbody,
    .cv-wrapper th,
    .cv-wrapper td,
    .cv-wrapper tr{
        display: block;
        width: 100%;
    }

    .cv-wrapper thead{
        display: none;
    }

    .cv-wrapper table{
        overflow: hidden;
        border-radius: 12px;
        border: 1px solid rgba(0, 0, 0, 0.10);
        background: rgba(255, 255, 255, 0.40);
    }

    .cv-wrapper tbody tr{
        padding: 10px 12px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    }

    .cv-wrapper tbody tr:last-child{
        border-bottom: none;
    }

    .cv-wrapper td{
        border: none;
        padding: 6px 0;
        background: transparent;
        white-space: normal;
    }

    .cv-wrapper td::before{
        content: attr(data-label);
        display: block;
        font-size: 12px;
        font-weight: 700;
        color: rgba(0, 0, 0, 0.65);
        text-transform: uppercase;
        letter-spacing: 0.4px;
        margin-bottom: 2px;
    }
}
