@font-face {
  font-family: 'Libre Baskerville'; 
  src: url('fonts/LibreBaskerville-VariableFont_wght.ttf') format('truetype'),
       url('fonts/LibreBaskerville-Italic-VariableFont_wght.ttf') format('truetype');
}

body {
  font-family: 'Libre Baskerville', serif;
  letter-spacing: -0.05em;
  width: 100%;
  height: 100vh;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background-color: rgb(240, 247, 206);
  background: url(imgs/flow-swamp-3.jpg) no-repeat bottom center;
  background-size: cover;
  cursor: url(imgs/butterfly-cursor.png), auto;
}

p{
    font-size: 14px;
}
h1{
    font-size: 30px;
}
h4{
    font-size: 14px;
}

#bg{
    display: none;
}

.hidden{
    display: none;
}

@media(max-width: 600px){
body{
    width: 100vw;
    height: 100vh;
}
}

.cat{
width: 400px;
height: 440px;
position: absolute;
top: 50%;
left: 50%;
z-index: 100;
user-select: none;
display: none;
}
.cat:hover{
    cursor: pointer;
}



#eyes{
position: absolute;
left: 50%;
top: 50%;
transition: .3s ease;
z-index: 101;
user-select: none;
}

#butterfly{
    width: 150px;
    height: 150px;
    position: absolute;
    transition: 1s ease; 
    pointer-events: none;
    display: none;

}

audio{
    position: absolute;
    border-radius: 15px;
    z-index: 1;
    mix-blend-mode: darken;
}

#info-container{
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: rgb(213, 230, 201);
    width: 600px;
    border-radius: 15px;
    mix-blend-mode: normal;
    opacity: 70%;
}

#bubble{
    padding: 0em 1em;

}

body{
    color: rgb(3, 28, 21);
}


#flower{
    width: 200px;
    height: 400px;
    position: absolute;
    right: 35%;
    bottom: 40%;
    animation: sway 2.2s alternate infinite ease;
    filter: hue-rotate(10deg) saturate(80%) brightness(1);
}

#sky{
    width: 250px;
    height: 250px;
    position: absolute;
    right: 10%;
    top: 0%;
    animation: rotate 1.5s alternate infinite ease;
}

#fish{
    width: 250px;
    height: 150px;
    position: absolute;
    left: 30%;
    bottom: 10%;
    display: block;
    animation: swim 2s alternate infinite ease;
    filter: hue-rotate(-60deg) saturate(40%) brightness(1.6);
}


@keyframes rotate {
    from{transform: rotate(-10deg) translateX(0);}
    to{transform: rotate(10deg) translateX(20px);}
}

@keyframes swim {
    from{transform: rotate(-10deg) translateX(0);}
    to{transform: rotate(10deg) translateX(40px);}
}


@keyframes sway {
    from{transform: rotateY(0);}
    to {transform: rotateY(180deg);}
}


/* PHONE */

@media (max-width: 644px){

#flower{
    right: 0%;
    bottom: 0;
    width: 200px;
    height: 400px;
}
#fish{
    left: 0%;
    bottom: 15%;
    width: 200px;
    height: 120px;
}
#sky{
    right: 50%;
    top: 50%;
    width: 150px;
    height: 150px;
}
#butterfly{
    display: none;
}
h1{
    text-align: center;
    padding-top: 1em;
}
h4{
    text-align: center;
}
#info-container{
    width: 95vw;
    left: 0;
    top: 0;
    margin: 1em;
}
.cat{
    left: 47%;
}
audio{
    width: 80vw;
    height: 50px;
    position: absolute;
    left: 10vw;
    top: 20px;
    
}
}


/*TABLET*/



@media (max-width: 1000px){
#sky{
    left: 10%;
    top: 35%;
    width: 250px;
    height: 250px;
}
#flower{
    right: 0%;
    bottom: 0;
    width: 200px;
    height: 400px;
}
#fish{
    left: 0%;
    bottom: 15%;
    width: 250px;
    height: 150px;
}
}



