body, html {
    height: 100%;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: linear-gradient(rgba(131,58,180,1) 0%, rgba(253,29,29,1) 50%, rgba(252,176,69,1) 100%);
    font-family: 'Sono';
    font-weight: 400;
}

#playArea {
    width: 500px;
    height: 500px;
    position: relative;
    border: 1px solid black;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
    overflow: hidden;
    border-radius: 10px;
    background: white;
}

.cookie-counter {
    position: absolute;
    top: 10px;
    left: 10px;
    font-weight: 700;
    Font-size: 25px;
}

.cookie-counter-cps {
    position: absolute;
    bottom: 10px;
    left: 10px;
}

.cookie-counter-cpc {
    position: absolute;
    bottom: 30px;
    left: 10px;
}

.cookie {
    width: 200px;
    height: 200px;
    border-radius: 100px;
    position: absolute;
    top: 150px;
    left: 150px;
    background-image: url('cookie.png');
    background-size: cover;
    border: none;
    cursor: url('rainbow_click.png'), pointer;
}

#cookie:hover {
    transform: scale(1.05); /* Adjust scale value as needed */
    transition: transform 0.3s ease-in-out;
}

@keyframes shake {
    0% { transform: translate(1px, 1px) rotate(0deg); }
    10% { transform: translate(-1px, -2px) rotate(-1deg); }
    20% { transform: translate(-3px, 0px) rotate(1deg); }
    30% { transform: translate(3px, 2px) rotate(0deg); }
    40% { transform: translate(1px, -1px) rotate(1deg); }
    50% { transform: translate(-1px, 2px) rotate(-1deg); }
    60% { transform: translate(-3px, 1px) rotate(0deg); }
    70% { transform: translate(3px, 1px) rotate(-1deg); }
    80% { transform: translate(-1px, -1px) rotate(1deg); }
    90% { transform: translate(1px, 2px) rotate(0deg); }
    100% { transform: translate(1px, -2px) rotate(-1deg); }
}

.shake {
    animation: shake 0.3s;
    animation-iteration-count: infinite;
}

.super-cookie {
    display: none;
    width: 50px;
    height: 50px;
    border-radius: 25px;
    position: absolute;
    background-color: gold;
    border: none;
    cursor: pointer;
}

.congratulation {
    position: absolute;
    bottom: 60px;
    width: 100%;
    text-align: center;
    font-size: 24px;
    color: blue;
    font-weight: bold;
    text-shadow: 0 0 10px blue;
    display: none;
}

/*.all-time-counter {
    position: absolute;
    bottom: 10px;
    right: 10px;
    font-size: 12px;
}
*/
.upgrade-button {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    align-items: center;
    background-clip: padding-box;
    background-color: #fa6400;
    border: 1px solid transparent;
    border-radius: 10px;
    box-shadow: rgba(0, 0, 0, 0.02) 0 1px 3px 0;
    box-sizing: border-box;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    font-size: 16px;
    font-weight: 700;
    justify-content: center;
    line-height: 1.25;
    margin: 0;
    min-height: 3rem;
    padding: calc(.875rem - 1px) calc(1.5rem - 1px);
    text-decoration: none;
    transition: all 250ms;
    
}

.upgrade-button:hover,
.upgrade-button:focus {
  background-color: #fb8332;
  box-shadow: rgba(0, 0, 0, 0.1) 0 4px 12px;
}

.upgrade-button:hover {
  transform: translateY(-1px);
}

.upgrade-button:active {
  background-color: #c85000;
  box-shadow: rgba(0, 0, 0, .06) 0 2px 4px;
  transform: translateY(0);
}

.upgrade-popup {
    display: none;
    position: absolute;
    top: 60px;
    right: 10px;
    background: white;
    border: 1px solid black;
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.upgrade {
    display: block;
    margin-bottom: 5px;
    cursor: pointer;
    color: white;
    background-color: gray;
    height: 30px;
    width: 100%;
    align-content: center;
    border-radius: 5px;
    border-color: white;
    border-width: 1px;
}

.upgrade.active {
    color: white;
    background-color: #fa6400;
}
/*
.save-button {
    position: absolute;
    top: 40px;
    right: 10px;
    cursor: pointer;
}
*/