* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    background: linear-gradient(135deg, #1abc9c 0%, #16a085 25%, #8e44ad 75%, #c724b1 100%);
    background-size: 200% 200%;
    animation: gradientShift 15s ease infinite;
    overflow-x: hidden;
    position: relative;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Baggrunds Animationer */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.circle {
    position: absolute;
    border-radius: 50%;
    animation: float 20s infinite ease-in-out;
    filter: blur(2px);
}

.circle1 {
    width: 150px;
    height: 150px;
    top: 10%;
    left: 10%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3), rgba(255, 182, 193, 0.2));
    animation: float 12s infinite ease-in-out, colorChange 8s infinite;
    animation-delay: 0s;
}

.circle2 {
    width: 200px;
    height: 200px;
    top: 60%;
    left: 75%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.25), rgba(173, 216, 230, 0.2));
    animation: float 15s infinite ease-in-out, colorChange 10s infinite;
    animation-delay: 2s;
}

.circle3 {
    width: 100px;
    height: 100px;
    top: 75%;
    left: 15%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3), rgba(255, 218, 185, 0.2));
    animation: float 10s infinite ease-in-out, colorChange 7s infinite;
    animation-delay: 4s;
}

.circle4 {
    width: 180px;
    height: 180px;
    top: 25%;
    left: 65%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.28), rgba(221, 160, 221, 0.2));
    animation: float 18s infinite ease-in-out, colorChange 12s infinite;
    animation-delay: 1s;
}

.circle5 {
    width: 130px;
    height: 130px;
    top: 45%;
    left: 45%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3), rgba(144, 238, 144, 0.2));
    animation: float 14s infinite ease-in-out, colorChange 9s infinite;
    animation-delay: 3s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1) rotate(0deg);
        opacity: 0.4;
    }
    25% {
        transform: translate(80px, -80px) scale(1.3) rotate(90deg);
        opacity: 0.7;
    }
    50% {
        transform: translate(-60px, -150px) scale(0.8) rotate(180deg);
        opacity: 0.5;
    }
    75% {
        transform: translate(-80px, -70px) scale(1.15) rotate(270deg);
        opacity: 0.6;
    }
}

@keyframes colorChange {
    0%, 100% {
        filter: blur(2px) hue-rotate(0deg);
    }
    33% {
        filter: blur(3px) hue-rotate(120deg);
    }
    66% {
        filter: blur(2px) hue-rotate(240deg);
    }
}

/* Container */
.container {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

/* Countdown Sektion */
.countdown-section {
    text-align: center;
    margin-bottom: 40px;
    animation: fadeInDown 1s ease-out;
}

.countdown-section h1 {
    color: white;
    font-size: 2.5rem;
    margin: 40px 0 30px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: pulse 2s infinite;
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.time-box {
    background: rgba(255, 255, 255, 0.95);
    padding: 25px 30px;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    min-width: 120px;
    transition: transform 0.3s ease;
}

.time-box:hover {
    transform: translateY(-5px) scale(1.05);
}

.time {
    display: block;
    font-size: 3rem;
    font-weight: bold;
    color: #667eea;
    line-height: 1;
}

.label {
    display: block;
    font-size: 0.9rem;
    color: #666;
    margin-top: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Invitation Sektion */
.invitation-section {
    animation: fadeInUp 1s ease-out 0.3s backwards;
}

.invitation-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.invitation-card h2 {
    color: #667eea;
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 30px;
}

.main-text {
    text-align: center;
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 30px;
    font-weight: 500;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    margin: 15px 0;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 10px;
    border-left: 4px solid #667eea;
    transition: all 0.3s ease;
}

.detail-item:hover {
    background: rgba(102, 126, 234, 0.1);
    transform: translateX(10px);
}

.icon {
    font-size: 1.8rem;
}

.detail-item span {
    font-size: 1.1rem;
    color: #444;
}

.rsvp-text {
    text-align: center;
    font-size: 1rem;
    color: #666;
    margin-top: 30px;
    font-style: italic;
}

.contact-text {
    text-align: center;
    font-size: 0.95rem;
    color: #888;
    margin-top: 10px;
}

/* Animationer */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes cardFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Responsive Design */

/* Extra large screens (1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1200px;
    }
    
    .countdown-section h1 {
        font-size: 3rem;
    }
    
    .time-box {
        min-width: 140px;
        padding: 30px 35px;
    }
    
    .time {
        font-size: 3.5rem;
    }
    
    .invitation-card {
        padding: 50px;
    }
}

/* Large screens (992px to 1399px) */
@media (min-width: 992px) and (max-width: 1399px) {
    .container {
        max-width: 960px;
    }
}

/* Medium screens - tablets (768px to 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .container {
        max-width: 720px;
        padding: 15px;
    }
    
    .countdown-section h1 {
        font-size: 2rem;
        margin: 30px 0 25px;
    }
    
    .countdown {
        gap: 15px;
    }
    
    .time-box {
        min-width: 100px;
        padding: 20px 25px;
    }
    
    .time {
        font-size: 2.5rem;
    }
    
    .label {
        font-size: 0.8rem;
    }
    
    .invitation-card {
        padding: 35px;
    }
    
    .invitation-card h2 {
        font-size: 2rem;
    }
    
    .main-text {
        font-size: 1.2rem;
    }
}

/* Small screens - mobile landscape (576px to 767px) */
@media (max-width: 767px) {
    body {
        background-size: 400% 400%;
    }
    
    .container {
        padding: 15px 10px;
    }
    
    .countdown-section h1 {
        font-size: 1.5rem;
        margin: 20px 0 20px;
        line-height: 1.3;
    }
    
    .countdown {
        gap: 10px;
    }
    
    .time-box {
        min-width: 70px;
        padding: 12px 15px;
    }
    
    .time {
        font-size: 1.8rem;
    }
    
    .label {
        font-size: 0.7rem;
        margin-top: 5px;
    }
    
    .invitation-card {
        padding: 25px 20px;
    }
    
    .invitation-card h2 {
        font-size: 1.5rem;
        margin-bottom: 20px;
        line-height: 1.3;
    }
    
    .main-text {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    
    .detail-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 12px;
        gap: 10px;
    }
    
    .detail-item:hover {
        transform: translateX(5px);
    }
    
    .icon {
        font-size: 1.5rem;
    }
    
    .detail-item span,
    .detail-item div {
        font-size: 0.95rem;
    }
    
    .detail-item ul {
        padding-left: 15px !important;
    }
    
    .detail-item li {
        font-size: 0.9rem;
        margin: 5px 0;
    }
    
    .rsvp-text {
        font-size: 0.9rem;
        margin-top: 20px;
    }
    
    .contact-text {
        font-size: 0.85rem;
        word-break: break-word;
    }
    
    .contact-text a {
        display: inline-block;
        margin: 5px 0;
    }
    
    /* Mindre aggressive baggrunds-animationer på mobil */
    .circle {
        opacity: 0.5;
    }
    
    @keyframes float {
        0%, 100% {
            transform: translate(0, 0) scale(1) rotate(0deg);
            opacity: 0.3;
        }
        50% {
            transform: translate(-20px, -40px) scale(0.9) rotate(180deg);
            opacity: 0.4;
        }
    }
}

/* Extra small screens - mobile portrait (below 576px) */
@media (max-width: 575px) {
    .countdown-section h1 {
        font-size: 1.3rem;
        margin: 15px 0 15px;
        padding: 0 10px;
    }
    
    .countdown {
        gap: 8px;
        justify-content: space-around;
    }
    
    .time-box {
        min-width: 60px;
        padding: 10px 8px;
    }
    
    .time {
        font-size: 1.5rem;
    }
    
    .label {
        font-size: 0.6rem;
    }
    
    .invitation-card h2 {
        font-size: 1.3rem;
    }
    
    .main-text {
        font-size: 0.95rem;
    }
}

/* Very small screens (below 400px) */
@media (max-width: 399px) {
    .countdown {
        gap: 5px;
    }
    
    .time-box {
        min-width: 55px;
        padding: 8px 5px;
    }
    
    .time {
        font-size: 1.3rem;
    }
    
    .label {
        font-size: 0.55rem;
    }
    
    .invitation-card {
        padding: 20px 15px;
    }
    
    .invitation-card h2 {
        font-size: 1.2rem;
    }
    
    .main-text {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }
}

/* Landscape orientation on mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .countdown-section h1 {
        margin: 15px 0 15px;
    }
    
    .countdown {
        gap: 10px;
    }
    
    .time-box {
        padding: 10px 15px;
    }
    
    .invitation-card {
        padding: 20px;
        margin-bottom: 20px;
    }
}
