
@font-face {
    font-family: 'CookieRound';
    src:  url('fonts/cookie_1-round2-webfont.woff2') format('woff2'),
          url('fonts/cookie_1-round2-webfont.woff') format('woff');
}
html, body {
    -webkit-font-smoothing: antialiased;
    font-smoothing: antialiased;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
    /*background-color: #000000;*/
}
img.bg {
    width: 100vw;
    height: auto;
    overflow: hidden;
    position: absolute;
    left: 0;
    top: 0;
    /*filter: invert(100%);*/
}
lottie-player {
    position: absolute;
    width: 86px;
    transition: opacity 200ms;
}

.clippy{
    position: relative;
    z-index: 1000;
}

.hide {
    opacity: 0;
}
.hideOverride {
    opacity: 0 !important;
}
.clippy-wrapper {
    position: fixed;
    bottom: 60px;
    right: 52px;
    width: 86px;
    height: 172px;
    transform-origin: 100% 100%;
}
.clippy-speech {
    box-sizing: content-box;
    position: absolute;
    left: 20px;
    top: 0;
    font-family: 'CookieRound', Courier, mono;
    font-size: 10px;
    line-height: 16px;
    letter-spacing: 0.025em;
    background-color: #ffffe6;
    border: 1px solid black;
    border-radius: 10px;
    padding: 12px;
    width: 180px;
    transform-origin: 100% 100%; 
    transform: translateX(-100%) translateY(-100%) scale(0.5);
    opacity: 0;
    animation-name: speak;
    animation-duration: 300ms;
    animation-delay: 3.5s;
    animation-timing-function: ease-in-out;
    animation-fill-mode: forwards;
}

.clippy-speech p{
    margin-bottom: 1em;
}

.clippy-speech.out {
    animation-name: speakOut;
    animation-duration: 300ms;
    animation-delay: 0s;
}

@keyframes speak {
  0%   {opacity: 0; transform: translateX(-100%) translateY(-100%) scale(0.5);}
  40% {opacity: 1; transform: translateX(-100%) translateY(-100%) scale(1.15);}
  100% {opacity: 1; transform: translateX(-100%) translateY(-100%) scale(1);}
}

@keyframes speakMobile {
  0%   {opacity: 0; transform: translateX(-100%) translateY(-100%) scale(0.5);}
  40% {opacity: 1; transform: translateX(-100%) translateY(-100%) scale(1.45);}
  100% {opacity: 1; transform: translateX(-100%) translateY(-100%) scale(1.3);}
}

@keyframes speakOut {
  0%   {opacity: 1; transform: translateX(-100%) translateY(-100%) scale(1);}
  100% {opacity: 0; transform: translateX(-100%) translateY(-100%) scale(0.5);}
}

@keyframes speakOutMobile {
  0%   {opacity: 1; transform: translateX(-100%) translateY(-100%) scale(1.3);}
  100% {opacity: 0; transform: translateX(-100%) translateY(-100%) scale(0.5);}
}

.clippy-body {
    position: relative;
    width: 86px;
    height: 172px;
    animation: bobbing 2s infinite alternate;
    animation-timing-function: ease-in-out;
    pointer-events: none;
}

.clippy-shadow {
    position: absolute;
    bottom: -10px;
    z-index: 5000;
    transform-origin: 50% 50%;
    opacity: 1;
    animation: pulsing 2s infinite alternate;
    animation-timing-function: ease-in-out;
    pointer-events: none;
}

.clippy-shadow.hide {
    opacity: 0;
}

.clippy-shadow img {
    opacity: 1;
    width: 100%;
    display: block;
    margin: 0 auto;
    transition: opacity 1s;
}

.clippy-shadow.hide img {
    opacity: 0;
}

@keyframes bobbing {
  0%   {transform: translateY(0)}
  100% {transform: translateY(15px)}
}

@keyframes pulsing {
  0%   {transform: scale(1); opacity: 0.5;}
  100% {transform: scale(0.7); opacity: 0.9;}
}

.clippy-speech:before {
  content: "";
  width: 0px;
  height: 0px;
  position: absolute;
  border-left: 10px solid transparent;
  border-right: 10px solid black;
  border-top: 10px solid black;
  border-bottom: 10px solid transparent;
  right: 20px;
  bottom: -20px;
}

.clippy-speech:after {
  content: "";
  width: 0px;
  height: 0px;
  position: absolute;
  border-left: 15px solid transparent;
  border-right: 15px solid #ffffe6;
  border-top: 15px solid #ffffe6;
  border-bottom: 15px solid transparent;
  right: 21px;
  bottom: -17.5px;
}

hr {
    border: 0;
    border-top: 1px solid rgb(200,200,200);
    margin-top: -3px;

}
.clippy-speech p {
    margin-top: 0;
}
.clippy-speech form {
    display: flex;
}
.clippy-speech form button {
    color: black;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    letter-spacing: inherit;
    background-color: transparent;
    width: 60px;
    border: 1px solid rgb(200,200,200);
    border-radius: 5px;
    margin: 5px 0 0 0;
    padding: 4px 3px 3px 3px;
    cursor: pointer;
}
.clippy-speech form button:hover {
    box-shadow: 1px 1px 0px rgb(200,200,200);
}
.clippy-speech form .underline {
    text-decoration: underline;
    text-underline-offset: 0.1em;
}
.clippy-speech .button-wrapper {
    padding-right: 4px;
}
.clippy-mobile-bg {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 180px;
    opacity: 0;
    transition: opacity 2000ms;
    pointer-events: none;
}
.clippy-mobile-bg.show {
    opacity: 0.85;
}

@media only screen and (max-width: 770px) {
    .clippy-wrapper {
        transform: scale(0.75);
    }
    .clippy-wrapper {
        bottom: 30px;
        right: 30px;
        width: 90px;
        height: 180px;
    }

    lottie-player {
        width: 90px;
    }

    .clippy-body{
        width: 90px;
        height: 180px;
    }

    .clippy-mobile-bg {
        display: block;
    }
    .clippy-speech {
        animation-name: speakMobile;
    }
    .clippy-speech.out {
        animation-name: speakOutMobile;
    }
}