100 lines
1.5 KiB
CSS
100 lines
1.5 KiB
CSS
/* Basic reset */
|
|
body {
|
|
font-family: Arial, sans-serif;
|
|
margin: 0;
|
|
padding: 0;
|
|
line-height: 1.6;
|
|
background-color: #f5f5f5;
|
|
color: #333;
|
|
}
|
|
|
|
h1, h2 {
|
|
color: #2c3e50;
|
|
text-align: center;
|
|
}
|
|
|
|
section {
|
|
max-width: 800px;
|
|
margin: 2rem auto;
|
|
background: #fff;
|
|
padding: 1.5rem;
|
|
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
|
|
border-radius: 8px;
|
|
}
|
|
|
|
figure {
|
|
margin: 1.5rem 0;
|
|
text-align: center;
|
|
}
|
|
|
|
img {
|
|
max-width: 100%;
|
|
height: auto;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
figcaption {
|
|
font-size: 0.9rem;
|
|
color: #555;
|
|
margin-top: 0.5rem;
|
|
}
|
|
|
|
button {
|
|
display: block;
|
|
margin: 1rem auto;
|
|
padding: 0.75rem 1.5rem;
|
|
font-size: 1rem;
|
|
color: #fff;
|
|
background-color: #3498db;
|
|
border: none;
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
transition: background-color 0.3s ease;
|
|
}
|
|
|
|
button:hover {
|
|
background-color: #2980b9;
|
|
}
|
|
|
|
/* gallery slider */
|
|
.gallery {
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
position: relative;
|
|
height: 300px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.gallery-img {
|
|
max-width: 100%;
|
|
max-height: 100%;
|
|
opacity: 0;
|
|
position: absolute;
|
|
transition: opacity 0.6s ease;
|
|
}
|
|
|
|
.gallery-img.active {
|
|
opacity: 1;
|
|
}
|
|
|
|
/* facts box */
|
|
.fact-box {
|
|
max-width: 800px;
|
|
margin: 1rem auto;
|
|
padding: 1rem;
|
|
background: #ecf0f1;
|
|
border-radius: 6px;
|
|
display: none;
|
|
animation: fadeIn 0.5s ease-in;
|
|
}
|
|
|
|
.fact-box.show {
|
|
display: block;
|
|
}
|
|
|
|
@keyframes fadeIn {
|
|
from { opacity: 0; }
|
|
to { opacity: 1; }
|
|
}
|