Electro-Con-Sim / style.css
TheGreatUnknown's picture
Update style.css
566d814 verified
/* General Reset */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
/* Body Styling */
body {
font-family: 'Inter', sans-serif;
background-color: #121212; /* Dark theme background */
color: #e0e0e0; /* Light gray text */
padding: 2rem;
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
}
/* Headings */
h1 {
font-size: 24px;
font-weight: 600;
text-align: center;
color: #ffffff;
margin-bottom: 10px;
}
/* Paragraphs */
p {
color: #b0b0b0;
font-size: 16px;
line-height: 1.6;
text-align: center;
}
/* Card Container */
.card {
max-width: 650px;
padding: 20px;
background: #1e1e1e; /* Dark gray card background */
border-radius: 16px;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
border: 1px solid rgba(255, 255, 255, 0.1);
transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}
/* Smooth Hover Effect */
.card:hover {
transform: translateY(-5px);
box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}
/* Last Paragraph Spacing Fix */
.card p:last-child {
margin-bottom: 0;
}
/* Buttons */
button {
background: linear-gradient(135deg, #6a11cb, #2575fc);
border: none;
padding: 12px 20px;
color: #fff;
font-size: 16px;
font-weight: bold;
border-radius: 8px;
cursor: pointer;
transition: all 0.3s ease-in-out;
}
button:hover {
background: linear-gradient(135deg, #2575fc, #6a11cb);
transform: scale(1.05);
}
/* Responsive Design */
@media (max-width: 768px) {
body {
padding: 1rem;
}
.card {
padding: 15px;
}
h1 {
font-size: 20px;
}
p {
font-size: 14px;
}
}