div.cookie {
    width: calc(100vw/3);
    background: url(./backgrounds/blue.png);
}

div.cookieWrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

div.cookieWrapper > img {
    width: calc(100% - 140px);
    aspect-ratio: 1;
    box-sizing: border-box;
    position: absolute;
    top: 150px;
}

div.cookieStats {
    z-index: 4;
    width: 100%;
    position: relative;
}

div.bakeryName {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100%;
    position: absolute;
    top: 20px;
    height: 30px;
    color: white;
    font-family: 'Georgia';
    font-size: 10px;
    font-weight: 600;
    background-color: rgba(0,0,0,0.5);
}

div.bakeryName > h1 {
    transform: scaleX(0.9);
}

div.cookiesPerSecond {    
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100%;
    position: absolute;
    top: 60px;
    height: 50px;
    color: white;
    font-family: 'Georgia';
    font-size: 14px;
    font-weight:800;
    background-color: rgba(0,0,0,0.5);
    padding-bottom: 5px;
}

div.cookiesPerSecond > h1, p {
    transform: scaleX(0.9);
    margin: 0;
}

#cookieShadow {
    transform: scale(1.2);
}

#cookieShine1, #cookieShine2 {
    z-index: 1;
    transform: scale(2);
    opacity: 0.3;
}

#cookieShine1 {
    rotate: 0deg;
    animation: rotateShine1 20s infinite linear;
}

#cookieShine2 {
    rotate: 0deg;
    animation: rotateShine2 20s infinite linear;
}

@keyframes rotateShine1 {
    from {
        rotate: 0deg;
    }
    to {
        rotate: 360deg;
    }
}

@keyframes rotateShine2 {
    from {
        rotate: 0deg;
    }
    to {
        rotate: -360deg;
    }
}

.cookieWrapper {
    /*pointer-events: none;*/
}

.cookieWrapper img {
    z-index: 2;
    transition: 50ms ease-in-out transform;
}

#cookieButton {
    cursor: pointer;
}

.cookieWrapper > #cookieButton:active {
    transform: scale(0.9);
}

.cookieWrapper:has(#cookieButton:active) > #cookieShadow {
    transform: scale(1.1);
}