:root{
    --web-red: rgb(197, 49, 63);
    --web-yw: rgb(251, 169, 15);
    --web-orange: rgb(240, 114, 29);
    --web-blue: rgb(106, 133, 205);
    --web-beige: rgb(240, 240, 240);
    --web-transparent: rgb(240, 240, 240, 0.1);
    --web-black: rgb(15, 15, 15);    

    --main-bg-color: var(--web-black);
    --main-fg-color: var(--web-beige);
    --main-web-highlight: var(--web-yw);

    --main-overlay-color: rgba(10, 10, 10, 0.9);
    --main-overlay-color-b: rgba(10, 10, 10, 0.7);
}

body{
    margin: 0;

    background-color: var(--main-bg-color);
    color: var(--main-fg-color);

    display: flex;
    justify-content: center;

    font-family: Roboto, "Droid Sans", Arial, sans-serif;

    overflow-x: hidden;
}

#top-bar{
    position: fixed;
    height: 40px;
    width: 100%;
    /*backdrop-filter: blur(12px);*/
    background-color: var(--web-black);

    z-index: 5;
}

.language-button{
    margin-left: 80%;

    padding: 10px 50px;

    fill:var(--main-fg-color);

    position: absolute;

    cursor: pointer;
}

/*
.language-button:hover{
    fill: var(--main-web-highlight);
}
*/

#language-icons{
    
    margin-left: 80%;
    width: 110px;
    /*height: 150px;*/
    /*height: 100%;*/

    border: 1px solid var(--main-fg-color);
    background-color: var(--main-bg-color);
    padding-top: 40px;
    top: -40px;
    position: absolute;

    border-radius: 25px;

    text-align: center;

    overflow: clip;

    transition: 0.25s;
}


.lang{
    display: block;

    font-weight: 200;
    font-size: 1rem;

    padding: 10px 10px 15px 10px;

    filter: grayscale(100%);

    cursor: pointer;
}

.lang:hover{
    font-weight: 400;
    filter: grayscale(0%);
    background-color: var(--web-transparent);
}

.lang svg{
    height: 20px;
    vertical-align: bottom;
    margin-right: 5px;

    float: left;
    
}

.main-box{
    text-align: right;
    position: relative;
    min-width: 940px;
    width: 100%;
    padding: 0 25%;
    min-height: 100vh;
}

h1{
    margin: 15px 0 15px 0;
    font-size: 1.7em;
    
    border-bottom: 1px solid var(--main-fg-color);
}

.bio{
    margin: 25px 0;
    padding-top: 25px;
    display: flex;
}

.bio-text div{
    padding-bottom: 5px;
}

.bio-image{
    max-width: 20%;
    align-content: center;
}

.bio-image img{
    width: 100%;
    border-radius: 50%;
}

.bio-text{
    width: 100%;
    margin-left: 50px;
    text-align: justify;
}

.bio .content-title{
    font-weight: 400;
    margin-bottom: 0.25rem;
}

.content-title b{
    font-weight: 700;
}

.bio .content-attr{
    font-size: 1.2rem;
    font-weight: 200;
}

.mobile-only{
    display: none !important;
}


.expand-section{
    cursor: pointer;
}

.collapsed{
    max-height: 0px !important;
    opacity: 0;
}

#language-icons.collapsed{
    top: -150px;
    opacity: 0;
    max-height: fit-content !important;
}

.section{
    transition: 0.75s ease;
    max-height: 100%;
    overflow: clip;
}

.content-block{
    min-height: 135px;
    max-height: 135px;

    max-width: 100%;
    display: flex;
    border: 1px solid white;
    border-radius: 25px;
    overflow: clip;

    margin-bottom: 1rem;

    transition: 1s ease;
}

.content-block.expand{
    max-height: 1000px;
}

.content-contact{
    margin-top: 20px;
    display: flex;
    justify-content: space-evenly;
}

.content-logo{
    display: inline;
}

.content-icon{
    align-content: center;
    display: inline-block;
}

.content-icon:hover{
    color: var(--web-yw);
    cursor: pointer;
}

.content-icon svg{
    width: 22px;
    fill: currentColor;
    display: inline;
    vertical-align: text-bottom;
}

.content-icon div{
    width: 25px;
    fill: currentColor;
    display: inline;
    vertical-align: text-bottom;
}


.content-block img{
    min-height: 135px;
    max-height: 135px;
    max-width: 180px;
    border-radius: 0px;
    object-fit: cover;
}

.content-text{
    width: 100%;
    padding: 1rem 2rem;
    text-align: justify;

    position: relative;
}

.content-title{
    text-align: left;
    font-size: 1.25rem;
    font-weight: 700;
}

.content-year{
    position: absolute;
    top: 1rem;
    right: 2rem;
    text-align: right;

    font-weight: 200;
    font-size: 1.5rem;
}

.content-attr{
    font-style: italic;
}

.content-desc{
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

.show-more{
    cursor: pointer;
    text-decoration: none;
    display: inline;
    color: var(--main-web-highlight);
}

.content-extra{
    font-size: 0.9rem;
    flex-grow: 1;
    max-height: 100%;
    transition: 0.75s ease;
}


.projects-block{
    position: relative;
    height: 28rem;

    width: 50%;
    float: right;

    margin-bottom: 50px;
}

.project-title{
    position: absolute;
    right: 0px;

    font-size: 4.5rem;
    font-weight: bold;


    transition: color 0.5s, all 0.2s;
    /*top: calc(50% - 5rem);*/
}

.project-title:first-child, .project-title:last-child{
    font-size: 1.2rem;
    margin: 0 30%;
    opacity: 0%;

}

.project-title:nth-child(2), .project-title:nth-child(7){
    font-size: 2rem;
    margin: 0 15%;
    opacity: 30%;
}

.project-title:nth-child(3), .project-title:nth-child(6){
    font-size: 3rem;
    margin: 0 5%;
    opacity: 75%;
}


.project-title:hover, .project-title:focus, .project-title:active {
    cursor: pointer;
    color: var(--main-web-highlight);
}


.project-title:first-child{
    top: calc(0%);
}

.project-title:nth-child(2){
    top: calc(1.2rem + 0.75rem);
}

.project-title:nth-child(3){
    top: calc(1.2rem + 2rem + 2*0.75rem);
}
.project-title:nth-child(4){
    top: calc(1.2rem + 2rem + 3rem + 3*0.75rem);
}
.project-title:nth-child(5){
    top: calc(1.2rem + 2rem + 3.5rem + 4.5rem + 4*0.75rem);
}
.project-title:nth-child(6){
    top: calc(1.2rem + 2rem + 3.5rem + 2*4.5rem + 5*0.75rem);
}

.project-title:nth-child(7){
    top: calc(1.2rem + 2rem + 2*3.5rem + 2*4.5rem + 6*0.75rem);
}

.project-title:last-child{
    top: calc(1.2rem + 2*2rem + 2*3.5rem + 2*4.5rem + 7*0.75rem);
}


footer{
    text-align: center;
    width: 50%;
    float: left;
    font-size: 0.8rem;
    bottom: 10px;
    line-height: 1.5;
    position: absolute;
    opacity: 0.5;

}

/* OVERLAY */
.hidden{
    display: none;
}


#overlay{
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 2;
    padding: 0 25%;

    display: flex;
    justify-content: center;
}

.overlay-background{
    position: fixed;
    z-index: -1;
    width: 100%;

    top: 40px;
    height: calc(100vh - 40px);

    background-color: var(--main-bg-color);

    transition: 0.5s;

}

.overlay-box{
    position: relative;

    width: 50%;
    min-width: 940px;
    height: calc(100vh - 40px);
    bottom: -40px;

    border-radius: 25px 25px 0 0;
    border: 1px solid var(--main-fg-color);

    background-color: var(--main-bg-color);
    box-shadow: 0px 15px 15px 5px var(--web-transparent);

    transition: 0.75s;
    transition-delay: 0.3s;


}

#overlay.disabled{
    /*z-index: -1;*/
    pointer-events: none;
}

#overlay.disabled .overlay-box{
    bottom: -100vh;
}

#overlay.disabled .overlay-background{
    background-color: unset;
}

.close-btn{
    fill: var(--main-fg-color);
    position: absolute;
    right: 25px;
    top: 25px;
    cursor: pointer;
}

#project-list{
    height: 100%;
    transition: opacity 0.5s;
}


.main-box-overlay{
    max-width: 100%;
    height: 100%;
    padding: 80px 2%;
}

.filter-list{
    display: flex;
    margin: 0 15%;
    justify-content: space-evenly;
}

button{
    padding: 5px 15px;

    font-size: 1rem;
    font-weight: 300;
    font-family: Roboto, "Droid Sans", Arial, sans-serif;

    background-color: var(--main-bg-color);
    color: var(--main-fg-color);

    border: 2px solid var(--main-fg-color);
    border-radius: 10px;

    cursor:pointer;
}

button:hover{
    background-color: var(--web-transparent);
}

button.pressed{
    font-weight: 600;

    background-color: var(--main-fg-color);
    color: var(--main-bg-color);
}

.content-overlay{
    margin-top: 30px;
    max-height: 80%;
    overflow-y: auto;
    padding: 0 5%;
    padding-bottom: 100px;
}

.content-overlay .content-block{
    min-height: 135px;
    max-height: 135px;

    cursor: pointer;
    transition: border 0.2s;
}

.content-overlay .content-block:hover{
    border: 1px solid var(--web-yw);
    transition: border 0.2s;
}

.content-overlay .content-block:hover .content-title{
    color: var(--web-yw);
}

#project-body{
    height: 100%;
    max-width: 100%;
    transition: 1s;
    transition-delay: 0.25s;
}

#project-body img,#project-body video{
    max-width: 100%;
    margin-bottom: 0.5rem;
}

#project-body .filter-list{
    display: block;
    margin: 0 5%;
}

.touch-mobile{
    color: var(--web-yw);
}

.noscroll{
    overflow: hidden;
}


/* Tablet screen */
@media only screen and (max-width: 1200px) {
   .main-box{
        min-width: unset;
        padding: 0 15px;
   }

   #language-icons {
    margin-left: 70%;
}

   footer{
        width: 95%;
   }
}

/* Small tablet screen */
@media only screen and (max-width: 950px) {
    .language-button{
        margin-left: 0;
        left: 25px;
        padding: 10px 20px;
    }

    #language-icons {
        margin-left: 25%;
    }

    .bio-text{
        margin: 25px 15px 0 25px;
    }

    .mobile-only{
        display: unset !important;
    }

    .pc-only{
        display: none !important;
    }

    .content-block {
        min-height: 150px;
        max-height: 150px;
    }

    .content-year {
        position: relative;
        margin: 0.5% auto;
        top: unset;
        right: unset;
        text-align: left;
    }

    #overlay {
        padding: 0%;
    }

    .overlay-box{
        width: 100%;
        min-width: 100%;
        height: calc(100vh - 45px);
        bottom: -45px;
        border-radius: 0;
    }

    .main-box-overlay{
        padding: 0;
    }

    .filter-list{
        margin: 10px 20px;
        display: block;
        text-align: center;
    }

    #project-body .filter-list {
        margin: 10px 20px;
    }

    button{
        padding: 5px 15px;
        min-width: 120px;
        margin: 5px 15px;
    }

    .content-overlay{
        margin-top: 0px;
    }

}


/* Mobile screen */
@media only screen and (max-width: 550px) {

    .content-title{
        font-size: 1.15rem;
    }

    .content-year{
        font-size: 1.15rem;
    }

    .content-block {
        min-height: 100px;
        max-height: 200px;
    }

    .content-overlay .content-block {
        min-height: 100px;
        max-height: 200px;
    }

    .content-text{
        padding: 0.5rem 1rem;
    }

    .content-desc {
        text-align: left;
    }

    .content-logo img{
        min-height: unset;
        max-height: unset;
        max-width: 115px;
        object-fit: contain;
        object-position: center;
        vertical-align: middle;
        height: 100%;
    }

    .bio{
        display: block;
        
    }

    .bio-image{
        max-width: 100%;
        padding: 0 20%;
    }

    .bio-text{
        margin: 15px 15px 0 15px;
        width: unset;
        text-align: left;
    }

    .project-title{
        font-size: 3.5rem;
    }
    
    .project-title:first-child, .project-title:last-child{
        font-size: 1.2rem;
        margin: 0 30%;
    }
    
    .project-title:nth-child(2), .project-title:nth-child(7){
        font-size: 1.75rem;
        margin: 0 15%;
    }
    
    .project-title:nth-child(3), .project-title:nth-child(6){
        font-size: 2.5rem;
        margin: 0 5%;
    }
    
    .project-title:first-child{
        top: calc(0%);
    }
    .project-title:nth-child(2){
        top: calc(1.2rem + 0.75rem);
    }
    .project-title:nth-child(3){
        top: calc(1.2rem + 1.75rem + 2*0.75rem);
    }
    .project-title:nth-child(4){
        top: calc(1.2rem + 1.75rem + 2.25rem + 3*0.75rem);
    }
    .project-title:nth-child(5){
        top: calc(1.2rem + 1.75rem + 2.25rem + 3.75rem + 4*0.75rem);
    }
    .project-title:nth-child(6){
        top: calc(1.2rem + 1.75rem + 2.25rem + 2*3.75rem + 5*0.75rem);
    }
    .project-title:nth-child(7){
        top: calc(1.2rem + 1.75rem + 2*2.25rem + 2*3.75rem + 6*0.75rem);
    }
    .project-title:last-child{
        top: calc(1.2rem + 2*1.75rem + 2*2.25rem + 2*3.75rem + 7*0.75rem);
    }

    #overlay .content-logo img{
        object-fit: cover;
    }
}