amb / style.css
TDN-M's picture
Update style.css
7eb337c verified
body {
margin: 0;
font-family: 'Arial', sans-serif;
background-color: #1a1a1a;
color: #fff;
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
}
.carousel {
width: 100%;
max-width: 900px;
margin: 20px;
position: relative;
overflow: hidden;
}
.slide {
display: none;
padding: 30px;
border-radius: 15px;
background-size: cover;
background-position: center;
box-shadow: 0 6px 12px rgba(0, 0, 0, 0.5);
opacity: 0;
transition: opacity 0.5s ease-in-out;
}
.slide.active {
display: block;
opacity: 1;
}
.slide h1 {
font-size: 2.8em;
text-align: center;
margin-bottom: 15px;
text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}
.slide h2 {
font-size: 1.8em;
text-align: center;
margin-bottom: 15px;
color: #ffd700;
}
.slide p {
font-size: 1.2em;
text-align: center;
line-height: 1.6;
}
.slide ul {
list-style: disc;
padding-left: 25px;
font-size: 1.15em;
margin: 15px 0;
}
.slide img {
width: 100%;
height: 250px;
object-fit: cover;
border-radius: 10px;
margin-bottom: 20px;
border: 2px solid #ffd700;
}
.split {
display: flex;
flex-wrap: wrap;
gap: 20px;
justify-content: center;
}
.split > div {
flex: 1;
min-width: 280px;
}
.grid {
display: grid;
grid-template-columns: 1fr;
gap: 20px;
align-items: center;
}
.flex-center {
display: flex;
align-items: center;
margin-bottom: 15px;
font-size: 1.2em;
}
.flex-center span {
font-size: 1.8em;
margin-right: 15px;
color: #ffd700;
}
.nav-buttons {
display: flex;
justify-content: space-between;
margin-top: 25px;
}
.nav-buttons button {
background-color: #1e90ff;
color: #fff;
border: none;
padding: 12px 25px;
font-size: 1.1em;
cursor: pointer;
border-radius: 8px;
transition: background-color 0.3s;
}
.nav-buttons button:hover {
background-color: #1c86ee;
}
.intro-text {
font-size: 1.3em;
text-align: center;
margin-bottom: 20px;
color: #ccc;
}
@media (min-width: 768px) {
.grid {
grid-template-columns: 1fr 1fr;
}
.slide img {
height: 300px;
}
.slide h1 {
font-size: 3em;
}
.slide h2 {
font-size: 2em;
}
}