body {
    background-color: rgb(91, 90, 90);
    background-image: url("./photo/refBaground.jpg");
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
}
.ref-conteiner-s h1 {
    color: white;
    filter: drop-shadow(0px 0px 10px gray);
}
@media screen and (min-width: 900px) {
    .ref-conteiner-s {
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        position: absolute;
        top: 200px;
        left: 25%;
        display: block;
        width: 50%;
        z-index: 2;
        text-align: center;
    }
    .btns-ref {
        position: relative;
        top: 40px;
        display: flex;
        gap: 15px;
        justify-content: center;
    }
    .btn-create-ref {
        display: block;
        padding: 10px;
        width: 200px;
        background-color: blue;
        color: white;
        border-radius: 10px;
        position: relative;
        cursor: pointer;
    }
    .btn-sing-in-ref {
        display: block;
        padding: 10px;
        width: 200px;
        background-color: white;
        color: black;
        border-radius: 10px;
        position: relative;
        cursor: pointer;
    }
    .ref-content {
        position: relative;
        top: 100px;
        margin: 30px;
        display: block;
        height: 100vh;
        width: calc(100% - 60px);
        background-color: white;
        border-radius: 10px;
    }
    .conteiner-inf-prof-ref {
        margin: 10px;
        position: relative;
        padding: 30px;
        display: flex;
        gap: 5px;
    }
    .conteiner-ref-p-p {
        display: block;
        border: solid 1px gray;
        padding: 20px;
        border-radius: 10px;
    }
    #ref-p-p-1 {
        width: 40%;
    }
    #ref-p-p-2 {
        width: 60%;
    }
    .conteiner-stats {
        margin: 40px;
        padding: 10px 20px 0px 20px;
        border-radius: 10px;
    }
    .conteiner-st-inf {
        display: flex;
        gap: 20px;
    }
    .conteiner-sing-in-ref,
    .conteiner-create-ref {
        position: absolute;
        top: 100px;
        left: calc(50% - 230px);
        z-index: 10;
        display: none;
        width: 400px;
        height: 350px;
        background-color: gray;
        border-radius: 10px;
        padding: 30px;
        box-shadow: 0px 0px 10px gray;
    }
    .conteiner-sing-in-ref div,
    .conteiner-create-ref div {
        margin-top: 12px;
        display: flex;
        flex-direction: column;
        gap: 8px;
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    }
    .conteiner-sing-in-ref div input,
    .conteiner-create-ref div input {
        padding: 8px;
        font-size: 17px;
        border-radius: 5px;
        border: none;
    }
    #close-singin-ref-con,
    #close-create-ref-con {
        position: absolute;
        top: 0px;
        right: 20px;
        font-size: 25px;
        cursor: pointer;
    }
    .create-ref-ac-btn {
        position: absolute;
        bottom: 40px;
        width: calc(100% - 60px);
        padding: 14px;
        background-color: blue;
        color: white;
        font-size: 16px;
        border: none;
        border-radius: 10px;
        cursor: pointer;
    }
}
@media screen and (max-width: 900px) {
    .ref-conteiner-s {
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        position: absolute;
        top: 180px;
        display: block;
        width: 100%;
        z-index: 2;
        text-align: center;
    }
    .btns-ref {
        position: relative;
        top: 50px;
        left: calc(50% - 137px);
        display: flex;
        flex-direction: column;
        gap: 20px;
        justify-content: center;
    }
    .btn-create-ref {
        display: block;
        padding: 12px;
        width: 250px;
        background-color: blue;
        color: white;
        border-radius: 10px;
        position: relative;
        cursor: pointer;
    }
    .btn-sing-in-ref {
        display: block;
        padding: 12px;
        width: 250px;
        background-color: white;
        color: black;
        border-radius: 10px;
        position: relative;
        cursor: pointer;
    }
    .ref-content {
        position: relative;
        top: 50px;
        margin: 5px;
        display: block;
        height: 100vh;
        width: calc(100% - 10px);
        background-color: white;
        border-radius: 10px;
    }
    .conteiner-inf-prof-ref {
        position: relative;
        padding: 15px;
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
    .conteiner-ref-p-p {
        display: block;
        width: 100%;
        border: solid 1px gray;
        padding: 20px;
        border-radius: 10px;
    }
    #ref-p-p-1,
    #ref-p-p-2 {
        width: calc(100% - 40px);
    }
    .conteiner-stats {
        padding: 10px 20px 0px 20px;
        border-radius: 10px;
    }
    #copy-ref-link-btn {
        position: absolute;
        right: 30px;
        bottom: 25px;
        cursor: pointer;
    }
    .add-channel-count {
        margin-top: 10px;
    }
    .inf-ref {
        text-align: center;
    }
    .conteiner-sing-in-ref,
    .conteiner-create-ref {
        position: absolute;
        top: 100px;
        left: 5%;
        z-index: 10;
        display: none;
        width: calc(90% - 60px);
        height: 350px;
        background-color: gray;
        border-radius: 10px;
        padding: 30px;
        box-shadow: 0px 0px 10px gray;
    }
    .conteiner-sing-in-ref div,
    .conteiner-create-ref div {
        margin-top: 12px;
        display: flex;
        flex-direction: column;
        gap: 8px;
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    }
    .conteiner-sing-in-ref div input,
    .conteiner-create-ref div input {
        padding: 8px;
        font-size: 17px;
        border-radius: 5px;
        border: none;
    }
    #close-singin-ref-con,
    #close-create-ref-con {
        position: absolute;
        top: 0px;
        right: 20px;
        font-size: 25px;
        cursor: pointer;
    }
    .create-ref-ac-btn {
        position: absolute;
        bottom: 40px;
        width: calc(100% - 60px);
        padding: 14px;
        background-color: blue;
        color: white;
        font-size: 16px;
        border: none;
        border-radius: 10px;
        cursor: pointer;
    }
}
#ref-link {
    color: blue;
    cursor: pointer;
}
.ref-content {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
.ref-content h1 {
    text-align: center;
}
.conteiner-balance-ref {
    display: block;
    font-size: 20px;
}
.btn-ref-withdraw {
    position: relative;
    padding: 10px;
    width: 200px;
    text-align: center;
    background-color: blue;
    color: white;
    border-radius: 15px;
    cursor: pointer;
}
.inf-ref {
    display: block;
}
.errors-cont-ref {
    position: absolute;
    bottom: 15px;
    text-align: center;
    width: calc(100% - 40px);
    color: black;
    font-size: 14px;
}
.btn-close-ref-history,
.btn-close-ref-withdraw-conf,
.btn-close-ref-withdraw {
    position: absolute;
    right: 20px;
    top: 10px;
    font-size: 24px;
    cursor: pointer;
}
#input-sum-withdraw-ref {
    margin-top: 5px;
    display: block;
    width: 100%;
    padding: 5px;
    font-size: 17px;
    border: solid 1px gray;
    border-radius: 5px;
    position: relative;
}
.btn-wodthdraw-ref {
    text-align: center;
    padding: 10px;
    background-color: blue;
    color: white;
    border-radius: 10px;
    display: block;
    width: 200px;
    cursor: pointer;
}
.conteiner-sum-withdraw {
    display: block;
    width: 220px;
    position: relative;
    left: calc(50% - 115px);
    top: 20px;
}
.btn-complete-withdraw-ref {
    text-align: center;
    padding: 10px;
    background-color: green;
    color: white;
    border-radius: 10px;
    display: block;
    width: 200px;
    position: absolute;
    bottom: 30px;
    left: calc(50% - 110px);
    cursor: pointer;
}
.conteiner-input-data-ref {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.conteiner-input-data-ref input {
    padding: 5px;
    font-size: 17px;
    display: block;
    width: calc(100% - 10px);
    padding: 5px;
    font-size: 17px;
    border: solid 1px gray;
    border-radius: 5px;
    position: relative;
}
.shadow-ref {
    position: fixed;
    top: 0px;
    left: 0px;
    display: none;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.293);
}
@media screen and (min-width: 900px) {
    .conteiner-input-sum-ref {
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        position: absolute;
        top: 200px;
        left: calc(50% - 220px);
        display: block;
        width: 400px;
        height: 300px;
        background-color: white;
        box-shadow: 0px 0px 10px gray;
        padding: 20px;
        border-radius: 10px
    }
    .conteiner-input-inf-payment-ref {
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        position: absolute;
        top: 200px;
        left: calc(50% - 220px);
        display: block;
        width: 400px;
        height: 300px;
        background-color: white;
        box-shadow: 0px 0px 10px gray;
        padding: 20px;
        border-radius: 10px
    }
    .conteiner-ref-history {
        display: block;
        width: 400px;
        height: 400px;
        padding: 10px;
        background-color: white;
        box-shadow: 0px 0px 10px;
        position: relative;
        top: 150px;
        left: calc(50% - 210px);
        border-radius: 15px;
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        z-index: 3;
    }
}
@media screen and (max-width: 900px) {
    .conteiner-input-sum-ref {
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        position: absolute;
        top: 200px;
        left: 5%;
        display: block;
        width: calc(90% - 40px);
        height: 300px;
        background-color: white;
        box-shadow: 0px 0px 10px gray;
        padding: 20px;
        border-radius: 10px
    }
    .conteiner-input-inf-payment-ref {
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        position: absolute;
        top: 200px;
        left: 5%;
        display: block;
        width: calc(90% - 40px);
        height: 300px;
        background-color: white;
        box-shadow: 0px 0px 10px gray;
        padding: 20px;
        border-radius: 10px
    }
    .conteiner-ref-history {
        display: block;
        width: calc(90% - 40px);
        height: 400px;
        padding: 20px;
        background-color: white;
        box-shadow: 0px 0px 10px;
        position: relative;
        top: 150px;
        left: 5%;
        border-radius: 15px;
        z-index: 3;
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    }
}
.ref-history-btn {
    display: flex;
    gap: 10px;
    padding: 7px;
    border: solid 1px black;
    border-radius: 10px;
    margin-top: 30px;
    cursor: pointer;
}
@media screen and (min-width: 450px) {
    .conteiner-outside-balance-ref {
        display: flex;
        gap: 20px;
    }
}
@media screen and (max-width: 450px) {
    .conteiner-outside-balance-ref {
        display: block;
    }
}
.line-ref-apl {
    display: block;
    height: 40px;
    width: 1px;
    background-color: black;
}
.apli-ref-withd {
    position: relative;
    display: flex;
    gap: 20px;
    width: calc(100% - 10px);
    border: solid 1px black;
    padding: 5px;
    border-radius: 5px;
}
.number-new-apli-ref {
    display: block;
    height: 20px;
    width: 20px;
    position: absolute;
    top: 20px;
    background-color: blue;
    color: white;
    text-align: center;
    z-index: 1;
    border-radius: 50%;
}
#shadow-ref-history {
    z-index: 3;
}
.number-new-apli-ref {
    display: none;
}