@keyframes background {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

#background {
    --background-speed: 60s;

    position: fixed;
    top: 50vh;
    left: 50vw;
    width: max(142vw, 142vh);
    height: max(142vw, 142vh);
    transform: translate(-50%, -50%);
    z-index: -1;

    background: repeating-conic-gradient(
        hsla(0, 0%, 100%, 0.1) 0deg 15deg,
        hsla(0, 0%, 100%, 0) 0deg 30deg
    ) #3c91e6;

    animation: background var(--background-speed) linear infinite;
}

#patate-container {
    --patate-width: 30em;

    position: relative;
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center;
    height: 100%;
}

#the-patate {
    width: var(--patate-width);
    height: calc(var(--patate-width) / 1.6245);
    max-width: 85vw;
    max-height: calc(85vw / 1.6245);
    transform-origin: bottom; /* Set the scaling origin to the top */
    transition: transform 0.1s ease-in-out;
    z-index: 1;
    user-select: none;
    -webkit-user-drag: none;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;


    /* Shadow below the patate */
    /* -webkit-filter: drop-shadow(10px 10px 10px #222); */
}

.patate-squished {
    /* Multiply height by 1.6245 */
    /* height: calc(var(--patate-width) / 1.80) !important; */
    transform: scale(1.1, 0.7);
}

#squish-counter-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#squish-counter-title {
    font-size: 2rem;
    margin: 0;
}

#squish-counter {
    font-size: 4rem;
    background-color: var(--secondary-color);
    margin-bottom: 1rem;
}

#overheat-timer-container {
    width: 100%;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#overheat-timer-title {
    font-size: 2rem;
    margin: 0;
    padding-top: 1em;
    color: var(--red-color);
}

#overheat-timer-text {
    font-size: 2rem;
    background-color: var(--red-color);
    margin: 0.5rem;
}

#animation-container {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    user-select: none;
  }

.squish-text {
    position: absolute;
    color: white;
    animation-fill-mode: forwards;
    transform: translate(0, 0) scale(1);
    transition: transform 1s ease-in-out;
}

@keyframes squish-text-animation {0%{opacity:1;transform:translate(0,0) scale(0.75);}100%{opacity:0;transform:translate(13em,-11em) scale(2);}}

