/* --- Basic Setup --- */
body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    overflow: hidden;
    font-family: Arial, sans-serif;
    background-image: url('assets/bg.jpg');
    background-size: cover;
    background-position: center;
    color: #4a443b;
}

/* --- Font Setup --- */
@font-face {
  font-family: 'MyCustomFont';
  src: url('fonts/my-custom-font.ttf');
}

/* --- Responsive Grid Layout --- */
.overlay-container {
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: repeat(100, 1fr);
    grid-template-rows: repeat(100, 1fr);
}

.grid-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* --- Font Sizes & Styles --- */
#current-time-display { font-size: clamp(40px, 7vw, 90px); font-family: 'MyCustomFont', sans-serif; font-weight: bold; color: #7d6b53; }
#main-title { font-size: clamp(35px, 6vw, 95px); font-family: 'MyCustomFont', sans-serif; font-weight: bold; color: #7d6b53; }
#gregorian-date-display, #hijri-date-display { font-size: clamp(30px, 4.5vw, 60px); font-family: 'MyCustomFont', sans-serif; font-weight: bold; color: #7d6b53; transition: opacity 0.5s ease-in-out; }
.time-display { font-size: clamp(18px, 4.8vw, 62px); font-family: 'MyCustomFont', sans-serif; font-weight: bold;color: black }
#balance-time-label { font-size: clamp(18px, 3.5vw, 55px); font-family: 'MyCustomFont', sans-serif; font-weight: bold; color: #6d6d6d; }
#next-prayer-label { font-size: clamp(18px, 3.5vw, 55px); font-family: 'MyCustomFont', sans-serif; font-weight: bold; color: #6d6d6d; }
#balance-time-value { font-size: clamp(28px, 5.5vw, 65px); font-family: 'MyCustomFont', sans-serif; font-weight: bold; color: #6d6d6d;}
#next-prayer-value { font-size: clamp(28px, 5.5vw, 65px); font-family: 'MyCustomFont', sans-serif; font-weight: bold; color: #6d6d6d;}
.highlight { color: white; text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3); }

/* --- General Prayer Column Styles --- */
.prayer-column {
    background-image: url('assets/icon1.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    padding: 20px;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
}
.prayer-column.next-prayer-active { background-image: url('assets/icon3.svg'); }
.prayer-title {
    font-family: 'MyCustomFont', sans-serif;
    font-weight: bold;
    color: white;
    font-size: clamp(20px, 4vw, 50px);
    margin-bottom: 15px;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}
#shurooq-bottom-icon { width: clamp(30px, 5vw, 60px); height: auto; margin-top: 15px; filter: drop-shadow(0 0 3px #584b3c); }

/* --- Other Styles --- */
#date-display-container { position: relative; align-items: flex-start; text-align: center; }
#gregorian-date-display, #hijri-date-display { position: absolute; width: 100%; height: 100%; top: 0; left: 0; }
.date-visible { opacity: 1; }
.date-hidden { opacity: 0; }
#bottom-left-design { grid-column: 1 / 35; grid-row: 65 / 101; background-image: url('assets/bgdesign.svg'); background-size: contain; background-repeat: no-repeat; background-position: bottom left; z-index: 1; }

/* 
===================================================================
  NEW SYSTEM FOR THE LABELS COLUMN
===================================================================
*/
.label-text {
    /* This style ensures the labels match the font of the times */
    font-family: 'MyCustomFont', sans-serif;
    font-weight: bold;
    color: #4a443b;
    font-size: clamp(18px, 4.8vw, 55px);
}

/* 
===================================================================
  GRID POSITIONING
===================================================================
*/
/* --- NEW: Weather Unit Styles --- */
#weather-container {
    /* This puts it in the top-right corner */
    grid-column: 2 / 16;
    grid-row: 38 / 15;

    /* This aligns the icon and text side-by-side */
    flex-direction: row; 
    gap: 15px; /* Adds space between the icon and text */
}

#weather-icon {
    /* Controls the size of the weather icon */
    width: clamp(40px, 6vw, 110px);
    height: auto;
}

#weather-temp {
    font-family: 'MyCustomFont', sans-serif;
    font-weight: bold;
    color: #4a443b;
    font-size: clamp(30px, 5vw, 90px);
}

/* --- Logo & QR Positioning --- */
#logo-top-container   { grid-column: 27 / 74; grid-row: 1 / 10; }
/*... #logo-right-container { grid-column: 80 / 100; grid-row: 1 / 15; }..*/
#qr-code-container    { grid-column: 4 / 18; grid-row: 78 / 98;z-index: 10 }
#logo-top-container img { max-width: 100%; max-height: 100%; object-fit: contain; }
#logo-right-container img,  
#qr-code-container img { max-width: 75%; max-height: 75%; object-fit: contain; }
/* --- Main Items Positioning --- */
#current-time-display { grid-column: 9 / 49; grid-row: 22 / 9; }
#main-title           { grid-column: 25 / 93; grid-row: 22 / 9; }
#date-display-container { grid-column: 29 / 72; grid-row: 22 / 44; }

/* --- Prayer Columns Positioning --- */
.isha-column    { grid-row: 35 / 75; grid-column: 10 / 22; }
.maghrib-column { grid-row: 35 / 75; grid-column: 22 / 34; }
.asr-column     { grid-row: 35 / 75; grid-column: 34 / 46; }
.zuhr-column    { grid-row: 35 / 75; grid-column: 46 / 58; }
.shurooq-column { grid-row: 35 / 75; grid-column: 58 / 70; }
.fajr-column    { grid-row: 35 / 75; grid-column: 70 / 82; }

/* --- NEW: Positioning for the 7th (Labels) Column --- */
.labels-column  {
    grid-row: 35 / 75;    /* MUST be the same as the prayer columns */
    grid-column: 81 / 93; /* Positioned to the right of Fajr */
}

/* Bottom Display Areas */
#balance-time-container { grid-column: 20 / 55; grid-row: 83 / 95; }
#next-prayer-container  { grid-column: 55 / 95; grid-row: 83 / 95; }

/* --- MEDIA QUERY FOR MOBILE --- */
@media (max-width: 768px) {
    /* ... (Your existing mobile styles) ... */
    .labels-column { display: none; } /* Hide the labels column on small screens */
}