
@font-face {
font-family: 'homa';
src: url('v2/fonts/homa.ttf') format('truetype');
}
@font-face {
font-family: 'nazanin';
src: url('v2/fonts/nazanin.ttf') format('truetype');
}
body {
font-family: 'homa','nazanin', 'Vazir', 'Tahoma', sans-serif;
margin: 0;
padding: 0;
background: url('https://shirazgoldprice.ir/770.jpg') repeat center center fixed;
background-size: cover;
color: #fff;
font-size: 14px;
direction: rtl;
}
.header {
background: linear-gradient(90deg, #1E3A8A, #3B82F6);
padding: 15px;
text-align: center;
border-bottom: 3px solid #FFD700;
}
.header h1 {
margin: 0;
font-size: 24px;
color: #FFD700;
text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}
.header .datetime {
font-size: 22px;
color: #fff;
margin-top: 5px;
font-weight: 300;
}
.logo {
background: #FFD700;
padding: 10px;
border-radius: 10px;
margin: 10px auto;
width: fit-content;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
.logo img {
width: 350px;
height: 120px;
border: 1px solid;
margin: 0;
}
.container {
max-width: 800px;
margin: auto;
padding: 15px;
}
.price-box {
background: rgba(255, 255, 255, 0.85);
border-radius: 10px;
padding: 10px;
margin-bottom: 10px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
color: #1E3A8A;
transition: transform 0.2s ease-in-out;
}
.price-box:hover {
transform: translateY(-3px);
}
.price-box h3 {
margin: 0 0 8px;
font-size: 18px;
color: #FFD700;
background: #1E3A8A;
padding: 8px;
border-radius: 6px;
text-align: center;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.price-list {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 5px;
direction: rtl;
}
.price-item {
background: #fff;
padding: 5px 5px;
border-radius: 6px;
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
display: flex;
justify-content: space-between;
align-items: center;
white-space: nowrap;
overflow: hidden;
min-width: 0;
max-width: 100%;
}
.price-item:hover {
background: #f8f9fa;
}
.price-item span {
color: #1E3A8A;
font-weight: bold;
font-size: 17px;
direction: rtl;
display: inline-block;
margin-right: 1px;
}
.price-item .value {
color: #333;
font-size: 17px;
font-weight: bold;
direction: rtl;
display: inline-block;
}
.news-box {
background: rgba(255, 255, 255, 0.85);
border-radius: 10px;
padding: 10px;
margin-bottom: 10px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
color: #1E3A8A;
}
.news-box h3 {
margin: 0 0 8px;
font-size: 18px;
color: #FFD700;
background: #1E3A8A;
padding: 8px;
border-radius: 6px;
text-align: center;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.news-list {
list-style: none;
padding: 0;
}
.news-item {
background: #fff;
padding: 8px;
margin-bottom: 5px;
border-radius: 6px;
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}
.news-item h4 {
margin: 0 0 5px;
font-size: 14px;
color: #1E3A8A;
font-weight: bold;
}
.news-item h4 a {
color: #1E3A8A;
text-decoration: none;
}
.news-item h4 a:hover {
text-decoration: underline;
}
.news-item p {
margin: 0;
font-size: 12px;
color: #333;
}
.price-note {
text-align: center;
color: #FFD700;
font-size: 14px;
font-weight: bold;
margin: 10px 0;
padding: 8px;
background: rgba(30, 58, 138, 0.8);
border-radius: 6px;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}
.error {
text-align: center;
color: #FF0000;
font-weight: bold;
padding: 10px;
background: rgba(255, 255, 255, 0.8);
border-radius: 6px;
font-size: 14px;
}
.footer-note {
text-align: center;
color: #fff;
font-size: 14px;
font-weight: bold;
margin-top: 10px;
padding: 8px;
background: rgba(0, 0, 0, 0.5);
border-radius: 6px;
}
