Untitled
unknown
plain_text
a year ago
3.3 kB
12
Indexable
/* Variables for theme customization */
:root {
--primary-color: #4CAF50;
--secondary-color: #fff;
--font-family: 'Arial', sans-serif;
}
/* Basic Reset */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: var(--font-family);
line-height: 1.6;
background-color: #f4f4f4;
color: #333;
}
/* Header styling */
header {
background-color: var(--primary-color);
padding: 1rem;
position: sticky;
top: 0;
z-index: 10;
}
nav {
display: flex;
justify-content: space-between;
align-items: center;
max-width: 1200px;
margin: 0 auto;
}
.logo {
font-size: 1.5rem;
color: var(--secondary-color);
}
nav ul {
list-style: none;
display: flex;
}
nav ul li {
margin-left: 20px;
}
nav ul li a {
color: var(--secondary-color);
text-decoration: none;
font-weight: bold;
transition: color 0.3s;
}
nav ul li a:hover {
color: #ddd;
}
/* Carousel styling */
.carousel {
position: relative;
max-width: 100%;
overflow: hidden;
height: 400px;
display: flex;
justify-content: center;
align-items: center;
background-color: #333;
}
.carousel-container {
position: relative;
width: 100%;
height: 100%;
display: flex;
animation: slide-animation 10s infinite;
}
.slide {
min-width: 100%;
height: 100%;
transition: transform 1s ease-in-out;
}
.slide img {
width: 100%;
height: 100%;
object-fit: cover;
}
@keyframes slide-animation {
0%, 20% { transform: translateX(0); }
25%, 45% { transform: translateX(-100%); }
50%, 70% { transform: translateX(-200%); }
75%, 100% { transform: translateX(0); }
}
/* Carousel controls */
.prev, .next {
position: absolute;
top: 50%;
transform: translateY(-50%);
background-color: rgba(0, 0, 0, 0.5);
color: #fff;
font-size: 2rem;
padding: 10px;
cursor: pointer;
z-index: 2;
border: none;
user-select: none;
}
.prev {
left: 10px;
}
.next {
right: 10px;
}
.prev:hover, .next:hover {
background-color: rgba(0, 0, 0, 0.8);
}
/* Registration form styling */
.registration {
padding: 3rem 1rem;
background-color: #fff;
}
.registration h2 {
text-align: center;
margin-bottom: 2rem;
}
form {
max-width: 400px;
margin: 0 auto;
display: grid;
gap: 1.5rem;
}
.input-container {
display: flex;
flex-direction: column;
}
label {
font-weight: bold;
margin-bottom: 0.5rem;
}
input {
padding: 10px;
border: 1px solid #ccc;
border-radius: 5px;
}
button {
padding: 10px 20px;
background-color: var(--primary-color);
color: var(--secondary-color);
border: none;
cursor: pointer;
border-radius: 5px;
transition: background-color 0.3s;
}
button:hover {
background-color: #45a049;
}
#error-message {
color: red;
text-align: center;
}
/* Footer styling */
footer {
background-color: var(--primary-color);
color: var(--secondary-color);
text-align: center;
padding: 1rem 0;
position: relative;
bottom: 0;
width: 100%;
}
/* Responsive Design */
@media (max-width: 768px) {
nav ul {
flex-direction: column;
margin-top: 10px;
}
}
Editor is loading...
Leave a Comment