103 lines
1.7 KiB
CSS
103 lines
1.7 KiB
CSS
.modal {
|
|
position: fixed;
|
|
margin: 0 auto;
|
|
height: auto;
|
|
background: var(--bg-color);
|
|
border-width: 8px;
|
|
border-image: url("/background/frame.png") 22 fill / auto space;
|
|
padding: 44px;
|
|
top: 50%;
|
|
left: 50%;
|
|
transform: translate(-50%, -50%);
|
|
& button {
|
|
font-size: 1.4rem;
|
|
margin: 0 11px;
|
|
}
|
|
& h2 {
|
|
margin-top: 0;
|
|
}
|
|
.loadingImage {
|
|
position: relative;
|
|
width: 240px;
|
|
height: 240px;
|
|
}
|
|
.loadingHamster {
|
|
position: absolute;
|
|
background-image: url("/loader/hamster.png");
|
|
width: 240px;
|
|
height: 240px;
|
|
animation: jump 0.2s ease infinite;
|
|
}
|
|
.loadingHamsterWheel {
|
|
position: absolute;
|
|
background-image: url("/loader/hamster_wheel.png");
|
|
width: 240px;
|
|
height: 240px;
|
|
animation: spin 3.5s linear infinite;
|
|
}
|
|
.loadingHamsterWheelStand {
|
|
position: absolute;
|
|
background-image: url("/loader/hamster_stand.png");
|
|
width: 240px;
|
|
height: 240px;
|
|
}
|
|
.loadingText {
|
|
text-align: center;
|
|
font-size: 1.1rem;
|
|
margin-bottom: 0;
|
|
}
|
|
}
|
|
.bossModal {
|
|
padding: 32px;
|
|
z-index: 3;
|
|
max-width: 100%;
|
|
width: 500px;
|
|
text-align: center;
|
|
margin-top: 50px;
|
|
.outcome {
|
|
font-size: 1.7rem;
|
|
}
|
|
.image {
|
|
position: relative;
|
|
margin: 0 auto;
|
|
top: 0;
|
|
&::after {
|
|
display: none;
|
|
}
|
|
}
|
|
& p {
|
|
margin: 0.5rem 0;
|
|
}
|
|
& button {
|
|
margin: 1rem;
|
|
}
|
|
.lost {
|
|
color: var(--accent-color);
|
|
}
|
|
.won {
|
|
color: var(--hover-color);
|
|
}
|
|
.lost,
|
|
.won {
|
|
font-size: 2rem;
|
|
}
|
|
}
|
|
|
|
@keyframes spin {
|
|
0% {
|
|
transform: rotate(0deg);
|
|
}
|
|
100% {
|
|
transform: rotate(360deg);
|
|
}
|
|
}
|
|
@keyframes jump {
|
|
0%,
|
|
100% {
|
|
transform: translate(0, 0);
|
|
}
|
|
50% {
|
|
transform: translate(0, -10px);
|
|
}
|
|
}
|