interstellar_website/secret/guessMyNumber/styles.css

190 lines
3.4 KiB
CSS
Raw Normal View History

2025-01-04 21:00:39 +01:00
/* Base Reset */
2025-01-05 01:16:38 +01:00
body,
html {
2025-01-04 21:00:39 +01:00
margin: 0;
padding: 0;
font-family: monospace;
background-color: #3a2d56;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
}
/* GameBoy Layout */
.gameboy {
background-color: #5f4c82; /* Game Boy Color purple shell */
width: 441px;
height: 735px;
border-radius: 20px;
2025-01-05 01:16:38 +01:00
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.6);
2025-01-04 21:00:39 +01:00
display: flex;
flex-direction: column;
align-items: center;
padding: 10px;
position: relative;
}
2025-01-05 01:16:38 +01:00
@media(max-width: 768px) {
2025-01-04 21:00:39 +01:00
.gameboy {
width: 100vw;
height: 100vh;
border-radius: 0;
}
}
/* Screen */
.screen {
background-color: #306230; /* Game Boy green screen */
border: 4px solid #0f380f;
width: 90%;
height: 55%;
margin-top: 20px;
border-radius: 10px;
display: flex;
justify-content: center;
align-items: center;
2025-01-05 01:16:38 +01:00
box-shadow: inset 0 4px 8px rgba(0, 0, 0, 0.5);
2025-01-04 21:00:39 +01:00
overflow: hidden;
}
.game {
text-align: center;
width: 90%;
}
/* Titles */
h1 {
2025-01-05 01:16:38 +01:00
font-size: 2rem; /* Increased font size */
2025-01-04 21:00:39 +01:00
margin-bottom: 10px;
text-transform: uppercase;
}
/* Guess Display */
.guess-display {
background-color: #9bbc0f;
color: #0f380f;
border: 2px solid #0f380f;
2025-01-05 01:16:38 +01:00
font-size: 2rem; /* Increased font size */
width: 80px; /* Increased width */
2025-01-04 21:00:39 +01:00
text-align: center;
margin: 10px auto;
2025-01-05 01:16:38 +01:00
padding: 10px; /* Increased padding */
2025-01-04 21:00:39 +01:00
border-radius: 4px;
}
/* Messages */
2025-01-05 01:16:38 +01:00
.message,
.score,
.highScore {
font-size: 1.4rem; /* Increased font size */
2025-01-04 21:00:39 +01:00
margin: 5px 0;
}
.description,
2025-01-05 01:16:38 +01:00
.description p {
2025-01-04 21:00:39 +01:00
font-size: 1.2rem;
margin: 0 auto;
padding: 0 auto;
}
/* Controls Section */
.controls {
margin-top: 20px;
display: flex;
justify-content: space-between;
width: 80%;
align-items: center;
}
/* D-Pad */
.dpad {
position: relative;
2025-01-05 01:16:38 +01:00
width: 120px; /* Increased size */
height: 120px; /* Increased size */
2025-01-04 21:00:39 +01:00
}
/* Base Styling for D-Pad Buttons */
.dpad-btn {
background-color: #0f380f;
color: #9bbc0f;
2025-01-04 21:44:30 +01:00
border: none;
2025-01-04 21:00:39 +01:00
border-radius: 5px;
position: absolute;
2025-01-04 21:44:30 +01:00
width: 42px;
height: 42px;
2025-01-05 01:16:38 +01:00
font-size: 1.5rem; /* Increased size */
2025-01-04 21:00:39 +01:00
display: flex;
justify-content: center;
align-items: center;
cursor: pointer;
2025-01-04 21:44:30 +01:00
z-index: 1;
2025-01-04 21:00:39 +01:00
}
.dpad-btn.up {
top: 0;
left: 50%;
transform: translateX(-50%);
}
.dpad-btn.down {
bottom: 0;
left: 50%;
transform: translateX(-50%);
}
.dpad-btn.left {
top: 50%;
left: 0;
transform: translateY(-50%);
}
.dpad-btn.right {
top: 50%;
right: 0;
transform: translateY(-50%);
}
/* D-Pad Center to Connect Buttons */
.dpad-center {
background-color: #0f380f;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 40px;
height: 40px;
border: 2px solid #9cbc0f00;
2025-01-04 21:44:30 +01:00
z-index: 0;
2025-01-04 21:00:39 +01:00
border-radius: 5px;
}
/* A and B Buttons */
.action-buttons {
display: flex;
flex-direction: column;
justify-content: space-between;
2025-01-05 01:16:38 +01:00
height: 140px; /* Increased height */
2025-01-04 21:00:39 +01:00
}
.btn {
background-color: #0f380f;
color: #9bbc0f;
border: 2px solid #9bbc0f;
border-radius: 50%;
width: 60px;
height: 60px;
2025-01-05 01:16:38 +01:00
font-size: 1.8rem; /* Increased font size */
2025-01-04 21:00:39 +01:00
cursor: pointer;
transition: transform 0.1s, background-color 0.2s;
}
.btn:hover {
background-color: #9bbc0f;
color: #0f380f;
}
.btn:active {
transform: scale(0.9);
}