.wrapper {
    min-height: 99vh;
}
.referral-link {
    display: inline-block;
    color: #000;
}

.statistics-table, .summary-table {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-bottom: 4vh;
}

.statistics-row, .summary-row, .modal-row {
    background-color: #fff;
    border-left: 1px solid #e8e8e8;
    border-right: 1px solid #e8e8e8;
}

.statistics-row-odd, .summary-row-odd, .modal-row-odd {
    background-color: #f2f2f2;
    border-left: 1px solid #f2f2f2;
    border-right: 1px solid #f2f2f2;
}

.statistics-table td {
    width: 30%;
    padding: 10px 40px;
}

.summary-table td {
    width: 30%;
    padding: 10px 40px;
}

.modal table {
    width: 300px;
    margin-bottom: 4vh;
}

.modal-table td {
    width: 25%;
    padding: 10px 40px;
}

.statistics-table p, .summary-table p {
    margin: 0;
}

.pay {
    color: #000;
}

.info-menu {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin-bottom: 4vh;
}

.info-menu a {
    color: #000;
}

.modal-background {
    position: absolute;
    display: none;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: #000;
    opacity: 0.4;
}

.modal {
    position: absolute;
    display: none;
    top: 5vh;
    left: calc(50% - 208px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #fff;
    color: #474747;
    padding: 30px 0;
}

.referral-list {
    display: none;
}

.history {
    display: none;
}

.pay-orders {
    display: none;
}

@media (max-width: 1024px) {
    .wrapper {
        height: auto;
    }

    .container {
        width: 94vw;
        padding-left: 0;
        padding-right: 0;
    }

    table {
        width: 100%;
    }

    .modal {
        top: 6vh;
        left: calc(50% - 291px);
    }
}
@media (max-width: 500px) {
    .summary-table td {
        width: 30%;
        padding: 0;
        font-size: 10px;
    }

    table td p,  table td div, table td a {
        font-size: 10px;
    }

   .modal {
       left: 0;
       width: 100%;
   }

   .modal table td {
       padding: 0;
       width: auto;
       font-size: 10px;
   }
}

