Files
BreakEscape/public/break_escape/css/player_preferences.css

485 lines
8.1 KiB
CSS

/* Player Preferences Configuration Screen */
body {
font-family: 'Pixelify Sans', Arial, sans-serif;
background: #1a1a1a;
color: #fff;
margin: 0;
padding: 20px;
}
.configuration-container {
max-width: 1200px;
margin: 0 auto;
padding: 20px;
background: #2a2a2a;
border: 2px solid #00ff00;
}
h1 {
text-align: center;
color: #00ff00;
font-size: 32px;
margin-bottom: 20px;
text-transform: uppercase;
}
.config-prompt {
padding: 12px;
background: #fff3cd;
border: 2px solid #ffc107;
margin-bottom: 20px;
font-weight: bold;
color: #000;
text-align: center;
}
.selection-required {
color: #ff4444;
font-weight: bold;
margin: 8px 0;
text-align: center;
}
/* Form Groups */
.form-group {
margin-bottom: 24px;
}
.form-group label {
display: block;
color: #00ff00;
font-weight: bold;
margin-bottom: 8px;
font-size: 18px;
}
.form-control {
width: 100%;
max-width: 400px;
padding: 10px;
font-size: 16px;
border: 2px solid #00ff00;
background: #1a1a1a;
color: #00ff00;
font-family: 'Pixelify Sans', monospace;
}
.form-control:focus {
outline: none;
border-color: #00ff00;
box-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
}
.form-group small {
display: block;
color: #888;
margin-top: 4px;
font-size: 14px;
}
/* Sprite selection layout: preview (160x160) + grid of headshots */
.sprite-selection-layout {
display: flex;
flex-wrap: wrap;
gap: 24px;
align-items: flex-start;
}
/* 160x160 animated preview */
.sprite-preview-large {
flex-shrink: 0;
width: 160px;
text-align: center;
}
#sprite-preview-canvas-container {
width: 160px;
height: 160px;
margin: 0 auto;
border: 2px solid #00ff00;
background: #1a1a1a;
box-sizing: border-box;
}
#sprite-preview-canvas-container canvas {
display: block;
image-rendering: pixelated;
image-rendering: -moz-crisp-edges;
image-rendering: crisp-edges;
}
.preview-label {
margin-top: 8px;
font-size: 14px;
color: #00ff00;
font-weight: bold;
}
/* Grid of static headshots */
.sprite-grid {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 12px;
flex: 1;
min-width: 280px;
}
.sprite-card {
border: 2px solid #333;
padding: 8px;
text-align: center;
cursor: pointer;
background: #1a1a1a;
transition: border-color 0.2s, background-color 0.2s;
display: block;
position: relative;
}
.sprite-card:hover:not(.invalid) {
border-color: #00ff00;
background: #2a2a2a;
}
.sprite-card.selected {
border-color: #00ff00;
background: #003300;
box-shadow: 0 0 20px rgba(0, 255, 0, 0.5);
}
.sprite-card.invalid {
opacity: 0.5;
cursor: not-allowed;
background: #1a1a1a;
}
.sprite-card.invalid:hover {
border-color: #333;
background: #1a1a1a;
}
/* Headshot image - pixel-art compatible */
.sprite-headshot-container {
position: relative;
width: 64px;
height: 64px;
margin: 0 auto;
display: flex;
align-items: center;
justify-content: center;
overflow: hidden;
}
.sprite-headshot {
width: 64px;
height: 64px;
object-fit: contain;
display: block;
/* Pixel-art: no smoothing */
image-rendering: pixelated;
image-rendering: -moz-crisp-edges;
image-rendering: crisp-edges;
-ms-interpolation-mode: nearest-neighbor;
}
.headshot-fallback {
font-size: 10px;
color: #888;
text-align: center;
padding: 4px;
}
.headshot-fallback-hidden {
display: none;
}
.sprite-lock-overlay {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
background: rgba(0, 0, 0, 0.6);
pointer-events: none;
}
.lock-icon {
width: 24px;
height: 24px;
image-rendering: pixelated;
image-rendering: -moz-crisp-edges;
image-rendering: crisp-edges;
}
.sprite-radio {
display: none;
}
.sprite-info {
margin-top: 6px;
}
.sprite-label {
display: block;
font-size: 11px;
font-weight: bold;
color: #00ff00;
text-transform: capitalize;
word-wrap: break-word;
}
/* Form Actions */
.form-actions {
margin-top: 24px;
display: flex;
gap: 12px;
justify-content: center;
}
.btn {
border: 2px solid #00ff00;
padding: 12px 24px;
cursor: pointer;
background: #1a1a1a;
font-weight: bold;
font-size: 16px;
text-decoration: none;
display: inline-block;
transition: background-color 0.2s, color 0.2s;
font-family: 'Pixelify Sans', Arial, sans-serif;
text-transform: uppercase;
}
.btn:hover {
background: #00ff00;
color: #000;
}
.btn-primary {
background: #00ff00;
color: #000;
}
.btn-primary:hover {
background: #00cc00;
border-color: #00cc00;
}
.btn-secondary {
background: #555;
border-color: #777;
color: #fff;
}
.btn-secondary:hover {
background: #777;
border-color: #999;
}
/* Responsive Design */
@media (max-width: 768px) {
.sprite-selection-layout {
flex-direction: column;
align-items: center;
}
.sprite-grid {
grid-template-columns: repeat(4, 1fr);
gap: 10px;
width: 100%;
}
h1 {
font-size: 24px;
}
.form-control {
font-size: 14px;
}
}
@media (max-width: 480px) {
.sprite-grid {
grid-template-columns: repeat(3, 1fr);
gap: 8px;
}
.sprite-headshot-container {
width: 56px;
height: 56px;
}
.sprite-headshot {
width: 56px;
height: 56px;
}
.configuration-container {
padding: 10px;
}
h1 {
font-size: 20px;
}
.sprite-card {
padding: 6px;
}
.sprite-label {
font-size: 10px;
}
}
/* ===== MODAL OVERLAY STYLING ===== */
#player-preferences-modal {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.85);
z-index: 4000;
display: flex;
align-items: center;
justify-content: center;
padding: 20px;
}
.player-preferences-modal-content {
background: #2a2a2a;
border: 2px solid #00ff00;
max-width: 1000px;
width: 100%;
max-height: 90vh;
overflow-y: auto;
padding: 20px;
position: relative;
box-shadow: 0 0 40px rgba(0, 255, 0, 0.3);
}
.player-preferences-modal-content .modal-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 20px;
padding-bottom: 12px;
border-bottom: 2px solid #00ff00;
}
.player-preferences-modal-content .modal-header h2 {
margin: 0;
color: #00ff00;
font-size: 24px;
text-transform: uppercase;
font-family: 'Pixelify Sans', Arial, sans-serif;
}
.modal-close-button {
background: #ff0000;
color: #fff;
border: 2px solid #fff;
border-radius: 0;
width: 32px;
height: 32px;
font-size: 24px;
line-height: 1;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
padding: 0;
font-family: 'Press Start 2P', monospace;
}
.modal-close-button:hover {
background: #cc0000;
}
/* Modal-specific form actions */
.player-preferences-modal-content .modal-footer {
display: flex;
justify-content: flex-end;
gap: 12px;
margin-top: 20px;
padding-top: 20px;
border-top: 2px solid #333;
}
.player-preferences-modal-content .btn {
padding: 10px 20px;
font-size: 14px;
font-family: 'Pixelify Sans', Arial, sans-serif;
font-weight: bold;
border: 2px solid;
cursor: pointer;
text-transform: uppercase;
transition: all 0.2s;
}
.player-preferences-modal-content .btn-primary {
background: #00ff00;
color: #000;
border-color: #00ff00;
}
.player-preferences-modal-content .btn-primary:hover {
background: #00cc00;
box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}
.player-preferences-modal-content .btn-primary:disabled {
opacity: 0.5;
cursor: not-allowed;
}
.player-preferences-modal-content .btn-secondary {
background: #666;
color: #fff;
border-color: #666;
text-decoration: none;
display: inline-block;
}
.player-preferences-modal-content .btn-secondary:hover {
background: #888;
}
/* Responsive adjustments for modal */
@media (max-width: 768px) {
#player-preferences-modal {
padding: 10px;
}
.player-preferences-modal-content {
padding: 15px;
}
.player-preferences-modal-content .modal-header h2 {
font-size: 18px;
}
}
@media (max-width: 480px) {
.player-preferences-modal-content .modal-header h2 {
font-size: 14px;
}
.modal-close-button {
width: 28px;
height: 28px;
font-size: 20px;
}
}