394 lines
7.4 KiB
CSS
394 lines
7.4 KiB
CSS
/* === VARIABLES CSS === */
|
|
:root {
|
|
--primary-color: #3B82F6;
|
|
--secondary-color: #10B981;
|
|
--accent-color: #F59E0B;
|
|
--error-color: #EF4444;
|
|
--success-color: #22C55E;
|
|
--neutral-color: #6B7280;
|
|
--background-color: #F8FAFC;
|
|
--background: #F8FAFC;
|
|
--card-background: #FFFFFF;
|
|
--text-primary: #1F2937;
|
|
--text-secondary: #6B7280;
|
|
--border-color: #E5E7EB;
|
|
--primary-light: #EBF4FF;
|
|
--shadow-light: 0 2px 4px rgba(0, 0, 0, 0.05);
|
|
--border-radius: 12px;
|
|
--shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
|
|
--shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
|
|
--transition: all 0.3s ease;
|
|
}
|
|
|
|
/* === RESET ET BASE === */
|
|
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
body {
|
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
|
|
font-size: 16px;
|
|
line-height: 1.6;
|
|
color: var(--text-primary);
|
|
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
|
min-height: 100vh;
|
|
overflow-x: hidden;
|
|
}
|
|
|
|
/* === LAYOUT PRINCIPAL === */
|
|
.container {
|
|
max-width: 1400px;
|
|
margin: 0 auto;
|
|
padding: 20px;
|
|
min-height: 100vh;
|
|
position: relative;
|
|
}
|
|
|
|
/* === PAGES === */
|
|
.page {
|
|
display: none;
|
|
animation: fadeIn 0.4s ease-in-out;
|
|
background: var(--background-color);
|
|
border-radius: var(--border-radius);
|
|
box-shadow: var(--shadow-lg);
|
|
padding: 30px;
|
|
margin-top: 20px;
|
|
}
|
|
|
|
.page.active {
|
|
display: block;
|
|
}
|
|
|
|
@keyframes fadeIn {
|
|
from { opacity: 0; transform: translateY(20px); }
|
|
to { opacity: 1; transform: translateY(0); }
|
|
}
|
|
|
|
/* === HERO SECTION === */
|
|
.hero {
|
|
text-align: center;
|
|
margin-bottom: 40px;
|
|
padding: 40px 20px;
|
|
}
|
|
|
|
.hero h1 {
|
|
font-size: 3rem;
|
|
font-weight: 700;
|
|
color: var(--primary-color);
|
|
margin-bottom: 15px;
|
|
text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
|
|
}
|
|
|
|
.hero p {
|
|
font-size: 1.3rem;
|
|
color: var(--text-secondary);
|
|
font-weight: 300;
|
|
}
|
|
|
|
/* === PAGE HEADERS === */
|
|
.page-header {
|
|
text-align: center;
|
|
margin-bottom: 40px;
|
|
}
|
|
|
|
.page-header h2 {
|
|
font-size: 2.5rem;
|
|
color: var(--primary-color);
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.page-header p {
|
|
font-size: 1.1rem;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
/* === CARDS SYSTEM === */
|
|
.main-options {
|
|
display: grid;
|
|
gap: 20px;
|
|
max-width: 600px;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
.cards-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
|
|
gap: 25px;
|
|
margin-top: 30px;
|
|
}
|
|
|
|
.option-card, .game-card, .level-card {
|
|
background: var(--card-background);
|
|
border: 3px solid transparent;
|
|
border-radius: var(--border-radius);
|
|
padding: 30px 25px;
|
|
text-align: center;
|
|
cursor: pointer;
|
|
transition: var(--transition);
|
|
box-shadow: var(--shadow);
|
|
position: relative;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.option-card:hover, .game-card:hover, .level-card:hover {
|
|
transform: translateY(-5px);
|
|
box-shadow: var(--shadow-lg);
|
|
border-color: var(--primary-color);
|
|
}
|
|
|
|
.option-card.primary {
|
|
background: linear-gradient(135deg, var(--primary-color), #2563EB);
|
|
color: white;
|
|
font-size: 1.2rem;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.option-card.primary:hover {
|
|
background: linear-gradient(135deg, #2563EB, var(--primary-color));
|
|
border-color: white;
|
|
}
|
|
|
|
.option-card.secondary {
|
|
border: 2px solid var(--neutral-color);
|
|
}
|
|
|
|
.option-card span {
|
|
display: block;
|
|
margin-top: 10px;
|
|
}
|
|
|
|
.option-card small {
|
|
display: block;
|
|
margin-top: 8px;
|
|
font-size: 0.85rem;
|
|
opacity: 0.7;
|
|
}
|
|
|
|
/* === GAME CARDS === */
|
|
.game-card {
|
|
min-height: 180px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
border: 2px solid #e5e7eb;
|
|
}
|
|
|
|
.game-card:hover {
|
|
border-color: var(--primary-color);
|
|
background: linear-gradient(135deg, #f8fafc, #f1f5f9);
|
|
}
|
|
|
|
.game-card .icon {
|
|
font-size: 3rem;
|
|
margin-bottom: 15px;
|
|
}
|
|
|
|
.game-card .title {
|
|
font-size: 1.4rem;
|
|
font-weight: 600;
|
|
color: var(--text-primary);
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.game-card .description {
|
|
font-size: 0.95rem;
|
|
color: var(--text-secondary);
|
|
line-height: 1.4;
|
|
}
|
|
|
|
/* === LEVEL CARDS === */
|
|
.level-card {
|
|
min-height: 160px;
|
|
border: 2px solid #e5e7eb;
|
|
}
|
|
|
|
.level-card:hover {
|
|
border-color: var(--secondary-color);
|
|
background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
|
|
}
|
|
|
|
.level-card .icon {
|
|
font-size: 2.5rem;
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.level-card .title {
|
|
font-size: 1.2rem;
|
|
font-weight: 600;
|
|
color: var(--text-primary);
|
|
margin-bottom: 6px;
|
|
}
|
|
|
|
.level-card .description {
|
|
font-size: 0.9rem;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
/* === BOUTONS === */
|
|
button {
|
|
border: none;
|
|
outline: none;
|
|
cursor: pointer;
|
|
font-family: inherit;
|
|
font-size: inherit;
|
|
transition: var(--transition);
|
|
border-radius: var(--border-radius);
|
|
padding: 12px 24px;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.back-btn {
|
|
background: var(--neutral-color);
|
|
color: white;
|
|
padding: 10px 20px;
|
|
border-radius: 25px;
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
.back-btn:hover {
|
|
background: #4B5563;
|
|
transform: translateX(-2px);
|
|
}
|
|
|
|
/* === MODAL === */
|
|
.modal {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
background: rgba(0, 0, 0, 0.5);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
z-index: 1000;
|
|
opacity: 0;
|
|
visibility: hidden;
|
|
transition: var(--transition);
|
|
}
|
|
|
|
.modal.show {
|
|
opacity: 1;
|
|
visibility: visible;
|
|
}
|
|
|
|
.modal-content {
|
|
background: var(--card-background);
|
|
padding: 40px;
|
|
border-radius: var(--border-radius);
|
|
box-shadow: var(--shadow-lg);
|
|
text-align: center;
|
|
max-width: 400px;
|
|
margin: 20px;
|
|
transform: scale(0.9);
|
|
transition: var(--transition);
|
|
}
|
|
|
|
.modal.show .modal-content {
|
|
transform: scale(1);
|
|
}
|
|
|
|
.modal-content h3 {
|
|
color: var(--primary-color);
|
|
margin-bottom: 15px;
|
|
font-size: 1.5rem;
|
|
}
|
|
|
|
.modal-content p {
|
|
color: var(--text-secondary);
|
|
margin-bottom: 25px;
|
|
}
|
|
|
|
.modal-content button {
|
|
background: var(--primary-color);
|
|
color: white;
|
|
padding: 12px 30px;
|
|
border-radius: 25px;
|
|
}
|
|
|
|
.modal-content button:hover {
|
|
background: #2563EB;
|
|
}
|
|
|
|
/* === LOADING === */
|
|
.loading {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
background: rgba(255, 255, 255, 0.9);
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
z-index: 999;
|
|
opacity: 0;
|
|
visibility: hidden;
|
|
transition: var(--transition);
|
|
}
|
|
|
|
.loading.show {
|
|
opacity: 1;
|
|
visibility: visible;
|
|
}
|
|
|
|
.spinner {
|
|
width: 50px;
|
|
height: 50px;
|
|
border: 4px solid #f3f3f3;
|
|
border-top: 4px solid var(--primary-color);
|
|
border-radius: 50%;
|
|
animation: spin 1s linear infinite;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
@keyframes spin {
|
|
0% { transform: rotate(0deg); }
|
|
100% { transform: rotate(360deg); }
|
|
}
|
|
|
|
/* === RESPONSIVE === */
|
|
@media (max-width: 768px) {
|
|
.container {
|
|
padding: 15px;
|
|
}
|
|
|
|
.hero h1 {
|
|
font-size: 2.2rem;
|
|
}
|
|
|
|
.hero p {
|
|
font-size: 1.1rem;
|
|
}
|
|
|
|
.page-header h2 {
|
|
font-size: 2rem;
|
|
}
|
|
|
|
.cards-grid {
|
|
grid-template-columns: 1fr;
|
|
gap: 20px;
|
|
}
|
|
|
|
.page {
|
|
padding: 20px;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 480px) {
|
|
.hero h1 {
|
|
font-size: 1.8rem;
|
|
}
|
|
|
|
.option-card, .game-card, .level-card {
|
|
padding: 20px 15px;
|
|
}
|
|
|
|
.modal-content {
|
|
padding: 30px 20px;
|
|
margin: 15px;
|
|
}
|
|
} |