Update static/style.css

This commit is contained in:
2025-12-12 16:13:00 -05:00
parent 21765f2b0b
commit 0b510393f4

View File

@@ -96,6 +96,10 @@ h3 {
font-size: 1em; font-size: 1em;
} }
.section .info-box {
margin-bottom: 20px;
}
.message { .message {
padding: 15px; padding: 15px;
background: #e8f5e9; background: #e8f5e9;
@@ -103,7 +107,6 @@ h3 {
border-radius: 5px; border-radius: 5px;
color: #2e7d32; color: #2e7d32;
display: none; display: none;
margin-top: 10px;
} }
.message.show { .message.show {
@@ -131,14 +134,16 @@ h3 {
} }
.stocks-list, .stocks-list,
.holdings-list { .holdings-list,
.companies-list {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
gap: 10px; gap: 10px;
} }
.stock-item, .stock-item,
.holding-item { .holding-item,
.company-item {
background: white; background: white;
padding: 12px; padding: 12px;
border-radius: 6px; border-radius: 6px;
@@ -152,6 +157,42 @@ h3 {
border-left-color: #764ba2; border-left-color: #764ba2;
} }
.company-item {
border-left-color: #2196F3;
padding: 15px;
gap: 20px;
}
.company-info {
flex: 1;
}
.company-name {
font-weight: bold;
color: #333;
font-size: 1.05em;
margin-bottom: 5px;
}
.company-details {
display: flex;
gap: 20px;
font-size: 0.9em;
color: #666;
}
.company-details span {
font-weight: 500;
}
.company-value {
font-weight: bold;
color: #2196F3;
font-size: 1.1em;
min-width: 100px;
text-align: right;
}
.stock-item span, .stock-item span,
.holding-item span { .holding-item span {
font-weight: bold; font-weight: bold;
@@ -236,6 +277,26 @@ button:hover {
background: #e68900; background: #e68900;
} }
.btn-buy-all {
background: #2196F3;
color: white;
flex: 1;
}
.btn-buy-all:hover {
background: #0b7dda;
}
.btn-sell-all {
background: #f57c00;
color: white;
flex: 1;
}
.btn-sell-all:hover {
background: #e65100;
}
.btn-next-day { .btn-next-day {
background: #667eea; background: #667eea;
color: white; color: white;
@@ -248,6 +309,27 @@ button:hover {
background: #764ba2; background: #764ba2;
} }
/* Charts Container */
.charts-container {
display: grid;
grid-template-columns: 1fr;
gap: 20px;
margin-top: 30px;
}
.chart-item {
background: #f8f9fa;
padding: 20px;
border-radius: 10px;
border: 1px solid #e0e0e0;
min-height: 400px;
position: relative;
}
.chart-item canvas {
max-height: 400px;
}
/* End Screen */ /* End Screen */
.end-stats { .end-stats {
text-align: center; text-align: center;
@@ -299,6 +381,126 @@ button:hover {
background: #764ba2; background: #764ba2;
} }
.btn-leaderboard {
background: #9c27b0;
color: white;
width: 100%;
margin-top: 10px;
}
.btn-leaderboard:hover {
background: #7b1fa2;
}
.btn-save-score {
background: #667eea;
color: white;
width: 100%;
}
.btn-save-score:hover {
background: #764ba2;
}
.btn-back {
background: #667eea;
color: white;
width: 100%;
margin-top: 20px;
padding: 12px;
}
.btn-back:hover {
background: #764ba2;
}
/* Leaderboard Screen */
.leaderboard-container {
background: #f8f9fa;
border-radius: 10px;
padding: 20px;
margin-bottom: 20px;
min-height: 300px;
}
.leaderboard-list {
display: flex;
flex-direction: column;
gap: 10px;
}
.leaderboard-entry {
background: white;
padding: 15px;
border-radius: 8px;
border-left: 4px solid #667eea;
display: flex;
justify-content: space-between;
align-items: center;
}
.leaderboard-entry.rank-1 {
border-left-color: #ffd700;
background: #fffbf0;
}
.leaderboard-entry.rank-2 {
border-left-color: #c0c0c0;
background: #f5f5f5;
}
.leaderboard-entry.rank-3 {
border-left-color: #cd7f32;
background: #f9f5f0;
}
.leaderboard-rank {
font-size: 1.5em;
font-weight: bold;
color: #667eea;
min-width: 40px;
text-align: center;
}
.leaderboard-info {
flex: 1;
margin: 0 15px;
}
.leaderboard-name {
font-weight: bold;
color: #333;
font-size: 1.1em;
}
.leaderboard-stats {
font-size: 0.9em;
color: #666;
margin-top: 5px;
}
.leaderboard-profit {
font-size: 1.2em;
font-weight: bold;
min-width: 120px;
text-align: right;
}
.leaderboard-profit.positive {
color: #4caf50;
}
.leaderboard-profit.negative {
color: #f44336;
}
.empty-message {
text-align: center;
padding: 40px 20px;
color: #999;
font-size: 1.1em;
}
/* Responsive */ /* Responsive */
@media (max-width: 768px) { @media (max-width: 768px) {
.container { .container {
@@ -313,6 +515,14 @@ button:hover {
grid-template-columns: 1fr; grid-template-columns: 1fr;
} }
.charts-container {
grid-template-columns: 1fr;
}
.chart-item {
min-height: 250px;
}
h1 { h1 {
font-size: 1.8em; font-size: 1.8em;
} }