.referral-container {
    display:flex;
    flex-direction: column;
    align-items: center;
    height:auto;
    gap: 40px;
    background-color: #ffffff;
    overflow: hidden}
@media only screen and (min-width: 915px){ 
.referral-container {
    width: 800px;}}


.referral-banner {
    width: 90%;
    height: auto;
    background-color: #2c3e50; /* آبی تیره */
    color: #fff; /* رنگ متن */
    text-align: center;
    padding: 20px;
    border-radius: 10px; /* شکل گرد بوردر */
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);}
  
  @media only screen and (min-width: 915px){ 
.referral-banner {
    width: 95%;}}
    
    
.referral-banner img {
    width: 30%; 
    height: 40%;}
    
.referral-banner h2 {
  margin: 0;
  font-size: 24px;
  font-weight: bold;
}

.referral-banner p {
  margin: 10px 0;
  font-size: 15px;
}

.referral-banner a {
  display: inline-block;
  padding: 10px 20px;
  background-color: #ffcc00; /* زرد */
  color: #333;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.referral-banner a:hover {
  background-color: #f39c12; /* نارنجی */
}    
    
  
.referral-But {
    display:flex;
    flex-direction: column;
    justify-content:space-around;
    align-items: right;
    gap : 20px;}
@media only screen and (min-width: 915px){ 
.referral-But {
    flex-direction: row;
    width: 100%;}}


.referral-But,
.referral-yourcod,
.referral-determining,
.referral-Rules { 
    position: relative;
    padding: 20px 5px; /* فضای بالایی برای متن موضوع */
    width: 90%;
    background-color: #ffffff; /* رنگ پس زمینه */
    border: 1px solid #ced4da; /* رنگ حاشیه */
    border-radius: 4px; /* شعاع گوشه‌ها */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); /* سایه */
    transform: scale(1.05); /* افزایش اندازه */
    margin-top:30px;}
    
.referral-yourcod {
    display:flex;
    flex-direction: column;
    justify-content:space-around;
    margin: 10px;
    align-items: right;}
    
.qr-code {
    width: 70px; /* تغییر اندازه کد QR */
    height: 70px;}
    
.referral-code {
    display:flex;
    flex-direction: row;
    align-items: center;
    justify-content:flex-end;
    gap: 10px;}
    
.referral-qrcode {
    display:flex;
    flex-direction: row;
    align-items: center;
    justify-content:center;
    margin-top: 20px;}
  

.referral-Rules { 
    margin-bottom: 100px;
    margin-top:40px;}
    
.referral-determining, 
.referral-Rules { 
    text-align:justify;
    line-height : 200%;}
    
.info-box {
    position: absolute;
    top: -20px; /* به اندازه padding-top بالا می‌رویم */
    right: 20px;
    background-color: #ffffff; /* رنگ پس زمینه */
    padding: 10px 20px; /* پدینگ برای متن موضوع */
    font-weight:bold;
    color: #007bff;}
    
    
.tybal-referral-But {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px; /* فاصله بین المان‌ها */
    width: 100%;}

    
.in-referral-after {
    display:flex;
    flex-direction: column;
    align-items: right;
    width:100%;
    margin-top:30px;}
@media only screen and (min-width: 915px){ 
.in-referral-after {
    width:50%;
    left: 50%;
  	transform: translate(-50%);}

