.page{
    gap: 20px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    max-width: 100%;
}

.website_container{
    width: 100%;
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fill, minmax(min(300px,100%),1fr));
}

.website_link{
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    justify-self: center;
    align-self: start;
    flex-direction: column;
}

.website_link[data-inactive]{
    filter:brightness(.3);
}

.website_image_container{
    width: 100%;
    border-radius: 20px;
    background: white;
    aspect-ratio: 9/16;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.website_image_container::before{
    content:'';
    bottom:0;
    position: absolute;
    background: white;
    width: 100%;
    height: 50%;
}

.website_image_cropper{
    width: 100%;
    height: 100%;
    overflow: clip;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    position: absolute;
    top:0;
    left:0;
}

.website_image{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@keyframes loadingOverlayAnimation {50%{filter: brightness(.5)}}
.website_loading_overlay{
    width:100%;
    height:100%;
    position: absolute;
    top: 0;
    animation: loadingOverlayAnimation 2s ease-in-out infinite;
    background: linear-gradient(to bottom right, darkgrey,#4d4d4d);
    transition: .2s ease-out;
}

.website_info_container{
    width: 100%;
    flex-grow: 1;
    display: flex;
    position: relative;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background: white;
}

.website_name_container{
    position: absolute;
    bottom: 100%;
    background: white;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    padding: 10px 20px 5px;
}

.website_name{
    font-weight: 900;
    color: black;
    color: hsl(0, 0%, 35%);
}

.website_description{
    color: hsl(0, 0%, 75%);
}

/* ----------------------------------------------------- */
.back_button_container{
    width: 100%;
    display: flex;
}

.back_button{
    border-radius: 100px;
    padding: 10px 10px;
    background: white;
    font-weight: 600;
    color: black;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 7px;
    position: sticky;
    top: 10px;
}

.back_button_icon{
    width: 11px;
    aspect-ratio: 1/1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.back_button_icon svg{
    width: 100%;
}

.back_button_icon *{
    fill: black;
}

/* the code under this line is active when screen goes over 600px (pc) ----------------------------------------------------------------------------*/

@media only screen and (min-width: 600px){

    .website_image_container{
        aspect-ratio: 16/9;
    }

    .website_container{
        grid-template-columns: repeat(auto-fill, minmax(min(400px,100%),1fr));
        gap: 20px;
    }

}