mirror of
https://github.com/cliffe/BreakEscape.git
synced 2026-02-20 13:50:46 +00:00
229 lines
4.7 KiB
CSS
229 lines
4.7 KiB
CSS
/* Container Minigame Styles */
|
|
|
|
.container-minigame {
|
|
display: flex;
|
|
flex-direction: column;
|
|
height: 100%;
|
|
padding: 20px;
|
|
gap: 20px;
|
|
}
|
|
|
|
.container-image-section {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 20px;
|
|
padding: 20px;
|
|
background: rgba(255, 255, 255, 0.05);
|
|
border-radius: 10px;
|
|
border: 1px solid rgba(255, 255, 255, 0.1);
|
|
}
|
|
|
|
.container-image {
|
|
width: 80px;
|
|
height: 80px;
|
|
object-fit: contain;
|
|
image-rendering: pixelated;
|
|
image-rendering: -moz-crisp-edges;
|
|
image-rendering: crisp-edges;
|
|
border: 2px solid rgba(255, 255, 255, 0.3);
|
|
border-radius: 5px;
|
|
background: rgba(0, 0, 0, 0.3);
|
|
}
|
|
|
|
.container-info h4 {
|
|
font-family: 'Press Start 2P', monospace;
|
|
font-size: 14px;
|
|
margin: 0 0 10px 0;
|
|
color: #3498db;
|
|
}
|
|
|
|
.container-info p {
|
|
font-family: 'VT323', monospace;
|
|
font-size: 16px;
|
|
margin: 0;
|
|
color: #ecf0f1;
|
|
line-height: 1.4;
|
|
}
|
|
|
|
.container-contents-section {
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 15px;
|
|
}
|
|
|
|
.container-contents-section h4 {
|
|
font-family: 'Press Start 2P', monospace;
|
|
font-size: 12px;
|
|
margin: 0;
|
|
color: #e74c3c;
|
|
text-align: center;
|
|
}
|
|
|
|
.container-contents-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
|
|
gap: 10px;
|
|
padding: 15px;
|
|
background: rgba(0, 0, 0, 0.3);
|
|
border-radius: 10px;
|
|
border: 1px solid rgba(255, 255, 255, 0.1);
|
|
min-height: 120px;
|
|
max-height: 200px;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.container-contents-grid::-webkit-scrollbar {
|
|
width: 8px;
|
|
}
|
|
|
|
.container-contents-grid::-webkit-scrollbar-track {
|
|
background: rgba(255, 255, 255, 0.1);
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.container-contents-grid::-webkit-scrollbar-thumb {
|
|
background: rgba(255, 255, 255, 0.3);
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.container-contents-grid::-webkit-scrollbar-thumb:hover {
|
|
background: rgba(255, 255, 255, 0.5);
|
|
}
|
|
|
|
.container-content-slot {
|
|
position: relative;
|
|
width: 60px;
|
|
height: 60px;
|
|
border: 1px solid rgba(255, 255, 255, 0.3);
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
background: rgb(149 157 216 / 80%);
|
|
border-radius: 5px;
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.container-content-slot:hover {
|
|
border-color: rgba(255, 255, 255, 0.6);
|
|
background: rgb(149 157 216 / 90%);
|
|
transform: scale(1.05);
|
|
}
|
|
|
|
.container-content-item {
|
|
max-width: 48px;
|
|
max-height: 48px;
|
|
image-rendering: pixelated;
|
|
image-rendering: -moz-crisp-edges;
|
|
image-rendering: crisp-edges;
|
|
transition: transform 0.2s ease;
|
|
}
|
|
|
|
.container-content-item:hover {
|
|
transform: scale(1.1);
|
|
}
|
|
|
|
.container-content-tooltip {
|
|
position: absolute;
|
|
bottom: 100%;
|
|
left: 50%;
|
|
transform: translateX(-50%);
|
|
color: white;
|
|
padding: 4px 8px;
|
|
border-radius: 4px;
|
|
font-size: 12px;
|
|
white-space: nowrap;
|
|
pointer-events: none;
|
|
opacity: 0;
|
|
transition: opacity 0.2s;
|
|
background: rgba(0, 0, 0, 0.8);
|
|
border: 1px solid rgba(255, 255, 255, 0.3);
|
|
font-family: 'VT323', monospace;
|
|
z-index: 1000;
|
|
}
|
|
|
|
.container-content-slot:hover .container-content-tooltip {
|
|
opacity: 1;
|
|
}
|
|
|
|
.empty-contents {
|
|
grid-column: 1 / -1;
|
|
text-align: center;
|
|
color: #95a5a6;
|
|
font-family: 'VT323', monospace;
|
|
font-size: 16px;
|
|
margin: 20px 0;
|
|
font-style: italic;
|
|
}
|
|
|
|
.container-actions {
|
|
display: flex;
|
|
justify-content: center;
|
|
gap: 15px;
|
|
padding-top: 10px;
|
|
border-top: 1px solid rgba(255, 255, 255, 0.1);
|
|
}
|
|
|
|
.container-actions .minigame-button {
|
|
min-width: 120px;
|
|
}
|
|
|
|
.container-message {
|
|
position: fixed;
|
|
top: 20px;
|
|
left: 50%;
|
|
transform: translateX(-50%);
|
|
padding: 10px 20px;
|
|
border-radius: 5px;
|
|
font-family: 'VT323', monospace;
|
|
font-size: 14px;
|
|
z-index: 10001;
|
|
animation: slideDown 0.3s ease;
|
|
}
|
|
|
|
.container-message-success {
|
|
background: rgba(46, 204, 113, 0.9);
|
|
color: white;
|
|
border: 1px solid #27ae60;
|
|
}
|
|
|
|
.container-message-error {
|
|
background: rgba(231, 76, 60, 0.9);
|
|
color: white;
|
|
border: 1px solid #c0392b;
|
|
}
|
|
|
|
@keyframes slideDown {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateX(-50%) translateY(-20px);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: translateX(-50%) translateY(0);
|
|
}
|
|
}
|
|
|
|
/* Responsive adjustments */
|
|
@media (max-width: 768px) {
|
|
.container-image-section {
|
|
flex-direction: column;
|
|
text-align: center;
|
|
}
|
|
|
|
.container-contents-grid {
|
|
grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
|
|
gap: 8px;
|
|
}
|
|
|
|
.container-content-slot {
|
|
width: 50px;
|
|
height: 50px;
|
|
}
|
|
|
|
.container-content-item {
|
|
max-width: 40px;
|
|
max-height: 40px;
|
|
}
|
|
}
|