/* Reset and Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: #f9f9f9;
    color: #333;
    line-height: 1.6;
}

/* Header Styles */
#header {
    background-color: #0073e6;
    color: white;
    padding: 1rem;
    text-align: center;
    font-size: 1.8rem;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Main Content Styles */
#content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column; /* Aligning content vertically */
    padding: 2rem;
}

.input-form {
    background: #ffffff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    text-align: center;
    margin-bottom: 2rem; /* Space between form and result */
}

.input-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: #555;
}

.input-form input[type="url"] {
    width: 100%;
    padding: 0.8rem;
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.input-form input[type="url"]:focus {
    border-color: #0073e6;
}

.submit-btn {
    background-color: #0073e6;
    color: #fff;
    border: none;
    padding: 10px 20px;
    font-size: 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: #005bb5;
}

#result {
    margin-top: 2rem;
    text-align: center;
    width: 100%;
    max-width: 400px;
}

#result h5 {
    font-size: 1.5rem;
    color: #0073e6;
    margin-bottom: 1rem;
}

#result p {
    font-size: 1.2rem;
    color: #333;
    display: flex; /* Align elements horizontally */
    justify-content: center; /* Center both elements */
    align-items: center; /* Vertically center */
    gap: 10px; /* Space between the URL and button */
}

#result a {
    color: #0073e6;
    text-decoration: none;
    font-weight: bold;
}

#result a:hover {
    text-decoration: underline;
}

/* Copy Button next to the result text */
#copyButton {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #0073e6;
    color: #fff;
    font-size: 1rem;
    padding: 8px 12px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

#copyButton i {
    margin-right: 8px;
}

#copyButton:hover {
    background-color: #005bb5;
    transform: scale(1.05);
}

#copyButton:active {
    transform: scale(0.95);
}


/* Footer Styles */
#footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 1rem;
    font-size: 0.9rem;
}

.socials {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
}

.socials li a {
    color: #fff;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.socials li a:hover {
    color: #0073e6;
}

.copyright p {
    margin: 5px 0;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 600px) {
    #header {
        font-size: 1.5rem;
    }

    .input-form {
        padding: 1.5rem;
    }

    #result h5 {
        font-size: 1.2rem;
    }

    #result p {
        font-size: 1rem;
    }
}
