body {
    font-family: "Arial", sans-serif;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: #fff;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    text-align: center;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.container {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 36px;
    width: 95%;
    max-width: 800px; /* Increased from 500px to allow more space on desktop */
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    animation: fadeIn 1.5s ease-in-out;
    box-sizing: border-box;
    overflow: hidden;
    margin: 0 auto;
}

/* Optional: Add a media query for smaller screens if needed */
@media (max-width: 600px) {
    .container {
        width: 95%;
        padding: 15px;
    }
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

li {
    margin-bottom: 10px;
}

/* form {
    margin-top: 20px;
} */

input[type="text"] {
    width: 100%;
    max-width: 300px;
    padding: 10px;
    border: none;
    border-radius: 5px;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

button {
    width: 100%;
    max-width: 325px;
    padding: 12px 8px;
    border: none;
    border-radius: 8px;
    background: #1e3c72;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

button:hover {
    background: #1b3663;
}

/* Button Container */
.button-container {
    display: flex;
    justify-content: center;
    gap: 10px; /* Space between buttons */
    margin-top: 20px;
}

/* Common Button Styles */
.action-button {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1.4rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

/* "Start Again" Button */
.start-again-button {
    background: #1e3c72; /* Primary color */
    color: #fff;
}

.start-again-button:hover {
    background: #2a5298; /* Darker shade on hover */
}

.weather-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    animation: float 3s ease-in-out infinite;
}

.weather-icon img {
    width: 100%;
    height: 100%;
}

.temperature {
    font-size: 2rem;
    margin: 25px 0;
}

.description {
    font-size: 1.3rem;
    margin-bottom: 30px;
}

.details {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.detail-card {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 18px;
    text-align: center;
    transition: transform 0.3s ease, background 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.detail-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.2);
}

.detail-card i {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #fff;
}

.detail-card p {
    margin: 0;
    font-size: 0.9rem;
}

.detail-card p span {
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}

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

@keyframes float {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes scale {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.005);
    }
}

/* Responsive Adjustments */
@media (max-width: 600px) {
    .details {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }

    .detail-card p {
        font-size: 0.8rem;
    }
}

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

.footer {
    width: 100%;
    color: #646971;
    padding: 1.5rem;
    margin-top: 2rem;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell,
        "Open Sans", "Helvetica Neue", sans-serif;
}

.footer-container {
    max-width: 800px;
    margin: 0 auto;
}

.footer-row {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
}

/* Logo Column */
.footer-logo-column {
    flex: 1 1 300px;
}

.footer-logo-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: #2e3039;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-logo {
    height: 30px;
    margin-right: 0.5rem;
}

.footer-tagline {
    color: #aad4ff;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-copyright {
    color: #9ca3af;
    font-size: 0.8rem;
}

/* Link Columns */
.footer-column {
    flex: 1 1 200px;
}

.footer-heading {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 1rem;
    color: #aad4ff;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-link {
    color: #8b96aa;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-link:hover {
    color: hsl(195, 81%, 64%);
}

/* Social Row */
.footer-social {
    display: flex;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e4e6e8;
}

.footer-social-link:hover {
    background-color: #2563eb;
    color: white;
}

.footer-social-icon {
    width: 18px;
    height: 18px;
}

/* Responsive design */
@media (max-width: 768px) {
    .footer-row {
        flex-direction: column;
        gap: 2rem;
    }

    .footer-column {
        flex-basis: 100%;
    }
}

/* Responsive adjustments for different screen sizes */
@media (min-width: 768px) and (max-width: 1024px) {
    .details {
        grid-template-columns: repeat(3, 1fr); /* 3 columns for tablets */
    }

    .container {
        max-width: 850px;
    }
}

@media (min-width: 1025px) {
    .details {
        grid-template-columns: repeat(4, 1fr); /* 4 columns for desktop */
    }
}

@media (max-width: 767px) {
    .details {
        grid-template-columns: repeat(2, 1fr); /* 2 columns for mobile */
        gap: 15px;
    }

    .container {
        padding: 20px;
    }

    .detail-card {
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .details {
        grid-template-columns: repeat(1, 1fr); /* 1 column for very small screens */
    }
}

.user-input {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
