/* Ensure the html and body cover the full height of the viewport */
html {
    height: 100%;
    margin: 0;
    padding: 0;
}

        /* Updated CSS variables and styling */
        :root {
            --primary-color: #163962;
            /* Deep blue */
            --secondary-color: #CBDCF7;
            /* Lighter blue */
            --accent-color: #fbc02d;
            /* Accent yellow */
            --text-color: #ffffff;
            --dark-bg: #ffffff;
            /* Dark background */
        }



        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

	body {
	    /* Changed the dark/light direction */
	    background: linear-gradient(1deg, var(--primary-color), var(--dark-bg)) no-repeat fixed;
	    background-size: cover;
	    color: var(--text-color);
	    font-family: 'Montserrat', sans-serif;
	    padding: 1px;
	    min-height: 100vh; /* Ensures the background covers the full mobile screen */
	    margin: 0;
	}


        .container {
            max-width: 1600px;
            margin: 0 auto;
            /* Added a semi-transparent background with padding and rounded corners */
            background: rgba(0, 0, 0, 0.6);
            padding: 0px;
            border-radius: 5px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.9);
         
        }


        .header {
            text-align: center;
            margin-bottom: 3px;
	    margin-top: 5px;
        }



        .header h1 {
            font-size: clamp(10px, 4vw, 32px);
            margin-bottom: 3px;
            text-transform: uppercase;
            letter-spacing: 1px;
            text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
        }



        .prayer-table {
            width: 99%;
			align-content: center;
            border-collapse: collapse;
            margin-bottom: 3px;
			margin-top: 1px;
			margin-left: 0.5%;
			margin-right: 0.5%;
        }



        .prayer-table th,
        .prayer-table td {
            padding: clamp(8px, 2vw, 20px);
            text-align: center;
			font-weight: bold;
            font-size: clamp(18px, 2.5vw, 30px);
            border: 1px solid rgba(255, 255, 255, 0.2);
        }



        .prayer-table th {
            background: var(--secondary-color);
            color: #000;
            font-weight: bold;
            border-radius: 4px;
        }



        /* Alternate row shading and hover effect */

        .prayer-table tbody tr:nth-child(even) {
            background: rgba(255, 255, 255, 0.05);
        }


        .prayer-table tbody tr:hover {
            background: rgba(255, 255, 255, 0.2);
            transition: background 0.3s ease;
	        width: 25%;
        }



        .prayer-time {
            background-color: var(--primary-color);
            border-radius: 4px;
	        width: 25%;
        }

        .iqamah-time {
            background-color: var(--secondary-color);
            color: #000;
            border-radius: 4px;
			border-color: #163962;
	        width: 25%;
        }


        .announcements {
			position: relative;
            background: var(--accent-color);
			background: var(--primary-color);
            padding: 2px;
            margin-bottom: 5px;
            border-radius: 8px;
            text-align: center;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
			margin-left: 0.5%;
			margin-right: 0.5%;
        }



        .announcements h2 {
			position: relative;
			text-align: center;
            font-size: clamp(12px, 1vw, 14px);
            margin-bottom: 5px;
            color: #ffffff;
        }



        .announcements p {
            font-size: clamp(12px, .05vw, 14px);
            line-height: 1.1;
            color: #ffffff;
        }


        .clock-display {
            text-align: center;
            font-size: clamp(20px, 1vw, 30px);
            margin-top: 0px;
	    position: relative;
            padding: 0px;
            border-radius: 8px;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);

        }


        #MyClockDisplay {
            font-weight: bold;
            letter-spacing: 2px;
            text-align: center;
        }

	   .clock {
		  font-size: 2.8rem;
		  padding: 2px;
		  border-radius: 10px;
		  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
		  margin-bottom: 0px;
		}

		.footer-text {
		  font-size: .5em;
		  color: #000000;
		  padding: 2px 2px;

		}


        /* TV Display Optimizations */

        @media screen and (min-width: 1080px) {
            .container {
                max-width: 99%;
            }

            .prayer-table th,
            .prayer-table td {
                padding: 7px;
                font-size: 36px;
            }


            .announcements {

                padding: 4px;
				text-align: center;

            }


            .announcements h2 {
                font-size: 28px;
            }


            .announcements p {
                font-size: 24px;
            }

        }


        /* Mobile Optimizations */

	 /* Mobile Optimizations */
		@media screen and (max-width: 768px) {

		  .prayer-table th,
		  .prayer-table td {
			padding: 8px;
			font-size: 14px;
		  }

		  .announcements {
			padding: 15px;
		  }

		  .announcements h2 {
			font-size: 14px;
		  }

		  .announcements p {
			font-size: 12px;
		  }

		  .clock {
			font-size: 1.8rem;
		  }

		  .header h1 {
			font-size: clamp(12px, 2.9vw, 24px);
		  }
		}


