@import "./themes.css";

.half {
    width: 50%;
    display: block;
}

.pub-icon {
    margin-left: -50px;
}

.pub-circle {
    border: 2px solid var(--primary-color);
    stroke: var(--primary-color);
}

.medium-logo {
    width: 15%;
    min-width: 100px;
    margin: 5px;
}

.large-logo {
    width: 30%;
    min-width: 200px;
    margin: 2px;
}


.icon-link {
    width: 75px;
    height: 75px;
}



.flex-container {
    width: inherit;
    height: inherit;
    display: flex;
}

.flex-grow {
    flex-grow: 1;
}


.video-container {
    margin-top: 1vh;
    width: 40vw;
    height: 30vh;
}

.youtube-video {
    display: block;
    width: 100%;
    height: 100%;
}

#publications-overview {
    display: flex;
    margin-top: 10px;
    margin-bottom: 40px;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    background: linear-gradient(var(--primary-color), var(--primary-color)) no-repeat center/2.5pt 100%;
}

.publication {
    width: 50%;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    flex-wrap: wrap;
    /* margin: 10px; */
    /* transform: translateX(150%);
    animation: jumpFromRight 0.6s ease forwards;
    animation-delay: calc(sibling-index()*0.1s); */
}


.linked-extra {
    display: none;
    flex-direction: row;
    align-items: center;
}


.year {
    width: 100vw;
    padding: 20px;
    font-size: 16pt;
    font-weight: bold;
    margin: 0 auto 75px;
    color: var(--primary-color);
    background-color: var(--bg-color);
    text-align: center;
}

.award {
    color: var(--highlight-color)
}
.preview {
    display: block;
    position: relative;
    width: 80%;
    max-width: 600px;
    min-width: 200px;
    background-color: var(--box-color);

    h2 {
        font-size: medium;
        text-align: left;
        margin: 10px;
        padding: 5px;
        a {
            color: var(--font-color);
            text-decoration: none !important;

        }
    }

    .authors {
        font-size: small;
        text-align: left;
        padding-top: 5px;
        margin: 10px 10px 0px 20px;
    }

    img {
        width: 90%;
        display: block;
        margin: auto;
        margin-bottom: 20px;
    }
}

.conference {
    background-color: var(--primary-color);
    width: fit-content;
    word-wrap: nowrap;
    border-radius: 20px;
    font-size: medium;
    padding: 5px 20px;
    margin-top: -16px;
    margin-left: -10px;
    display: block;

    a { 
        text-decoration: none;
        color: black;
        font-weight: bold;
    }
}

.info {
    display: none !important;
    /* display: flex; */
    flex-direction: row;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
    padding-bottom: 15px;
    h3 {
        text-align: center;
    }
    div {
        flex: 0.5;
        padding: 10px;
        width: 95%;
    }
    iframe {
        width: 100%;
        aspect-ratio: 16 / 9;
    };
}

.publication:target {
    .info {
        display: flex !important;
        flex-direction: column;
        animation: revealFromTop 0.6s ease-out forwards;
        overflow: hidden;
        margin-bottom: 18px;
    }
    .show {
        display: none !important;
    }
}

.flex-gallery {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    width: 100%;

    img {
        /* height: 200px;  */
        display: block;
        position: relative;
        height: 150px;
        flex: 0.45;
        object-fit: cover;
    }
}


.extra-content {
    position: relative;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 5px 0 5px 0;
    outline-offset: -100px;

    div {
        border: 2px solid var(--border-color);
        display: flex;
        flex-direction: column;
    }

    h3 {
        font-size: medium;
        text-align: center;
        background-color: var(--primary-color);
        margin: 0;
        padding: 5px;
        border-bottom: 2px solid var(--border-color);
    }

    p {
        font-size: small;
        margin: 5px 5px 0 5px;
    }
}

.reverse {
    flex-direction: row-reverse !important;
    .pub-icon {
        margin-left: 0 !important;
        margin-right: -50px !important;
    }
}

.bottom::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0%;
    width: 2px;
    height: 50%;
    background-color: var(--border-color);
}

.full::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0%;
    width: 2px;
    height: 100%;
    background-color: var(--border-color);
}

.top::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 2px;
    height: 50%;
    background-color: var(--border-color);
}

.static-connector {
    height: 3px;
    width: 15px;
    margin-top: 50px;
    /* border-right: 2px solid var(--border-color); */
    background-color: var(--primary-color);
}

.connector {
    height: 2px;
    width: 100px;
    border-right: 2px solid var(--border-color);
    background-color: var(--border-color);
}

.details {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    margin: 10px 20px;

}

.detail {
    border: 0;
    flex: 1;

    h4 {
        border: 0;
        font-size: var(--small-font);
        text-align: left;
        text-transform: uppercase;
        margin: 0;
    }

    p {
        font-size: var(--small-font);
        text-align: left;
        margin-top: 5px;
    }
}


.publication {
    .linked-extra {
        display: flex;
        animation: revealFromLeft 0.6s ease-out forwards;
        overflow: hidden;
    }
}

@keyframes jumpFromRight {
    from {
        transform: translateX(100%);
    }

    to {
        transform: translateX(0);
    }
}

@keyframes revealFromLeft {
    from {
        clip-path: inset(0 100% 0 0);
    }

    to {
        clip-path: inset(0 0 0 0);
    }
}

@keyframes revealFromTop {
    from {
        clip-path: inset(0 0 80% 0);
    }

    to {
        clip-path: inset(0 0 0 0);
    }
}


.detail-button {
    width: 100%;
    text-decoration: none;
    text-align: center;
    text-transform: uppercase;
    display: block;
    margin: 20px 0;
}

.connected-content {
    display: flex;
    flex-direction: row;
    align-items: center;
}

