:root
{
    --bg-color: #111;
    --copy-color: #ddd;
    --green-dk-color: #379516;
    --green-lt-color: #9bf00b;
    --highlight-color: #ffd800;
}

body
{
    font-family: arial, helvetica, sans-serif;
    font-size: 1em;
    background-color: var(--bg-color);
    color: var(--copy-color);
}

h1
{
    font-family: owners-text, sans-serif;
    font-weight: 800;
    font-style: normal;
    text-transform: uppercase;
    margin: 0;
    font-size: 2em;
}

h1.subhead
{
    font-size: 1.5em;
}

h2
{
    font-family: owners-text, sans-serif;
    font-weight: 700;
    font-style: normal;
    text-transform: uppercase;
    font-size: 1.5em;
}

h3, h4
{
    font-family: owners-text, sans-serif;
    font-weight: 700;
    font-style: normal;
    text-transform: uppercase;
    font-size: 1em;
}

p, ul
{
    line-height: 1.5em;
}

.sitename
{
    font-family: "brevia", sans-serif;
    font-weight: 800;
    font-style: italic;
    text-transform: none;
}

.site-container
{
    width: 1200px;
    margin: 20px auto 40px;
    /* border: 1px solid #000; */
}

.header
{
    text-align: center;
    /* border: 1px solid #00f; */
    border-bottom: 1px solid var(--copy-color);
    padding: 20px 0;
}

.header a
{
    color: var(--copy-color);
    text-decoration: none;
}

.header a:hover
{
    color: #fff;
}

.xbox-green
{
    color: var(--green-dk-color);
}

a:hover .xbox-green
{
    color: var(--green-lt-color);
}

.highlight
{
    background-color: var(--green-lt-color);
    color: var(--bg-color);
}

.highlight-lt
{
    color: var(--green-lt-color);
}

.content
{
    /* min-height: 400px; */
    /* border: 1px solid #f00; */
    padding: 20px 0 40px;
}

.content p a
{
    color: var(--green-dk-color);
    text-decoration: underline dotted;
}

.content p a:hover
{
    color: var(--green-lt-color);
    text-decoration: underline;
}

.revision
{
    text-align: center;
    margin: 0 0 40px;
    padding: 10px 0;
}

.warning
{
    text-align: center;
    margin: 0 0 40px;
    padding: 20px 0;
    color: var(--bg-color);
    background-color: var(--highlight-color);
}

.warning::before
{
    content: url('../images/icons/triangle-exclamation.svg');
    display: inline-block;
    width: 1em;
    position: relative;
    top: 2px;
    margin-right: 7px;
}

.grid
{
    display: grid;
}

.wallpaper-list
{
    grid-template-columns: auto auto;
    gap: 40px;
    /* border: 1px solid #00f; */
}

.wallpaper-list .item
{
    /* width: 400px; */
    /* height: 225px; */
    /* border: 1px solid var(--copy-color); */
    /* border: 4px solid var(--bg-color); */
    padding-bottom: 10px;
    border-bottom: 5px solid var(--bg-color);
    position: relative;
}

.wallpaper-list .item:hover
{
    background-color: rgba(255, 255, 255, 0.05);
    border-bottom: 5px solid var(--copy-color);
    /* border: 4px solid var(--copy-color); */
}

.wallpaper-list .item a
{
    text-decoration: none;
    color: var(--copy-color);
}

.wallpaper-list .item:hover a
{
    color: #fff;
}

.wallpaper-list .item .thumbnail 
{
    display: block;
    width: 100%;
    aspect-ratio: calc(16/9);
    overflow: hidden;
    position: relative;
    background-repeat: no-repeat;
    background-size: 100%;
    background-position: center;
    transition: background-size 0.2s ease 0s;
}

.wallpaper-list .item .thumbnail img
{
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.wallpaper-list .item .thumbnail .ui-top, .wallpaper-list .item .thumbnail .ui-bottom
{
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.wallpaper-list .item .thumbnail .ui-top
{
    background-image: url('../images/preview-ui-top.webp');
    background-repeat: no-repeat;
    background-size: 100%;
    background-position: center;
}

.wallpaper-list .item .thumbnail .ui-bottom
{
    mask-size: contain;
    mask-position: center;
    mask-repeat: no-repeat;
}

.wallpaper-list .item
{
    object-fit: cover;
    width: 100%;
    height: 100%;
    /* transform: scale(1); */
    /* transition: transform 0.2s ease 0s; */
    
}


.wallpaper-list .item:hover .thumbnail
{
    /* transform: scale(1.05); */
    /* transition: transform 0.1s ease-out 0s; */
    background-size: 105%;
    background-position: center;
    transition: background-size 0.1s ease-out 0s;
}

.split
{
    display: flex;
    justify-content: space-between;
}

.variant-count::before
{
    content: url('../images/icons/palette.svg');
    display: inline-block;
    width: 1em;
    position: relative;
    top: 2px;
    margin-right: 7px;
}

.view-count::before
{
    content: url('../images/icons/eye.svg');
    display: inline-block;
    width: 1em;
    position: relative;
    top: 2px;
    margin-right: 7px;
}

.title
{
    text-align: center;
    margin: 0 0 20px;
    color: var(--copy-color);
}

.wallpaper-static-preview
{
    margin-bottom: 20px;
}

.overview
{
    margin-bottom: 40px;
}

.downloads 
{
    padding-bottom: 10px;
    border-bottom: 2px solid var(--copy-color);
}

.download-all
{
    display: block;
    color: var(--bg-color);
    background-color: var(--highlight-color);
    padding: 14px 20px 20px;
    font-family: owners-text, sans-serif;
    font-weight: 700;
    font-style: normal;
    text-transform: uppercase;
    text-decoration: none;
    margin-bottom: 20px;
}

.download-all::before
{
    content: url('../images/icons/file-zipper.svg');
    display: inline-block;
    width: 1em;
    position: relative;
    top: 4px;
    margin-right: 9px;
}

.download-all:hover
{
    background-color: var(--copy-color);
}

.downloads-list
{
    /* display: grid; */
    grid-template-columns: auto auto auto;
    gap: 20px;
}

.downloads-list .item
{
    border-bottom: 5px solid var(--bg-color);
}

.downloads-list .item:hover
{
    background-color: rgba(255, 255, 255, 0.05);
    border-bottom: 5px solid var(--copy-color);
}

.downloads-list .item a
{
    display: block;
    color: var(--copy-color);
    text-decoration: none;
}

.downloads-list .item a:hover
{
    color: #fff;
}

.downloads-list .item img
{
    /* width: 100%; */
    height: 217px;
    width: 386px;
}

.live-preview, .static-preview
{
    width: 1200px;
    height: 675px;
    background-color: #000;
    position: relative;
}

.live-preview .ui-top, .static-preview .ui-top
{
    position: absolute;
    top: 0px;
    left: 0px;
    z-index: 1;
}

.live-preview .ui-mid, .live-preview .ui-bottom, .static-preview .ui-mid, .static-preview .ui-bottom
{
    display: flex;
    width: 1072px;
    justify-content: space-between;
    position: relative;
    left: 69px;
    z-index: 1;
}

.live-preview .ui-mid, .static-preview .ui-mid
{
    align-items: baseline;
    top: 299px;
}

.live-preview .ui-bottom, .static-preview .ui-bottom
{
    align-items: start;
    top: 322px;
}

.live-preview .ui-mid div:first-child, .static-preview .ui-mid div:first-child
{
    width: 156px;
    height: 156px;
    /* background-color: #fff; */
    border-radius: 5px;
    /* outline: 2px solid #fff; */
    outline-offset: 3px;
    /* box-shadow: 0px 0px 15px 15px rgba(255, 255, 255, 0.25); */
}

.live-preview .ui-mid div, .static-preview .ui-mid div
{
    width: 97px;
    height: 97px;
    /* background-color: #fff; */
    border-radius: 5px;
    /* transition: background-color 0.1s ease-in-out; */
}

.live-preview .ui-bottom div, .static-preview .ui-bottom div
{
    width: 250px;
    height: 140px;
    border-radius: 5px;
    /* transition: background-color 0.1s ease-in-out; */
}

.live-preview-controls
{
    background-color: #444;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.live-preview-controls label
{
    margin-right: 5px;
}

.live-preview-controls select
{
    padding: 5px;
    margin-right: 20px;
}

.live-preview-controls input
{
    margin-right: 5px;
    position: relative;
    top: 3px;
    /* height: 29px; */
}

.live-preview-controls span
{
    margin-right: 20px;
}

.live-preview-controls .controls
{
    padding: 0 20px;
    display: flex;
    align-items: baseline;
}

.download-variant
{
    /* display: inline-block; */
    color: var(--bg-color);
    background-color: var(--highlight-color);
    font-family: owners-text, sans-serif;
    font-weight: 700;
    font-style: normal;
    text-transform: uppercase;
    text-decoration: none;
    padding: 16px 20px 18px;
}

.download-variant:hover
{
    background-color: var(--copy-color);
}

.download-variant::before
{
    content: url('../images/icons/download.svg');
    display: inline-block;
    width: 1em;
    position: relative;
    top: 2px;
    margin-right: 9px;
}

.how-to
{
    border: 1px solid #fff;
    margin-top: 40px;
    padding: 20px 20px;
    position: relative;
}

.how-to:first-of-type
{
    margin-bottom: 60px;
}

.how-to h3
{
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid #fff;
    padding: 10px 30px;
    text-align: center;
    color: var(--green-lt-color);
    background-color: var(--bg-color);
}

.how-to img
{
    border: 1px solid #585858;
    margin-bottom: 10px;
    height: 338px;
    width: 600px;
}

ol
{
    list-style: none;
    margin: 0;
    padding: 0;
}

.how-to li h4
{
    color: #000;
    background-color: var(--green-lt-color);
    display: block;
    width: 10%;
    padding: 5px;
}

.news li h4
{
    color: var(--green-dk-color);

}

.news li:not(:last-of-type)
{
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #999;
}

.form-below
{
    margin-bottom: 40px;
}

form
{
    display: grid;
    grid-template-columns: auto auto;
    gap: 20px 40px;
    width: 50%;
    margin: 20px auto;
    padding: 20px 80px;
    border: 1px solid var(--green-dk-color);
    border-radius: 10px;
}

form input, form textarea
{
    font-family: arial, helvetica, sans-serif;
    font-size: 1em;
    padding: 5px 10px;
}

form textarea
{
    height: 8em;
}

form button
{
    font-size: 1em;
    padding: 7px 30px;
}

form div
{
    grid-column: span 2;
}

.form-errors
{
    width: 50%;
    margin: 0 auto;
    border: 1px solid var(--highlight-color);
    margin: 20px auto;
    padding: 10px 80px;
    border-radius: 10px;
}

.form-success
{
    width: 50%;
    margin: 0 auto;
    border: 1px solid var(--green-lt-color);
    margin: 20px auto;
    padding: 10px 80px;
    border-radius: 10px;
}

.form-success a
{
    color: var(--green-lt-color);
    text-decoration: none;
}

.form-success a:hover
{
    color: #fff;
    text-decoration: underline;
}

.reddit, .mastodon, .bluesky
{
    font-family: owners-text, sans-serif;
    font-weight: 700;
    font-style: normal;
    text-transform: uppercase;
    margin-left: 10px;
    text-decoration: none;
    color: var(--green-dk-color);
}

.reddit:hover, .mastodon:hover, .bluesky:hover
{
    color: var(--green-lt-color);
}

.reddit::before, .mastodon::before, .bluesky::before
{
    display: inline-block;
    width: 1em;
    position: relative;
    top: 2px;
    margin-right: 7px;
}

.reddit::before
{
    content: url('../images/icons/reddit.svg');
}

.mastodon::before
{
    content: url('../images/icons/mastodon.svg');
}

.bluesky::before
{
    content: url('../images/icons/bluesky.svg');
}

.menu-button
{
    height: 1em;
    width: 1em;
    background-image: url('../images/icons/menu-button.svg');
    background-position: center;
    display: inline-block;
    position: relative;
    top: 2px;
    margin: 0 1px 0 2px;
    background-size: contain;
    background-repeat: no-repeat;
}

.privacy-policy h4
{
    color: var(--green-dk-color);
}

.footer
{
    text-align: center;
    /* border: 1px solid #00f; */
    border-top: 1px solid var(--copy-color);
    padding: 20px 0;
}

.footer p
{
    /* margin: 0 0 5px; */
}

.center
{
    text-align: center;
}

.hidden
{
    display: none;
}

.link-list
{
    list-style: none;
    padding: 0;
    font-family: owners-text, sans-serif;
    font-weight: 700;
    font-style: normal;
    text-transform: uppercase;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    /* gap: 20px; */
}

.link-list li:not(:last-of-type)
{
    border-right: 1px solid #999;
}

.link-list a
{
    text-decoration: none;
    color: var(--green-dk-color);
    padding: 0 10px;
}

.link-list a:hover 
{
    /* text-decoration: underline; */
    color: var(--green-lt-color);
}

.copyright
{
    font-family: owners-text, sans-serif;
    font-weight: 700;
    font-style: normal;
    text-transform: uppercase;
    margin: 0 0 15px;
}

.trademark, .privacy
{
    color: #999;
    font-size: 0.85em;
    margin: 0 0 7px;
}

.privacy::before
{
    content: url('../images/icons/cookie-bite.svg');
    display: inline-block;
    width: 1em;
    position: relative;
    top: 2px;
    margin-right: 7px;
}

.privacy a
{
    color: var(--green-dk-color);
    text-decoration: underline dotted;
}

.privacy a:hover
{
    color: var(--green-lt-color);
    text-decoration: underline;
}

.ui-color-black
{
    background-color: #101010;
}

.ui-color-dark-gray
{
    background-color: #3a3a3a;
}

.ui-color-bright-green
{
    background-color: #379516;
}

.ui-color-xbox-green
{
    background-color: #106d0f;
}

.ui-color-blue-green
{
    background-color: #117564;
}

.ui-color-teal
{
    background-color: #106e6d;
}

.ui-color-bright-blue
{
    background-color: #1171b4;
}

.ui-color-blue
{
    background-color: #125da7;
}

.ui-color-dark-blue
{
    background-color: #153579;
}

.ui-color-purple
{
    background-color: #603499;
}

.ui-color-bright-purple
{
    background-color: #852b92;
}

.ui-color-pink
{
    background-color: #b6325e;
}

.ui-color-magenta
{
    background-color: #930f5b;
}

.ui-color-dark-red
{
    background-color: #780c1c;
}

.ui-color-red
{
    background-color: #c02731;
}

.ui-color-orange
{
    background-color: #ca3c0f;
}

.ui-color-gold
{
    background-color: #d47f10;
}

.ui-color-brown
{
    background-color: #68482b;
}

.ui-color-tan
{
    background-color: #7a684c;
}

.ui-color-gray-green
{
    background-color: #355850;
}

.ui-color-blue-gray
{
    background-color: #5b667c;
}

.ui-color-gray
{
    background-color: #656565;
}

.ui-color-soft-black
{
    background-color: #262626;
}

.ui-color-black, .ui-color-dark-gray, .ui-color-dark-blue, .ui-color-dark-red, .ui-color-gray-green, .ui-color-soft-black
{
    color: var(--copy-color);
}

@media screen and (max-width: 1240px)
{

    body
    {
        font-size: 2em;
    }

    .site-container
    {
        padding:0 10px;
    }

    .grid
    {
        display: block;
    }

    .wallpaper-list .item
    {
        padding-bottom: 20px;
        margin-bottom: 40px;
        border-bottom: 1px solid var(--copy-color);
    }

    .live-preview-controls
    {
        display: block;
    }

    .live-preview-controls .controls
    {
        padding: 20px 20px 25px;
        flex-direction: column;
        gap: 20px;
    }

    .live-preview-controls .controls select
    {
        font-size: 1em;
        padding: 5px 20px;
    }

    #theme-color-custom
    {
        height: 3.5em;
        width: 10em;
    }
    
    .download-variant
    {
        display: block;
    }

    .downloads-list .item img
    {
        height: 100%;
        width: 100%;
    }

    .how-to
    {
        margin-top: 70px;
        padding: 50px 20px 20px;
    }

    .how-to.how-to:first-of-type
    {
        margin-bottom: 100px;
    }

    .how-to img
    {
        height: 100%;
        width: 100%;
        margin-bottom: 20px;
    }

    form
    {
        display: block;
    }

    form, .form-errors, .form-success
    {
        width: 80%;
    }

    form label, form input, form textarea, form div
    {
        display: block;
        padding: 20px 0;
        width: 100%;
    }

    .footer .link-list li
    {
        width: 100%;
    }
}