@font-face {
    font-family: 'Vazirmatn';
    src: url('/static/assets/fonts/Vazirmatn[wght].woff2') format('woff2 supports variations'),
         url('/static/assets/fonts/Vazirmatn[wght].woff2') format('woff2-variations');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

body {
    font-family: 'Vazirmatn';
    font-weight: 400;
    line-height: 1.2;
    margin: 0;
}

.container {
    max-width: 1440px;
    margin: 0 auto;
}
.entry-container {
    /*width: 600px;*/
    height: 200px;
    /*overflow: hidden;*/
    border: 1px solid #000;
    position: relative;
}

.entries {
    position: absolute;
    transition: transform 5s ease;
}

.controls {
    margin-top: 20px;
}

tr:nth-child(even) {
    background-color: #f2f2f2;
}

table {
    border-collapse: collapse;
    width: 100%;
    text-align: center;
}

th, td {
    border: 1px solid #ddd;
    padding: 8px;
}

tr:hover {
    background-color: antiquewhite;
}

header {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background-size: cover;
    height: 250px;
    position: relative;
    animation: changeBackground 40s infinite;
}
 /* استایل جدول */
 .responsive-table {
    width: 100%;
    border-collapse: collapse;
}

.responsive-table th, .responsive-table td {
    border: 1px solid #ccc;
    padding: 8px;
    text-align: center;
}

#splash {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #6e48aa, #9d50bb);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.5s ease-out;
}

#splash.hidden {
    opacity: 0;
    pointer-events: none;
}

.splash-content {
    text-align: center;
    color: white;
    font-family: 'Vazirmatn', Arial, sans-serif; /* استفاده از فونت استایلت */
}

.splash-text {
    font-size: 28px;
    margin-top: 20px;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.5s;
    font-family: 'Vazirmatn', Arial, sans-serif; /* برای اطمینان */
}

.loader {
    width: 60px;
    height: 60px;
    border: 6px solid rgba(255, 255, 255, 0.3);
    border-top: 6px solid white;
    border-radius: 50%;
    animation: spin 1.5s linear infinite;
}

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

@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

.pulse {
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    position: absolute;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.5); opacity: 0.7; }
    50% { transform: scale(1); opacity: 0.3; }
    100% { transform: scale(1.5); opacity: 0; }
}

@keyframes bounce {
    0%, 80%, 100% {
        transform: scale(0);
    }
    40% {
        transform: scale(1);
    }
}

@keyframes changeBackground {
    0% {
        background: url("/static/images/apadana01.jpg") repeat left center;
    }
    12.5% {
        background: url("/static/images/apadana02.jpg") repeat left center;
    }
    25% {
        background: url("/static/images/apadana03.jpg") repeat left center;
    }
    37.5% {
        background: url("/static/images/apadana04.jpg") repeat left center;
    }
    50% {
        background: url("/static/images/apadana05.jpg") repeat left center;
    }
    62.5% {
        background: url("/static/images/apadana06.jpg") repeat left center;
    }
    75% {
        background: url("/static/images/apadana07.jpg") repeat left center;
    }
    87.5% {
        background: url("/static/images/apadana08.jpg") repeat left center;
    }
    100% {
        background: url("/static/images/apadana01.jpg") repeat left center;
    }
}


header::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(113, 148, 190, 0.5);
    z-index: 3;
    top: 0;
    left: 0;
}

header .hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 4;
    padding: 0 5px;
}

header .hero h1, header .hero p, header .add-button {
    font-family: 'Vazirmatn';
    color: rgb(0, 0, 0);
    text-shadow: 1px 1px 1px rgb(255, 255, 255);
    text-transform: uppercase;
}

header nav {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    z-index: 4;
}

header nav .logo {
    background: url('/static/images/pwa-light.png') no-repeat top left;
    background-size: 312px 214px;
    width: 312px;
    height: 214px;
}
header .hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 4;
    padding: 0 5px;
}

header .hero h1 {
    font-family: 'Vazirmatn';
    color: white;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.5);
}

header .hero p {
    font-family: 'Vazirmatn';
    color: white;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.8);
    text-transform: uppercase;
}

header .add-button {
    font-family: 'Vazirmatn';
    color: white;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.8);
    text-transform: uppercase;
    margin-top: 10px;
}

header nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    /*float: left;*/
    /*width: 82.8125%;*/
    margin-right: 0;
    /*text-align: right;*/
    text-align: center;
    z-index: 14;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.8);
    text-transform: uppercase;
}

header nav ul li {
    display: inline-block;
    vertical-align: middle;
    height: 20px;
    overflow: hidden;
    white-space: nowrap;
    text-align: center;
}

header nav ul li a {
    padding: 3px 15px;
    font-size: 13px;
    color: rgb(234, 234, 234);
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    line-height: 1em;
    display: block;
    transition: all .2s ease-in-out;
    letter-spacing: .05em;
    cursor: pointer;
    text-align: center;
}

header nav ul li a:hover {
    color: #f36;
}

main {
    margin: 0 auto;
    max-width: 1440px;
   
}

main h2 {
    text-align: center;
}
main h3 {
    text-align: center;
}
main section {
    margin: 40px 0;
    min-height: 300px;
}

section#about {
    display: flex;
}

section#about .media-img {
    margin-right: 20px;
    /*width: 400px;*/
    flex: 1;
}

section#about .media-img img {
    max-width: 100%;
    height: auto;
}

section#about .details {
    /*font-size: 24px;*/
    font-family: Vazirmatn;
    display: flex;
    flex-direction: column;
    /*justify-content: center;*/
    flex: 2;
}

section#about .details h2 {
    text-align: left;
}

.center-link {
    display: inline-block;
    text-align: center;
    margin: 0 auto;
}

.characteristics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-gap: 20px;
}

.characteristicsform {
    display: flex;
    text-align: center;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-gap: 20px;
}



.card {
    border: 1px solid rgba(0, 0, 0, 0.3);
    border-radius: 10px 0 10px 0;
    box-shadow: 1px 1px 1px rgba(0, 0, 0, 0.3);
    padding: 1em;
}
.card-noborder {
    border: 0px solid rgba(0, 0, 0, 0.3);
    border-radius: 10px 0 10px 0;
    box-shadow: 0px 0px 0px rgba(0, 0, 0, 0.3);
    padding: 0em;
}
.card h3 {
    font-family: Vazirmatn;
    text-align: center;
    
}
.card matn-danger {
    font-family: Vazirmatn;
    text-align: center;
    color: #f36;
    
}

.popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgb(217, 217, 217);
    padding: 10px;
    border: 1px solid rgb(19, 255, 15);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.popup-button {
    margin: 5px;
    padding: 5px;
    cursor: pointer;
}

.card form-group {
    font-family: Vazirmatn;
}
.form-control::placeholder {
    font-family: Vazirmatn;
    font-size: 80%;
}
.custom-font,
.custom-font select,
.custom-font option {
    font-family: Vazirmatn;

    /* سایر ویژگی‌ها و تنظیمات مورد نیاز را اضافه کنید */
}



.photo-credit {
    background-color: black;
    color: white;
    text-decoration: none;
    padding: 4px 6px;
    font-family:Vazirmatn, -apple-system, BlinkMacSystemFont, "San Francisco", "Helvetica Neue", Helvetica, Ubuntu, Roboto, Noto, "Segoe UI", Arial, sans-serif;
    font-size: 12px;
    font-weight: bold;
    line-height: 1.2;
    display: inline-block;
    border-radius: 3px;
}

.photo-credit.no-curves {
    border-radius: 0;
}

.add-button {
    font-family: Vazirmatn;
  /*position: absolute;*/
  /*top: 1px;*/
  /*left: 1px;*/
  padding: 1em .5em;
  border: none;
  border-radius: 5px;
  background-color: #34A5DA;
  cursor: pointer;
  color: #FFFFFF;
 
}



.offline-notification {
    display: none;
    padding: 1em;
    text-align: center;
}

.offline-notification.show {
    background-color: red;
    color: white;
    display: block;
}
text-danger {
    font-family: Vazirmatn;
    text-align: center;
    color: #f36;
    
}
textarea {
    font-family: Vazirmatn;
    font-size: 15px;
    height: 3.3cm;
    
    
}
input, select {
    font-family: Vazirmatn;
    font-size: 15px;
    height: 1cm;
    
    
}
input-text{
    font-family: Vazirmatn;
    font-size: 15px;
    height: 1cm;
    
}
.input-text:focus {
    background-color: lightblue; /* رنگ پس زمینه تغییر کند */ 
    font-size: 110%;
}

button{
    font-family: Vazirmatn;
    font-size: 18px; 
    color: #FFFFFF;
    background-color: #2196F3;
    width: auto; /* تغییر به auto تا عرض به اندازه محتوا باشد */
    height: auto; /* تغییر به auto تا ارتفاع به اندازه محتوا باشد */
    min-width: 3cm; /* حداقل عرض 3 سانتی‌متر */
    min-height: 1cm; /* حداقل ارتفاع 1 سانتی‌متر */
    max-height: 1.5cm;
   
    border: none;
    border-radius: 5px;
    transition: background-color 0.3s ease; 
    cursor: pointer;
    
}
button:hover{
    background-color: #e74c3c;
}
.nourl a{
    
    color: #FFFFFF;
    text-decoration: none; /* حذف زیرخط لینک */
    
   
    cursor: pointer;
}
.nourl:hover{
    background-color: #e74c3c;
}
.excel a{
    font-family: Vazirmatn;
    
    color: #FFFFFF;
    background-color: #217346;
   
    text-decoration: none; /* حذف زیرخط لینک */
    
   
    cursor: pointer;
    
}

.buttonback{
    font-family: Vazirmatn;
    
    color: #FFFFFF;
    background-color: #FFA500;
    width: 3cm;
    height: 1cm;
    
    border: none;
    border-radius: 5px;
  
    cursor: pointer;
}
.buttonback a{
    color: #FFFFFF;
    text-decoration: none; /* حذف زیرخط لینک */
    
   
    cursor: pointer;
}




@media screen and (max-width: 1440px) {
    main {
        max-width: 1400px;
        font-size: 100%;
    }
    table{
        font-size: 100%;
    }
    header nav {
        width: 1400px;
    }
    header nav ul li a {
        font-size: 100%;
        }
        
        input, select {
        font-size: 100%;
        }
        
        input-text{
        font-size: 100%;
        }
        
        button{
        font-size: 100%;
        }
        
}

@media screen and (max-width: 1200px) {
    .hide-on-1200 {
        display: none;
    }
    main {
        max-width: 1150x;
        font-size: 95%;
        table{
            font-size: 95%;
          
        }
        header nav ul li a {
            font-size: 90%;
            }
            
            input, select {
            font-size: 90%;
            }
            
            input-text{
            font-size: 90%;
            }
            
            button{
            font-size: 90%;
            width: 90%;
            }
            
    }

    header nav {
        width: 1150px;
    }

    #about {
        flex-direction: column;
    }
}

@media screen and (max-width: 1000px) {
    .hide-on-1000 {
        display: none;
    }
    main {
        max-width: 950px;
        font-size: 90%;
    }
    table{
        font-size: 90%;
       
    }
    header nav {
        width: 950px;
        flex-direction: column;
        /*justify-content: ;*/
        align-items: center;
    }

    header nav ul {
        margin: 10px 0;
    }
    header nav ul li a {
        font-size: 80%;
    }
        
    input, select {
        font-size: 80%;
    }
        
    input-text{
        font-size: 80%;
    }
        
    button{
        font-size: 80%;
        width: 80%;
    }
        
        
}

@media screen and (max-width: 900px) {
    .hide-on-900 {
        display: none;
    }
}
@media screen and (max-width: 800px) {
    .hide-on-mobile {
        display: none;
    }
    main {
        max-width: 750px;
        font-size: 85%;
    }
    table{
        font-size: 85%;
        
    }
    header nav {
        width: 750px;
    }
    header nav ul li a {
        font-size: 70%;
    }
        
    input, select {
        font-size: 70%;
    }
        
    input-text{
        font-size: 70%;
    }
        
    button{
        font-size: 70%;
        width: 70%;
    }
        
        
}

@media (max-width: 500px) {
    .responsive-table th, .responsive-table td {
        display: flex;
        font-size: 80%;
        width: 50%;
        box-sizing: border-box;
    }

    .responsive-table tr {
        margin-bottom: 1px;
        display: flex;
        border-bottom: 2px solid #ddd;
    }

    .responsive-table th {
        text-align: center;
        font-weight: bold;
    }
}
