*{
    box-sizing: border-box;
}

html, body{
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
}

.flex-container{
    width: 100%;
    height: 100%;
    flex-direction: column;
    display: flex;
    gap: 30px;
    background-color: #F7F8FA;
}

nav{
    background-color: white;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 15%;
    border-bottom: 1px solid #E4E7EC;
    box-shadow: 0 2px 4px 0 rgba(0,0,0,.2);
}

.title{
    display: flex;
    align-items: center;
    height: 50%;
    width: 40%;
    margin-left: 15px;
    color: #3B3A8C;
    font-size: 30px;
}

.nav-links{
    height: 50%;
    width: 60%;
    max-width: 200px;
    flex-wrap: wrap;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px
}

.login-btn, .signup-btn{
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    color: white;
    background-color: #FF6B5C;
    padding: 10px 15px;
    border-radius: 5px;
}

main{
    width: 100%;
    height: 75%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
}

.hero{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

}

.hero .heading{
    color: #1E2A56;
    font-size: 35px;
    margin: 10px;
    text-align: center;
}

.hero .subheading{
    color:  #5A6472;
    font-size: 16px;
    text-align: center;
}

.url-input-form{
    width: 60%;
    height: 10%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.url-input-box{
    color: #5A6472;
    padding-left: 15px;
    width: 80%;
    height: 100%;
    min-height: 40px;
    min-width: 200px;
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
    border: 1px solid #E4E7EC;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}
.submit-btn{
    width: 20%;
    height: 100%;
    min-height: 40px;
    min-width: 60px;
    color: white;
    background-color: #FF6B5C;
    border: 1px solid #E4E7EC;
    border-radius: 5px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.invalid-link{
    display: none;
    color: #FF6B5C;
    border: 1px solid #FF6B5C;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.valid-link{
    display: none;
    color: #1F9D55;
    border: 1px solid #1F9D55;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.output-box{
    display: none;
    width: 60%;
    padding: 20px;
    background-color: white;
    border-radius: 5px;
    border: 1px solid #E4E7EC;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    flex-direction: column;
    gap: 30px;
}

.short-url-box{
    width: 100%;
    height: 30%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

.short-url{
    font-size: 25px;
    width: 60%;
    min-width: 200px;
    margin: 0;
    color: #1E2A56;
}

.utility-btns{
    width: 40%;
    display: flex;
    gap: 10px;
}

.copy-btn{
    width: 50%;
    min-width: 65px;
    min-height: 40px;
    font-size: 12px;
    color: white;
    background-color: #FF6B5C;
    padding: 8px 10px;
    border-radius: 5px;
    border: 1px solid #E4E7EC;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.qr-btn{
    width: 50%;
    min-width: 65px;
    font-size: 12px;
    padding: 8px 10px;
    border-radius: 5px;
    border: 1px solid #E4E7EC;
    background-color: white;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.other-info-box{
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

.long-url-box{
    width: 60%;
    min-width: 200px;
    font-size: 15px;
    display: flex;
    flex-direction: column;
    color:  #5A6472;
}

.short-another-btn{
    width: 40%;
    min-width: 160px;
    font-size: 12px;
    padding: 8px 10px;
    border-radius: 5px;
    border: 1px solid #E4E7EC;
    background-color: white;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

footer{
    margin-top: 20px;
    color:#5A6472;
    font-size: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 10%;
    min-height: 60px;
    background-color: white;
    border-top: 1px solid #E4E7EC;
    box-shadow: 0 -2px 4px 0 rgba(0,0,0,.2);
}

@media (max-width: 768px) {
    main{
        height: 100%;
    }
    .url-input-form{
        height: 5%;
        width: 100%;
        gap: 20px;
    }
    .url-input-box{
        width: 80%;
    }
    .submit-btn{
        width: 30%;
    }
    .invalid-link, .valid-link{
        margin-top: 70px;
    }
    .output-box{
        width: 80%;
        gap: 50px;
        padding: 30px;
    }
    .short-url-box{
        gap: 20px;
    }
    .utility-btns{
        width: 100%;
    }
    .other-info-box{
        gap: 30px;
    }
    .short-another-btn{
        width: 100%;
    }
}