:root {
    --bkg-color: #1D1C1A;
    --heimat: 'heimat-mono', monospace;
    --ze-mono: 'zeitung-mono', sans-serif;
    --ze-reg: 'zeitung', sans-serif;
    --soft: 'spirits-soft', serif;
    --sharp: 'spirits-sharp', serif;
    --neutral: 'spirits-neutral', serif;
    --yellow: #EEEE00;
    --blue: cornflowerblue;
    --lavender: rgb(211, 215, 252);
    --navy: #293872;
    --pink: #ffada8;
    --orange: #DC3F01;

}

* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    margin: 0;
    overflow: hidden;
    @media(max-width:999px) {
        overflow-y: scroll;
    }
}

body {
    background: var(--lavender);
    width: 100vw;
    contain: paint;
}

.page-container {
    height: 100vh;
    width: 100vw;
    display: flex;
    align-items: center;
    justify-content: center;
    @media(max-width:999px) {
    height: auto;
    }
}

/* dot background */
#siteBox {
    position: relative;
    height: 80vh;
    width: 90vw;
    max-width: 1300px;
    background-color: var(--bkg-color);
    user-select: none;
    overflow: hidden;
    background-image: radial-gradient(var(--lavender) 1px, var(--navy) 1px, var(--navy) 10px);
    background-repeat: repeat !important;
    background-size: 20px 20px !important;
    background-position: center;
    @media(max-width:999px) {
        display: none;
    }
}

.container-mobile {
    display: none;
    @media(max-width:999px) {
        padding: 40px 0;
        margin-bottom: 0;
        display: flex;
        flex-direction: column;
        gap: 20px;
        height: calc(100% - 60px);
        width: calc(100% - 20px);
        align-items: center;
    }
}

.site-container-desktop {

    @media(max-width:1300px) {
        transform: translateX(-5vw)
    }

    @media(max-width:1200px) {
        transform: translateX(-10vw)
    }

    @media(max-width:1100px) {
        transform: translateX(-15vw)
    }

    @media(max-width:999px) {
        display: none;
    }
}

/* grid background 
#siteBox {
    position: relative;
    height: 80vh;
    width: 80vw;
    max-width: 1100px;
    background-color: var(--bkg-color);
    user-select: none;
    overflow: hidden;
    background-image: linear-gradient(#82817880 1px, transparent 1px), linear-gradient(90deg, #82817880 1px, transparent 1px);
    background-repeat: repeat !important;
    background-size: 20px 20px !important;
    background-position: center;
}
*/
.card {
    position: absolute;
    width: 405px;
    height: 245px;
    padding: 8px;
    background-color: peachpuff;
    background-position: center;
    border-radius: 8px;
    cursor: grab;
    display: grid;
    place-items: center;
    transform: translateZ(0);
    touch-action: none;
    @media(max-width:999px) {
        touch-action: unset;
        position: static;
        place-items: unset;
        aspect-ratio: 4 / 3;
    }
}

.card:active {
    cursor: grabbing;
}

/* individual card images */
.bcw {
    background-image: url('portfolio/sites/bcw.png');
    background-size: cover;

}

.bibi {
    background-image: url('portfolio/sites/bibi.png');
    background-size: cover;
    filter: saturate(1.9);

}

.club616 {
    background-image: url('portfolio/sites/club616.png');
    background-size: cover;
    background-position: bottom;

}

.coke {
    background-image: url('portfolio/sites/coke.png');
    background-size: 100% 120%;
    background-position: center right;
    filter: contrast(1.1) saturate(1.05);

}

.delbar {
    background-image: url('portfolio/sites/delbar.png');
    background-size: 105% 119%;
    background-position: left;
    filter: saturate(1.2) brightness(1.05);
}

.glaze {
    background-image: url('portfolio/sites/glaze.png');
    background-size: cover;

}

.kdp {
    background-image: url('portfolio/sites/kdp.png');
    background-size: cover;
    filter: grayscale(1) brightness(1.05);

    @media(max-width:999px) {
        filter: saturate(1.1) contrast(1.1);
    }
}

.lotus {
    background-image: url('portfolio/sites/lotus.png');
    background-size: 105%;
    background-position: center;
    filter: saturate(1.1) contrast(1.1);

}

.malachela {
    background-image: url('portfolio/sites/malachela.png');
    background-size: cover;

}

.mnf {
    background-image: url('portfolio/sites/mnf.png');
    background-size: 120%;
    filter: contrast(1.1) sepia(.1);
}

.snooze {
    background-image: url('portfolio/sites/snooze.png');
    background-size: cover;

}

.wasfis {
    background-image: url('portfolio/sites/wasfis.png');
    background-size: cover;
    filter: contrast(1.15);
}

.gioia {
    background-image: url('portfolio/sites/gioia.png');
    background-size: cover;
}


.info-text {
    position: absolute;
    top: 0;
    left: 0;
}

.text {
    position: absolute;
    bottom: 0;
    color: white;
    background: cornflowerblue;
    padding: 10px 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    display: none;
    z-index: 1;
}

#text-default {
    display: block;
    z-index: 0;
}

.text-content {
    animation: scrolling 15s linear infinite;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    white-space: nowrap;
    font-family: var(--heimat);
}

.flipper {
    animation: flip 2s linear infinite;
    padding: 0 20px;
    font-family: var(--heimat);
}

@keyframes scrolling {

    0% {
        transform: translateX(500px);
    }

    100% {
        transform: translateX(-500px);
    }

}

@keyframes flip {

    0% {
        transform: scaleY(1);
    }

    50% {
        transform: scaleY(-1);
    }

    100% {
        transform: scaleY(1);
    }

}


/* return button */
#social {
    display: flex;
    width: 100%;
    line-height: .95;
    position: fixed;
    bottom: 0;
    @media(max-width:999px) {
    position: static;
    }
}

#social ul {
    margin: 0 auto;
    padding-left: 0;
}

#social .item {
    float: none;
    display: inline-flex;
    padding-top: 10px;
    width: 220px;
}

#social a,
#social a:visited {
    text-decoration: none;
}

#social li span,
#social li a:visited {
    text-decoration: none;
}

#social li {
    position: relative;
    z-index: 2;
    float: right;
    display: block;
    width: 100%;
    height: 40px;
    color: var(--navy);
    font-family: var(--heimat);
    font-weight: 400;
    font-size: 20px;
    letter-spacing: 1px;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    padding: 8px;
    transition: all .3s ease-in-out;

    @media(max-width:999px) {
        background-color: var(--lavender);
    }
}

#social li:hover {
    color: var(--lavender);
}

#social li::before {
    content: '';
    background-color: var(--navy);
    position: absolute;
    left: 0;
    bottom: 0px;
    width: 100%;
    height: 12px;
    z-index: -1;
    transition: all .3s ease-in-out;
}

#social li:hover::before {
    bottom: 0;
    height: 100%;
    background-color: var(--navy);

}


@keyframes social-shift-1 {
    10% {
        background-color: var(--navy);
    }

    30% {
        background-color: var(--blue);
    }

    70% {
        background-color: var(--navy);
    }

    100% {
        background-color: var(--blue);
    }
}