@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500;700&display=swap');

.attribution a {
    color: hsl(228, 45%, 44%);
}

.attribution {
    text-align: center;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    font-family: 'Poppins', sans-serif;
    font-size: 62.5%;
    --primary: hsl(257, 27%, 26%);
    --secondary: hsl(180, 66%, 49%);
    --headers: hsl(260, 8%, 14%);
    --placeholder-text: hsl(0, 0%, 75%);
    --btn: hsl(180, 66%, 49%);
    --plain-text: hsl(257, 7%, 63%);
    --footer: hsl(255, 11%, 22%);
    --error: hsl(0, 87%, 67%);
}

html {
    overflow: auto;
    font-family: 'Poppins', sans-serif;
}

body {
    width: 100vw;
    padding: 3rem 3rem 0 3rem;
    font-size: 1.8rem;
    background-color: #eff1f7;
    overflow: hidden;
}

.background {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 85rem;
    background-color: white;
    z-index: -1;
}

main {
    margin: 2rem 0 0 0;
    z-index: 2;
}

/*NAV CONFIG*/
.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 3.5rem;
    max-width: 100vw;
}

/*BURGER BUTTON*/
.menu-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 2.5rem;
    height: 1rem;
    cursor: pointer;
    transition: all .5s ease-in-out;
}

.menu-btn__burger {
    width: 5rem;
    height: 0.3rem;
    background: #9d9ba6;
    border-radius: 0.5rem;
    transition: all .5s ease-in-out;
}

.menu-btn__burger::before,
.menu-btn__burger::after {
    content: '';
    position: absolute;
    width: 2.5rem;
    height: 0.3rem;
    background: #9d9ba6;
    border-radius: 5rem;
    transition: all .5s ease-in-out;
}

.menu-btn__burger::before {
    transform: translateY(-1.0rem);
}

.menu-btn__burger::after {
    transform: translateY(1.0rem);
}
/*END BURGER BUTTON*/

/*NAV ELEMENT*/
.nav-purple {
    position: absolute;
    top: 8.5rem;
    left: 2vw;
    right: 2vw;
    background: var(--primary);
    min-height: 40rem;
    max-width: 90%;
    margin: 0 2rem;
    border-radius: 1rem;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.nav-purple ul {
    list-style: none;
}

.nav-purple ul li a{
    font-weight: bold;
    text-decoration: none;
    color: #fff;
}

.nav-purple hr {
    width: 100%;
    border: 1px solid #51476a;
}

.nav-login li, .nav-bar li {
    margin: 3rem 0;
}
/*END NAV ELEMENT*/

/*ROUNDED BUTTON PURPLE*/
.nav-login {
    width: 100%;
}

.nav-login li:nth-child(2) {
    display: flex;
}
/*ROUNDED BUTTON PURPLE*/

/*BANNER*/
.banner {
    display: flex;
    flex-wrap: wrap-reverse;
    margin-bottom: 10rem;
}

.banner .banner-img{
    margin: 0 auto;
}

.banner .banner-img img {
    width: 150%;
}

.banner .banner-text {
    margin-top: 3rem;
    text-align: center;
    color: var(--plain-text);
    margin: 0 auto;
}

.banner .banner-text h1 {
    color: var(--headers);
    font-weight: 700;
}

.banner .banner-text p {
    margin: 1rem 0 4.5rem 0;
}

.banner .banner-text a{
    text-decoration: none;
    color: #fff;
    font-weight: bold;
    padding: 1.6rem 5rem;
}
/*END BANNER*/

/*SHORTENER*/
.shortener { 
    background: url(../images/bg-shorten-mobile.svg) no-repeat 8rem -3rem;
    background-size: 100% 100%;
    background-color: hsl(257, 27%, 26%);
    padding: 2rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.shortener .url-to-shorten {
    font-size: 1.7rem;
    font-family: 'Poppins', sans-serif;
}

.shortener p {
    width: 100%;
    color: var(--error);
    font-size: 1.3rem;
    font-style: italic;
    margin: 0.3rem 0;
}

.shortener .placeholder-invalid::placeholder {
    color: var(--error);
    opacity: 0.7;

}

.shortener .url-to-shorten {
    flex: 1;
    padding: 1.4rem;
    border: none;
    border-radius: 0.5rem;
    min-width: 100%;
}

.shortener .btn-squared {
    flex: 1;
    margin-top: 2rem;
}

.shortener .btn-squared span {
    font-size: 2rem;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
}
/*END SHORTENER*/

/*SHORTENED LINKS*/
.shortened-links {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    align-items: center;
}

.shortened-links .link-container {
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: center;
    margin: 2rem 0;
    border-radius: 0.5rem;
    background: white;
    padding: 1rem;
}

.shortened-links .link-container * {
    width: 100%;
    word-wrap: break-word;
    margin: 1rem 0;
    flex: 1;
}

.shortened-links .link-container .old-link {
}

.shortened-links .link-container hr {
    width: auto;
    margin: 0 -1rem;
    border: 1px solid #eff1f7;
}

.shortened-links .link-container .new-link {
    color: var(--secondary);
}

.shortened-links .link-container .btn-squared {
}
/*END SHORTENED LINKS*/

/*ADVANCED STATS HEADER*/
.advanced-header {
    margin: 4rem 0;
    text-align: center;
}

.advanced-header h2 {
    margin-bottom: 2rem;
    font-size: 3rem;
}

.advanced-header p {
    color: var(--plain-text);
}
/*END ADVANCED STATS HEADER*/

/*ADVANCED STATS FLEX*/
.advanced-cards-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.advanced-cards-container .advanced-card {
    background: white;
    margin: 5rem 0;
    padding: 4rem 2rem;
}

.advanced-cards-container .advanced-card .circle {
    position: relative;
    margin: 0 auto;
    bottom: 8rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 8rem;
    height: 8rem;
    border-radius: 50%;
    background: var(--primary);
}

.advanced-cards-container .advanced-card h3 {
    margin: -5rem 0 1.5rem 0;
    color: var(--headers);
    font-size: 2rem;
}

.advanced-cards-container .advanced-card p {
    font-size: 1.6rem;
    color: var(--plain-text);
}

.tail {
    margin: -5rem auto -1rem auto;
    width: 1rem;
    height: 6rem;
    background: var(--secondary);
}
/*END ADVANCED STATS FLEX*/

/*BOOST LINKS SECTION*/
.boost {
    position: relative;
    left: -3rem;
    width: 100vw;
    background: url(../images/bg-boost-mobile.svg) no-repeat;
    background-size: 100% 100%;
    background-color: hsl(257, 27%, 26%);
    padding: 8rem 2rem;
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
}
.boost a {
    text-decoration: none;
    color: white;
    padding: 1rem 2rem;
    margin-top: 2rem;
}
/*END BOOST LINKS SECTION*/

/*FOOTER*/
footer {
    position: relative;
    left: -3rem;
    top: -1px;
    width: 100vw;
    background-color: var(--footer);
    padding: 5rem 2rem;
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
}

footer .footer-logo {
    filter: invert(99%) sepia(36%) saturate(54%) hue-rotate(156deg) brightness(124%) contrast(100%);
}

footer .link-block {
    display: flex;
    flex-direction: column;
    align-items: center;
}

footer .link-block h4 {
    margin: 3.5rem 0 1.5rem 0;
}

footer .link-block a {
    text-decoration: none;
    color: white;
    font-size: 1.5rem;
    margin: 0.5rem 0;
}

footer ul {
    margin: 4rem 0 0 0;
    list-style: none;
    display: flex;
    width: 50%;
    align-items: center;
    justify-content: space-between;
}
/*END FOOTER*/

/*BUTTON PRESETS*/
.btn-rounded{
    flex: 1;
    background: var(--btn);
    padding: 2rem;
    border-radius: 4rem;
    transition: all 0.3s ease;
    cursor: pointer;
}
    
.btn-rounded:hover, .btn-squared:hover{
    background: #9BE3E2;
}

.btn-squared{
    background: var(--btn);
    color: #fff;
    font: 700 1.6rem 'Poppins', sans-serif;
    padding: 1.4rem;
    border: none;
    border-radius: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-squared-active {
    background: var(--primary);
    color: #fff;
    font: 700 1.6rem 'Poppins', sans-serif;
    padding: 1.4rem;
    border: none;
    border-radius: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
}
/*END BUTTON PRESETS*/

/*LOADING DOTS*/
.loading-dots {
    text-align: center;
    min-width: 100%;
    margin-top: 2rem;
    display: none;
}

.loading-dots > div {
    width: 3rem;
    height: 3rem;
    background-color: #fff;
    border-radius: 50%;
    display: inline-block;
    animation: 1.5s bounce infinite ease-in-out both;
}

.loading-dots .bounce {
    animation-delay: -0.3s;
}

.loading-dots .bounce2 {
    animation-delay: -0.15s;
}
/*END LOADING DOTS*/

/* CONTROLS HIDDEN ELEMENTS */
.hidden {
    display: none;
}
/* END CONTROLS HIDDEN ELEMENTS */

@media screen and (min-width:768px) {
    .background {
        height: 116rem;
    }
}

@media screen and (min-width:769px) {
    /* VITALS */
    body {
        padding: 3rem 10vw ;
    }
    .hidden {
        display: flex;
    }
    .menu-btn {
        display: none;
    }
    .background {
        height: 74rem;
    }
    /* END VITALS */
    
    /* NAV */
    .nav img {
        margin: 0 1rem 0 0;
    }
    .nav-purple {
        position: initial;
        background: #fff;
        height: 10rem;
        width: 100%;
        min-height: auto;
        max-width: auto;
        padding: 0;
        margin: 0;
        flex-direction: row;
        justify-content: space-between;
    }
    .nav-purple ul li a{
        color: var(--plain-text);
    }
    .nav-bar li a:hover, 
    .nav-login li:first-child a:hover {
        color: var(--primary);
    }
    .nav-purple ul {
        min-width: 40%;
        display: flex;
        align-items: center;
    }
    .nav-purple .nav-login {
        max-width: 100px;
        justify-content: flex-end;
    }
    .nav-login a.btn-rounded {
        padding: 1rem 3rem;
        color: #fff;
    }
    .nav-purple ul li {
        display: flex;
        justify-content: space-between;
    }
    .nav-purple hr {
        display: none;
    }
    .nav-login li, .nav-bar li {
        margin: 3rem 1rem;
    }
    /* END NAV */

    /*BANNER*/
    .banner {
        display: flex;
        flex-wrap: nowrap;
        margin-bottom: 10rem;
        align-items: center;
    }
    .banner .banner-text {
        text-align: left;
        padding-right: 5vw;
    }
    .banner .banner-text h1{
        font-size: 7rem;
    }
    .banner .banner-text p {
        margin-top: -1rem;
        font-size: 2rem;
    }
    .banner .banner-img {
        
    }
    /*END BANNER*/

    /*SHORTENER*/
    .shortener { 
        background: url(../images/bg-shorten-desktop.svg) no-repeat;
        background-size: 100% 100%;
        background-color: hsl(257, 27%, 26%);
        padding: 3rem 5rem;
        flex-wrap: wrap;
    }
    
    .shortener .url-to-shorten {
        order: 1;
        min-width: 0;
        flex: 5;
    }

    .shortener #main-button {
        margin: 0 0  0 3rem;
        order: 2
    }

    .shortener:nth-child(3) {
        flex-basis: 100%;
    }

    .shortener p {
        order: 3
    }

    .shortener .loading-dots {
        order: 4;
    }
    /*END SHORTENER*/

    /*SHORTENED LINKS*/
    

    /*END SHORTENED LINKS*/

    /*ADVANCED STATS*/
    .advanced-header {
        padding: 0 20vw;
    }
    /*END ADVANCED STATS*/

    /*ADVANCED STATS GRID*/
    .advanced-cards-container {
        /*display: grid;
        grid-template-columns: repeat(9,1fr);
        grid-template-rows: repeat(10,10rem);*/
        flex-direction: row;
        display: flex;
        width: 100%;
        margin-bottom: 20rem;
    }

    .advanced-cards-container .advanced-card:first-child {
        margin-left: 0;
    }

    .advanced-cards-container .advanced-card:nth-child(3) {
        margin: 4rem 2rem -4rem 2rem;
    }

    .advanced-cards-container .advanced-card:nth-child(5) {
        margin: 8rem 0 -8rem 2rem;
    }

    .advanced-cards-container .advanced-card {
        margin: 4rem 2rem;
    }

    .advanced-cards-container .advanced-card .circle {
        margin: 0;
    }

    .tail {
        margin: 0 -2rem;
        width: 15rem;
        height: 1rem;
    }
    /*END ADVANCED STATS FLEX*/

    /*BOOST LINKS SECTION*/
    .boost {
        left: -15%;
        width: 102vw;
        background: url(../images/bg-boost-desktop.svg) no-repeat;
        background-size: 100% 100%;
        background-color: hsl(257, 27%, 26%);
    }

    .boost h3 {
        font-size: 4rem;
    }

    footer {
        position: relative;
        left: -15%;
        width: 102vw;
        background-color: var(--footer);
        padding: 5rem 15%;
        flex-direction: row;
        justify-content: space-between;
        align-items: baseline;
    }

    footer .separator {
        display: flex;
        flex-direction: row;
        justify-content: flex-end;
        width: 50%;
        margin-top: -10rem;
    }

    footer .link-block h4 {
        margin: 0 0 1rem 0;
    }

    footer .link-block {
        align-items: flex-start;
        margin: 0 5%;
    }

    footer ul {
        margin: 0;
        width: 20%;
    }
    /*END BOOST LINKS SECTION*/
}

/* @media screen and (min-width:1366px) {
    .background {
        height: 89rem;
    }
} */

@media screen and (min-width:2560px) {
    .background {
        height: 100rem;
    }
}