
@import url('https://fonts.googleapis.com/css2?family=Bangers&family=Comic+Neue:wght@400;700&display=swap');

body {
    font-family: 'Comic Neue', cursive;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 10px;
    background-color: #cfcfcf;
    background-image: radial-gradient(#fff466 5px, transparent 5px), radial-gradient(#1a1c1d 5px, transparent 5px);
    background-size: 100px 100px;
    background-position: 0 0, 50px 50px;
    box-sizing: border-box;
    transition: background-color 0.3s;
    padding-bottom: 10vh;
    overflow-x: hidden;
}

@keyframes moveBackground {
    0% {
        background-position: 0px 0px, 50px 50px;
    }

    100% {
        background-position: 200px 200px, 250px 250px;
    }
}

body.playing {
    animation: moveBackground 10s linear infinite;
}

.comic-container {
    background-color: white;
    border: 5px solid black;
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 10px 10px 0px #000000;
    max-width: 800px;
    width: 100%;
    box-sizing: border-box;
}

.chart-container {
    margin-bottom: 20px;
    background-color: #f8f8f8;
    border: 3px solid #000;
    border-radius: 10px;
    /* padding: 10px; */
    height: 50vh;
    min-height: 300px;
    position: relative;
    overflow: hidden;
}

h1 {
    font-family: sans-serif;
    font-size: 2.5em;
    text-align: center;
    color: #1a1c1d;
    margin-bottom: 20px;
    letter-spacing: 2px;
    font-weight: 800;
}

#tradeButton,
#playButton {
    font-family: 'Bangers', cursive;
    font-size: 3em;
    width: 100%;
    padding: 15px 40px;
    border: 3px solid #000;
    border-radius: 15px;
    background-color: #4CAF50;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 5px 5px 0px #000000;
    display: block;
    margin: 20px auto;
    text-transform: uppercase;
}

#tradeButton:hover,
#playButton:hover {
    transform: translate(-2px, -2px);
    box-shadow: 7px 7px 0px #000000;
}

#tradeButton:active,
#playButton:active {
    transform: translate(2px, 2px);
    box-shadow: 3px 3px 0px #000000;
    background-color: #45a049;
}

#currentPrice,
#timer,
#balance,
#score,
#fee {
    font-family: 'Bangers', cursive;
    font-size: 2em;
    text-align: center;
    margin-top: 10px;
    transition: color 0.3s, transform 0.3s;
}

#timer {
    color: #ff6b6b;
}

#balance {
    color: #4CAF50;
}

#fee {
    color: #ff9800;
    font-size: 1.5em;
}

@media (max-width: 600px) {
    h1 {
        font-size: 2em;
    }

    .chart-container {
        height: 40vh;
        min-height: 250px;
    }

    #tradeButton,
    #playButton {
        font-size: 1.5em;
        padding: 10px 20px;
    }
}

@keyframes blink {
    0% {
        background-color: inherit;
    }

    50% {
        background-color: #ffcccc;
    }

    100% {
        background-color: inherit;
    }
}

.blink {
    animation: blink 0.5s infinite;
}

.money-particle {
    position: absolute;
    font-size: 25px;
    pointer-events: none;
    user-select: none;
    z-index: 1000;
}

#gameplayElements {
    display: none;
}

.navigator {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #333;
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
}

.nav-item {
    font-family: 'Bangers', cursive;
    color: white;
    text-decoration: none;
    font-size: 1.5em;
    padding: 15px 30px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.nav-item:hover,
.nav-item.active {
    background-color: #555;
}

@media (max-width: 600px) {
    h1 {
        font-size: 1em;
    }

    h2 {
        font-size: 1.7em;
    }

    .upgrade-grid {
        grid-template-columns: 1fr;
    }

    .nav-item {
        font-size: 1em;
    }
}


.stats-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}
@media (max-width: 600px) {
    /* h1 {
        font-size: 1em;
    } */

    h2 {
        font-size: 1.7em;
    }

    .upgrade-grid {
        grid-template-columns: 1fr;
    }

    .nav-item {
        font-size: 1em;
    }
}


.stats-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

#gameOver {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    color: white;
    font-size: 4em;
    font-family: 'Bangers', cursive;
    text-align: center;
    flex-direction: column;
}

#claimButton {
    font-family: 'Bangers', cursive;
    font-size: 1em;
    padding: 15px 30px;
    border: 3px solid #fff;
    border-radius: 15px;
    background-color: #4CAF50;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 20px;
    text-transform: uppercase;
}

#claimButton:hover {
    transform: scale(1.1);
}

.description {
    text-align: center;
    font-size: 15pt;
}


#balance {
    font-family: 'Bangers', cursive;
    font-size: 1.5em;
    text-align: center;
    margin-bottom: 20px;
    color: #4CAF50;
}
