/* General Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Ensure footer sticks to the bottom */
}

header {
    background-color: #333;
    color: #fff;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .logo {
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    color: #fff;
}

header .nav-links a {
    color: #fff;
    text-decoration: none;
    margin-left: 20px;
    font-size: 1rem;
}

header .nav-links a:hover {
    text-decoration: underline;
}

main {
    flex: 1; /* Take up remaining space */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

.hero {
    text-align: center;
    max-width: 600px;
    width: 100%;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #666;
}

.url-shortener {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.url-shortener input {
    width: 70%;
    padding: 15px;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    outline: none;
}

.url-shortener input:focus {
    border-color: #333;
}

.url-shortener button {
    padding: 15px 20px;
    font-size: 1rem;
    background-color: #333;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.url-shortener button:hover {
    background-color: #555;
}

#shortened-url {
    font-size: 1.1rem;
    color: #333;
    word-wrap: break-word;
}

/* Footer Styles */
footer {
    background-color: #333;
    color: #fff;
    padding: 20px;
    text-align: center;
}

footer .footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

footer .footer-links {
    margin-bottom: 10px;
}

footer .footer-links a {
    color: #fff;
    text-decoration: none;
    margin: 0 15px;
    font-size: 0.9rem;
}

footer .footer-links a:hover {
    text-decoration: underline;
}

footer p {
    margin: 0;
    font-size: 0.9rem;
    color: #ccc;
}

/* Mobile Styles */
@media (max-width: 600px) {
    header {
        padding: 10px;
    }

    header .logo {
        font-size: 1.2rem;
    }

    header .nav-links a {
        font-size: 0.9rem;
        margin-left: 10px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .url-shortener {
        flex-direction: column;
        gap: 10px;
    }

    .url-shortener input {
        width: 100%;
        padding: 12px;
    }

    .url-shortener button {
        width: 100%;
        padding: 12px;
    }

    footer .footer-links {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    footer .footer-links a {
        margin: 5px 0;
    }
}