dongs/html/sbh.css

169 lines
2.5 KiB
CSS

@import url('Kubasta.css');
html {
margin: 0;
padding: 0;
}
body {
background: black;
color: white;
overflow: hidden;
margin: 0;
padding: 0;
}
* {
cursor: crosshair;
}
#title {
display: block;
position: absolute;
width: 100%;
height: 100%;
}
#title * {
color: white;
text-align: center;
font-family: 'Kubasta', sans-serif;
}
#title div {
position: relative;
top: 50%;
transform: translate(0, -50%);
}
#title h1 {
color: yellow;
text-shadow: rgba(255,255,0,0.5) 0px 0px 5px;
}
#title h2 {
color: cyan;
text-shadow: rgba(0,255,255,0.5) 0px 0px 3px;
}
#title p {
color: magenta;
text-shadow: rgba(255,0,255,0.5) 0px 0px 2px;
}
#paused {
display: none;
position: absolute;
width: 100%;
height: 100%;
z-index: 1000;
}
#paused h1 {
position: relative;
top: 50%;
text-align: center;
transform: translate(0, -50%);
}
.healthBar {
position: absolute;
transition: background-color 1s;
transition: opacity 1s;
}
.healthBar.full {
background-color: #0f0;
}
.healthBar.medium {
background-color: #ff0;
}
.healthBar.low {
background-color: #f00;
}
.healthBar.empty {
background-color: #000;
}
#arena {
position: absolute;
width: 100%;
height: 100%;
z-index: 0;
}
#arena .healthBar {
height: 32px;
bottom: 0;
opacity: 100%;
}
#enemies div {
position: absolute;
z-index: 1;
transition: color 3s, font-size 3s, top 3s, left 3s;
color: white;
transform: translate(-50%, -50%);
}
#enemies .alive {
cursor: progress;
transition: text-shadow 1s;
text-shadow: black 0px 0px 10px;
}
#enemies .alive:hover {
text-shadow: #f00 0px 0px 1px;
}
#enemies .alive .healthBar {
display: block;
top: 0;
height: 10%;
z-index: -10;
transform: translate(0,-100%);
transition: opacity 1s;
opacity: 0;
}
#enemies .alive:hover .healthBar {
opacity: 100%;
}
#enemies .exploding {
color: rgba(0,0,0,0);
font-size: 500%;
z-index: -5;
}
#bullets li {
z-index: 100;
position: absolute;
cursor: zoom-out;
font-size: x-large;
}
#score {
position: absolute;
font-family: 'Kubasta', sans-serif;
top: 1ex;
left: 1ex;
color: yellow;
font-size: small;
text-shadow: yellow 0px 0px 5px;
z-index: -10;
font-size: large;
}
#hp {
position: absolute;
width: 100%;
height: 16px;
background-color: #0f0;
left: 0;
bottom: 0;
}