body { | |
font-family: Arial, sans-serif; | |
display: flex; | |
flex-direction: column; | |
align-items: center; | |
height: 100vh; | |
margin: 0; | |
background-color: #f0f0f0; | |
} | |
#stats { | |
display: flex; | |
justify-content: space-between; | |
width: 100%; | |
padding: 10px; | |
background-color: #333; | |
color: white; | |
} | |
#game-area { | |
flex-grow: 1; | |
display: flex; | |
flex-direction: column; | |
justify-content: center; | |
align-items: center; | |
} | |
#coin { | |
width: 100px; | |
height: 100px; | |
background-color: #ffd700; | |
border-radius: 50%; | |
cursor: pointer; | |
display: flex; | |
justify-content: center; | |
align-items: center; | |
font-size: 24px; | |
font-weight: bold; | |
transition: transform 0.3s ease-in-out; | |
} | |
#coin:hover { | |
transform: scale(1.1); | |
} | |
#shop { | |
display: flex; | |
justify-content: center; | |
align-items: center; | |
width: 100%; | |
padding: 10px; | |
background-color: #ddd; | |
} | |
.shop-item { | |
display: flex; | |
flex-direction: column; | |
align-items: center; | |
margin: 0 10px; | |
} | |
.coin-icon { | |
width: 50px; | |
height: 50px; | |
border-radius: 50%; | |
margin-bottom: 5px; | |
cursor: pointer; | |
border: 2px solid transparent; | |
} | |
.coin-icon.selected { | |
border-color: #333; | |
} | |
#mint-button { | |
background-color: #4CAF50; | |
border: none; | |
color: white; | |
padding: 10px 20px; | |
text-align: center; | |
text-decoration: none; | |
display: inline-block; | |
font-size: 16px; | |
margin: 4px 2px; | |
cursor: pointer; | |
border-radius: 5px; | |
} | |
#game-over { | |
position: fixed; | |
top: 0; | |
left: 0; | |
width: 100%; | |
height: 100%; | |
background-color: rgba(0, 0, 0, 0.8); | |
display: flex; | |
flex-direction: column; | |
justify-content: center; | |
align-items: center; | |
color: white; | |
z-index: 1000; | |
} | |
#leaderboard { | |
margin-top: 20px; | |
width: 300px; | |
} | |
#leaderboard table { | |
width: 100%; | |
border-collapse: collapse; | |
} | |
#leaderboard th, #leaderboard td { | |
border: 1px solid white; | |
padding: 5px; | |
text-align: center; | |
} | |
#initials-form { | |
margin-top: 20px; | |
} | |
#initials-input { | |
padding: 5px; | |
font-size: 16px; | |
} | |
#submit-score, #play-again { | |
background-color: #4CAF50; | |
border: none; | |
color: white; | |
padding: 10px 20px; | |
text-align: center; | |
text-decoration: none; | |
display: inline-block; | |
font-size: 16px; | |
margin: 4px 2px; | |
cursor: pointer; | |
border-radius: 5px; | |
} |