/* Reset and base layout */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    height: 100%;
}

body {
    font-family: 'Segoe UI', 'Roboto', sans-serif;
    background-color: #f9fafb;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 10px;
}

/* Container layout */
.container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100vh;
    width: 100%;
    max-width: 1200px;
}

/* Main content */
.Main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex: 1;
    padding: 40px 20px;
    position: relative;
}

/* Logo */
.logo-container {
    margin-bottom: 30px;
    text-align: center;
}

.logo {
    width: 260px;
    max-width: 90%;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

/* Search form */
form {
    width: 100%;
    max-width: 700px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    position: relative;
}

.search-row {
    display: flex;
    width: 100%;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Input field */
input[type="text"] {
    flex: 1;
    height: 48px;
    padding: 0 20px;
    font-size: 18px;
    border: 1px solid #d1d5db;
    border-radius: 24px;
    background-color: #ffffff;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input[type="text"]:focus {
    border-color: #4285f4;
    box-shadow: 0 0 0 4px rgba(66, 133, 244, 0.2);
    outline: none;
}

/* Submit button */
input[type="submit"] {
    height: 48px;
    padding: 0 24px;
    font-size: 18px;
    font-weight: 600;
    background: linear-gradient(135deg, #007cf0, #00dfd8, #ff0080, #7928ca);
    background-size: 300% 300%;
    color: white;
    border: none;
    border-radius: 24px;
    cursor: pointer;
    transition: background-position 0.5s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

input[type="submit"]:hover {
    background-position: right center;
    transform: scale(1.04);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

input[type="submit"]:active {
    transform: scale(0.97);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Suggestions dropdown */
#suggestions {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ccc;
    border-radius: 0 0 10px 10px;
    z-index: 10;
    max-width: 700px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

#suggestions.active {
    display: block;
}

#suggestions div {
    padding: 10px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.2s ease;
}

#suggestions div:hover {
    background-color: #f1f3f4;
}

/* Footer */
.Footer {
    padding: 20px 0;
    background-color: #f1f3f4;
    border-top: 1px solid #e0e0e0;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.footer-links a {
    color: #5f6368;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #202124;
}

.copyright {
    font-size: 13px;
    color: #777;
}

/* Mobile layout */
@media (max-width: 600px) {
    .Main {
        padding: 20px 10px;
    }

    .search-row {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    input[type="text"] {
        width: 100%;
        font-size: 16px;
        height: 52px;
        /* Increased height */
        padding: 6px 20px;
        border-radius: 28px;
    }

    input[type="submit"] {
        width: 100%;
        font-size: 16px;
        height: 40px;
        /* Match input height */
    }

    #suggestions {
        position: static;
        border-radius: 8px;
        max-width: 100%;
    }

    #suggestions div {
        font-size: 14px;
        padding: 10px 14px;
    }

    .logo {
        width: 200px;
    }

    .footer-links {
        gap: 12px;
        flex-direction: column;
        align-items: center;
    }

    .Footer {
        padding: 16px 10px;
    }
}