body {
    background-image: url("images/catcolors.gif");
    background-position: center;
    background-color: #fcfccc;
}

#container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

#flex {
    display: flex;
}

#rat:hover {
    -webkit-transform: scaleX(-1);
    transform: scaleX(-1);
}

.textbox {
    font-family: 'Courier New';
    position: absolute;
    bottom: 20px;
    right: 20px;
    background-color: #fcccd4;
    color: white;
    padding-left: 20px;
    padding-right: 20px;
    border-radius: 30px;
    max-width: 90px;
}

.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    background-color: #fcccd4;
    color: #fff;
    text-align: center;
    padding: 5px 0;
    border-radius: 30px;
    position: absolute;
    z-index: 1;
    width: 120px;
    bottom: 100%;
    left: 50%;
    margin-left: -60px;
}
  
.tooltip:hover .tooltiptext {
    visibility: visible;
    font-family: Georgia;
}

#catcomputer {
    border: 10px double #fcccd4;
    border-radius: 30px;
}

#cat:hover {
    animation: shake 0.5s;
    animation-iteration-count: infinite;
}
  
@keyframes shake {
    0% { transform: translate(1px, 1px) rotate(0deg); }
    10% { transform: translate(-1px, -2px) rotate(-1deg); }
    20% { transform: translate(-3px, 0px) rotate(1deg); }
    30% { transform: translate(3px, 2px) rotate(0deg); }
    40% { transform: translate(1px, -1px) rotate(1deg); }
    50% { transform: translate(-1px, 2px) rotate(-1deg); }
    60% { transform: translate(-3px, 1px) rotate(0deg); }
    70% { transform: translate(3px, 1px) rotate(-1deg); }
    80% { transform: translate(-1px, -1px) rotate(1deg); }
    90% { transform: translate(1px, 2px) rotate(0deg); }
    100% { transform: translate(1px, -2px) rotate(-1deg); }
}

@media only screen and (max-width: 800px) {
    .textbox {
        width: 30%;
    }
}