/*  ================================
    Home Page / templates/index.html
    ================================ 
*/ 


#content-home{
    display: flex;
    flex-direction: column;
    gap: 56px;
    padding: 0px 40px 40px;
    margin-top: 160px;
    box-sizing: border-box;
}

.home-card{
    border-radius: 24px;
    padding: 2.25rem 2.25rem;
}

/*#region header */

#header{
    width: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
}

#header img{
    width: 250px;
}

#header #welcome-text-container{
    align-self: stretch;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--col4-lowOp-but-not-transparent);
    gap: 16px;
    margin-top: -30px;
}

/*#endregion header  */


/*#region insights section */

#wordcloud-insights-container{
    display: flex;
    flex-direction: row;
    align-items: center;
    align-content: center;
    background: var(--cards);
    height: fit-content;
    gap: 40px;
    box-sizing: border-box;
}

#wordcloud{
    width: 30%;
    min-height: 430px;
    height: 90%;
}

#insights-container{
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 70%;
    gap: 40px;
    box-sizing: border-box;
}

#insights{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-content: center;
    gap: 2rem;
    width: 100%;
}

.insight{
    display: flex;
    flex-direction: column;
    flex: 1 1 45%;
    gap: 8px;
}

.insight hr{
    width:100%;
    height: 4px;
    text-align:left;
    margin-left:0;
    background-color: var(--col5);
    border-width:0
}
/* #endregion insights section */


/*#region  card links */

#card-links-container{
    width: 100%;
    display: flex;
    flex-direction: column;
    padding: 1.5rem 1.8rem;
    box-sizing: border-box;
    
    gap: 16px;

    background: 
    linear-gradient(to right, var(--col3) 3px, transparent 3px) 0 0,
    linear-gradient(to right, var(--col3) 3px, transparent 3px) 0 100%,
    linear-gradient(to left, var(--col3) 3px, transparent 3px) 100% 0,
    linear-gradient(to left, var(--col3) 3px, transparent 3px) 100% 100%,
    linear-gradient(to bottom, var(--col3) 3px, transparent 3px) 0 0,
    linear-gradient(to bottom, var(--col3) 3px, transparent 3px) 100% 0,
    linear-gradient(to top, var(--col3) 3px, transparent 3px) 0 100%,
    linear-gradient(to top, var(--col3) 3px, transparent 3px) 100% 100%; 

    background-repeat: no-repeat;
    background-size: 25px 25px;
}



#card-links-container h2{
    position: relative;
    width: fit-content;
}


#card-links{
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    overflow-x: auto;
    gap: 3rem;
    scrollbar-width: thin;
}

#card-links::-webkit-scrollbar{
    width: 1px;

}

.card-link{
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 32px 40px;
    gap: 32px;
    min-width: 450px;
    height: 100%;
    min-height: 400px;
    background-color: var(--cards);
    border-radius: 24px;
    box-sizing: border-box;
}

.card-link-icon{
    background-color: var(--col5-lowOp);
    border-radius: 100%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-link-icon path{
    fill: var(--col3);
}

.card-link-text{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    gap: 24px;
}

.card-link-text p{
    min-height: 120px;
}

.card-link-text h2{
    color:var(--col3);
    font-weight: var(--sl-font-weight-semibold);
}



/* ----- quicklinks: Shortcut to the other pages/html files */

.quick-link{
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2px;
    line-height: 28px;
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-skip-ink: auto;
    transition: color 0.2s ease-in-out;
}

.quick-link sl-icon{
    display:inline-block;
    transform: translate3d(0, 0, 0);
    transition: transform 0.2s ease-in-out;
}

.quick-link:hover sl-icon{
    transform: translate3d(0.25em, 0, 0);
}

.quick-link:hover svg path{
    fill: var(--col5);
}

/* #endregion card-links */


/*#region Info section */
#info{
    display: flex;
    flex-direction: column;
    gap: 40px;
}

#info h3{
    color: var(--col3);
}

#info #why-phages, #info #dual-rna-seq{
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#why-phages{
    background-color: var(--col4-lowOp-but-not-transparent);
}

#dual-rna-seq{
    background-color: var(--cards);
}

/* #endregion Info section */

/*#region Media */

@media screen and (min-width: 1440px){
    
    #content-home{
        padding: 0 4rem 4rem 4rem;
        gap: 4rem;
        margin-top: 200px;
    }

    #header img{
        width: 400px;
    }


    .home-card{
        padding: 3rem 3rem;
    }

    #header #welcome-text-container{
        gap: 1.5rem;
    }


    #wordcloud{
        height: 100%;
        min-height: 600px
    }

    .card-link{
        padding: 2rem 2.5rem;
    }

    
}


@media screen and (max-width: 1145px){

    #card-links{
        gap: 2rem;
    }

    .card-link{
        padding: 28px 36px;
        gap: 32px;
        min-width: 400px;
        
    }
    
    .card-link-icon{
        width: 80px;
        height: 80px;
    }
    
}

@media screen and (max-width: 1012px){
    #card-links{
        gap: 1.5rem;
    }
}

@media screen and (max-width: 950px){
    .card-link{
        padding: 24px 32px;
        gap: 20px;
        min-width: 350px;
        min-height: 382px;
    }
    
    .card-link-icon{
        width: 60px;
        height: 60px;
    }

    .card-link-icon svg{
        width: 46px;
        height: 46px;
    }


    .card-link-text p{
        min-height: 156px;
    }

    #wordcloud{
        width: 40%;
        min-height: 400px;
        height: 90%;
    }
}

@media screen and (max-width: 770px){
    .card-link{
        padding: 28px 36px;
        gap: 32px;
        min-width: 400px;
        min-height: 396px;
    }


    .card-link-text p{
        min-height: 136.5px;
    }

    

    
}

@media screen and (max-width: 575px){

    .card-link{
        padding: 24px 32px;
        gap: 20px;
        min-width: 350px;
        min-height: 375px;
        
    }
    
    .card-link-icon{
        width: 54px;
        height: 54px;
    }

    .card-link-text p{
        min-height: 156px;
    }

    #wordcloud-insights-container{
        flex-direction: column;
    }

    #wordcloud{
        width: 50%;
        min-height: 300px;
        height: 50%;
    }

    #insights-container{
        width: 100%;
    }

    .insight{
        align-items: stretch;
    }
    
}

@media screen and (max-width: 493px){

    #content-home{
        padding: 0 2rem 2rem 2rem;
    }

    .card-link{
        padding: 24px 32px;
        gap: 20px;
        min-width: 320px;
        min-height: 395px;
        
    }
    
    .card-link-text p{
        min-height: 175.5px;
    }
    
}





@media screen and (max-width: 439px){

    #content-home{
        padding: 1.875rem 1.875rem 1.875rem;
    }

    .home-card{
        padding:2rem 2rem;
    }

    .card-link{
        padding: 24px 32px;
        gap: 20px;
        min-width: 300px;
        min-height: 350px;
        
    }

    .card-link-icon{
        width: 50px;
        height: 50px;
    }

    .card-link-icon svg{
        width: 36px;
        height: 36px;
    }

    
    .card-link-text p{
        min-height: 175.5px;
        font-size: 1rem;
    }

    #wordcloud{
        width: 60%;
        min-height: 250px;
        height: 50%;
    }
    
}

@media screen and (max-width: 410px){

    .card-link{
        padding: 24px 32px;
        gap: 20px;
        min-width: 340px;
        min-height: 367.5px;
        
    }

    .card-link-icon{
        width: 50px;
        height: 50px;
    }

    .card-link-icon svg{
        width: 36px;
        height: 36px;
    }

    
    .card-link-text p{
        min-height: 152px;
    }
    
}

/* -- Mobile S -- */
@media screen and (max-width: 320px){

    #content-home{
        padding: 0 1.25rem 1.25rem 1.25rem;
    }

    #wordcloud{
        width: 80%;
    }

    .card-link{
        padding: 24px 32px;
        gap: 20px;
        min-width: 64vw;
        min-height: 200px;
        
    }
    
    .card-link-text p{
        min-height: 200px;
    }
    
}

/* #endregion Media */
