@import url('https://fonts.googleapis.com/css2?family=Kufam:wght@400;500;600&display=swap');

*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    height: 100%;
    background-image: url(../images/bg-3.jpg);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    font-family: 'Kufam', sans-serif;
}

.tamina {
    max-width: 1200px;
    width: 90%;
    margin: 0 auto;
    position: relative;
    padding: 80px 0;
}

#shell {
    position: absolute;
    left: calc(50% - 350px);
}

#redhood {
    position: absolute;
    left: calc(50% - 98px);
    top: 430px;
    transition: all .3s ease-in;
    z-index: 1;
}

#apple-basket {
    position: absolute;
    left: calc(50% - 20px);
    top: 580px;
    z-index: 2;
    display: none;
}

#mic {
    position: absolute;
    left: calc(50% - 50px);
    top: 530px;
    z-index: 3;
    display: none;
}

#icecream {
    position: absolute;
    right: calc(50% - 65px);
    top: 500px;
    z-index: 5;
    display: none;
}

#wolf {
    position: absolute;
    right: calc(50% - 150px);
    top: 520px;
    z-index: 10;
    display: none;
}

#sheep {
    position: absolute;
    right: calc(50% - 145px);
    top: 538px;
    z-index: 12;
    display: none;
}

#hungry {
    position: absolute;
    right: calc(50% - 280px);
    top: 550px;
    width: 200px;
    height: 25px;
    color: #fff;
    display: none;
}

#bored {
    position: absolute;
    right: calc(50% - 280px);
    top: 580px;
    width: 200px;
    height: 25px;
    color: #fff;
    display: none;
}

#eyes.eyes-right {
    animation: eyes-right 3s infinite ease-in-out;
}

@keyframes eyes-right {
    50% {
        transform: translate(2px, 1px);
    }
}

#redhood.move-me {
    animation: move-me 10s infinite ease-in-out;
}

@keyframes move-me {
    33.33% {
        transform: translateX(40px) translateY(5px);
    }

    55.55% {
        transform: translateX(80px) translateY(10px);
    }

    77.77% {
        transform: translateX(40px) translateY(5px);
    }

    100% {
        transform: translateX(0);
    }
}

#left-leg.walk {
    animation: move-left-leg 1s infinite step-start;
}

#right-leg.walk {
    animation: move-right-leg 1s infinite step-start;
    transform: translateY(-8px);
}

@keyframes move-left-leg {
    50% {
        transform: translateY(-8px);
    }
}

@keyframes move-right-leg {
    50% {
        transform: translateY(0px);
    }
}

#redhood.sing-me {
    animation: sing-me 3s infinite ease-in-out;
}

@keyframes sing-me {
    33.33% {
        transform: rotate(3deg);
    }

    66.66% {
        transform: rotate(-3deg);
    }

    99.99% {
        transform: translate(0);
    }
}

#eyebrows.eyebrows-up {
    animation: eyebrow-up 3s infinite ease-in-out;
}

@keyframes eyebrow-up {
    50% {
        transform: translateY(-8px);
    }

    100% {
        transform: translate(0);
    }
}

#flat-mouth.sad {
    transform-origin: center;
    transform: scale(1.2) translateY(8px);
}

#smile-mouth.speak {
    animation: speech 0.5s infinite step-start;
    transform-origin: center;
}

@keyframes speech {
    0% {
        transform: scaleY(1);
    }

    50% {
        transform: scaleY(0.8);
    }

    100% {
        transform: scaleY(1.2);
    }
}

#speech-bubble {
    background-color: white;
    border-radius: 15px;
    position: absolute;
    left: calc(50% - 50px);
    top: 340px;
    width: 190px;
    min-height: 75px;
    padding: 15px;
    font-size: .9rem;
    line-height: 1.2rem;
    transition: all .3s cubic-bezier(0.18, 0.89, 0.32, 1.27);
    opacity: 0;
    box-shadow: 0 4px 15px -3px rgba(35, 26, 27, 0.4);
}

#speech-bubble::after {
    content: "";
    width: 25px;
    height: 24px;
    background: url(../images/speech-bubble.svg) no-repeat center top;
    background-size: cover;
    display: block;
    position: absolute;
    left: 50%;
    bottom: -20px;
}

#buttons {
    width: 550px;
    position: absolute;
    left: calc(50% - 282px);
    top: 732px;
    text-align: center;
}

button {
    align-items: center;
    appearance: none;
    background-image: radial-gradient(100% 100% at 100% 0, #FF004D 0, #9A031E 100%);
    padding: 8px 12px;
    border-radius: 30px;
    border: none;
    box-shadow: rgba(45, 35, 66, .4) 0 2px 4px, rgba(45, 35, 66, .3) 0 7px 13px -3px, rgba(58, 65, 111, .5) 0 -3px 0 inset;
    font-size: .9rem;
    font-family: 'Kufam', sans-serif;
    color: #fff;
    margin-right: 5px;
    cursor: pointer;
    display: inline-flex;
    justify-content: center;
    position: relative;
    transition: box-shadow .15s, transform .15s;
    touch-action: manipulation;
}

button:focus {
    box-shadow: #9A031E 0 0 0 1.5px inset, rgba(45, 35, 66, .4) 0 2px 4px, rgba(45, 35, 66, .3) 0 7px 13px -3px, #9A031E 0 -3px 0 inset;
}

button:hover {
    box-shadow: rgba(45, 35, 66, .4) 0 4px 8px, rgba(45, 35, 66, .3) 0 7px 13px -3px, #9A031E 0 -3px 0 inset;
    transform: translateY(-2px);
}

button:active {
    box-shadow: #9A031E 0 3px 7px inset;
    transform: translateY(2px);
}

#msg-input {
    position: absolute;
    z-index: 1;
    font-size: 1rem;
    width: 260px;
    height: 40px;
    padding: 4px 8px;
    left: calc(50% - 143px);
    top: 780px;
    border-radius: 10px;
    border: 2px solid #9A031E;
    color: #191919;
}

#msg-input:focus {
    outline: none;
}

#msg-input::placeholder {
    font-size: 1rem;
    color: grey;
}

footer {
    position: absolute;
    bottom: 5%;
    left: 10%;
}

footer p {
    font-size: .9rem;
    color: #fff;
    font-weight: lighter;
}


/* Responsive CSS */
@media only screen and (max-width: 900px) {
    .tamina{
        scale: 0.7;
    }

    footer p{
        font-size: 0.8rem;
    }
    
}

@media only screen and (max-width: 480px) {
    .tamina {
        scale: 0.5;
    }
}