dodey917's picture
Create a travel blog with full-width destination photos, travel stories grid, interactive world map showing visited places, travel tips section, gear recommendations, and subscription form.
8ed236b verified
/* Custom animations */
@keyframes fade-in {
from {
opacity: 0;
transform: translateY(30px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
@keyframes fade-in-delay {
0% {
opacity: 0;
transform: translateY(30px);
}
50% {
opacity: 0;
transform: translateY(30px);
}
100% {
opacity: 1;
transform: translateY(0);
}
}
@keyframes bounce-in {
0% {
opacity: 0;
transform: scale(0.8);
}
60% {
transform: scale(1.05);
}
100% {
opacity: 1;
transform: scale(1);
}
}
.animate-fade-in {
animation: fade-in 1s ease-out forwards;
}
.animate-fade-in-delay {
animation: fade-in-delay 1.5s ease-out forwards;
}
.animate-bounce-in {
animation: bounce-in 1s ease-out 0.5s both;
}
/* Smooth scroll */
html {
scroll-behavior: smooth;
}
/* Custom scrollbar */
::-webkit-scrollbar {
width: 10px;
}
::-webkit-scrollbar-track {
background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
background: #14b8a6;
border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
background: #0d9488;
}
/* Image hover effects */
.image-hover-zoom {
overflow: hidden;
}
.image-hover-zoom img {
transition: transform 0.3s ease;
}
.image-hover-zoom:hover img {
transform: scale(1.1);
}
/* Glass morphism effect */
.glass {
background: rgba(255, 255, 255, 0.1);
backdrop-filter: blur(10px);
border: 1px solid rgba(255, 255, 255, 0.2);
}
/* Card hover lift */
.card-lift {
transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card-lift:hover {
transform: translateY(-5px);
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}
/* Gradient text */
.gradient-text {
background: linear-gradient(135deg, #14b8a6 0%, #f97316 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
/* Loading animation */
.loading {
display: inline-block;
width: 20px;
height: 20px;
border: 3px solid rgba(255, 255, 255, 0.3);
border-radius: 50%;
border-top-color: white;
animation: spin 1s ease-in-out infinite;
}
@keyframes spin {
to { transform: rotate(360deg); }
}
/* Map marker pulse */
.map-marker {
animation: pulse 2s infinite;
}
@keyframes pulse {
0% {
box-shadow: 0 0 0 0 rgba(20, 184, 166, 0.7);
}
70% {
box-shadow: 0 0 0 10px rgba(20, 184, 166, 0);
}
100% {
box-shadow: 0 0 0 0 rgba(20, 184, 166, 0);
}
}
/* Responsive typography */
@media (max-width: 640px) {
.hero-title {
font-size: 2.5rem;
line-height: 1.2;
}
.section-title {
font-size: 2rem;
}
}
/* Focus styles for accessibility */
button:focus,
input:focus,
a:focus {
outline: 2px solid #14b8a6;
outline-offset: 2px;
}
/* Custom checkbox */
.custom-checkbox {
appearance: none;
width: 20px;
height: 20px;
border: 2px solid #14b8a6;
border-radius: 4px;
transition: all 0.3s ease;
}
.custom-checkbox:checked {
background-color: #14b8a6;
}
.custom-checkbox:checked::after {
content: '✓';
color: white;
display: block;
text-align: center;
line-height: 16px;
}
/* Fade in sections on scroll */
.fade-in-section {
opacity: 0;
transform: translateY(20px);
transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in-section.is-visible {
opacity: 1;
transform: translateY(0);
}
/* Blog post meta */
.blog-meta {
display: flex;
align-items: center;
gap: 1rem;
color: #6b7280;
font-size: 0.875rem;
}
/* Badge styles */
.badge {
display: inline-block;
padding: 0.25rem 0.75rem;
font-size: 0.75rem;
font-weight: 600;
border-radius: 9999px;
text-transform: uppercase;
letter-spacing: 0.05em;
}
/* Floating labels */
.floating-label {
position: relative;
}
.floating-label input {
padding-top: 1.5rem;
}
.floating-label label {
position: absolute;
left: 1rem;
top: 1rem;
transition: all 0.2s ease;
color: #9ca3af;
pointer-events: none;
}
.floating-label input:focus + label,
.floating-label input:not(:placeholder-shown) + label {
top: 0.25rem;
font-size: 0.75rem;
color: #14b8a6;
}