📄 Source: style.css
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
/* Video Background - Same as before */
.video-background {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: -1;
overflow: hidden;
}
.video-background video {
position: absolute;
top: 50%;
left: 50%;
min-width: 100%;
min-height: 100%;
width: auto;
height: auto;
transform: translate(-50%, -50%);
object-fit: cover;
}
/* Optional dark overlay for text readability */
.video-background::after {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.4);
z-index: 1;
}
/* Content Styling */
.content {
position: relative;
z-index: 2;
color: white;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
max-width: 1200px;
margin: 0 auto;
padding: 40px 20px;
min-height: 100vh;
display: flex;
flex-direction: column;
justify-content: space-between;
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}
header {
text-align: center;
margin-bottom: 60px;
}
header h1 {
font-size: 3rem;
margin-bottom: 10px;
}
.greeting {
font-size: 1.5rem;
opacity: 0.9;
}
main {
display: flex;
flex-wrap: wrap;
gap: 30px;
justify-content: center;
margin-bottom: 60px;
}
.card {
background: rgba(0, 0, 0, 0.6);
backdrop-filter: blur(10px);
border-radius: 15px;
padding: 25px;
min-width: 250px;
flex: 1;
border: 1px solid rgba(255, 255, 255, 0.2);
transition: transform 0.3s ease;
}
.card:hover {
transform: translateY(-5px);
background: rgba(0, 0, 0, 0.7);
}
.card h2, .card h3 {
margin-bottom: 15px;
border-bottom: 2px solid rgba(255, 255, 255, 0.3);
display: inline-block;
padding-bottom: 5px;
}
.card ul {
list-style: none;
}
.card li {
margin: 10px 0;
padding-left: 20px;
position: relative;
}
.card li::before {
content: "▶";
position: absolute;
left: 0;
color: #5a9e4e;
}
nav a {
color: white;
text-decoration: none;
display: inline-block;
margin: 10px 15px 10px 0;
padding: 8px 16px;
background: rgba(90, 158, 78, 0.8);
border-radius: 8px;
transition: background 0.3s ease;
}
nav a:hover {
background: rgba(90, 158, 78, 1);
}
footer {
text-align: center;
padding: 20px;
font-size: 0.9rem;
opacity: 0.7;
}
/* Responsive */
@media (max-width: 768px) {
header h1 {
font-size: 2rem;
}
.greeting {
font-size: 1.2rem;
}
.card {
min-width: 100%;
}
}
/* Minecraft Server Status Styles */
.server-status-card {
background: var(--card-bg);
border-radius: 15px;
padding: 20px;
margin-bottom: 20px;
border: 1px solid var(--border-color);
}
.server-status {
display: flex;
align-items: center;
gap: 12px;
margin-bottom: 20px;
padding: 10px;
border-radius: 10px;
background: var(--secondary-bg);
}
.status-indicator {
width: 14px;
height: 14px;
border-radius: 50%;
display: inline-block;
}
.status-indicator.online {
background-color: #4caf50;
box-shadow: 0 0 8px #4caf50;
animation: pulse 2s infinite;
}
.status-indicator.offline {
background-color: #f44336;
}
@keyframes pulse {
0% { opacity: 0.5; transform: scale(0.8); }
100% { opacity: 1; transform: scale(1.2); }
}
.status-text {
font-size: 18px;
font-weight: bold;
}
.status-text.online { color: #4caf50; }
.status-text.offline { color: #f44336; }
.server-info-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 15px;
margin-top: 15px;
}
.info-item {
padding: 10px;
background: var(--secondary-bg);
border-radius: 8px;
}
.info-label {
font-size: 11px;
opacity: 0.7;
text-transform: uppercase;
letter-spacing: 1px;
}
.info-value {
font-size: 18px;
font-weight: bold;
margin-top: 5px;
}
.player-list {
margin-top: 15px;
list-style: none;
}
.player-list li {
display: inline-block;
background: var(--accent-color);
color: white;
padding: 5px 12px;
border-radius: 20px;
margin: 4px;
font-size: 13px;
}
.motd {
font-style: italic;
padding: 10px;
background: var(--secondary-bg);
border-radius: 8px;
margin-top: 15px;
text-align: center;
}
.refresh-btn-small {
background: var(--accent-color);
border: none;
color: white;
padding: 5px 12px;
border-radius: 20px;
cursor: pointer;
font-size: 12px;
margin-left: 10px;
}
.refresh-btn-small:hover {
background: var(--accent-hover);
}
/* About Page Specific Styles */
.about-layout {
display: flex;
gap: 30px;
flex-wrap: wrap;
}
.about-main {
flex: 2;
min-width: 250px;
}
.about-sidebar {
flex: 1;
min-width: 200px;
}
/* Server Status Card Improvements */
.server-status-card {
background: var(--card-bg);
border-radius: 15px;
padding: 25px;
margin-bottom: 20px;
border: 1px solid var(--border-color);
}
.server-status {
display: flex;
align-items: center;
gap: 12px;
margin-bottom: 20px;
padding: 12px 15px;
border-radius: 12px;
background: var(--secondary-bg);
}
.status-indicator {
width: 14px;
height: 14px;
border-radius: 50%;
display: inline-block;
position: relative;
}
.status-indicator.online {
background-color: #4caf50;
box-shadow: 0 0 8px #4caf50;
animation: pulse 1.5s ease-in-out infinite;
}
.status-indicator.offline {
background-color: #f44336;
}
@keyframes pulse {
0%, 100% {
opacity: 1;
transform: scale(1);
}
50% {
opacity: 0.5;
transform: scale(0.85);
}
}
.status-text {
font-size: 16px;
font-weight: 600;
}
.status-text.online { color: #4caf50; }
.status-text.offline { color: #f44336; }
.server-info-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
gap: 12px;
margin-top: 15px;
}
.info-item {
padding: 12px;
background: var(--secondary-bg);
border-radius: 10px;
text-align: center;
}
.info-label {
font-size: 11px;
opacity: 0.7;
text-transform: uppercase;
letter-spacing: 1px;
margin-bottom: 5px;
}
.info-value {
font-size: 20px;
font-weight: bold;
}
.motd {
font-style: italic;
padding: 12px;
background: var(--secondary-bg);
border-radius: 10px;
margin-top: 15px;
text-align: center;
font-size: 14px;
}
/* Quick Links Card */
.quick-links-card {
background: var(--card-bg);
border-radius: 15px;
padding: 25px;
border: 1px solid var(--border-color);
}
.quick-links-card h2 {
margin-bottom: 20px;
font-size: 1.3rem;
}
.quick-links-nav {
display: flex;
flex-direction: column;
gap: 10px;
}
.quick-links-nav a {
display: block;
padding: 12px 15px;
background: var(--secondary-bg);
border-radius: 10px;
text-decoration: none;
color: var(--text-color);
transition: all 0.3s;
text-align: center;
font-weight: 500;
}
.quick-links-nav a:hover {
background: var(--accent-color);
color: white;
transform: translateX(5px);
}
/* Player List */
.player-list {
margin-top: 15px;
list-style: none;
display: flex;
flex-wrap: wrap;
gap: 8px;
}
.player-list li {
background: var(--accent-color);
color: white;
padding: 6px 14px;
border-radius: 25px;
font-size: 13px;
font-weight: 500;
}
/* Responsive Design */
@media (max-width: 768px) {
.about-layout {
flex-direction: column;
gap: 20px;
}
.about-sidebar {
order: 2;
}
.about-main {
order: 1;
}
.server-status-card {
padding: 20px;
}
.server-info-grid {
grid-template-columns: repeat(2, 1fr);
gap: 10px;
}
.info-value {
font-size: 18px;
}
.quick-links-nav {
flex-direction: row;
flex-wrap: wrap;
justify-content: center;
}
.quick-links-nav a {
flex: 1;
min-width: 100px;
text-align: center;
padding: 10px;
}
.quick-links-nav a:hover {
transform: translateY(-2px);
}
.status-text {
font-size: 14px;
}
.motd {
font-size: 12px;
}
}
/* Small phones */
@media (max-width: 480px) {
.server-info-grid {
grid-template-columns: 1fr;
}
.quick-links-nav {
flex-direction: column;
}
.quick-links-nav a {
text-align: center;
}
}
/* Fix for the pulse animation - smooth loop */
@keyframes pulse {
0% {
opacity: 1;
transform: scale(1);
}
50% {
opacity: 0.4;
transform: scale(0.7);
}
100% {
opacity: 1;
transform: scale(1);
}
}
← Back