.main_referral_link {
    position: absolute;
    margin-top: 120px;
    width: 40%;
    height: inherit;
    font-family: Roboto, Open-Sans, sans-serif;
    color: #0e0e0e;
}

.main_referral_link,
.referral_link_form_container,
.referral_link,
.link_button_wrapper,
.links_info_wrapper,
.row {
    display: flex;
}

.main_referral_link, .referral_link_form_container {
    justify-content: center;
    flex-direction: column;
}

.main_referral_link {
    align-content: center;
}

.links_info_wrapper {
    flex-direction: row;
    justify-content: space-between;
    margin: 40px 0 100px 0;
}

.referral_link_form {
    width: 100%;
}

.referral_link {
    position: relative;
    flex-direction: row;
}

.link {
    position: relative;
    outline: none;
    width: 80%;
    text-align: center;
}

#copyButton {
    margin-top: 10px;
    background-color: transparent;
    border: none;
    width: 34px;
    height: 44px;
    text-transform: none;
    background-image: url(../img/copy.svg);
    background-repeat: no-repeat;
    cursor: pointer;
}

#copiedText {
    display: none;
    width: 24px;
    margin: 0;
    text-transform: none;
    background-image: url(../img/done.svg);
    background-repeat: no-repeat;
}

.copy_done {
    position: absolute;
    top: 25%;
    right: 10%;
    height: 24px;
}

.product_name,
.product_link,
.listItem,
.form_note {
    font-size: 0.8em;
}

.form_note {
    margin-bottom: 20px;
}

.form_input {
    margin: 6px 0 10px 0;
    padding-left: 20px;
    width: 100%;
    height: 38px;
    width: 100%;
    font-size: 1em;
}

.link_button_wrapper {
    justify-content: flex-end;
    width: 100%;
}

.generate_link {
    padding: 12px 36px;
    border: none;
    background-color: #0000FF;
    color: #ffffff;
    cursor: pointer;
}

.generate_link:hover {
    background-color: #0090ff;
    transition: .3s;
}

.row {
    flex-direction: column;
}

.links_info_wrapper {
    color: #0e0e0e;
}

.link_header {
    margin-top: 20px;
}

.listItem {
    line-height: 1.5em;
    margin: 10px 0;
}

@media (min-width: 360px) and (max-width: 767px) {
    .main_referral_link {
        margin-top: 80px;
        width: 100%;
        height: auto;
    }

    .referral_link_form_container {
        margin: 0 32px 0 32px;
    }

    .form_input {
        height: 40px;
    }

    .link_button_wrapper {
        justify-content: center;
    }

    .generate_link {
        width: 100%;
        font-size: 16px;
    }

    .referral_header {
        margin-left: 32px;
    }

    .links_info_wrapper {
        flex-direction: column;
    }

    .form_input {
        padding-right: 20px;
    }

    #copiedText {
        margin-right: 10px;
    }

    #copyButton {
        margin-top: 6px;
    }

    .links_info_wrapper .buttons {
        width: 100%;
    }
    .show_button, .qr_link {
        flex-direction: column;
        width: 100%;
    }
    #how_to_generate_button, #qrLink {
        margin-left: 0 !important;
        font-size: 16px;
    }
    #qrLink {
        font-size: 16px !important;
    }
}

@media screen and (orientation: landscape){
    .links_info_wrapper {
        flex-direction: column;
    }
}

.links_info_wrapper .buttons {
    justify-content: flex-start;
}
.show_button, .qr_link {
    display: flex;
    justify-content: flex-start;
}
#qrLink {
    font-size: 11px;
    text-decoration: none;
    text-align: center;
    display:block;
}
#how_to_generate_button, #qrLink {
    margin-left: 10px;
    padding: 10px 20px;
    background-color: #0000FF;
    color: #ffffff;
    border: none;
    cursor: pointer;
}
#how_to_generate_button:hover, #qrLink:hover {
    background-color: #0090ff;
    transition: .3s;
}
#referralFormHelp {
    display: none;
}
