body {
    background-color: #f4f4f4;
    font-family: "Cairo", sans-serif;
    background-image: url('img/goldprices-2.jpg'); /* استخدام الصورة كخلفية */
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

h1 {
    margin-bottom: 10px;
    color: #e74c3c; /* لون أحمر غامق */
}
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loader {
    border: 16px solid #f3f3f3; /* Light grey */
    border-top: 16px solid #3498db; /* Blue */
    border-radius: 50%;
    width: 120px;
    height: 120px;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#main-content {
    display: none; /* Hide content until loading is complete */
}
.container {
    margin-top: 1em;
    background-color:rgb(255 230 128 / 62%); /* خلفية بيضاء للكونتينر */
    padding: 15px;
    border: 2px solid #e74c3c; /* إطار أحمر */
    border-radius: 10px;
}

#ounceprice {
  font-size: 2em;
}

#priceStatus.text-success {
    color: green;
}

#priceStatus.text-danger {
    color: red;
}

th, td {
    text-align: center;
        direction: LTR;
    border: 1px solid #e74c3c; /* إطار أحمر للخلايا */
}

.unit, .priceDolar, .priceDanor {
    text-align: center;
    width: calc(100% / 3);
}

.caption {
    border: 1px solid #e74c3c; /* إطار أحمر */
    text-align: center;
    border-bottom: 0;
    padding: 5px;
    background: white;
    color: #e74c3c; /* لون أحمر */
}

.junaid {
    text-align: left;
    color: #e74c3c; /* لون أحمر */
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 20px;
    background-color: #ffe680; /* خلفية صفراء */
}

.social-icons a {
    text-decoration: none;
    color: #fff;
    font-size: 2em;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.social-icons a.facebook {
    background-color: #3b5998;
}

.social-icons a.twitter {
    background-color: #1da1f2;
}

.social-icons a.instagram {
    background-color: #e1306c;
}

.social-icons a.linkedin {
    background-color: #0077b5;
}

.social-icons a.youtube {
    background-color: #ff0000;
}

.social-icons a:hover {
    opacity: 0.8;
}

@media only screen and (max-width: 600px) {
    h1, h3, h4 { 
        font-size: 1.1em;
         margin-bottom: 10px;
        
    }
.txtno {
   font-size: 1.1em;
    text-align: center;
    direction: LTR; 
    
}
    th, td {
        font-size: 0.8em;
        text-align: center;
        direction: LTR;
    }
.no {
        font-size: 1.6em;
        text-align: center;
    }

    .unit {
        text-align: center;
        width: 60% !important;
    }

    .priceDolar { width: 20% !important; text-align: center; }
    .priceDanor { width: 20% !important; text-align: center; }
    .ouncePrice { font-size: 1.8em !important; }
    

    .social-icons {
        display: flex;
        justify-content: center;
        gap: 20px;
        padding: 15px;
        background-color: #ffe680;
    }

    .social-icons a {
        font-size: 1em;
        width: 50px;
        height: 50px;
    }

    .junaid {
        text-align: center;
    }

    .container {
        margin-top: 1em;
    }
}
