@font-face {
    font-family: 'Apfel';
    font-style: normal;
    font-weight: 500;
    src: url('https://afterlight.b-cdn.net/fonts/ApfelGrotezk-Mittel.otf'); /* IE9 Compat Modes */
}
@font-face {
    font-family: 'Necto';
    font-style: normal;
    font-weight: 500;
    src: url('https://afterlight.b-cdn.net/fonts/NectoMono-Regular.otf'); /* IE9 Compat Modes */
}

button {
    transition: all 300ms ease-out;
}

button:disabled,
button[disabled]{
  border: 2px solid #fff;
  background-color: rgba(255,255,255,0.0) !important;
  color: #666666;
}

* {
    box-sizing: border-box;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
*,
:after,
:before {
    box-sizing: inherit;
    touch-action: manipulation
}
*::-webkit-scrollbar {
    display: none;
}

html, body {
    background: #111;
}

body {
    color: white;
    font-family: 'Necto';
    text-align: center;
    margin: 0;
    padding: 0;
}

nav {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0;
    margin: 1.3rem 0 1.5rem 0;
}

nav button span {
    font-size: 0.9rem;
    font-weight: bold;
    color: white;
    font-family: 'Necto';
    padding-left: 0.2rem;
}

h1 {
    font-family: 'Apfel';
    letter-spacing: 0.1rem;
    font-size: 1.8rem;
    line-height: 0.9;
    padding: 0;
    margin: 0;
    text-transform: uppercase;
}

.updated {
    position: relative;
    width: 100%;
    height: 1.5rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    align-content: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.6rem;
}

.updated h2 {
    /* position: absolute; */
    font-family: "Apfel", sans-serif;
    font-weight: normal;
    font-size: 0.6rem;
    letter-spacing: 0.07rem;
    text-transform: uppercase;
    display: inline-block;
    color: #cacaca00;
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 0.5rem 1rem;
    border-radius: 10rem;
}

.updated h2.rainbow {
    z-index: 999;
    opacity: 1;
    background: linear-gradient(120deg,#f3005d,#e3e81d 30%,#1d86e8 60%,#f300f3);
    background-size: 200% auto;
    background-clip: text;
    text-fill-color: transparent;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 3s linear infinite;
}

#testingList {
    width: 100%;
    margin: 0 auto;
    word-wrap: break-word;
}

#getFusions {
    width: 100%;
    word-wrap: break-word;
}

#upgrade {
    display: flex;
    flex-direction: row;
    align-content: center;
    align-items: center;
    gap: 0.5rem;
    /* margin: 1rem auto 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.3rem 1.25rem; */
    border-radius: 3rem;
    background-color: transparent;
    /* height: 1.5rem; */
}

#upgrade span {
    color: white;
    /* font-family: 'Apfel';
    font-weight: normal;
    color: rgba(255, 255, 255, 1);
    letter-spacing: 0.05rem;
    font-size: 1rem;
    line-height: 1.5; */
}

#upgrade img {
    height: 1rem;
}

#getFusions {
    width: 100%;
    word-wrap: break-word;
    padding: 1rem;
}

#fusions {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 500px;
    margin: 0 auto 0 auto;
    /* padding-bottom: 2rem; */
    /* padding: 0 2rem; */
}

.fusions-inner {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content:space-between;
    width: 90%;
    margin: 0 auto;
}

.filter {
    flex-basis: 47%;
    /* width: 50%; */
    /* margin: 0 auto; */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /* background: rgba(0,0,0,.5); */
    border-radius: 1rem;
    box-shadow: 0 10px 20px rgba(0,0,0,.4);
    overflow: hidden;
    position: relative;
    border: 0.2rem solid rgba(255, 255, 255, 0.15);
    box-sizing: border-box;
    margin-bottom: 1.5rem;
    background: #000000;
}

.filter.new {
    flex-basis: 100%;
    width: 100%;
    animation-name: rainbowShadow;
    animation-duration: 10s;
    animation-timing-function: ease-out;
    animation-iteration-count: infinite;
    border-radius: 1.5rem;
}

.filter.new:before {
    content: "";
    display: block;
    width: 50px;
    height: 25px;
    border-radius: 15px;
    background: #090909;
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 999;
    /* box-shadow: inset 3px 3px 10px #000; */

    /* display: none; */
}

.filter.new:after {
    display: flex;
    justify-content: center;
    content: "NEW";
    color: #fff;
    width: 50px;
    height: 25px;
    line-height: 26px;
    background-repeat: no-repeat;
    background-size: cover;
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 9999;
    text-transform: uppercase;
    font-size: 0.7rem;
    text-align: center;
    font-family: 'Apfel';
    letter-spacing: 0.07rem;

    /* background: linear-gradient(120deg,#f30051,#e85d1d 15%,#e3e81d 30%,#1de840 45%,#1d86e8 60%,#7100f3 75%,#dd00f3);
    background-size: auto;
    background-clip: border-box;
    background-size: 200% auto;
    background-clip: text;
    text-fill-color: transparent;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 2s linear infinite; */

    /* display: none; */
}

.filter .example {
    /* max-height: 168px; */
    width: 100%;
    height: 0;
    padding-bottom: 50%;
    overflow: hidden;
    position: relative;
}

.filter.new .example {
    padding-bottom: 50%;
}

.filter .example img {
    width: 100%;
    /* height: 168px; */
    height: 100%;
    background: rgb(19, 19, 19);
    object-fit: cover;
    position: absolute;
    left: 0;
    display: flex;
    align-content: center;
    align-items: center;
    justify-content: center;
}

.filter .example .separator {
    width: 0.15rem;
    height: 105%;
    background: #090909;
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 91;
    transform: translate3d(-50%,-50%,0);
}

.filter .details {
    /* background: black; */
    display: flex;
    flex-direction: column;
}

.filter.new .details {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    align-content: center;
    gap: 1rem;
    margin: 1.5rem auto 0.5rem auto;
}

.filter .title {
    font-size: 1.2rem;
    font-family: 'Apfel';
    font-weight: normal;
    letter-spacing: 0.15rem;
    text-transform: uppercase;
    margin: 1.3rem 0 0 0;
}

.filter.new .title {
    font-size: 1.8rem;
    margin: 0 0 0 0;
}

.filter .type {
    font-family: 'Necto';
    font-size: 0.6rem;
    /* font-style: italic; */
    /* font-weight: lighter; */
    color: rgba(255,255,255,0.4);
    text-transform: uppercase;
    letter-spacing: 0.03rem;
    padding: 0.252rem 0.5rem;
    border: 1px solid rgba(255,255,255,.15);
    margin: 0.4rem auto 0.2rem auto;
    border-radius: 5rem;
}

.filter.new .type {
    margin: 0;
}

.filter .countdown {
    display: flex;
    flex-direction: row;
    align-content: center;
    justify-content: center;
    font-family: 'Apfel';
    font-weight: 400;
    letter-spacing: 0.05rem;
    font-size: 0.7rem;
    min-height: 20px;
    height: 30px;
}

.filter.new .countdown {
    margin-bottom: 0.5rem
}

.filter .countdown-inner {
    display: flex;
    justify-content: center;
    flex-direction: column;
}

.filter.new .countdown {
    font-size: 0.9rem;
}

.filter.new .countdown .expires {
    display: flex;
    justify-content: center;
    align-items: center;
    align-content: center;
    flex-direction: column;
    color: rgba(255,255,255,0.3);
    line-height: 100%;
    padding-right: 0.3rem;
}

.filter .countdown .cd-block {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: row;
    justify-content: start;
    align-items: center;
    gap: 0.1rem;
}

.filter .countdown .cd-block .time {
    display: flex;
    justify-content: center;
    align-items: center;
    align-content: center;
    flex-direction: row;
    color: rgba(255,255,255,0.3);
    background: rgba(255,255,255,.0);
    padding: 0rem 0.2rem 0rem 0.2rem;
    border-radius: 5px;
    height: 100%;
}

.filter .countdown .cd-block .time span {
    color: rgba(255,255,255,0.4);
}

.filter button {
    touch-action: manipulation;
    cursor: pointer;
    display: block;
    height: 35px;
    position: relative;
    width: 80%;
    background: #1a1a1a;
    border: 0;
    font-family: 'Necto';
    font-weight: normal;
    /* text-transform: lowercase; */
    font-size: 0.9rem;
    /* letter-spacing: -0.06rem; */
    border-radius: 5rem;
    box-shadow: 0 4px 10px rgba(0,0,0,.35);
    border: 2px solid white;
    color: white;
    margin: 0.2rem auto 1rem auto;
}

.filter.new button {
    height: 45px;
    width: 85%;
    font-size: 1rem;
    /* margin-bottom: 0.3rem; */
    margin-bottom: 1.6rem;
}

.filter.film-inspired button {
    background: rgba(72, 47, 175, 1);
    border-color: rgba(72, 47, 175, 1);
}

.filter.vibrant button {
    background: rgba(34, 167, 91, 1);
    border-color: rgba(34, 167, 91, 1);
}

.filter.soft button {
    background: rgba(230, 104, 45, 1);
    border-color: rgba(230, 104, 45, 1);
}

.filter.pastel button {
    background: rgba(224, 57, 85, 1);
    border-color: rgba(224, 57, 85, 1);
}

@keyframes shine {
    to { background-position: 200% }
}

@keyframes rainbowShadow {
    0% {
        box-shadow: 0 0 40px -15px #e81d1d60;
    }
    15% {
        box-shadow: 0 0 40px -15px #e8b91d60;
    }
    30% {
        box-shadow: 0 0 40px -15px #e3e81d60;
    }
    45% {
        box-shadow: 0 0 40px -15px #1de84060;
    }
    60% {
        box-shadow: 0 0 40px -15px #1ddde860;
    }
    75% {
        box-shadow: 0 0 40px -15px #2b1de860;
    }
    90% {
        box-shadow: 0 0 40px -15px #dd00f360;
    }
    100% {
        box-shadow: 0 0 40px -15px #e81d1d60;
    }
}

@media screen and (max-width: 376px) {
    #fusions {
        width: 100%;
    }
    .fusions-inner {
        /* width: 100%; */
        /* margin: 0 1.5rem; */
    }
    .filter {
        width: 85%;
    }
}