@import url("https://use.typekit.net/szh8quf.css");

:root {
    --text-color: #ffffff;
    --bg-placeholder: #ffffff;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "soleil", sans-serif;
    color: var(--text-color);
    background-color: var(--bg-placeholder);
    background-size: 110% auto;
    background-position: center bottom;
    background-repeat: no-repeat;
    height: 100vh;
    display: flex;
    flex-direction: column;
    /* Justify start to keep things at the top now */
    justify-content: flex-start;
    overflow: hidden;
    padding-top: 30px;
    /* Space for the top label */
}

/* Initial styling for placeholders if images are missing */
body.no-bg {
    background: linear-gradient(135deg, #1e1e1e, #3a3a3a);
}

.top-label {
    text-align: center;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    margin-bottom: 2vh;
    /* Initial gap before header starts */
    width: 100%;
    color: #daecfd;
}

header {
    margin-top: 0px;
    display: flex;
    justify-content: center;
    text-align: center;
    margin-bottom: 20px;
}

h1 {
    font-family: "soleil", sans-serif;
    font-weight: 700;
    font-size: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #73aeaf;
}

main {
    display: none;
    /* No longer needed as spacer */
}

footer {
    /* No longer a footer at bottom, but text below header */
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    font-size: 1.2rem;
    line-height: 1.5;
    color: #f1a33e;
}

.icon {
    font-size: 2rem;
    margin: 0 10px;
}

.weather-details {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
}

.weather-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}
/* --- Animation Styles injected by auth.js logic --- */

/* Dedicated Background Container */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-size: 110% auto;
    background-position: center bottom;
    background-repeat: no-repeat;
    
    /* Animation Properties */
    opacity: 0;
    animation: bgSlideUpFade 1.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* Keyframes for Background Fade In + Slide In (from bottom) */
@keyframes bgSlideUpFade {
    0% {
        opacity: 0;
        transform: translateY(10%) scale(1.05); /* Start slightly lower and zoomed */
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* H1 Animation Class */
.animated-h1 {
    opacity: 0;
    animation: textFocusIn 1.2s cubic-bezier(0.550, 0.085, 0.680, 0.530) forwards;
    animation-delay: 0.5s; /* Wait a bit for bg to start */
}

/* Keyframes for H1 */
/* Using a blur + letter-spacing expanding effect */
@keyframes textFocusIn {
  0% {
    filter: blur(12px);
    opacity: 0;
    transform: translateY(-20px);
    letter-spacing: -0.5em; /* Start tight */
  }
  100% {
    filter: blur(0px);
    opacity: 1;
    transform: translateY(0);
    letter-spacing: 2px; /* Original spacing */
  }
}

/* Simple Fade In for other text content */
.top-label, footer {
    opacity: 0;
    animation: simpleFadeIn 1s ease-out forwards;
    animation-delay: 1.0s; /* Start after headline */
}

@keyframes simpleFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
