:root {
    --body-bg-color: #101113;
    --contrast-color: #fff;
    --contrast-color-third: orange;
    --muted-color: #999;
    --product-price: #00bda7;
    --filter-bg-color: #2d476c;
    --sale: #f44336;
    --header-color: #000000;
    --main-action-color: gold;
    --border-color-2: hsl(216deg 25% 16%);
    color-scheme: dark;
    tab-size: 4;
}

*{
    box-sizing: border-box;
    font-family: sans-serif;
}

html{
    background-color: var(--body-bg-color);
    margin: 0 16px;
}

html.brick_builder_background{
    background-image: url("../media/brick_builder_scrolling_bakground.png");
}

html.main_background{
    background-image: url("../media/neumond_scrolling_bakground.png");
}

body{
    margin: 0;
    padding: 0;
}

main{
    max-width: 1280px;
    margin: 20px auto;
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 128px);
}

footer{
    display: flex;
    max-width: 1280px;
    margin: 16px auto;
    justify-content: space-between;
    border-top: 1px solid var(--muted-color);
    padding: 16px 16px 0px 16px;
}

footer *{
    margin: 0;
}

footer > div:first-of-type{
    margin: auto 0;
}

footer p{
    text-indent: 0 !important;
}

a{
    text-decoration:none; 
    color: var(--contrast-color);
}

small > a{
    text-decoration:underline !important; 
}

img{
    display: flex;
    width: inherit;
    height: inherit;
    justify-content: space-evenly;
    align-items: center;
}

h1{
    margin: 0;
    white-space: collapse;
}

ul:not(fieldset ul){
    margin: 0px auto;
}

li:not(fieldset li):after{
    content: ";";
    margin: auto;
    line-height: 1.75;
}

fieldset ul{
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 0px 16px;
   flex-wrap: wrap;
}

fieldset li{
    background-color: var(--filter-bg-color);
    border-radius: 8px;
    padding: 8px 16px;
    margin: 8px 0px;
    font-weight: bold;
    max-width: 256px;
}

fieldset{
    border-radius: 16px;
    margin: 16px auto;
}

p{
    line-height: 1.5;
    text-indent: 32px;
}

footer p{
    line-height: 1.0 !important;
}

figure{
    margin: auto 0px;
    padding: 8px 0px;
}

details figure{
    padding-left: 32px !important;
}

header{
    display: flex;
    height: 64px;
    gap: 16px;
    overflow:hidden;
    line-height: 1.0 !important;
}

header div{
    margin: auto 0;
}

section{
    margin: 0;
}

.screenshots_container{
    display: grid;
    gap: 16px;
}

@media screen and (min-width: 800px) {
    .screenshots_container{
        grid-template-columns: repeat(3, minmax(128px, 1fr));
    }
}

@media screen and (max-width: 800px) and (min-width: 480px) {
    .screenshots_container{
        grid-template-columns: repeat(2, minmax(128px, 1fr));
    }
}


@media screen and (max-width: 480px) {
    .screenshots_container{
        grid-template-columns: 1;
    }
}

.screenshots_container img{
    border-radius: 16px;
    width: 100%;
}

#social_media{
    display: flex;
    justify-content: space-between;
    gap: 32px;
    align-items: center;
}

#social_media > a{
    display: block;
    height: 48px;
    border-radius: 16px;
    text-align: center;
}

#social_media img{
    border-radius: 8px;
}

.application{
    display: flex;
    height: 96px;
    gap: 16px;
}

.application *{
    margin: auto 0;
    text-indent: 0;
}

#app_links{
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

#app_links a{
    display: block;
    height: 48px;
    text-align: center;
}