IsMyInternetWorking/styles.css
2025-05-26 20:32:45 -04:00

78 lines
No EOL
1.5 KiB
CSS

/* reset some default browser styles */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
/* main page styles */
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
background-color: #0f0f0f;
color: #ffffff;
min-height: 100vh;
display: flex;
align-items: center;
justify-content: center;
}
/* center everything */
.container {
text-align: center;
padding: 2rem;
}
/* make the title look nice and fade in */
.title {
font-size: 2.5rem;
margin-bottom: 2rem;
opacity: 0;
animation: fadeIn 1s ease forwards;
}
/* status box styling */
.status-container {
background-color: #1a1a1a;
padding: 2rem;
border-radius: 12px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
transition: all 0.3s ease;
}
/* make the status text big and bold */
.status {
font-size: 4rem;
font-weight: bold;
display: inline-block;
transition: all 0.3s ease;
}
/* online status is green */
.status.online {
color: #4CAF50;
}
/* offline status is red and shakes */
.status.offline {
color: #f44336;
animation: shake 0.5s ease-in-out;
}
/* fade in animation for the title */
@keyframes fadeIn {
from {
opacity: 0;
transform: translateY(-20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
/* shake animation for when we go offline */
@keyframes shake {
0%, 100% { transform: translateX(0); }
25% { transform: translateX(-10px); }
75% { transform: translateX(10px); }
}