*{
    padding: 0px;
    margin: 0px;
    box-sizing: border-box;
    font-family: 'Morl', 'Rubik', sans-serif;
    -webkit-user-select: none; /* Safari */
    -ms-user-select: none; /* IE 10 and IE 11 */
    user-select: none; /* Standard syntax */
}

html{
    width: 100%;
    overflow-x: hidden;
    scrollbar-gutter: stable;
}

body{
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    overflow-x: hidden;
    color: var(--text);
    font-size: 20px;
    font-weight: 300;
    text-align: center;
    z-index: 0;
    background-color: var(--bg);
}

.bold-txt{
    font-weight: 500;
}

.content{
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100vw;
    min-height: 100vh;
    overflow: hidden;
}

.content::before{
    content: "";
    position: fixed;
    inset: 0;
    background-image: var(--hero);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    filter: blur(0.5vw);
    opacity: 0.15;
    transform: scale(1.05);
    z-index: -1;
}

.wrapper{
    max-width: 578px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.logo{
    width: var(--logo-hero-container);
    height: var(--logo-hero-container);
    margin: auto;
    margin: 15px 0 25px 0;
    overflow: visible;  
    background-image: var(--hero);
    background-size: var(--logo-hero-image);
    background-position: center calc(50% - 15%);
    background-repeat: no-repeat;
    position: relative;
    z-index: 1;
}

.logo a{
    display: block;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    cursor: default;
}

.title{
    display: flex;
    align-content: center;
    justify-content: center;
    flex-direction: row;
    flex-wrap: wrap;
    font-size: 2.2em;
    font-weight: 700;
    padding: 10px 30px;
    color: var(--light-gray);
    gap: 0.25em;
}

.title div{
    margin: -0.2em 0;
    text-transform: uppercase;
}

.subtitle{
    padding: 20px 30px;
    color: var(--light-gray);
    font-weight: 200;
}

.page_name{
    flex-direction: row;
    font-size: 1.8em;
    font-weight: 400;
    padding: 0 0 40px 0;
}

.button-content{
    width: 96%;
}

.button-link{
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 5px 0;
}

.button-link a:link, .button-link a:active, .button-link a:visited{
    width: calc(100% - 32px);
    padding: 15px 10px;
    margin: 4px 0;
    border-radius: 50px;
    font-weight: 300;
    text-decoration: none;
    color: var(--light-gray);
    transition: 300ms;
    background-color: transparent;
    box-shadow: 0 0 10px var(--shadow);
    backdrop-filter: blur(20vw) saturate(200%);
    -webkit-backdrop-filter: blur(20vw) saturate(200%);
}

.button-link a::before{
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50px;
    padding: 1px;
    opacity: 0.25;
    background: linear-gradient(
        45deg,
        rgb(255 255 255 / 1),
        rgb(255 255 255 / 0.15),
        rgb(255 255 255 / 0.75),
        rgb(255 255 255 / 0.15),
        rgb(255 255 255 / 1),
        rgb(255 255 255 / 0.5),
        rgb(255 255 255 / 0.15),
        rgb(255 255 255 / 1)
    );
    mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    mask-composite: exclude;
}

.button-link a:hover{
    background-color: var(--button-bg);
    box-shadow: 0 5px 10px var(--shadow);
    transition: 100ms;
    transform: scale(1.05);
}

.icon-left{
    width: 2em;
    height: 1.5em;
    background-size: 1.5em;
    background-repeat: no-repeat;
    margin: -0.2em -2.2em -5em 0.2em;
    float: left;
    z-index: -1;
}

.button-calendar a:hover{
    background-color: var(--color-calendar-hover);
    transition: 300ms;
}

.button-instagram a:hover{
    background-color: var(--color-instagram-hover);
    transition: 300ms;
}

.button-facebook a:hover{
    background-color: var(--color-facebook-hover);
    transition: 300ms;
}

.button-telegram a:hover{
    background-color: var(--color-telegram-hover);
    transition: 300ms;
}

.button-maps a:hover{
    background-color: var(--color-maps-hover);
    transition: 300ms;
}

.button-library a:hover{
    background-color: var(--color-library-hover);
    transition: 300ms;
}

.button-groups a:hover{
    background-color: transparent;
    transition: 300ms;
}

.note{
    color: var(--note-text);
    max-width: 80%;
    margin: 10px auto;
    line-height: 1em;
    font-weight: 200;
    font-size: 0.8em;
}

footer{
    color: var(--light-gray);
    padding: 20px 60px;
    font-size: 16px;
}

footer strong{
    font-weight: 400;
}

.icon-cc{
    display: inline-block;
    background-repeat: no-repeat;
    margin-bottom: -0.1em;
    width: 1em;
    height: 1em;
}

/* LIBRARY */

.game_search input{
    border-radius: 30px;
    border: 1px solid var(--border);
    padding: 15px;
    width: 580px;
    box-shadow: 0 0 20px var(--shadow);
    background-color: transparent;
    backdrop-filter: blur(20vw) saturate(200%);
    -webkit-backdrop-filter: blur(20vw) saturate(200%);
    color: var(--text);
    font-weight: 300;
    font-size: 1em;
}

.game_search input:focus {
    outline: none;
/*
    border-color: #666;
    box-shadow: 0 0 0 2px rgba(102, 102, 102, 0.2);
*/
}

.smaller_text{
    font-size: calc(var(--font)*0.8);
}

.game_cards{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
    margin-bottom: 50px;
}

.game_card{
    display: flex;
    background-color: transparent;
    border-radius: 25px;
    padding: 15px 25px 20px 25px;
    width: 580px;
    box-shadow: 0 0 20px var(--shadow);
    backdrop-filter: blur(20vw) saturate(200%);
    -webkit-backdrop-filter: blur(20vw) saturate(200%);
}

.game_card::before{
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 25px;
    padding: 1px;
    opacity: 0.25;
    background: linear-gradient(
        45deg,
        rgb(255 255 255 / 1),
        rgb(255 255 255 / 0.15),
        rgb(255 255 255 / 0.75),
        rgb(255 255 255 / 0.15),
        rgb(255 255 255 / 1),
        rgb(255 255 255 / 0.5),
        rgb(255 255 255 / 0.15),
        rgb(255 255 255 / 1)
    );
    mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    mask-composite: exclude;
}

.game_content{
    display: flex;
    align-content: flex-start;
    justify-content: flex-start;
    gap: 20px;
}

.game_image img{
    margin: 4px 0 0 0;
    width: var(--cover);
    border-radius: 5px;
    transition: 300ms;
    box-shadow: 0 0 5px var(--shadow);
}

.game_image img:hover{
    transition: 100ms;
    transform: scale(1.05);
    box-shadow: 3px 3px 15px var(--shadow);
}

.game_info{
    display: flex;
    flex-direction: column;
    text-align: left;
}

.game_title{
    font-size: calc(var(--font)*2.2);
    font-weight: 500;
    margin-left: -4px;
    line-height: 0.85em;
}

.game_rating{
    background-color: var(--rating-bg, var(--label-rating-bg));
    color: var(--rating-fg, var(--label-year-text));
    padding: 4px 5px 2px 5px;
    order: 2;
    font-size: 1.4em;
    font-weight: 400;
    flex-grow: 1;
}

.game_year{
    background-color: var(--label-year-bg);
    color: var(--label-year-text);
    padding: 8px 5px 1px 6px;
    border-radius: 5px 0 0 5px;
    order: 1;
    flex-grow: 1;
}

.game_bgg{
    background-color: var(--label-bgg-bg);
    color: var(--label-bgg-text);
    padding: 8px 5px 1px 6px;
    border-radius: 0 5px 5px 0;
    order: 99;
    flex-grow: 1;
}

.game_bgg a:link,
.game_bgg a:visited,
.game_bgg a:active {
    text-decoration: none;
    color: var(--label-bgg-text);
}

.game_complexity{
    background-color: var(--brand);
    padding: 4px 4px 3px 4px;
    order: 2;
}

.game_details1{
    display: flex;
    font-size: calc(var(--font)*0.8);
    align-content: center;
    justify-content: center;
    font-weight: 300;
    gap: 0;
    width: 100%;
    margin: 8px 0 0 0;
}

.game_details2{
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    padding: 10px 0;
    gap: 5px;
}

.game_details3{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 35px;
}

.tag{
    font-size: calc(var(--font)*0.7);
    font-style: italic;
    font-weight: 200;
    color: var(--muted);
    margin: 5px 0 0 0;
}


@media (max-width: 700px) {
    :root{
        --font: 16px;
        --font-small: 14px;
    }
    
    body{
        padding: 10px;
    }
    
    .content::before{
        filter: blur(2vw);
    }

    .title{
        text-align: center;
        font-size: calc(var(--font) * 2.4);
    }

    .subtitle{
        text-align: center;
        font-size: calc(var(--font) * 1.4);
        padding-bottom: 15px;
    }

    .page_name{
        font-size: 1.6em;
    }

    .game_cards{
        width: 80%;
        gap: 15px;
    }
    
    .game_search {
        max-width: 100%;
    }
    
    .game_search input{
        max-width: 100%;
        padding: 12px;
    }

    .game_card{
        width: 100%;
        max-width: 580px;
        padding: 12px;
    }

    .game_content{
        gap: 12px;
    }
    
    .game_image img{
        margin: 2px 0 0 0;
    }

    .game_title{
        font-size: calc(var(--font) * 1.6);
        margin-left: 0;
    }
    
        .game_year{
        border-radius: 5px 0 0 5px;
        padding: 6px 6px 0 6px;
        font-size: var(--font-small);
    }
    
    .game_rating{
        border-radius: 0;
        padding: 3px 8px 2px 8px;
    }
    
    .game_bgg{
        border-radius: 0 5px 5px 0;
        padding: 6px 6px 0 6px;
        font-size: var(--font-small);
    }

    .game_details1{
        flex-wrap: wrap;
        margin: 5px 0 0 0;
        gap: 0;
    }

    .game_details3{
        gap: 15px;
    }
}

@media (max-width: 480px) {
    
    :root{
        --font: 16px;
        --font-small: 14px;
    }

    .content::before{
        filter: blur(2vw);
    }
    
    .game_search {
        width: 100%;
    }
    
    .game_search input{
        width: 100%;
        padding: 12px;
    }

    .game_card{
        padding: 20px 10px;
    }

    .game_content{
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin: auto;
    }

    .game_image img{
        margin: 0;
        width: var(--cover);
    }

    .game_info{
        width: 100%;
        align-items: center;
        text-align: center;
    }
    
    .game_title{
        margin: 8px 0 0 0;
    }

    .game_details1{
        flex-direction: row;
        justify-content: center;
        margin: 7px 0 -5px 0;
    }
    
    .game_year{
        border-radius: 5px 0 0 5px;
        padding: 6px 6px 0 6px;
        font-size: var(--font-small);
    }
    
    .game_rating{
        border-radius: 0;
        padding: 3px 8px 2px 8px;
    }
    
    .game_bgg{
        border-radius: 0 5px 5px 0;
        padding: 6px 6px 0 6px;
        font-size: var(--font-small);
    }

    .game_details2{
        align-items: center;
    }

    .game_details3{
        justify-content: center;
        gap: 12px;
    }
}