@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

:root{
    --Cyan: hsl(180, 66%, 49%);
    --Dark-Violet: hsl(257, 27%, 26%);
    --Red: hsl(0, 87%, 67%);
    --Gray: hsl(0, 0%, 75%);
    --Grayish-Violet: hsl(257, 7%, 63%);
    --Very-Dark-Blue: hsl(255, 11%, 22%);
    --Very-Dark-Violet: hsl(260, 8%, 14%);
}

body{
    text-align: center;
    background-color: #f0f1f6;
    font-family: Poppins, Segoe UI;
    overflow-x: hidden;
}

.padding{
    padding-left: 1rem;
    padding-right: 1rem;
}

a{
    text-decoration: none;
    color: var(--Gray);
}


button{
    border: none;
    background-color: var(--Cyan);
    padding: 1.5rem;
    color: white;
    border-radius: 2rem;
    width: 56%;
    font-size: 18px;
}

.boxButton{
    border-radius: .7rem;
    padding: 1.4rem;
    font-size: 1.4rem;
    width: 100%;
}

.desktopNav{
    display: none;
}

.hide{
    display: none !important;
}

.mobileNav{
    padding-top: 2rem;
    display: flex;   
    justify-content: space-between;
    align-items: center;
    background-color: white;
}

.error{
    border: 3px solid var(--Red);
}

#errorMessage{
    color: var(--Red);
    /* border: 1px solid; */
    margin-top: 0;
    margin-bottom: 0;
}



#links{
    position: fixed;
    width: 95%;
    height: 50vh;
    border-radius: .5rem;
    margin-top: 25rem;
    position: absolute;
    background-color: var(--Dark-Violet);
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
}

.mobileNav .links a{
    font-size: 18px;
    font-weight: 600;
    color: white;
}

.links hr{
    width: 90%;
    color: var(--Gray);
}

.sectionOne{
    background-color: white;
}

.sectionOne img{
    width: 150%;
}

.sectionOne h1{
    font-size: 3rem;
}

p{
    font-size: 1.8rem;
    color: var(--Gray);
}

.sectionTwo{
    margin-top: 4rem;
    padding: 2rem;
    background-color: var(--Dark-Violet);
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* align-items: center; */
    border-radius: 1rem;
    gap: 2rem;
    background-image: url(images/bg-shorten-mobile.svg);
    background-repeat: no-repeat;
    background-position-x: right;
    background-position-y: top;
}

.sectionTwo input{
    height: 4rem;
    border-radius: .7rem;
    padding-left: 2rem;
    font-size: 1.5rem;
}

#result .item{
    /* border: 1px solid black; */
    display: flex;
    justify-content: right;
    align-items: center;
    flex-direction: row;
    gap: 1rem;
    background-color: #fff;
    margin-inline: auto;
    width: 85%;
    margin-top: 2rem;
    border-radius: 1rem;
    padding: 0.5rem 1rem;
    color: black;
}

.item p{
    color: var(--Cyan);
    font-size: 1rem;
    /* margin-left: 50%; */
}

#input{
    color: black;
    width: 100%;
}

.newUrl-btn{
    border-radius: 0.2rem;
    color: #fff;
    font-size: 1rem;
    text-align: center;
    background: var(--Cyan);
    cursor: pointer;
    outline: none;
    border: none;
    width: 10%;
    border-radius: .4rem;
}

.sectionThree{
    margin-top: 7rem;
}

.card{
    background-color: white;
    margin-top: 7rem;
    border-radius: 1rem;
    padding: 2rem;
}

.card img{
    margin-top: -7rem;
    background-color: var(--Very-Dark-Blue);
    border: none;
    padding: 1rem;
    border-radius: 50%;
    width: 10%;
}

.sectionFour{
    margin-top: 7rem;
    padding: 6rem;
    background-color: var(--Dark-Violet);
    color: white;
    background-image: url(images/bg-boost-mobile.svg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}



.sectionFour button{
    width: 100%;
}

footer{
    color: white;
    background-color: var(--Very-Dark-Violet);
    padding: 2rem;
}

.footerLinks, .column{
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.socials{
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

@media (min-width: 900px){
    body{
        text-align: left;
    }
    
    .error{
        border: 3px solid var(--Red);
    }
    
    #errorMessage{
        color: var(--Red);
        /* border: 1px solid; */
        margin-top: 0;
        margin-bottom: 0;
    }

    button{
        padding: 1rem;
        width: 50%;
    }

    button:hover{
        background-color: #9be3e2;
        cursor: pointer;
    }

    a:hover{
        color: var(--Very-Dark-Blue);
    }

    .desktopNav{
        padding-top: 2rem;
        padding-left: 5rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
        background-color: white;
    }

    .desktopNav .links{
        display: flex;
    }

    .mobileNav{
        display: none;
    }
    .mobileNav .links{
        display: none;
    }

    p{
        font-size: 1.5rem;
        font-weight: 600;
    }

    .left, .links{
        display: flex;
        gap: 2rem;
    }

    .right{
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 1.7rem;
        padding-right: 4rem;
    }

    .right button{
        padding: 1rem;
        width: auto;
    }

    .sectionOne{
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-direction: row-reverse;
        padding: 4.3rem;
        padding-top: 6rem;
        gap: 2rem;
        padding-bottom: 12rem;
    }

    .sectionOne img{
        width: 70%;
        /* border: 1px solid; */
        transform: translateX(18rem);
    }

    .sectionOne h1{
        font-size: 5rem;
        line-height: 5.5rem;
        width: 180%;
        /* border: 1px solid; */
    }

    .sectionOne p{
        margin-top: -3rem;
        width: 170%;
    }

    .sectionOne button{
        padding: 1rem;
        width: 50%;
    }

    .sectionTwo{
        margin: 0 auto;
        width: 80%;
        margin-top: -4rem;
        display: flex;
        background-image: url(images/bg-shorten-desktop.svg);
        background-repeat: no-repeat;
        background-position: center;
        background-size: cover;
    }

    .sectionTwo button{
        margin-top: -6rem;
        width: 20%;
        font-size: 18px;
        align-self: flex-end;
    }
    .sectionTwo input{
        width: 70%;
        align-self: flex-start;
        border: none;
    }

    .sectionThree{
        text-align: center;
    }

    .sectionThree p{
        width: 51%;
        margin: 0 auto;
    }

    .cards{
        display: flex;
        gap: 1.5rem;
    }

    .card:nth-child(1){
        height: 14rem;
    }

    .card:nth-child(2){
        margin-top: 10rem;
        height: 14rem;
    }

    .card:nth-child(3){
        margin-top: 14rem;
    }

    .card{
        width: 30%;
        font-size: 18px;
        text-align: left;
        position: relative;
        /* padding-bottom: 0; */
    }

    .card::after{
        content: '';
        position: absolute;
        background-color: var(--Cyan);
        width: 100%;
        height: 1rem;
        top: 10rem;
        z-index: -3;
    }

    .card:nth-child(3)::after{
        display: none;
    }

    .card img{
        padding: 2rem;
        width: 12%;
        border: none;
    }

    .card p{
        margin-left: 0;
        font-size: 18px;
        width: 100%;
        /* border: 1px solid; */
    }

    .sectionFour{
        background-image: url(images/bg-boost-desktop.svg);
        background-size: cover;
        background-repeat: no-repeat;
        background-position: center;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        height: 4rem;
    }

    .sectionFour h1{
        font-size: 2.5rem;
    }

    .sectionFour button{
        width: 20%;
    }

    footer, .footerLinks{
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
    }

    .footerLinks{
        flex-direction: row;
        justify-content: space-between;
        /* border: 1px solid; */
        width: 45%;
        margin-left: 13rem;
    }

    .column{
        gap: .4rem;
    }

    footer a:hover{
        color: var(--Cyan);
    }
}