/* basic start */

html {
    box-sizing: border-box;
}

*,
*::before,
*::after {
    box-sizing: initial;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

body {
    font-family: 'Bungee', cursive;
    font-size: 24px;
    line-height: 26px;
    color: #ffffff;
}

.list {
    padding: 0;
    margin: 0;
    list-style: none;
}


/* basic end */


/* style start */

.mainSection {
    background-image: url('../img/Mobile.jpg');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    height: 100vh;
}

.mainWrapp {
    text-align: center;
    position: absolute;
    left: 50%;
    top: 10%;
    transform: translateX(-50%);
}

.gameList {
    display: flex;
    flex-wrap: wrap;
    width: 330px;
    margin: 0 auto;
    background: #000000cf;
    position: relative;
}

.gameItem {
    width: 100px;
    height: 100px;
    cursor: pointer;
    outline: 2px solid #1481f560;
    font-size: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 5px;
}

.win {
    background: #14c85c;
}

.loose {
    background: #ec1c5e;
}

.draw {
    background: #e3d20f;
}

.userStep {
    color: #00f2ff;
}

.computerStep {
    color: #fa62ae;
}

.modalWrapp {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ffffff00;
}

.modalWindow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #14a8e2;
    border-radius: 25px;
}

.wrapp {
    position: relative;
}

.play {
    padding: 0;
    margin-top: 10px;
    border: none;
    color: #ffffff;
    background: none;
    cursor: pointer;
    font-size: 40px;
}

.modalWrapp {
    display: block;
}

.show {
    display: none;
}

.resultRow {
    text-align: center;
    margin-bottom: 20px;
}

.resultWrap {
    position: relative;
    display: inline-block;
}

.result {
    color: #ffffff;
    font-size: 30px;
    font-weight: bolder;
}

/* Emoji hangs at the end of the word, vertically centered, out of flow
   so it never shifts the perfectly-centered word. */
/* Hologram kanji hovering above the word, centered and out of flow so it never
   shifts the perfectly-centered word. Color = difficulty. Scanlines + flicker +
   neon glow give the hologram look. */
.status {
    position: absolute;
    bottom: 100%;
    left: 50%;
    margin-bottom: 12px;
    transform: translateX(-50%);
    font-size: 13px;
    line-height: 1;
    letter-spacing: 3px;
    text-transform: uppercase;
    white-space: nowrap;
    opacity: 0.55;
    text-shadow: 0 0 6px currentColor, 0 0 12px currentColor;
    animation: holoGlow 3.2s ease-in-out infinite;
}

/* scanline grid overlay for the hologram look */
.status::after {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(0deg,
        rgba(10, 13, 20, 0.22) 0,
        rgba(10, 13, 20, 0.22) 1px,
        transparent 2px,
        transparent 4px);
    pointer-events: none;
}

.status:empty {
    display: none;
}

.resultHidden {
    visibility: hidden;
}

.resultShow {
    visibility: visible;
}

.waveWrapper {
    position: absolute;
    overflow: hidden;
    top: 70%;
    width: 100%;
    height: 100px;
}

.traffic1 {
    width: 200%;
    height: 100%;
    background-size: 10% 100px;
}

.traffic2 {
    width: 200%;
    height: 100%;
    background-size: 10% 100px;
    opacity: 0.4;
}

.traffic3 {
    width: 200%;
    height: 100%;
    background-size: 10% 100px;
    opacity: 0.6;
}


/* style end */


/* animation start */

.traffic1 {
    -webkit-animation: move_wave 10s linear infinite;
    animation: move_wave 10s linear infinite;
}

.traffic2 {
    -webkit-animation: move_wave2 7s linear infinite;
    animation: move_wave2 7s linear infinite;
}

.traffic3 {
    -webkit-animation: move_wave3 15s linear infinite;
    animation: move_wave3 15s linear infinite;
}

.win,
.loose,
.draw {
    -webkit-animation-name: blink;
    animation-name: blink;
    -webkit-animation-timing-function: linear;
    animation-timing-function: linear;
    -webkit-animation-duration: 0.3s;
    animation-duration: 0.3s;
    -webkit-animation-iteration-count: infinite;
    animation-iteration-count: infinite;
}

@-webkit-keyframes move_wave {
    0% {
        -webkit-transform: translateX(0) translateZ(0) scaleY(1);
        transform: translateX(0) translateZ(0) scaleY(1)
    }
    50% {
        -webkit-transform: translateX(-25%) translateZ(0) scaleY(1.1);
        transform: translateX(-25%) translateZ(0) scaleY(1.1)
    }
    100% {
        -webkit-transform: translateX(-50%) translateZ(0) scaleY(1);
        transform: translateX(-50%) translateZ(0) scaleY(1)
    }
}

@keyframes move_wave {
    0% {
        -webkit-transform: translateX(0) translateZ(0) scaleY(1);
        transform: translateX(0) translateZ(0) scaleY(1)
    }
    50% {
        -webkit-transform: translateX(-25%) translateZ(0) scaleY(1.1);
        transform: translateX(-25%) translateZ(0) scaleY(1.1)
    }
    100% {
        -webkit-transform: translateX(-50%) translateZ(0) scaleY(1);
        transform: translateX(-50%) translateZ(0) scaleY(1)
    }
}

@-webkit-keyframes move_wave2 {
    0% {
        -webkit-transform: translateX(0) translateZ(0) scaleY(1);
        transform: translateX(0) translateZ(0) scaleY(1)
    }
    50% {
        -webkit-transform: translateX(-25%) translateZ(0) scaleY(1.1);
        transform: translateX(-25%) translateZ(0) scaleY(1.1)
    }
    100% {
        -webkit-transform: translateX(-50%) translateZ(0) scaleY(1);
        transform: translateX(-50%) translateZ(0) scaleY(1)
    }
}

@keyframes move_wave2 {
    0% {
        -webkit-transform: translateX(0) translateZ(0) scaleY(1);
        transform: translateX(0) translateZ(0) scaleY(1)
    }
    50% {
        -webkit-transform: translateX(-25%) translateZ(0) scaleY(1.1);
        transform: translateX(-25%) translateZ(0) scaleY(1.1)
    }
    100% {
        -webkit-transform: translateX(-50%) translateZ(0) scaleY(1);
        transform: translateX(-50%) translateZ(0) scaleY(1)
    }
}

@-webkit-keyframes move_wave3 {
    0% {
        -webkit-transform: translateX(-50%) translateZ(0) scaleY(1);
        transform: translateX(-50%) translateZ(0) scaleY(1)
    }
    50% {
        -webkit-transform: translateX(-25%) translateZ(0) scaleY(1.1);
        transform: translateX(-25%) translateZ(0) scaleY(1.1)
    }
    100% {
        -webkit-transform: translateX(0%) translateZ(0) scaleY(1);
        transform: translateX(0%) translateZ(0) scaleY(1)
    }
}

@keyframes move_wave3 {
    0% {
        -webkit-transform: translateX(-50%) translateZ(0) scaleY(1);
        transform: translateX(-50%) translateZ(0) scaleY(1)
    }
    50% {
        -webkit-transform: translateX(-25%) translateZ(0) scaleY(1.1);
        transform: translateX(-25%) translateZ(0) scaleY(1.1)
    }
    100% {
        -webkit-transform: translateX(0%) translateZ(0) scaleY(1);
        transform: translateX(0%) translateZ(0) scaleY(1)
    }
}

@-webkit-keyframes blink {
    50% {
        opacity: 0;
    }
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

/* smooth neon glow: brightness gently swells and fades, semi-transparent */
@keyframes holoGlow {
    0%,
    100% {
        opacity: 0.45;
        text-shadow: 0 0 5px currentColor, 0 0 11px currentColor;
    }
    50% {
        opacity: 0.7;
        text-shadow: 0 0 10px currentColor, 0 0 22px currentColor;
    }
}


/* animation and */


/* adaptive start */

@media(min-width:768px) {
    .mainSection {
        background-image: url('../img/BG.jpg');
    }
    .waveWrapper {
        top: 40%;
    }
}

@media(min-width: 1920px) {
    .gameList {
        width: 630px;
    }
    .gameItem {
        width: 200px;
        height: 200px;
        font-size: 50px;
    }
    .play {
        font-size: 60px;
        margin-top: 20px;
    }
    .result {
        font-size: 50px;
        margin-bottom: 30px;
    }
}


/* adaptive end */