body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #000;
    color: white;
    overflow-x: hidden;
}

.container {
    z-index: 1;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.greeting {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 0;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.datetime {
    text-align: right;
}

.current-time {
    font-size: 2rem;
    font-weight: bold;
}

.current-date {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
}

.content {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    overflow: hidden;
}

.section {
    padding: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.section:last-child {
    border-bottom: none;
}

h2 {
    color: #ffffff;
    margin-top: 0;
    text-decoration: underline;
    margin-bottom: 1rem;
}

.weather-section {
    background-color: rgba(52, 152, 219, 0.2);
}

.joke-section {
    background-color: rgba(46, 204, 113, 0.2);
}

.tip-section {
    background-color: rgba(155, 89, 182, 0.2);
}

.weather-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.weather-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    overflow: hidden;
}

.weather-card h3 {
    margin-top: 0;
    margin-bottom: 1rem;
}

.weather-slider {
    position: relative;
    width: 200%;
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 250px;
}

.current-weather, .forecast {
    width: 50%;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.forecast {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: stretch;
}

.forecast-day {
    flex: 1;
    font-size: 0.8em;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.weather-icon.animated {
    width: 150px;
    height: 150px;
}

.weather-icon-small.animated {
    width: 50px;
    height: 50px;
    margin: 0.25rem auto;
}

.temperature {
    font-size: 2.5rem;
    font-weight: bold;
    margin: 0.5rem 0;
}

.condition {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
}

.forecast-date {
    font-weight: bold;
    margin-bottom: 0.25rem;
}

.forecast-temp {
    font-size: 1.1em;
    font-weight: bold;
    margin: 0.25rem 0;
}

.forecast-condition {
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.8);
}

.forecast-temp, .forecast-condition {
    text-align: center;
    width: 100%;
}

.weather-slider.show-forecast {
    transform: translateX(-50%);
}

.bold-text {
    font-weight: bold;
}

.joke-section i {
    color: #ffd700;
}

.tip-section i {
    color: #00ffff;
}

.dynamic-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #3498db, #8e44ad);
    z-index: -2;
}

.dynamic-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle, transparent 20%, #000 80%);
    opacity: 0.7;
}


@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 1s ease-out;
}

@media (max-width: 768px) {
    .header {
        flex-direction: column;
        align-items: center;
    }

    .datetime {
        text-align: center;
        margin-top: 1rem;
    }

    .container {
        padding: 1rem;
    }

    .greeting {
        font-size: 2rem;
    }

    .weather-container {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 1.5rem;
    }

    .weather-icon.animated {
        width: 120px;
        height: 120px;
    }

    .temperature {
        font-size: 2rem;
    }

    .condition {
        font-size: 1rem;
    }
}