Spaces:
Configuration error

game / style.css
unthinkablee's picture
Upload 38 files
0ef735e verified
Raw History Blame Contribute Delete
1.63 kB
body {
background: linear-gradient(30deg, lightgreen 50%, lightcoral 50%);
font-family: "Sigmar One", cursive;
}
section {
margin: 20vh auto;
width: 40%;
height: 60vh;
border: 5px solid #bbb;
}
#title {
width: 15%;
position: absolute;
top: 12.5%;
left: 5%;
}
#sesameBg {
position: absolute;
bottom: 0%;
right: 0%;
}
#left {
float: left;
font-size: 1.5rem;
padding-left: 10%;
}
#right {
float: right;
font-size: 1.5rem;
padding-right: 5%;
}
#btnStart {
width: 65px;
height: 65px;
position: absolute;
bottom: 5%;
left: 50%;
transform: translateX(-50%);
font-family: "Sigmar One", cursive;
color: white;
text-shadow: 2px 2px 2px #333;
box-shadow: 2px 2px 3px #333;
border: 1px solid lightcoral;
border-radius: 50%;
background: lightcoral;
cursor: pointer;
}
#screen {
margin: auto;
width: 100%;
height: 100%;
height: 60vh;
background: url(../Images/opened_mouth.png) no-repeat center/contain;
position: relative;
}
#brush {
width: 300px;
height: 75px;
background: url(../Images/toothbrush.png) no-repeat center center/cover;
/* 一定要設position jQ 才能抓.pageX 和 .pageY */
position: absolute;
z-index: 1;
display: none;
}
#upperTeeth {
width: 80%;
height: 20%;
position: absolute;
top: 17.5%;
left: 10%;
}
#innerMouth {
width: 60%;
height: 27.5%;
position: absolute;
top: 35%;
left: 20%;
}
#lowerTeeth {
width: 80%;
height: 20%;
position: absolute;
bottom: 15%;
left: 10%;
}
.mouthGerm {
width: 30%;
}
.teethGerm {
width: 10%;
position: absolute;
transition: transform 0.5s;
}