Attention-Tracker / style.css
johnsonhung906
website init
f9c925e
raw
history blame
1.77 kB
body {
padding: 2rem;
font-family: -apple-system, BlinkMacSystemFont, "Arial", sans-serif;
}
h1 {
font-size: 16px;
margin-top: 0;
}
p {
color: rgb(107, 114, 128);
font-size: 15px;
margin-bottom: 10px;
margin-top: 5px;
}
.card {
max-width: 620px;
margin: 0 auto;
padding: 16px;
border: 1px solid lightgray;
border-radius: 16px;
}
.card p:last-child {
margin-bottom: 0;
}
.image-gallery {
display: flex; /* Use flexbox for side-by-side images */
justify-content: center;
gap: 20px; /* Space between images */
margin-top: 20px; /* Add space above the image gallery */
}
.image-gallery img {
width: 80%; /* Set width to 80% of the window */
max-width: 500px; /* Ensure maximum width remains 500px */
height: auto; /* Maintain aspect ratio */
border-radius: 10px; /* Rounded corners for images */
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Add shadow to images */
display: none; /* Initially hide all images */
}
.button-container {
text-align: center;
margin-top: 20px;
}
.button-container .group-title {
font-weight: bold;
margin: 20px 0 10px;
font-size: 1.2em;
}
.normal-button {
background-color: #28a745; /* Green for Normal Data */
}
.attack-button {
background-color: #dc3545; /* Red for Attack Data */
}
.button-container button {
padding: 10px 20px;
margin: 5px;
border: none;
color: white;
cursor: pointer;
border-radius: 5px;
font-size: 1em; /* Increased font size */
transition: background-color 0.3s, transform 0.3s; /* Smooth transitions */
}
.button-container button:hover {
transform: scale(1.05); /* Slightly increase size on hover */
}
.normal-button:hover {
background-color: #218838; /* Darker green on hover */
}
.attack-button:hover {
background-color: #c82333; /* Darker red on hover */
}