EasyTicket / static /style.css
MSivasandeep's picture
Create static/style.css
e31fb28 verified
Raw History Blame Contribute Delete
6.66 kB
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
line-height: 1.6;
color: #333;
background-color: #f8f9fa;
}
.container {
max-width: 1200px;
margin: 0 auto;
padding: 0 20px;
}
/* Navigation */
.navbar {
background: #fff;
box-shadow: 0 2px 10px rgba(0,0,0,0.1);
position: sticky;
top: 0;
z-index: 100;
}
.nav-container {
max-width: 1200px;
margin: 0 auto;
padding: 1rem 20px;
display: flex;
justify-content: space-between;
align-items: center;
}
.logo {
color: #e74c3c;
font-size: 1.8rem;
font-weight: bold;
}
.nav-links a {
margin-left: 2rem;
text-decoration: none;
color: #333;
font-weight: 500;
}
.nav-links a:hover {
color: #e74c3c;
}
/* Hero Section */
.hero {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
padding: 100px 0;
text-align: center;
}
.hero-content h1 {
font-size: 3rem;
margin-bottom: 1rem;
}
.hero-content p {
font-size: 1.2rem;
margin-bottom: 2rem;
opacity: 0.9;
}
.cta-button {
display: inline-block;
background: #e74c3c;
color: white;
padding: 12px 30px;
border-radius: 5px;
text-decoration: none;
font-weight: bold;
transition: background 0.3s;
}
.cta-button:hover {
background: #c0392b;
}
/* Features Section */
.features {
padding: 80px 0;
background: white;
}
.features h2 {
text-align: center;
margin-bottom: 3rem;
font-size: 2.5rem;
}
.features-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 2rem;
}
.feature-card {
background: #f8f9fa;
padding: 2rem;
border-radius: 10px;
text-align: center;
transition: transform 0.3s;
}
.feature-card:hover {
transform: translateY(-5px);
}
.feature-card h3 {
margin-bottom: 1rem;
color: #333;
}
/* Museums Grid */
.page-title {
text-align: center;
margin: 3rem 0;
font-size: 2.5rem;
}
.museums-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
gap: 2rem;
margin-bottom: 3rem;
}
.museum-card {
background: white;
border-radius: 10px;
overflow: hidden;
box-shadow: 0 5px 15px rgba(0,0,0,0.1);
transition: transform 0.3s;
}
.museum-card:hover {
transform: translateY(-5px);
}
.museum-card img {
width: 100%;
height: 200px;
object-fit: cover;
}
.museum-info {
padding: 1.5rem;
}
.museum-info h3 {
margin-bottom: 0.5rem;
color: #333;
}
.location {
color: #666;
margin-bottom: 1rem;
}
.description {
color: #555;
margin-bottom: 1rem;
}
.museum-details {
margin-bottom: 1rem;
}
.museum-details p {
margin-bottom: 0.5rem;
font-size: 0.9rem;
}
.price-section {
display: flex;
justify-content: space-between;
align-items: center;
}
.price {
font-size: 1.5rem;
font-weight: bold;
color: #e74c3c;
}
.book-btn {
background: #e74c3c;
color: white;
padding: 8px 20px;
border-radius: 5px;
text-decoration: none;
font-weight: bold;
transition: background 0.3s;
}
.book-btn:hover {
background: #c0392b;
}
/* Booking Form */
.booking-container {
max-width: 800px;
margin: 2rem auto;
background: white;
border-radius: 10px;
box-shadow: 0 5px 15px rgba(0,0,0,0.1);
overflow: hidden;
}
.museum-header {
display: flex;
align-items: center;
padding: 2rem;
background: #f8f9fa;
border-bottom: 1px solid #eee;
}
.museum-header img {
width: 120px;
height: 120px;
object-fit: cover;
border-radius: 10px;
margin-right: 2rem;
}
.museum-header-info h1 {
margin-bottom: 0.5rem;
color: #333;
}
.booking-form {
padding: 2rem;
}
.form-group {
margin-bottom: 1.5rem;
}
.form-group label {
display: block;
margin-bottom: 0.5rem;
font-weight: bold;
color: #333;
}
.form-group input,
.form-group select {
width: 100%;
padding: 10px;
border: 1px solid #ddd;
border-radius: 5px;
font-size: 1rem;
}
.form-group input:focus,
.form-group select:focus {
outline: none;
border-color: #e74c3c;
}
.summary {
background: #f8f9fa;
padding: 1.5rem;
border-radius: 5px;
margin: 2rem 0;
}
.summary h3 {
margin-bottom: 1rem;
color: #333;
}
.summary-details p {
margin-bottom: 0.5rem;
display: flex;
justify-content: space-between;
}
.total {
font-weight: bold;
font-size: 1.2rem;
border-top: 1px solid #ddd;
padding-top: 0.5rem;
margin-top: 0.5rem;
}
.submit-btn {
width: 100%;
background: #e74c3c;
color: white;
padding: 12px;
border: none;
border-radius: 5px;
font-size: 1.1rem;
font-weight: bold;
cursor: pointer;
transition: background 0.3s;
}
.submit-btn:hover {
background: #c0392b;
}
/* Confirmation Page */
.confirmation-card {
max-width: 600px;
margin: 2rem auto;
background: white;
border-radius: 10px;
box-shadow: 0 5px 15px rgba(0,0,0,0.1);
overflow: hidden;
}
.confirmation-header {
padding: 2rem;
text-align: center;
color: white;
}
.confirmation-header.success {
background: #27ae60;
}
.booking-details {
padding: 2rem;
}
.booking-details h2 {
margin-bottom: 1.5rem;
color: #333;
}
.details-grid {
display: grid;
grid-template-columns: 1fr;
gap: 1rem;
}
.detail-item {
display: flex;
justify-content: space-between;
padding: 0.5rem 0;
border-bottom: 1px solid #eee;
}
.confirmation-actions {
padding: 0 2rem 2rem;
display: flex;
gap: 1rem;
justify-content: center;
}
.print-btn,
.home-btn {
padding: 10px 20px;
border: none;
border-radius: 5px;
text-decoration: none;
font-weight: bold;
cursor: pointer;
transition: background 0.3s;
}
.print-btn {
background: #3498db;
color: white;
}
.home-btn {
background: #95a5a6;
color: white;
}
.print-btn:hover {
background: #2980b9;
}
.home-btn:hover {
background: #7f8c8d;
}
/* Footer */
.footer {
background: #333;
color: white;
text-align: center;
padding: 2rem 0;
margin-top: 3rem;
}
/* Responsive Design */
@media (max-width: 768px) {
.hero-content h1 {
font-size: 2rem;
}
.museum-header {
flex-direction: column;
text-align: center;
}
.museum-header img {
margin-right: 0;
margin-bottom: 1rem;
}
.confirmation-actions {
flex-direction: column;
}
}