* {
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #0f0f0f;
    color: #fff;
    font-family: 'Roboto', sans-serif;
    padding-top: 3rem;
}

a {
    color: #1da1f2;
    text-decoration: none;
}

a:hover {
    transition: color 0.3s ease;
    color: #ffcc00;
    text-decoration: underline;
}

#nav_bar {
    width: 100%;
    text-align: center;
    background-color: #0f0f0f;
}

#main_heading {
    font-size: 4rem;
}

#main_container,
#about_container {
    max-width: 960px;
}

/* -------------------- MAIN SECTION -------------------- */

#main_container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 80%;
    margin-top: 5rem;
    margin-bottom: 5rem;
}

#url-form {
    display: flex;
    align-items: center;
    flex-direction: column;
    width: 100%;
}

#main_label_text {
    display: flex;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 3rem;
    width: 100%;
}

#main_input_container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    width: 100%;
    padding-bottom: 1rem;
}

#url-input {
    padding: 1rem;
    font-size: 1.1rem;
    border-radius: 0.7rem;
    border: none;
    outline: none;

    width: 45%;
    height: 20px;
}

#main_button {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.1rem;
    border: none;
    border-radius: 0.7rem;
    background-color: #1da1f2;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;

    width: 15%;
    height: 50px;
}

#main_button:hover {
    background-color: #0d8ddb;
    transform: scale(1.03);
}

#main_button:active {
    background-color: #0b78b0;
    transform: scale(0.98);
}

#result_container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1.5rem;
    width: 100%;
    max-width: 600px;
}

#result {
    background-color: #0f0f0f;
    color: #fff;
    padding: 0.8rem;
    font-size: 1rem;
    border-radius: 0.5rem;
    border: none;
    outline: none;
    width: 45%;

}

#copy_icon {
    display: none;
    cursor: pointer;
    transition: transform 0.2s ease;
}

#copy_icon:hover {
    transform: scale(1.1);
    fill: #ffcc00;
}

/* -------------------- ABOUT SECTION -------------------- */

#about_container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 80%;
}

#about_heading {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
}

#about_text {
    width: 80%;
}
/* -------------------------------- FOOTER  -------------------------------- */

footer {
    margin-top: auto;
    padding: 1rem;
}

#git-link {
    text-decoration: none;
    letter-spacing: 0;
    color: white;
    display: flex;
    align-items: center;
    margin: 10px 0;
    height: 38px;
}

#git-logo {
    width: 35px;
    height: 35px;
    margin: 0 10px;
    filter: brightness(0) invert(1);
    transition: transform 0.3s ease-in-out;
}

#git-link:hover #git-logo {
    transform: rotate(360deg) scale(1.2);
}

/* -------------------------------- RESPONSIVE -------------------------------- */

@media (max-width: 670px) {
    #main_heading {
        font-size: 3.0rem;
    }

    #main_container {
        margin-top: 4rem;
        margin-bottom: 0rem;
    }

    #main_label_text {
        font-size: 1.1rem;
        text-align: center;
        margin-bottom: 2rem;
    }

    #main_input_container {
        flex-direction: column;
        gap: 0.8rem;
        width: 100%;
    }

    #url-input {
        width: 70%;
        font-size: 1rem;
        height: 20px;
        border-radius: 0.7rem;
    }

    #main_button {
        width: 30%;
        height: 40px;
        font-size: 1rem;
        border-radius: 0.7rem;
    }

    #main_container {
        width: 100%;
    }

    #about_container {
        width: 100%;
    }

    #about_heading {
        font-size: 1.3rem;
    }

    #about_text {
        font-size: 0.95rem;
        width: 80%;
    }

    #result_container {
        margin-bottom: 2rem;
    }

    #result {
        width: 70%;
    }
}
