body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    text-align: center;
    margin: 0;
    overflow: hidden;
    transition: color 0.5s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    position: relative;
}

#background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    transition: opacity 1s ease-in-out;
}

#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 0;
}

#content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    color: white;
}

h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
}

#clock {
    font-size: 5em;
    font-weight: bold;
    letter-spacing: 5px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
}

#date {
    font-weight: bold;
    font-size: 1.8em;
    margin-top: 20px;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
}

#colon {
    opacity: 0.5;
    animation: flash 1s infinite alternate;
}

#location {
    font-size: 1.5em;
    margin-top: 10px;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
}

#weather {
    font-size: 1.5em;
    margin-top: 20px;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
}

@keyframes flash {
    0% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0.5;
    }
}

#footer {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    color: white;
    font-size: 1.2em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
}
