styles = {
yield html`
<style>
.sliding {
animation-name: bgslide;
animation-duration: 300s;
animation-iteration-count: infinite;
}
@keyframes bgslide {
from {
background-position: 0px 0px;
animation-timing-function: linear;
}
25% {
background-position: -1000px 1000px;
animation-timing-function: linear;
}
50% {
background-position: 0px 0px;
animation-timing-function: linear;
}
75% {
background-position: 1000px -1000px;
animation-timing-function: linear;
}
to {
background-position: 0px 0px;
animation-timing-function: linear;
}
}
.hovering {
animation-name: wiggle;
animation-duration: 2s;
animation-iteration-count: infinite;
animation-direction: alternate;
animation-timing-function: ease-in-out;
}
.throbbing {
animation-name: throb;
animation-duration: 3s;
animation-iteration-count: infinite;
animation-direction: alternate;
animation-timing-function: ease-in-out;
}
@-webkit-keyframes wiggle {
from {
transform: rotate(0deg) ;
}
33%{
transform: rotate(10deg) ;
}
66% {
transform: rotate(-10deg) ;
}
to {
transform: rotate(0deg) ;
}
}
@keyframes throb {
from { transform: scale(1); }
33% { transform: scale(1.2); }
66% { transform: scale(1.2); }
to { transform: scale(1); }
}
.colorcycle {
animation-name: colorcycle;
animation-duration: 4s;
animation-iteration-count: infinite;
animation-direction: alternate;
animation-timing-function: ease-in-out;
}
@keyframes colorcycle {
0% { color: red;}
20% { color: green;}
40% { color: orange;}
60% { color: purple;}
80% { color: yellow;}
100% { color: blue; }
}
section {
height: 400px;
width: 320px;
margin: 0px auto;
overflow: hidden;
background-color: #000000;
background-image: url("${await FileAttachment("beachy.gif").url()}");
border: 1px solid #1f1f1f;
-moz-box-shadow: 2px 2px 3px #000;
-webkit-box-shadow: 2px 2px 3px #000;
}
section ul {
display: block;
position: relative;
overflow: hidden;
height: 400px;
width: 320px;
}
section ul .panel {
position: absolute;
top:0px;
left: 0px;
height: 400px;
width: 320px;
overflow: hidden;
}
section ul li.hide{
left: -400px;
top: 0px;
}
#splash .menu {
padding-top: 100px;
text-align: center;
}
#splash {
xpadding-top: 100px;
background: url("${await FileAttachment("indian-summer.gif").url()}");
font-family: Verdana, Arial, sans-serif;
}
.poptxt {
text-shadow: 2px 2px 2px black;
font-size: .6em;
color: red;
font-family: 'VT323',serif;
}
#info, #saveload, #yerded, #storyline, #store {
background-color: rgba(0,0,085, .8);
font-size: 1em;
font-family: Verdana, Arial,sans-serfi;
color: #FFF;
text-shadow: 2px 2px 2px #000;
}
#store p {
padding-top: 30px;
padding-bottom: 20px;
}
#store ul {
padding-top: 24px;
}
#storyline .storywords {
height: 50%;
overflow: auto;
}
#storyline .storychar {
display: none;
}
#yerded p {
height: 50%;
padding: 10px;
}
#info .infotext, #saveload p {
padding-top: 20px;
padding-left: 6px;
padding-right: 6px;
}
#info .infotext {
height: 300px;
width: 300px;
overflow: auto;
text-align: left;
}
#info .infotext em {
font-weight: bold;
color: tan;
display: block;
}
#info .infotext p {
padding-bottom: 4px;
border-bottom: 2px solid #333333;
}
#saveload .actions div {
padding: 4px;
}
#stage .stagetitle{
display: none;
}
#stage.loading .stagetitle{
background-color: rgba(0,0,0,.5);
font-family: Verdana, Arial, sans-serif;
position: absolute;
top: 0px;
left: 0px;
width: 320px;
height: 400px;
display: block;
}
#stage.loading .stagetitle em {
text-align: center;
position: relative;
top: 50%;
xleft: 400px;
color: #008000;
font-size: 1.1em;
text-shadow: -1px -1px 1px #FFF, 1px 1px 1px #000;
}
main h1 {
font-family: 'IM Fell English', serif;
color:#3399CC;
text-shadow: 1px 1px #FFFFFF;
font-size: 3em;
padding-top: 100px;
}
</style>
`
}