Improve styling
This commit is contained in:
@@ -3,7 +3,8 @@ html, body {
|
||||
padding: 0;
|
||||
height: 100%;
|
||||
overflow-x: hidden;
|
||||
background-color: #B3C0CA;
|
||||
background: linear-gradient(180deg, #8fc9f2 0%, #eef8ff 100%);
|
||||
font-family: "Trebuchet MS", Verdana, sans-serif;
|
||||
}
|
||||
|
||||
#welcome-screen {
|
||||
@@ -194,7 +195,7 @@ p {
|
||||
width: 100%;
|
||||
height: 100vh;
|
||||
overflow: hidden;
|
||||
background-color: #B3C0CA;
|
||||
background: #8fc9f2;
|
||||
}
|
||||
|
||||
#game-canvas {
|
||||
@@ -245,18 +246,31 @@ p {
|
||||
}
|
||||
|
||||
#block-info {
|
||||
background: rgba(255, 255, 255, 0.9);
|
||||
border: 2px solid gold;
|
||||
border-radius: 10px;
|
||||
padding: 10px;
|
||||
width: 250px;
|
||||
background: rgba(248, 252, 255, 0.94);
|
||||
border: 1px solid rgba(255, 255, 255, 0.72);
|
||||
border-radius: 22px;
|
||||
padding: 18px;
|
||||
width: 280px;
|
||||
text-align: center;
|
||||
font-family: Arial, sans-serif;
|
||||
color: black;
|
||||
font-family: "Trebuchet MS", Verdana, sans-serif;
|
||||
color: #102033;
|
||||
font-size: 14px;
|
||||
z-index: 10;
|
||||
animation: fade-in 0.5s ease-out;
|
||||
position: absolute;
|
||||
box-shadow: 0 24px 60px rgba(9, 24, 43, 0.24);
|
||||
backdrop-filter: blur(12px);
|
||||
}
|
||||
|
||||
#block-info h1 {
|
||||
margin: 0 0 8px;
|
||||
color: #102033;
|
||||
}
|
||||
|
||||
#block-info p {
|
||||
margin: 0;
|
||||
color: #496071;
|
||||
line-height: 1.45;
|
||||
}
|
||||
|
||||
@keyframes fade-in {
|
||||
@@ -305,12 +319,20 @@ p {
|
||||
|
||||
button {
|
||||
margin-top: 10px;
|
||||
padding: 5px 10px;
|
||||
padding: 10px 16px;
|
||||
color: white;
|
||||
background-color: darkgoldenrod;
|
||||
background: #102033;
|
||||
border: none;
|
||||
cursor: pointer;
|
||||
border-radius: 5px;
|
||||
border-radius: 14px;
|
||||
box-shadow: 0 10px 24px rgba(9, 24, 43, 0.16);
|
||||
font-family: inherit;
|
||||
transition: transform 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
|
||||
}
|
||||
|
||||
button:hover {
|
||||
transform: translateY(-1px);
|
||||
box-shadow: 0 14px 30px rgba(9, 24, 43, 0.22);
|
||||
}
|
||||
|
||||
#turn-device-sideways {
|
||||
@@ -319,19 +341,21 @@ button {
|
||||
|
||||
#mobile-controls {
|
||||
position: fixed;
|
||||
bottom: 10px;
|
||||
bottom: 14px;
|
||||
width: 100%;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
gap: 10px;
|
||||
z-index: 20;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
#interact-character-button {
|
||||
position: absolute;
|
||||
bottom: 60px;
|
||||
bottom: 66px;
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
background-color: blue;
|
||||
background: #2f7dd3;
|
||||
}
|
||||
|
||||
#interact-button,
|
||||
@@ -339,13 +363,17 @@ button {
|
||||
#jump-button,
|
||||
#move-right-button {
|
||||
display: inline-block;
|
||||
padding: 10px 20px;
|
||||
padding: 12px 18px;
|
||||
font-size: 16px;
|
||||
background-color: blue;
|
||||
background: rgba(16, 32, 51, 0.88);
|
||||
border: 1px solid rgba(255, 255, 255, 0.24);
|
||||
backdrop-filter: blur(10px);
|
||||
pointer-events: auto;
|
||||
}
|
||||
|
||||
#mobile-controls button:active {
|
||||
background-color: #0056b3;
|
||||
background-color: #2f7dd3;
|
||||
transform: translateY(1px) scale(0.98);
|
||||
}
|
||||
|
||||
#npc-dialog {
|
||||
@@ -355,13 +383,25 @@ button {
|
||||
transform: translateX(-50%);
|
||||
width: 80%;
|
||||
max-width: 600px;
|
||||
background-color: rgba(255, 255, 255, 0.9);
|
||||
padding: 20px;
|
||||
border-radius: 10px;
|
||||
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
|
||||
background: rgba(248, 252, 255, 0.94);
|
||||
padding: 24px;
|
||||
border-radius: 26px;
|
||||
border: 1px solid rgba(255, 255, 255, 0.72);
|
||||
box-shadow: 0 30px 80px rgba(9, 24, 43, 0.28);
|
||||
backdrop-filter: blur(16px);
|
||||
z-index: 1000;
|
||||
}
|
||||
|
||||
#npc-dialog p {
|
||||
color: #102033;
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
#npc-dialog button {
|
||||
width: 100%;
|
||||
background: #102033;
|
||||
}
|
||||
|
||||
@media (min-width: 768px) {
|
||||
#mobile-controls {
|
||||
display: none;
|
||||
@@ -435,4 +475,4 @@ button {
|
||||
|
||||
.dark-mode #welcome-screen {
|
||||
background-color: #333;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user