css Copy code
/* Global Styles */
body {
background: #1a1a1a;
color: #fff;
font-family: 'Arial', sans-serif;
min-height: 100vh;
}
/* Header Styles */
.custom-header {
background: #2d2d2d;
box-shadow: 0 8px 24px rgba(0,0,0,0.12);
margin-bottom: 32px;
}
.nav-links {
display: flex;
justify-content: center;
gap: 30px;
padding: 20px 0;
}
.nav-links a {
text-decoration: none;
color: #fff;
font-weight: 500;
font-size: 18px;
padding: 10px 20px;
border-radius: 12px;
transition: all 0.3s ease;
background: #383838;
box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.nav-links a:hover {
background: #3498db;
transform: translateY(-2px);
box-shadow: 0 6px 16px rgba(52, 152, 219, 0.3);
}
/* Main Battle Section */
.battle-section {
background: #2d2d2d;
border-radius: 16px;
padding: 32px;
margin-bottom: 40px;
box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.emblem-container {
position: relative;
transition: all 0.3s ease;
}
.emblem {
width: 100%;
height: auto;
border-radius: 16px;
box-shadow: 0 8px 24px rgba(0,0,0,0.2);
transition: transform 0.3s ease;
}
.emblem:hover {
transform: scale(1.03);
}
/* Score Section */
.score-section {
background: #383838;
border-radius: 16px;
padding: 24px;
box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.score-display {
font-size: 4rem;
font-weight: bold;
text-shadow: 0 4px 8px rgba(0,0,0,0.3);
margin-bottom: 24px;
text-align: center;
}
.score-table {
width: 100%;
border-collapse: separate;
border-spacing: 0 8px;
}
.score-table-row {
background: #2d2d2d;
border-radius: 12px;
margin-bottom: 8px;
transition: transform 0.2s ease;
}
.score-table-row:hover {
transform: translateX(5px);
}
.score-table td {
padding: 12px 16px;
color: #fff;
border: none;
}
/* Admin Controls */
.admin-controls {
margin: 32px 0;
}
.btn {
padding: 10px 24px;
border-radius: 12px;
font-weight: 500;
transition: all 0.3s ease;
border: none;
box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.btn-primary {
background: #3498db;
color: white;
}
.btn-primary:hover {
background: #2980b9;
transform: translateY(-2px);
}
.btn-danger {
background: #e74c3c;
color: white;
}
.btn-danger:hover {
background: #c0392b;
transform: translateY(-2px);
}
.btn-outline-secondary {
background: #383838;
color: #fff;
}
.btn-outline-secondary:hover {
background: #454545;
color: #3498db;
transform: translateY(-2px);
}
/* Game Cards Grid */
.games-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 24px;
margin-top: 32px;
}
/* Existing Game Card Styles */
.game-card {
background: #2d2d2d;
border-radius: 16px;
box-shadow: 0 8px 24px rgba(0,0,0,0.12);
margin-bottom: 24px;
transition: all 0.3s ease;
overflow: hidden;
}
.game-card:hover {
transform: translateY(-4px);
box-shadow: 0 12px 32px rgba(0,0,0,0.18);
}
.game-content {
padding: 24px;
}
/* Battle Table */
.battle-table {
width: 100%;
border-collapse: separate;
border-spacing: 16px;
}
.player-cell {
width: 45%;
vertical-align: top;
}
.player-info {
display: flex;
flex-direction: column;
gap: 16px;
}
.hero-section, .unit-section {
position: relative;
text-align: center;
}
.hero-avatar {
width: 120px;
height: 120px;
border-radius: 12px;
object-fit: cover;
box-shadow: 0 4px 12px rgba(0,0,0,0.1);
transition: transform 0.2s ease;
}
.unit-avatar {
width: 120px;
height: 150px;
border-radius: 12px;
object-fit: cover;
box-shadow: 0 4px 12px rgba(0,0,0,0.1);
transition: transform 0.2s ease;
}
.hero-avatar:hover, .unit-avatar:hover {
transform: scale(1.05);
}
.place-badge {
position: absolute;
top: -10px;
right: -10px;
background: #383838;
color: #fff;
padding: 4px 12px;
border-radius: 20px;
font-weight: bold;
font-size: 1.2rem;
box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.place-badge.winner {
background: #28a745;
color: white;
}
.hero-name, .unit-name {
margin-top: 8px;
font-size: 0.9rem;
color: #fff;
}
.vs-cell {
width: 10%;
vertical-align: middle;
text-align: center;
}
.vs-badge {
background: linear-gradient(135deg, #e74c3c, #c0392b);
color: white;
padding: 8px 16px;
border-radius: 20px;
font-weight: bold;
font-size: 1.2rem;
box-shadow: 0 4px 12px rgba(231,76,60,0.3);
}
.game-footer {
margin-top: 16px;
padding-top: 16px;
border-top: 1px solid #383838;
text-align: right;
}
.timestamp {
color: #888;
font-size: 0.9rem;
}
.timestamp i {
margin-right: 4px;
}