* {
    margin: 0;
    padding: 0;
    box-sizing: border-box; 
    font-family: sans-serif;
}

html, body {
    height: 100%;
}

body {
    background: #CAAFBE url("../img/background.webp") no-repeat center center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.rainOnMe{
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    text-align: center;
    
    width: 90%;
    max-width: 450px;
    padding: 50px 40px;
    
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
    color: #333;
    
    transition: all 0.5s ease-in-out;
}

.rain-info{
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    margin-top: 0;
    padding: 0 20px;

    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.rain-info.active {
    max-height: 250px; 
    opacity: 1;
    margin-top: 30px;
    padding: 25px 20px;
    
    background: rgba(255, 255, 255, 0.25);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: inset 0 2px 10px rgba(255, 255, 255, 0.2), 
                0 4px 15px rgba(0, 0, 0, 0.1);
}

.rain-info p {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 15px;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}

.weather-emoji {
    display: block;
    font-size: 4.5rem;
    line-height: 1;
    animation: popIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.3s both; 
}

@keyframes popIn {
    0% { 
        transform: scale(0) translateY(20px); 
        opacity: 0; 
    }
    100% { 
        transform: scale(1) translateY(0); 
        opacity: 1; 
    }
}

.flashbang-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #ffffff;
    z-index: 10000;
    pointer-events: none; /* Allows the user to click through the overlay */
    animation: flashbangEffect 2.25s ease-out forwards;
}

@keyframes flashbangEffect {
    0% { 
        opacity: 1;
    }
    15% { 
        opacity: 1;
    }
    100% { 
        opacity: 0;
        visibility: hidden;
    }
}

h1{
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 30px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

#locationText{
    width: 100%;
    font-size: 18px;
    padding: 15px 20px;
    margin-bottom: 25px;
    border: none;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.8);
    color: #333;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1)
}

#locationText:focus {
    background: #ffffff;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

#locationSubmit{
    font-size: 18px;
    font-weight: 600;
    padding: 15px 40px;
    border: none;
    border-radius: 30px;
    
    background: linear-gradient(135deg, #8e2de2, #4a00e0);
    color: white;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.4);
}

#locationSubmit:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.6);
}

@media (max-width: 480px) {
    h1 { 
        font-size: 2.2rem; 
    }
    .rainOnMe { 
        padding: 40px 20px; 
    }
}

.input-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 25px; /* Moved margin from #locationText to the wrapper */
}

#locationText {
    margin-bottom: 0; /* Reset this so the dropdown sits flush */
}

.autocomplete-dropdown {
    position: absolute;
    top: calc(100% + 5px); /* Position slightly below the input */
    left: 0;
    width: 100%;
    max-height: 200px;
    overflow-y: auto;
    
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    
    list-style: none;
    text-align: left;
    z-index: 100;
}

.autocomplete-dropdown li {
    padding: 12px 20px;
    cursor: pointer;
    color: #333;
    font-size: 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: background 0.2s ease;
}

.autocomplete-dropdown li:last-child {
    border-bottom: none;
}

.autocomplete-dropdown li:hover {
    background: rgba(74, 144, 226, 0.1); /* Subtle blue hover effect */
    color: #4a00e0;
}


.legal-container {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    
    width: 95%;
    max-width: 800px; 
    margin: 40px auto;
    padding: 40px;
    
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
    color: #333;
    
    /* Falls die Seite sehr lang wird, erlaubt dies Scrollen */
    max-height: 85vh;
    overflow-y: auto;
}

/* Scrollbar-Styling für den Glass-Look */
.legal-container::-webkit-scrollbar {
    width: 8px;
}
.legal-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
}

.legal-container h1 {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 40px;
}

.legal-container h2, .legal-container h3 {
    margin-top: 30px;
    margin-bottom: 15px;
}

.legal-container p, .legal-container li {
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 1.05rem;
}

/* Back-Button Styling */
.back-link {
    display: inline-block;
    margin-bottom: 20px;
    text-decoration: none;
    color: #4a00e0;
    font-weight: bold;
    transition: transform 0.2s ease;
}

.back-link:hover {
    transform: translateX(-5px);
}


footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    text-align: center;
    color: white; /* Oder eine Farbe deiner Wahl */
    z-index: 1000;
}

footer a {
    color: white;
    margin: 0 10px;
}
