543 lines
10 KiB
CSS
543 lines
10 KiB
CSS
* {
|
|
1rem=16px;
|
|
}
|
|
|
|
@font-face {
|
|
font-family: popUpFont;
|
|
src: url('../fonts/monaco.ttf');
|
|
}
|
|
@font-face {
|
|
font-family: headersFont;
|
|
src: url('../fonts/Good_Morning.ttf');
|
|
}
|
|
|
|
|
|
|
|
/*-----------------------Character CSS high-resolution--------------------------------*/
|
|
|
|
html{
|
|
background-image: url('../img/background.png');
|
|
background-attachment: fixed;
|
|
width: auto;
|
|
height: auto;
|
|
background-position: left top;
|
|
background-repeat: no-repeat;
|
|
background-size: cover;
|
|
}
|
|
/* HOVER STYLES */
|
|
div#pop-up-police {
|
|
display: none;
|
|
visibility: hidden;
|
|
position: absolute;
|
|
width: 90%;
|
|
max-width: 15rem;
|
|
background: #FFF;
|
|
font-family: popUpFont;
|
|
border-radius: .25em .25em .4em .4em;
|
|
text-align: center;
|
|
box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
|
|
}
|
|
|
|
h1 {
|
|
font-family: headersFont;
|
|
font-size: 80px;
|
|
color: #CDDADE;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.active {
|
|
pointer-events: auto;
|
|
cursor: default;
|
|
}
|
|
|
|
.not-active {
|
|
pointer-events: none;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
#station-building {
|
|
position: absolute;
|
|
top: 46rem;
|
|
left: 17rem;
|
|
}
|
|
|
|
#police-building {
|
|
position: absolute;
|
|
top: 20rem;
|
|
left: 17rem;
|
|
}
|
|
|
|
#cinema-building {
|
|
position: absolute;
|
|
top: 17rem;
|
|
left: 54.5rem;
|
|
}
|
|
|
|
#burguer-building {
|
|
position: absolute;
|
|
top: 20rem;
|
|
left: 91rem;
|
|
}
|
|
|
|
#club-building {
|
|
position: absolute;
|
|
top: 46rem;
|
|
left: 89rem;
|
|
}
|
|
|
|
.building {
|
|
height: 200px;
|
|
width: 200px;
|
|
}
|
|
|
|
.building img {
|
|
height: 100%;
|
|
width: auto;
|
|
}
|
|
|
|
#char-container {
|
|
position: absolute;
|
|
top: 40rem;
|
|
left: 55rem;
|
|
}
|
|
|
|
#char-head {
|
|
width: 3rem;
|
|
height: 3rem;
|
|
background-color: #ffc993;
|
|
border-radius: 3.125rem 3.125rem;
|
|
z-index: 1;
|
|
}
|
|
|
|
#char-ear-left {
|
|
position: absolute;
|
|
top: 1rem;
|
|
left: -0.25rem;
|
|
width: 0.5rem;
|
|
height: 1rem;
|
|
border-color: #ffc993;
|
|
border-radius: 2.0625rem / 2.625rem;
|
|
background-color: #ffc993;
|
|
z-index: 0;
|
|
}
|
|
|
|
#char-ear-right {
|
|
position: absolute;
|
|
top: 1rem;
|
|
left: 2.75rem;
|
|
width: 0.5rem;
|
|
height: 1rem;
|
|
border-color: #ffc993;
|
|
border-radius: 2.0625rem / 2.625rem;
|
|
background-color: #ffc993;
|
|
z-index: 0;
|
|
}
|
|
|
|
#char-hair {
|
|
width: 3rem;
|
|
height: 1rem;
|
|
background-color: #000000;
|
|
border-radius: 2.8125rem 2.8125rem;
|
|
}
|
|
|
|
#char-eyebrown-left {
|
|
position: absolute;
|
|
top: 1.25rem;
|
|
left: 0.5rem;
|
|
border-style: solid;
|
|
border-width: 0.3rem 0 0 0.7rem;
|
|
border-color: transparent transparent transparent #ca815e;
|
|
}
|
|
|
|
#char-eyebrown-right {
|
|
position: absolute;
|
|
top: 1.25rem;
|
|
left: 1.85rem;
|
|
border-style: solid;
|
|
border-width: 0 0 0.3rem 0.7rem;
|
|
border-color: transparent transparent #ca815e transparent;
|
|
}
|
|
|
|
#char-eye-left {
|
|
position: absolute;
|
|
top: 1.6rem;
|
|
left: 0.75rem;
|
|
width: 0.4rem;
|
|
height: 0.4rem;
|
|
border-radius: 50%;
|
|
background-color: #000000;
|
|
}
|
|
|
|
|
|
/*-----------------------Animate pupil--------------------------------*/
|
|
|
|
#char-pupil-left {
|
|
position: absolute;
|
|
top: 0.1rem;
|
|
left: 0.1rem;
|
|
width: 0.2rem;
|
|
height: 0.2rem;
|
|
border-radius: 50%;
|
|
background-color: #ffffff;
|
|
}
|
|
|
|
#char-pupil-left-move {
|
|
position: absolute;
|
|
top: 0.1rem;
|
|
left: -0.02rem;
|
|
width: 0.2rem;
|
|
height: 0.2rem;
|
|
border-radius: 50%;
|
|
background-color: #ffffff;
|
|
animation-name: pupil-move;
|
|
animation-duration: 0.2s;
|
|
}
|
|
|
|
@keyframes pupil-move {
|
|
0% {
|
|
left: 0.1rem;
|
|
}
|
|
50% {
|
|
left: 0rem;
|
|
}
|
|
100% {
|
|
left: -0.02rem;
|
|
}
|
|
}
|
|
|
|
#char-eye-right {
|
|
position: absolute;
|
|
top: 1.6rem;
|
|
left: 2rem;
|
|
width: 0.4rem;
|
|
height: 0.4rem;
|
|
border-radius: 50%;
|
|
background-color: #000000;
|
|
}
|
|
|
|
#char-pupil-right {
|
|
position: absolute;
|
|
top: 0.1rem;
|
|
left: 0.1rem;
|
|
width: 0.2rem;
|
|
height: 0.2rem;
|
|
border-radius: 50%;
|
|
background-color: #ffffff;
|
|
}
|
|
|
|
#char-pupil-right-move {
|
|
position: absolute;
|
|
top: 0.1rem;
|
|
left: -0.02rem;
|
|
width: 0.2rem;
|
|
height: 0.2rem;
|
|
border-radius: 50%;
|
|
background-color: #ffffff;
|
|
animation-name: pupil-move;
|
|
animation-duration: 0.2s;
|
|
}
|
|
|
|
|
|
/*-----------------------------------------------------------------*/
|
|
|
|
#char-mouth {
|
|
position: absolute;
|
|
top: 2.2rem;
|
|
left: 1.1rem;
|
|
width: 1rem;
|
|
height: 0.75rem;
|
|
border-radius: 0 0 5rem 5rem;
|
|
background-color: #000000;
|
|
}
|
|
|
|
#char-tooth-left {
|
|
position: absolute;
|
|
top: 0px;
|
|
left: 0.15rem;
|
|
width: 0.3rem;
|
|
height: 0.3rem;
|
|
background-color: #ffffff;
|
|
}
|
|
|
|
#char-tooth-right {
|
|
position: absolute;
|
|
top: 0px;
|
|
left: 0.55rem;
|
|
width: 0.3rem;
|
|
height: 0.3rem;
|
|
background-color: #ffffff;
|
|
}
|
|
|
|
#char-main-body {
|
|
position: absolute;
|
|
width: 3rem;
|
|
height: 3rem;
|
|
}
|
|
|
|
#char-body {
|
|
position: absolute;
|
|
top: 0rem;
|
|
left: 0.1rem;
|
|
width: 3rem;
|
|
height: 3rem;
|
|
border-radius: 1rem;
|
|
background-color: #632e90;
|
|
}
|
|
|
|
|
|
/*-----------------------Move Up Arms Animation--------------------------------*/
|
|
|
|
#char-arm-left {
|
|
position: absolute;
|
|
top: 0.2rem;
|
|
left: -0.3rem;
|
|
width: 0.5rem;
|
|
height: 1.5rem;
|
|
border-radius: 0.5rem 0.5rem;
|
|
background-color: #632e90;
|
|
transform: rotate(310deg);
|
|
z-index: 1;
|
|
}
|
|
|
|
#char-arm-left-up {
|
|
position: absolute;
|
|
top: 0.2rem;
|
|
left: -0.3rem;
|
|
width: 0.5rem;
|
|
height: 1.5rem;
|
|
border-radius: 0.5rem 0.5rem;
|
|
background-color: #632e90;
|
|
transform: rotate(310deg);
|
|
animation-name: arm-left-move-up;
|
|
animation-duration: 0.2s;
|
|
z-index: 1;
|
|
}
|
|
|
|
@keyframes arm-left-move-up {
|
|
0% {
|
|
transform: rotate(310deg);
|
|
}
|
|
50% {
|
|
transform: rotate(250deg);
|
|
}
|
|
100% {
|
|
transform: rotate(310deg)
|
|
}
|
|
}
|
|
|
|
#char-arm-right {
|
|
position: absolute;
|
|
top: 0.2rem;
|
|
left: 3rem;
|
|
width: 0.5rem;
|
|
height: 1.5rem;
|
|
border-radius: 0.5rem 0.5rem;
|
|
background-color: #632e90;
|
|
transform: rotate(50deg);
|
|
}
|
|
|
|
#char-arm-right-up {
|
|
position: absolute;
|
|
top: 0.2rem;
|
|
left: 3rem;
|
|
width: 0.5rem;
|
|
height: 1.5rem;
|
|
border-radius: 0.5rem 0.5rem;
|
|
background-color: #632e90;
|
|
transform: rotate(50deg);
|
|
animation-name: arm-right-move-up;
|
|
animation-duration: 0.2s;
|
|
}
|
|
|
|
@keyframes arm-right-move-up {
|
|
0% {
|
|
transform: rotate(50deg);
|
|
}
|
|
50% {
|
|
transform: rotate(110deg);
|
|
}
|
|
100% {
|
|
transform: rotate(50deg)
|
|
}
|
|
}
|
|
|
|
|
|
/*---------------------------------------------------------------------------*/
|
|
|
|
#char-forearm-left {
|
|
position: absolute;
|
|
top: 0rem;
|
|
width: 0.5rem;
|
|
height: 0.75rem;
|
|
border-radius: 0.5rem 0.5rem;
|
|
background-color: #ffc993;
|
|
}
|
|
|
|
#char-forearm-right {
|
|
position: absolute;
|
|
top: 0rem;
|
|
left: 0rem;
|
|
width: 0.5rem;
|
|
height: 0.75rem;
|
|
border-radius: 0.5rem 0.5rem;
|
|
background-color: #ffc993;
|
|
}
|
|
|
|
#char-lower {
|
|
position: absolute;
|
|
top: 2.75rem;
|
|
left: 0.1rem;
|
|
}
|
|
|
|
#char-pants-middle {
|
|
position: absolute;
|
|
width: 3rem;
|
|
height: 1rem;
|
|
top: 0rem;
|
|
/*sprawdzic!*/
|
|
left: 0rem;
|
|
border-radius: 0.4rem 0.4rem;
|
|
background-color: #e31e5e;
|
|
}
|
|
|
|
|
|
/*-----------------------Move Left Animation--------------------------------*/
|
|
|
|
#char-pants-left {
|
|
position: absolute;
|
|
top: 0rem;
|
|
left: 0rem;
|
|
width: 1.25rem;
|
|
height: 2rem;
|
|
border-radius: 0.4rem 0.4rem;
|
|
background-color: #e31e5e;
|
|
transform: rotate(0deg);
|
|
}
|
|
|
|
#move-left {
|
|
position: absolute;
|
|
top: 0rem;
|
|
left: 0rem;
|
|
width: 1.25rem;
|
|
height: 2rem;
|
|
border-radius: 0.4rem 0.4rem;
|
|
background-color: #e31e5e;
|
|
transform: rotate(0deg);
|
|
animation-name: move-left;
|
|
animation-duration: 0.2s;
|
|
}
|
|
|
|
@keyframes move-left {
|
|
0% {
|
|
transform: rotate(0deg);
|
|
}
|
|
50% {
|
|
transform: rotate(30deg);
|
|
}
|
|
100% {
|
|
transform: rotate(0deg)
|
|
}
|
|
}
|
|
|
|
|
|
/*---------------------------------------------------------------------------*/
|
|
|
|
|
|
/*-----------------------Move Right Animation--------------------------------*/
|
|
|
|
#char-pants-right {
|
|
position: absolute;
|
|
top: 0rem;
|
|
left: 1.75rem;
|
|
width: 1.25rem;
|
|
height: 2rem;
|
|
border-radius: 0.4rem 0.4rem;
|
|
background-color: #e31e5e;
|
|
}
|
|
|
|
#move-right {
|
|
position: absolute;
|
|
top: 0rem;
|
|
left: 1.75rem;
|
|
width: 1.25rem;
|
|
height: 2rem;
|
|
border-radius: 0.4rem 0.4rem;
|
|
background-color: #e31e5e;
|
|
transform: rotate(0deg);
|
|
animation-name: move-right;
|
|
animation-duration: 0.2s;
|
|
}
|
|
|
|
@keyframes move-right {
|
|
0% {
|
|
transform: rotate(0deg);
|
|
}
|
|
50% {
|
|
transform: rotate(-30deg);
|
|
}
|
|
100% {
|
|
transform: rotate(0deg)
|
|
}
|
|
}
|
|
|
|
|
|
/*---------------------------------------------------------------------------*/
|
|
|
|
#char-leg-left {
|
|
position: absolute;
|
|
top: 2rem;
|
|
left: 0.2rem;
|
|
width: 0.8rem;
|
|
height: 0.8rem;
|
|
background-color: #ffc993;
|
|
}
|
|
|
|
#char-leg-right {
|
|
position: absolute;
|
|
top: 2rem;
|
|
left: 0.2rem;
|
|
width: 0.8rem;
|
|
height: 0.8rem;
|
|
background-color: #ffc993;
|
|
}
|
|
|
|
#char-sock-left {
|
|
position: absolute;
|
|
top: 2.8rem;
|
|
left: 0.2rem;
|
|
width: 0.8rem;
|
|
height: 0.3rem;
|
|
background-color: #0072bb;
|
|
}
|
|
|
|
#char-sock-right {
|
|
position: absolute;
|
|
top: 2.8rem;
|
|
left: 0.2rem;
|
|
width: 0.8rem;
|
|
height: 0.3rem;
|
|
background-color: #0072bb;
|
|
}
|
|
|
|
#char-shoe-left {
|
|
position: absolute;
|
|
top: 3.1rem;
|
|
left: -0.4rem;
|
|
width: 1.4rem;
|
|
height: 0.5rem;
|
|
border-radius: 1.5rem 0 0 0;
|
|
background-color: #8e8e8e;
|
|
}
|
|
|
|
#char-shoe-right {
|
|
position: absolute;
|
|
top: 3.1rem;
|
|
left: 0.2rem;
|
|
width: 1.4rem;
|
|
height: 0.5rem;
|
|
border-radius: 0 1.5rem 0 0;
|
|
background-color: #8e8e8e;
|
|
}
|