@import url('https://fonts.googleapis.com/css2?family=Geist:wght@100..900&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

:root
{
    --text-color: black;
    --accent-color: #4e4e4e;
    --accent-background-color: #DADADA;
    --card-color: #f1f1f1;
    --background-color: #dddddd;
}
*
{
    font-family: 'Montserrat';

}/*
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 400;
    src: url(../tools/fonts/monsterrat2.woff2) format('woff2');
    unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 400;
    src: url(../tools/fonts/monsterrat.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}*/
body
{
    padding: 0;
    margin: 0;


    background: var(--background-color);
    overflow-x: hidden;
}
.header
{

}
#container:after {
    content: "";
    flex: auto;
}
#container
{
    width: 100%;
    max-width: 1700px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    flex-flow: row wrap;
    padding-top: 25px;
    align-items: stretch;
    gap: 50px 50px;
    padding-bottom: 30px;
}

.welcome-box
{
    width: calc(100% - 40px);
    max-width: 380px;
    /*margin-left: 20px;
    margin-right: 20px;
    margin-top: 30px;
    margin-bottom: 30px;*/
}

.welcome-box h2
{
    font-size: 4em;
    margin: .5em 0;
    font-weight: bold;
}
#container a
{
    text-decoration: none;
    width: calc(100% - 40px);
    max-width: 380px;
}
#container .elem
{

   /* margin-left: 20px;
    margin-right: 20px;
    margin-top: 30px;
    margin-bottom: 30px;*/
    position: relative;
    background: var(--card-color);
    color: var(--text-color);
    border-radius: 26px 26px 12px 12px;
    box-shadow: rgba(0, 0, 0, 0.51) 8px 8px 8px;
    /*overflow: hidden;*/

    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-bottom: 16px;
    justify-content: flex-start;
    transition: transform 100ms, box-shadow 100ms;

    height: 100%;
    box-sizing: border-box;
    width: 100%;

}
#container .elem:hover
{
    transform: scale(1.05);
    box-shadow: rgba(0, 0, 0, 0.33) 13px 13px 13px;
}
#container .elem > div
{
    padding: 0 18px;
}
#container .elem .preview
{
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 0;
    margin: 0;
    cursor: pointer;
    border-radius: 26px 26px 0 0;
    mix-blend-mode: darken;
    box-shadow: #0000001f 0 1px 0px;
    aspect-ratio: 640 / 480;
}


#container .elem .preview .image
{
    width: 100%;
    padding: 0;
    margin: 0;
    vertical-align: top;
}

#container .elem .preview .border
{
    width: 100%;
    padding: 0;
    margin: 0;
    vertical-align: top;
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    display: none;
    filter: hue-rotate(0);
    z-index: 300;
    pointer-events: none;

    transition: filter 300ms;
}
#container .elem .preview:hover .border
{
    filter: hue-rotate(0);
}


#container .elem .preview .price
{
    position: absolute;
    user-select: none;
    font-size: .8em;
    background: var(--accent-background-color);
    color: var(--accent-color);
    padding: .2em;
    bottom: 8px;
    padding: 3px 9px;
    right: 12px;
    z-index: 200;
    font-weight: 600;
    border-radius: 3px;
}

#container .elem .border-overlay
{
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: transparent;
    box-sizing: border-box;
    border-radius: inherit;
    border-width: 1px;
    border-style: solid;
    //border-image: linear-gradient(135deg, black 40%, white 60%) 1 stretch;
    border-top-color: white;
    border-left-color: white;
    border-bottom-color: black;
    border-right-color: black;
    filter: blur(2px);
    pointer-events: none;
    /*border-radius: 16px 16px 8px 8px;*/
}

#container .elem .title
{
    width: 100%;
    font-size: 1.1em;
    font-weight: 550;
    color: var(--text-color);
    align-items: left;
    display: flex;
    /* align-content: center; */
    justify-content: left;
    text-align: center;
    box-sizing: border-box;
    font-family: "Geist", sans-serif;
}

#container .elem .desc
{
    width: 100%;
    color: var(--text-color);
    text-align: left;
    box-sizing: border-box;
    min-height: 3lh;
}

#container .elem .date
{
    width: 100%;
    color: var(--accent-color);
    text-align: left;
    font-size: .8em;
}

.preview video
{
    position: absolute;
    width: 100%;
    left: 0;
    opacity: 0;
    transition: opacity 500ms;
    height: 100%;
    z-index: 100;
}
/*
.preview:hover video
{
    opacity: 1;
}*/

.elem .tags {
    width: 100%;
    /*position: absolute;
    height: 25px;*/
    /*bottom: -29px;*/
    color: var(--text-color);
    text-align: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    box-sizing: border-box;
    min-height: 14px;
}
.elem .tags .tag {
    background: var(--accent-background-color) !important;
    color: var(--text-color);
    font-size: .75rem;
    padding: 2px 8px;
    display: block;
    height: 14px;
    border-radius: 5px;
    line-height: 14px;
}

.filter
{
    width: 100%;
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.filter .tag {
    font-size: .75rem;
    padding: 2px 8px;
    display: block;
    border-radius: 5px;
    line-height: 14px;
    margin: 4px;
    color: black;
    user-select: none;
    cursor: pointer;
    transition: background-color 200ms, border 200ms, color 200ms;
    background: var(--card-color);
}
.filter .tag:hover, .filter .tag.selected
{
    /*background: var(--color);*/
    /*border-color: var(--color);*/
    /*color: white;*/
    background: var(--accent-background-color);
}

.filter:after {
    content: "";
    flex: auto;
}
