@import url('https://fonts.googleapis.com/css2?family=Sigmar+One&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&text=Games&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Special+Elite&text=ElderChickn&display=swap');
html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background-color: #1a1a1a;
}

a {
    text-decoration: none;
}

.hero-img {
    width: 100%;
    height: 100vh;
    background-image: url('Image/elder-chicken-rainbow.jpg');
    background-position: center top;
    background-size: 1000px;
    background-repeat: no-repeat;
    z-index: -4;
    position: fixed;
    top: 0;
}

.hero-img .overlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(#40404080, #30303080);
}

h2 {
    font-family: 'Special Elite', cursive;
    font-size: 40px;
    text-align: center;
    color: #f00000;
    text-shadow: 10px 10px 20px #000000;
    padding: 50px 25px 150px;
    /* background: linear-gradient(#ffffff00, #ffffff00 90%, #ffffffdd); */
    margin: 50px 0 0;
    position: relative;
}

h2 .game-font {
    font-family: 'Press Start 2P', cursive;
    color: #ff7300;
    margin-top: -20px;
    transform: rotate(-10deg);
}

nav {
    top: 0;
    width: calc(100% - 20px);
    height: 54px;
    padding: 10px;
    border-bottom: 2px solid transparent;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 7;
    position: relative;
}

nav:not(.stuck)::after,
nav:hover::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: left center / 500% 100% linear-gradient(-0.125turn, #ffffff00 20%, #ffffff20, #ffffff00, #ffffff30, #ffffff00 80%);
    -webkit-animation: shine linear 6s infinite;
    animation: shine linear 6s infinite;
    z-index: 0;
}

nav * {
    z-index: 1;
}

nav.stuck {
    position: -webkit-sticky;
    position: sticky;
    left: 0;
    -webkit-animation: nav-stuck 0.5s forwards;
    animation: nav-stuck 0.5s forwards;
}

@-webkit-keyframes nav-stuck {
    0% {
        opacity: 0
    }
    100% {
        opacity: 1
    }
}

@keyframes nav-stuck {
    0% {
        opacity: 0
    }
    100% {
        opacity: 1
    }
}

nav.stuck:not(:hover)>*:not(.nav-imgs) {
    opacity: 0;
}

nav:hover,
nav:not(.stuck) {
    background-color: #ed2928;
    border-color: #ffffff;
    transition: background-color 1s;
    z-index: 7;
}

.nav-imgs {
    display: flex;
    align-items: center;
    height: 100%;
}

.nav-imgs img {
    margin: 0 25px 0 0;
    padding: 5px;
    height: calc(100% - 10px);
}

@-webkit-keyframes shine {
    0% {
        background-position: 0 center
    }
    100% {
        background-position: calc(-100% + 100vw) center
    }
}

@keyframes shine {
    0% {
        background-position: 0 center
    }
    100% {
        background-position: calc(-100% + 100vw) center
    }
}

nav:hover img.chicken,
nav:not(.stuck) img.chicken {
    border-radius: 50px;
    background-color: white;
}

img.pixel {
    image-rendering: crisp-edges;
}

.links {
    height: 100%;
    display: flex;
    align-items: center;
    flex-flow: row wrap;
}

@media only screen and (max-width: 526px) {
    .links {
        justify-content: flex-start;
        align-items: flex-end;
        flex-flow: column nowrap;
    }
}

.links a {
    display: inline-block;
    box-shadow: 0 0 0 1px #ffffff;
}

.links a.text {
    height: calc(100% - 20px);
    color: #ffffff;
    text-decoration: none;
    font-size: 20px;
    font-family: 'Sigmar One', cursive;
    padding: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.links a.img {
    height: 100%;
    position: relative;
}

.links img {
    max-height: 100%;
}

.links a.text:hover {
    box-shadow: 0 0 0 2px #ed2928, 0 0 0 5px #ffffff;
    background-color: #ffffff;
    color: #ed2928;
}

.links a:hover,
.nav-imgs img:hover {
    transform: scale(1.1);
    transition: transform 0.25s;
}

.links a:not(:hover),
.nav-imgs img:not(:hover) {
    transition: transform 0.25s;
}

.links a:not(:first-child) {
    margin-left: 20px;
}

.game-container {
    width: 100%;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    /* background: linear-gradient(#ffffffdd, #ffffff88 400px); */
    position: relative;
    min-height: 100vh;
}

#game-scroll-container {
    display: flex;
    flex-flow: row nowrap;
    align-items: flex-start;
    width: 100%;
}

#game-flex-container {
    flex: 1;
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
}

#game-background {
    /* background: radial-gradient(#fff2, #0002), center / cover url('Image/scratched-background.jpg'); */
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    margin-bottom: -100vh;
    opacity: 1;
}

/* .wide-ad-container {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 20px 0;
}

.wide-ad-container.above-filter {
    margin: 0 0 100px;
}

.wide-ad {
    width: 300px;
    height: 50px;
    background-color: #fff;
}*/

@media only screen and (min-width: 850px) {
    .wide-ad {
        width: 728px;
        height: 90px;
    }
}/*

.tall-ad-container {
    position: sticky;
    top: 50px;
    margin-left: 15px;
}

.tall-ad {
    width: 160px;
    height: 600px;
    background-color: #fff;
}

@media only screen and (max-width: 700px) {
    .tall-ad, .tall-ad-container {
        display: none;
    }
} */

#filter-container {
    position: static;
    width: calc(100% - 20px);
    min-height: 80px;
    padding: 10px;
    background-color: #231f20;
    display: flex;
    flex-flow: row wrap;
    align-items: center;
    justify-content: center;
    z-index: 6;
    margin: -90px 0 40px;
    box-shadow: 10px 10px 20px 5px #000000;
    transition: opacity 0.5s;
}


/* .game-container:hover #filter-container:not(:hover) {
    opacity: 0.8;
} */

#filter-container .label {
    color: #666666;
    font-size: 25px;
    font-family: 'Sigmar One', cursive;
    margin-right: 50px;
}

.filter {
    margin: 0 10px;
    display: flex;
    align-items: center;
    opacity: 0.8;
    transition: opacity .2s;
    cursor: pointer;
}

.filter:hover {
    opacity: 1;
}

.filter span {
    color: #ffffff;
    font-size: 20px;
    font-family: 'Sigmar One', cursive;
    margin-right: 5px;
}

.filter input {
    width: 50px;
    -webkit-appearance: none;
    height: 10px;
    border-radius: 5px;
    background: #ffffff;
    outline: none;
}

.filter input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 23px;
    height: 22px;
    border: 0;
    background: #d3d3d3;
}

.slider::-moz-range-thumb {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 23px;
    height: 22px;
    border: 0;
    background: #d3d3d3;
    cursor: move;
}

.filter:hover .slider::-webkit-slider-thumb {
    transform: scale(1.1);
}

.filter:hover .slider::-moz-range-thumb {
    transform: scale(1.1);
}

.filter.value-1 span {
    color: #f00000;
}

.filter.value-3 span {
    color: #00f000;
}

.filter.value-1 .slider {
    background: #ff4040;
}

.filter.value-3 .slider {
    background: #40ff40;
}

.filter.value-1 .slider::-webkit-slider-thumb {
    background: #f00000;
}

.filter.value-3 .slider::-webkit-slider-thumb {
    background: #00f000;
}

.filter.value-1 .slider::-moz-range-thumb {
    background: #f00000;
}

.filter.value-3 .slider::-moz-range-thumb {
    background: #00f000;
}

.game {
    width: 400px;
    box-shadow: 5px 5px 10px 5px #000000;
    padding: 15px;
    margin: 15px;
    display: flex;
    flex-flow: column nowrap;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(#f00000d0 80%, #f00000e0), center / cover url('Image/newspaper-background.jpg');
    z-index: 1;
}

.game>img {
    width: calc(100% - 12px);
    background-color: #ffffff;
    box-shadow: 0 0 0 6px #ffffff;
    margin: 6px 6px 10px 6px;
}

.game:hover>img {
    transform: scale(1.05);
    box-shadow: none;
    transition: transform 1s, box-shadow 0.5s;
}

.game span {
    font-family: 'Sigmar One', cursive;
    font-size: 20px;
    text-decoration: none !important;
    color: #ffffff;
    line-height: 1.5em;
    align-items: center;
    display: flex;
    justify-content: center;
    border: none;
}

.game span b {
    font-size: 30px;
    color: #231f20;
    text-align: center;
}

#no-results {
    background-color: #ffffff;
    color: #231f20;
    font-family: sans-serif;
    font-size: 18px;
    display: flex;
    flex-flow: column nowrap;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 50px;
    box-shadow: 5px 5px 10px 5px #000000;
    margin-bottom: 70px;
    max-width: 400px;
}

#no-results button {
    padding: 10px 20px;
    border: none;
    background-color: #afafaf;
    color: #231f20;
    font-size: 20px;
    margin-top: 20px;
}

#no-results button:hover {
    background-color: #231f20;
    color: #666666;
}

footer {
    width: calc(100% - 100px);
    padding: 50px 50px;
    background-color: #ffffff;
    box-shadow: 0 0 20px 5px #000;
    margin: 10px 0 0;
    display: flex;
    align-items: center;
}

footer a {
    color: #231f20;
    font-family: sans-serif;
    font-size: 14px;
    -webkit-text-decoration: underline dotted;
    text-decoration: underline dotted;
}

footer a:hover {
    text-decoration: underline;
}

@media only screen and (min-width: 350px) {
    h2 {
        font-size: 60px;
    }
}

@media only screen and (min-width: 700px) {
    h2 {
        font-size: 100px;
        padding: 50px 50px 150px;
    }
    nav {
        height: 74px;
    }
    .links a.text {
        height: calc(100% - 40px);
        padding: 20px;
    }
    #filter-container {
        top: 94px;
    }
    .game-container {
        width: calc(100% - 100px);
        padding: 0 50px;
    }
    #game-background {
        width: calc(100% + 100px);
        margin-left: -50px;
        margin-right: -50px;
    }
    footer {
        width: 100%;
        padding: 50px 100px;
        margin: 10px -50px 0;
    }
}

@media only screen and (min-width: 1000px) {
    .hero-img {
        background-size: cover;
    }
}

#notification {
    position: fixed;
    top: 106px;
    right: 10px;
    display: flex;
    align-items: center;
    z-index: 100;
    background-color: #161616;
    padding: 10px;
    color: #808080;
    transform: translateX(calc(100% - 20px));
}

#notification.out {
    transform: translateX(0);
    transition: transform 0.3s ease-out;
}

#notification:not(.out) {
    transform: translateX(calc(100% - 20px));
    transition: transform 0.3s ease-out;
}

#toggle-notification {
    width: 20px;
    height: 20px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin-right: 10px;
    font-size: 20px;
    cursor: pointer;
}

#toggle-notification:hover {
    background-color: #808080;
    color: #161616;
}

#notification.out #toggle-notification {
    transform: scaleX(1);
    transition: transform 0 0.3s;
}

#notification:not(.out) #toggle-notification {
    transform: scaleX(-1);
    transition: transform 0 0.3s;
}

#notification a {
    margin-left: 10px;
    color: #00e031;
    text-decoration: underline #00e031bb;
}

#notification a:hover {
    color: #00b627;
    text-decoration: underline #00b627bb;
    background-color: #00b62722;
}

#notification a span {
    color: #FF0056;
    text-decoration: underline #FF0056bb;
}

#notification a:hover span {
    color: #d50349;
    text-decoration: underline #d50349bb;
}