/* General Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'Segoe UI', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: url(images/Gemini_Generated_Image_1i87f01i87f01i87.jpeg);
    color: #ffffff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

main {
    flex: 1;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

h2 {
    font-size: 28px;
    margin-bottom: 20px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #ffffff;
    font-weight: 600;
}

/* Navigation */
nav {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

nav .logo {
    display: flex;
    align-items: center;
}

nav .logo img {
    height: 40px;
    margin-right: 10px;
}

nav .logo span {
    font-size: 1.4em;
    font-weight: 700;
    color: #f1f1f1;
}

nav ul {
    list-style-type: none;
    display: flex;
    margin: 0;
    padding: 0;
    gap: 20px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 8px 15px;
    border-radius: 25px;
}

nav ul li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #19303a;
    transform: translateY(-2px);
}


/* Search Container */
.search-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
}

#city-input {
    width: 300px;
    padding: 12px 20px;
    border-radius: 25px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 16px;
    transition: all 0.3s ease;
}

#city-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

#search-button {
    padding: 12px 25px;
    border-radius: 25px;
    border: none;
    background: #0077ff;
    color: #1e3c72;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

#search-button:hover {
    background-color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Weather Display */
.weather-display {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.weather-display h2 {
    margin: 0 0 20px;
    font-size: 2em;
}

#weather-icon {
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
}

#temperature {
    font-size: 3em;
    margin: 0;
    font-weight: 300;
}

#description {
    font-size: 1.2em;
    margin: 10px 0 20px;
    text-transform: capitalize;
}

.weather-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.weather-detail {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.weather-detail img {
    width: 30px;
    height: 30px;
    margin-bottom: 10px;
}

.weather-detail span {
    font-size: 1.1em;
}

/* Interactive Map */
#map {
    width: 100%;
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Forecast Section */
#forecast-container {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 20px;
    overflow: hidden;
    margin-top: 30px;
}

#forecast-cards {
    display: flex;
    overflow-x: auto;
    padding: 10px 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.5) transparent;
}

.forecast-card {
    flex: 0 0 auto;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    min-width: 100px;
    margin-right: 10px;
    transition: transform 0.3s ease;
}

.forecast-card:hover {
    transform: translateY(-5px);
}
#live-stream
{
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: grid;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
    padding: 50px;
}
/* Discussion Section */
#discussion-board {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 20px;
    margin-top: 30px;
}

#discussion-input {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: none;
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
}

#submit-discussion {
    padding: 10px 20px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
}

#submit-discussion:hover {
    background-color: #45a049;
    transform: translateY(-2px);
}

/* Emergency Help Section */
#emergency-form {
    display: grid;
    gap: 10px;
    margin-top: 30px;
}

#emergency-form input,
#emergency-form textarea {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
}

#emergency-form button {
    padding: 10px 20px;
    background-color: #ea7f77;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
}

#emergency-form button:hover {
    background-color: #e53935;
    transform: translateY(-2px);
}

/* Footer */
footer {
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    text-align: center;
    padding: 15px 0;
    margin-top: auto;
    font-size: 0.9em;
}

footer p {
    margin: 5px 0;
}

footer a {
    color: #90caf9;
    text-decoration: none;
    transition: color 0.3s;
}

footer a:hover {
    color: #64b5f6;
}

/* Responsive Design */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
    }

    nav ul {
        margin-top: 15px;
        flex-direction: column;
        align-items: center;
    }

    nav ul li {
        margin: 10px 0;
    }

    .weather-display {
        width: 90%;
    }

    #map {
        height: 300px;
    }
}

.hidden {
    display: none;
}

/* Scrollbar Styles */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}