/* Global Styles */
:root {
    /* Initial gradient values; these will be overridden by JavaScript */
    --header-gradient: linear-gradient(135deg, #ff6f61, #e64a45);
    --button-gradient: linear-gradient(135deg, #ff6f61, #e64a45);
}

body {
    font-family: 'Helvetica Neue', 'Arial', sans-serif;
    background-color: #f0f0f0; /* Light grey background */
    margin: 0;
    padding: 0;
    color: #333;
}

/* Header Styles */
header {
    background: var(--header-gradient);
    color: #fff;
    padding: 2rem 1rem;
    text-align: center;
    font-size: 2.5rem;
    position: relative;
    overflow: hidden;
}

header h1 {
    color: #fff;
}

/* Main Content Styles */
main {
    margin: 2rem auto;
    max-width: 800px;
    padding: 2rem;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Form Styles */
form {
    display: flex;
    flex-direction: column;
    width: 100%;
    align-items: center;
}

input {
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    width: 100%;
    max-width: 500px;
    border: 2px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 1.1rem;
    background-color: #fff;
}

input:focus {
    outline: none;
    border-color: #888;
    box-shadow: 0 0 5px rgba(136, 136, 136, 0.5);
}

/* Button Styles */
button {
    background: var(--button-gradient);
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 5px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

button:hover {
    opacity: 0.9;
}

/* Result Styles */
#result {
    margin-top: 2rem;
    text-align: center;
    color: #333;
}

.result-item {
    margin-bottom: 1.5rem;
}

.result-label {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 0.5rem;
}

.result-value {
    font-size: 1.8rem;
    color: #222;
}

#short-url {
    font-size: 2rem;
    font-weight: bold;
    word-wrap: break-word;
    color: #007BFF; /* Blue color */
    text-decoration: none;
}

#short-url:hover {
    text-decoration: underline;
}

/* Footer Styles */
footer {
    text-align: center;
    padding: 1rem;
    background: var(--header-gradient);
    color: #fff;
    position: fixed;
    width: 100%;
    bottom: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    header {
        font-size: 2rem;
        padding: 1.5rem 1rem;
    }

    main {
        margin: 1.5rem;
        padding: 1.5rem;
    }

    input, button {
        font-size: 1rem;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    header {
        font-size: 1.5rem;
    }

    main {
        margin: 1rem;
        padding: 1rem;
    }

    button {
        padding: 0.5rem 1rem;
    }
}
