* {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

body {
    font-family: "Dosis", sans-serif;
    font-optical-sizing: auto;
    background: #9cd8c7;
    box-sizing: border-box;
    color: #303030;
}

h1 {
    font-size: 4em;
    text-align: center;
    margin: 10px 0 16px -16px;
    width: fit-content;
    transform: rotate(-5deg);
    position: relative;
    line-height: 1;
    display: flex;
}

@media screen and (max-width: 480px) {
    h1 {
        font-size: 2.5em;
    }
}

h1 span {
    color: #4ED9B1;
    padding: 8px 64px;
    background: white;
    position: relative;
    z-index: 2;
    box-shadow: 3px 3px 5px rgba(0,0,0,0.2);
}

h1::before {
    content: "";
    height: 100%;
    width: 100%;
    background: #4ED9B1;
    position: absolute;
    top: 3px;
    left: 8px;
    z-index: 1;
    transform-origin: top left;
    transform: rotate(1deg);
    box-shadow: 3px 3px 5px rgba(0,0,0,0.2);
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: 100%;
    padding: 0 24px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    justify-items: center;
}

@media screen and (max-width: 768px) {
    .container {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px 16px;
    }
}

.btn {
    font-size: 1.2em;
    width: 60px;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.2);
    background-color: #FFF;
    border-radius: 30px;
    padding: 3px 12px;
    min-width: 64px;
    display: block;
    margin: 0 auto;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    font-weight: 500;
    border: 1px solid #4ED9B1;
}

.btn:hover {
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    background-color: #BB94F2;
    color: white;
    transition: all 0.3s ease-in-out;
    border-color: #A066F2;
}

.container > div {
    text-align: center;
    margin-bottom: 8vh;
    height: 32vh;
    background: rgb(78,217,177);
    background: radial-gradient(circle, rgba(78,217,177, 1) 5%, rgba(78, 217, 177, 0) 50%)
}

.container > div svg {
    max-height: 100%;
    width: 100%;
}

.head {
    transform-box: fill-box;
    transform-origin: center;
}

#rooster .head {
    transform-origin: center 80%;
}

.frog .head {
    transform-origin: center 75%;
}

/* Animation */

.animal-active .head {
    animation: head-mov 3s ease-in-out;
}

@keyframes head-mov {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(10deg); }
    75% { transform: rotate(-10deg); }
    100% { transform: rotate(0deg); }
}

/* Animation tails */
.tail {
    transform-box: fill-box;
    transform-origin: left bottom;
}

#lion .tail {
    transform-origin: left center;
}
.animal-active .tail {
    animation: tail-mov 2.5s ease-in-out;
}

@keyframes tail-mov {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(-15deg); }
    50% { transform: rotate(15deg);}
    75% { transform: rotate(-15deg); }
    100% { transform: rotate(0deg); }
}

/* Animation wing */
.wing {
    transform-box: fill-box;
    transform-origin: 80% 20%;
}

.animal-active .wing {
    animation: wing-mov 2.5s ease-in-out;  
}

@keyframes wing-mov {
    0% { transform: rotate(0deg); }
    10% { transform: rotate(20deg); }
    35% { transform: rotate(-10deg);}
    55% { transform: rotate(20deg); }
    90% { transform: rotate(0deg); }
}

.shadow {
    fill:#231f20;
    opacity: 0.1;
}

/* Cat */

#cat .cls-1{opacity:0.1;}
#cat .cls-2,#cat .cls-6{fill:#231f20;}
#cat .cls-3{fill:#fff;}
#cat .cls-4{fill:#caa383;}
#cat .cls-5{fill:#f5b041;}
#cat .cls-6, #cat .cls-8{opacity:0.2;}
#cat .cls-7{fill:#424242;}
#cat .cls-9{fill:#f9a2a1;}
#cat .cls-10{fill:#b18e72;}

/* Lion */
#lion .cls-1{opacity:0.1;}
#lion .cls-2{fill:#231f20;}
#lion .cls-3{fill:#f8ad1c;}
#lion .cls-4{fill:#e66021;}
#lion .cls-5{fill:#f38c6b;}
#lion .cls-6{fill:#a03615;}
#lion .cls-7{fill:#f6e1d0;}
#lion .cls-8{fill:#3f2322;}
#lion .cls-9{fill:#643e39;}

/* Sheep */
#sheep .cls-1, #sheep .cls-4{opacity:0.1;}
#sheep .cls-2, #sheep .cls-4{fill:#231f20;}
#sheep .cls-3{fill:#dcc1ad;}
#sheep .cls-5{fill:#caa383;}
#sheep .cls-6{fill:#fff;}
#sheep .cls-7{opacity: 0.2;}
#sheep .cls-8{fill: #ffc7b3;}
#sheep .cls-9{fill:#424242;}
#sheep .cls-10{fill:#f56462;}

/* Elephant */
#elephant .cls-1{opacity:0.1;}
#elephant .cls-2{fill:#231f20;}
#elephant .cls-3{fill:#b7ad91;}
#elephant .cls-4{fill:#a0977f;}
#elephant .cls-5{fill:#f0dac3;}
#elephant .cls-6{fill:#f38c6b;}
#elephant .cls-7{fill:#f6e1d0;}
#elephant .cls-8{fill:#3f2322;}
#elephant .cls-9{fill:#643e39;}
#elephant .cls-10{fill:#c6bda6;}

/* Dog */
#dog .cls-1,#dog .cls-5{opacity:0.1;}
#dog .cls-2, #dog .cls-5{fill:#231f20;}
#dog .cls-3{fill:#f5b041;}
#dog .cls-4{fill:#b88431;}
#dog .cls-6{opacity: 0.2;}
#dog .cls-7{fill:#fff;}
#dog .cls-8{fill:#d1d1d1;}
#dog .cls-9{fill: #424242;}

/* Pig */
#pig .cls-1, #pig .cls-4{opacity:0.1;}
#pig .cls-2, #pig .cls-4{fill:#231f20;}
#pig .cls-3{fill:#f56462;}
#pig .cls-5{fill:#f78381;}
#pig .cls-6{opacity: 0.2;}
#pig .cls-7{fill:#fff;}
#pig .cls-8{fill:#f9a2a1;}
#pig .cls-9{fill: #424242;}

/* Cow */
#cow .cls-1{opacity:0.1;}
#cow .cls-2{fill:#231f20;}
#cow .cls-3{fill:#fff;}
#cow .cls-4{fill:#424242;}
#cow .cls-5{opacity: 0.2;}
#cow .cls-6{fill: #d1d1d1;}
#cow .cls-7{fill:#dcc1ad;}
#cow .cls-8{fill:#caa383;}

/* Rooster */
#rooster .cls-1, #rooster .cls-9{opacity:0.1;}
#rooster .cls-2, #rooster .cls-9{fill:#231f20;}
#rooster .cls-3{fill:#f7e041;}
#rooster .cls-4{fill:#424242;}
#rooster .cls-5{opacity:0.2;}
#rooster .cls-6{fill:#fff;}
#rooster .cls-7{fill:#efac71;}
#rooster .cls-8{fill:#e74c3c;}
#rooster .cls-10{opacity:0.5;}


footer {
    width: fit-content;
    margin-top: 16px;
    margin-left: auto;
    margin-right: -8px;
    padding: 4px 12px;
    background: white;
    font-size: 0.8rem;
    color: #686767;
    cursor: pointer;
    position: relative;
    display: flex;
    gap: 24px;
    height: 24px;
    overflow: hidden;
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
}

footer .attribution-content {
    width: 0;
    opacity: 0;
    display: flex;
    gap: 16px;
    transition: all 0.3s ease-in-out;
}

footer .attribution-content a {
    color: #A066F2;
}

footer .attribution-content a:hover {
    color: #BB94F2;
    text-decoration: underline;
}

footer:hover .attribution-content {
    width: auto;
    opacity: 1;
}
