body {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    min-height: 100vh;
    width: 100%;
    margin: 0;
    background-color: #91D8E4;
    image-rendering: pixelated;
    font-family: 'Roboto', sans-serif;
    color: #07485B;
}

a:link {
    color: #07485B;
    text-decoration: none;
}

a:visited {
    color: #07485B;
    text-decoration: none;
}


#clicker-heart {
    box-sizing: border-box;
    max-width: 90%;
    flex-grow: 1;
    flex-shrink: 0;
    aspect-ratio: 72/68;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    margin: 50px;
    transition-property: transform;
    transition-duration: 100ms;
    transition-timing-function: ease-out;
}

#clicker-heart:hover:not(.clicked):not(.regen) {
    transform: scale(1.05);
    transition-property: transform;
    transition-duration: 300ms;
    transition-timing-function: ease-in;
}

#clicker-heart.clicked {
    transform: scale(0.1);
    transition-property: transform;
    transition-duration: 200ms;
    transition-timing-function: ease-in;
}

#clicker-heart.regen {
    transition-property: transform;
    transition-duration: 1900ms;
    transition-timing-function: linear;
}

nav {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    padding: 10px 20px;
    margin: 3px 0;
    background-color: #BFEAF5;
    border-radius: 10px;
    gap: 20px;
}

nav > * {
    position: relative;
    transition-property: transform;
    transition-duration: 100ms;
    transition-timing-function: ease;
    display: flex;
    justify-content: center;
}

nav > *:hover {
    transform: scale(1.1) rotate(2deg);
}

nav > a > p {
    position: absolute;
    font-size: 1rem;
    background-color: white;
    color: black;
    border-radius: 5px;
    padding: 5px;
    bottom: calc(100% + 13px);
    transform: scale(0);
    transition-property: transform;
    transition-duration: 80ms;
    transition-timing-function: ease-in-out;
}

nav > a:hover > p {
    transform: scale(1);
}

@media (prefers-color-scheme: dark) {
    body {
        background-color: #0D6986;
        color: #8EC7D2;
    }

    nav {
        background-color: #07485B;
        color: #8EC7D2;
    }

    nav > a > p {
        background-color: black;
        color: white;
    }

    i {
        color: #8EC7D2;
    }
}

@media (max-width: 500px) {
    body {
        flex-direction: column-reverse;
    }

    header {
        border-radius: 10px 10px 0 0;
    }

    nav > a > p {
        bottom: auto;
        top: calc(100% + 13px);
    }

    #clicker-heart {
        max-width: 80%;
    }
}