@font-face {
    font-family: 'FarNaskh';
    src: url('Far_Naskh.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('Vazirmatn.ttf') format('truetype'); /* Loading local Vazir font */
    font-weight: normal;
    font-style: normal;
}

/* General Reset & TV-friendly setup */
html, body {
    margin: 0;
    padding: 0; /* Remove padding to use full screen */
    width: 100%;
    height: 100vh; /* Use fixed viewport height */
    overflow: hidden; /* Prevent scrolling */
    background-color: #6B5B4B; /* Lighter brown background */
    color: #f1f1f1;
    font-family: 'Vazirmatn', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.container {
    width: 98%;
    height: 98vh; /* Use almost full screen height */
    margin: auto;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Center content vertically */
    align-items: center;
}

header {
    width: 100%;
    text-align: center;
}

.logo-image {
    max-width: 40vh; /* Increased size */
    max-height: 22vh; /* Increased size */
    height: auto;
    margin-bottom: 1vh;
}

header h1 {
    font-size: 1.7vmin; /* Adjusted size */
    color: #c5b8a5;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    margin: 0 0 2vh 0; /* Adjusted margin */
    font-weight: normal;
}

.dhikr-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5vmin; /* Adjusted gap */
    width: 85%; /* Reduced width to make cards narrower */
    height: 65vh; /* Set a fixed height for the grid */
}

.dhikr-card {
    background: linear-gradient(145deg, #4a403a, #2c2522);
    border: 1.5px solid #8c785d; /* Slightly thinner border */
    border-radius: 12px;
    padding: 1.5vmin; /* Adjusted padding */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.6), 0 5px 15px rgba(0,0,0,0.4);
    animation: fadeIn 0.5s ease-out forwards;
    transition: transform 0.3s, box-shadow 0.3s;
}

.dhikr-card:hover {
    transform: scale(1.03);
    box-shadow: inset 0 0 20px rgba(0,0,0,0.6), 0 10px 25px rgba(0,0,0,0.6), 0 0 20px #8c785d;
    border-color: #a9967d;
}

.dhikr-card .dhikr-name {
    font-family: 'FarNaskh', 'Vazirmatn', sans-serif;
    font-size: 2.5vmin; /* Increased size */
    font-weight: normal;
    color: #f0e6d8;
    line-height: 1.4;
    margin: 0 0 1vh 0;
}

.dhikr-card .dhikr-label {
    font-size: 1.5vmin; /* Adjusted size */
    color: #c5b8a5;
    margin: 0 0 1vh 0;
}

.dhikr-card .dhikr-count {
    font-size: 5.5vmin; /* Adjusted size */
    font-weight: bold;
    color: #fff;
    direction: ltr;
    text-shadow: 0 0 10px rgba(255, 99, 71, 0.6), 0 0 20px rgba(255, 99, 71, 0.4);
}

.dhikr-card.large {
    grid-column: 1 / span 2;
} 