    body {
            margin: 0px;
            padding: 0px;
            line-height: 0.8;
   
             font-family: Arial, sans-serif;
            font-weight: bold;
            font-size: 4vmin;
            text-align: center;
            overflow-y: hidden;
background-color: black;
color: white;


        }

        table {
            border-collapse: collapse;
            border: 0px;
            margin:1vmin;
        }
        
        .alert {
          
            font-size: 1vmin;
          
        }
        .mainbox {
            display: flex;
            flex-flow: column;
            padding: 0px;
        }

        .curDay {

            xwidth: 20vw;
            color: #ebd49a;
        }

        .curDate {
            font-size: 7vmin;
        }

        .curDateH {
            font-size: 5vmin;
            color: aquamarine;
            xmargin-top: 3vmin;
            display: inline-block;
        }

        .curDateHE {
            font-size: 4vmin;
            color: aquamarine;
            xmargin-top: 3vmin;
             display: inline-block;
        }

        .curTime {
            xtext-shadow: 0 0 20px brown, 0 0 20px brown;
            font-size: 20vw;
            width: 99vw;
          text-shadow: 0 20px 20px black;
        }

        .azan_time,
        .iqama_time {
            font-size: 9vmin;
            padding: 1vmin;
            width: 40vw;
       

        }

        .azan_time_box {

            padding: 1vmin;
            margin: 1vmin;

            background-image: linear-gradient(0deg, #2b4162 0%, #12100e 40%, #12100e 60%, #2b4162 90%, #12100e 100%);


        }

        .sun_rise_box {}

        .sun_rise_label {
            xmargin-top: 5vmin;
            font-size: 0.8em;
        }

        .sun_rise_time {
            xfont-size: 7vmin;
            font-size: 1.5em;
        }

        #save {
   
      z-index: 1001;
      background: green;
      color: white;
      border: none;
      padding: 5px 10px;
      cursor: pointer;
        }

        input {
            xfont-size: 2vmin;
            xheight: 7vmin;
            background: beige;
            border: 10vmin soild black;
            border-radius: 3px;
            xmargin: 3px;
        }
        button {
             xfont-size: 2vmin;
             border-radius: 1vmin;
             background-color: antiquewhite;
             
        }
        marquee {
            padding: 1vmin;
            xtext-align: center;
        }

        .juma {
            color: rgb(224, 206, 41);
               xbackground-image: linear-gradient(0deg, green 0%, #12100e 20%, #12100e 80%,green 100%);
               
        }
        .eid {
            color:cyan;
             xbackground-image: linear-gradient(0deg,black 0%, #12100e 100%);
        }

        .genbox {
            display: flex;
            align-items: stretch;
            height: 38vh;
                 /*          
     background-image:URL('Melamine-wood-001.png');
     background-repeat: repeat-x repeat-y;
     background-clip: padding-box;
     color:black;
     border-radius: 5vmin;
     margin: 3vmin;
     */
        }

        .iqama_box {
            display: flex;
            align-items: stretch;
            height: 62vh;
            justify-content: space-evenly;
            xmargin-top: 2vmin;
        }

        select {

            xfont-size: 2vmin;
            background: whitesmoke;

        }
        #nextEvent {
            xcolor:red;
              animation: blinker 4s infinite;
        }
        @keyframes blinker {
            0% {
                letter-spacing: 0px;
                xcolor: white;
            }

            100% {
                letter-spacing: 0px;
                xcolor: lightgray;
            }

            100% {
                letter-spacing: 0px;
                xcolor: white;
            }
        }

                .azan_eng_label {
      
        }

        .azan_ara_label {
         margin-top: 2vmin;
         font-size: 5vmin;
        }

        .settings_table td {
            text-align: left;
        }
        @media only screen and (orientation:landscape) {
            .mainbox {

                flex-flow: row;
            }

            .curTime {
                font-size: 10vw;
                width: 49vw;
            }

            .azan_time,
            .iqama_time {

                width: 20vw;

            }

            .genbox,
            .iqama_box {

                height: 99vh;

            }

        }

        /*
        div {
            text-align: center;
        }

   .engraved-text {
  background-color: #666666;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  text-shadow: 3px 5px 1px rgba(245, 245, 245, 0.5);
}
.embossed-text {
  background-color: #666666;
  background-clip: text;
  -webkit-background-clip: text;
  color: #f0f0f0;
  text-shadow: 1px 4px 4px #555555;
}

        .dateContainer {

            xwidth: 95vmin;
            font-size: 8vmin;


        }

        .curTime {

            font-size: 15vmin;
            xwidth: 95vmin;
            xheight: 12vh;
            text-shadow: 0 0 20px rgba(10, 175, 230, 1), 0 0 20px rgba(10, 175, 230, 1);


        }




        .iqama_boxx {
            display: flex;
            flex-wrap: wrap;
        }

    

        .juma_time_box .azan_time,
        .juma_time_box .iqama_time {
            color: green;
        }

        .azan_time {
            font-size: 7vmin;
            xdisplay: inline-block;
            xwidth: 28vmin;
            padding: 3vmin;
        }



        .iqama_time {
            font-size: 10vmin;
            xdisplay: inline-block;
            xwidth: 38vmin;
        }

        .azan_time_head .azan_time,
        .azan_time_head .iqama_time {
            font-size: 3vmin;

        }

        .mainbox {

            margin-top: 4vmin;
        }

        .genbox {
            display: flex;
            flex-flow: column;
            width: 95vw;
            height: 40vh;
            margin: 2vmin;
            justify-content: space-evenly;
                display: flex
;
    align-items: stretch;
    height: 99vh;
        }

        .iqama_box {
            display: flex;
            flex-flow: column;
            width: 95vw;
            height: 55vh;
            justify-content: space-evenly;
        }



    

        select {

            font-size: 3vmin;

            height: 7vmin;
            background: whitesmoke;

            padding: 0 0 0 0.5rem;
            outline: none;
        }

 
*/
        input[type=checkbox] {
            /* Double-sized Checkboxes */
            -ms-transform: scale(1);
            /* IE */
            -moz-transform: scale(1);
            /* FF */
            -webkit-transform: scale(1);
            /* Safari and Chrome */
            -o-transform: scale(1);
            /* Opera */
            transform: scale(1);
            padding: 10px;
                 xfont-size: 2vmin;
        }

        .isha2_check {
            xfont-size: 4vmin;
            margin-left: 4vmin;
            xfont-weight: normal;
        }

        .settings_form {
            position: absolute;
            top: 0vh;
            border: 1vmin solid beige;
            border-radius: 3vmin;
            /* padding: 3vmin; */
            background-color: black;
            color:white;
            xdisplay: none;
            xfont-size:16px;
            font-size:clamp(12px, 16px, 1vw);
            font-weight: normal;
            max-width:100vw;
            max-height: 100vh;
             overflow:auto;
        }
.settings_table td {
text-align: left;
}
        .hidden {
    
            display: none;
        }
        /*
        th {
            font-size: 3vmin;
        }

        @media only screen and (orientation:landscape) {

            .genbox {
                width: 40vw;
                height: 95vh;
                position: absolute;
                top: 0px;
                left: 0px;
                display: grid;

            }

            .iqama_box {
                width: 55vw;
                height: 95vh;
                position: absolute;
                top: 0px;
                right: 0px;
                display: grid;
            }

            .dateContainer,
            .curTime,
            .curDateH,
            .curTime,
            .sun_rise_box {
                xwidth: 47vmin;
            }

            .curTime {
                font-size: 12vmin;
            }


        }
            */
    
       
.tab {
  overflow: hidden;
  border-bottom: 1px solid #ccc;
  background-color: #f1f1f1;
}

.tab button {
  background-color: inherit;
  border: none;
  outline: none;

  cursor: pointer;
  transition: 0.3s;
}

.tab button:hover {
  background-color: #ddd;
}

.tab button.active {
  background-color: #ccc;
}

.tabcontent {
  display: none;
  padding: 5px;
  border: 1px solid #ccc;
  border-top: none;
}

/*
for the form
*/
.profile-form {
  max-width: 600px;
  margin: auto;
  padding: 1rem;
  font-family: Arial, sans-serif;
}

.form-group {
  display: flex;
  align-items: center;
  margin-bottom: 5px;
}

.form-group label {
  width:100px; /* fixed width for alignment */
  font-weight: normal;
  margin-right: 1rem;
  text-align: right;
}

.form-group input,
.form-group select {
  flex: 1;
  
  border: 1px solid #ccc;
  border-radius: 4px;
    width:100px; 
}

.message-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex:1;
}

.message-row input[type="text"] {
  flex: 1; /* fills remaining space */

  border: 1px solid #ccc;
  border-radius: 4px;
   flex:5;
}

.message-row input[type="color"] {
  width: 20px;
  height: 20px;
  padding: 0;
  border: none;
  cursor: pointer;
   flex:1;
}

/* map  */  
 #mapModal {
      display: none;
      position: fixed;
      z-index: 1000;
      left: 0;
      top: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0,0,0,0.6);
    }

    #mapContainer {
      position: relative;
      width: 80%;
      height: 80%;
      margin: 5% auto;
      background: white;
      padding: 10px;
      border-radius: 8px;
    }

    #map {
      height: 100%;
      width: 100%;
    }

    #closeBtn{
      position: absolute;
      top: 10px;
      right: 10px;
      z-index: 1001;
      background: red;
      color: white;
      border: none;
      padding: 5px 10px;
      cursor: pointer;
    }

       #closeForm {
   
      z-index: 1001;
      background: red;
      color: white;
      border: none;
      padding: 5px 10px;
      cursor: pointer;
    }
    /*  new form styles */



.item-group {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 1rem;
}

.item {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
  xbackground-color: #f9f9f9;
  padding: 5px;
  border-radius: 6px;
  border: 1px solid #ddd;
}

.item label {
  min-width: 100px;
  font-weight: 600;
}

.item input[type="time"],
.item input[type="number"] {

  border: 1px solid #ccc;
  border-radius: 4px;
  xwidth: 120px;
  
}

.item input[type="checkbox"] {
  margin-right: 0.3rem;
}

button[type="submit"] {
  margin-top: 2rem;
  padding: 0.6rem 1.2rem;
  background-color: #0078D7;
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
}

input[type="number"].three-digit {
  width: 4ch; /* 3 digits + some padding */
  padding: 4px;
  text-align: center;
}





input[type="color"] {
  width: 40px;
  height: 40px;
  border: none;
  cursor: pointer;
}

.message-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.message-row input[type="text"] {
  flex: 1;
 
}

.message-row select {
  padding: 6px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

/*.highlitedBox td:nth-of-type(2) {*/
.highlitedBox  {
  xborder-top: 3px solid currentColor;
  xborder-bottom: 3px solid currentColor;
    xborder: 1px solid currentColor;
  xbackground-color: #fef9e7;
  xbox-shadow: 0 0 10px rgba(201, 167, 79, 0.5);
  xheight: 30%;
  xtext-decoration: underline;
  border-radius: 3vmin;/*10vmin;*/
  xborder: 2vmin solid color-mix(in srgb, currentColor 60%, white);
    /* border-top: 3px solid currentColor; */
    /* border-bottom: 1vmin solid currentColor; */
    xbackground-color: #fef9e7;
    xbox-shadow: 0 0 10px rgba(201, 167, 79, 0.5);
    xheight: 30%;
    xtext-decoration: underline;
    xborder-radius: 0vmin;
    xborder: 2vmin solid color-mix(in srgb, currentColor 60%, white);
    xbox-shadow: 0 4px 10px var(curentColor);
    /* box-shadow: 2px 2px 4px blue, -2px -2px 4px red; */
    xbox-shadow: 2vmin 2vmin 2vmin rgba(0, 0, 0, 0.8), 
              0 2vmin 2vmin rgba(0, 0, 0, 0.8);
    xborder: 1px solid black;
    /* font-size: 1.5em; */
    /* box-shadow: 0 0 5vmin rgba(255, 215, 0, 0.9); */
    /* box-shadow: inset 2vmin 2vmin 2vmin rgba(0, 0, 0, 0.8); */
    /* margin: 5vmin; */
    xzoom: 150%;
    xtransform: scaleY(1.5);
    height: 30%;
    margin-top: 5vmin;
    margin-bottom: 5vmin;
    xbox-shadow: 
     inset 0 -0vmin 1vmin currentColor,  /* Bottom inset */
    inset 0 0vmin 1vmin currentColor;

     text-shadow: 0 20px 20px black;
    xbox-shadow: 
      0 -1vmin 4vmin currentColor,  /* Bottom inset */
      0 1vmin 4vmin currentColor
      ;
   
      box-shadow: inset 6px 6px 4px rgba(0, 0, 0, 0.5),
    inset -2px -2px 4px rgba(255, 255, 255, 0.6);
      
}


.blinking {
  xanimation: blink 4s infinite;
  font-weight: bold;
  xcolor: #c9a74f;
}

@keyframes blink {
  0% { opacity: 1;letter-spacing: 0em; }
  50% { opacity: 1;letter-spacing: -0.1em; }
  100% { opacity: 1; letter-spacing: 0em;}
}

.passed {
  opacity: 0.7; 
  will-change: opacity;
  -webkit-text-fill-color: initial; /* Optional: override inherited transparency */
}


.countdown {
  font-size: 0.4em;
  xcolor: #666;
  margin-left: 6px;
  display: block;
  animation: blink 4s infinite;
}


/*

.marquee-vertical {
  xposition: relative;
  xheight: 40px;
    xheight: 2.4em;
  xoverflow: hidden;
  xoverflow-y: scroll;
  xfont-weight: 100;
  color:currentColor;
  -webkit-text-fill-color: currentColor;
  padding: 1vmin;

}

.marquee-track {
  xposition: relative;
  xheight: 100%;
}

.marquee-item {
  xposition: absolute;
  xtop: 0;
  xleft: 0;
  width: 100%;
    height: 2.4em;

  overflow-y: scroll;

  xopacity: 0;
  xanimation: fadeCycle 15s linear infinite;
   xanimation: scrollUp 15s linear infinite;
  line-height: normal;

}
*/
/*
#message_txt::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1.2em; 
  background: linear-gradient(to bottom, rgba(255,255,255,1), rgba(255,255,255,0));
  pointer-events: none;
  z-index: 1;
}
*/
/* Stagger each message */
#message_box {
  animation-delay: 0s;
    width: 100%;
  color:currentColor;
  font-weight: normal;
  -webkit-text-fill-color: currentColor;
height: 4.2em;  line-height: 1.2em; 
xwhite-space: pre-wrap;
position: relative;
  overflow-y: hidden;
/* Fade top 20% and bottom 20% */
  -webkit-mask-image: linear-gradient(to bottom,
    rgba(0,0,0,0) 0%,
    rgba(0,0,0,1) 20%,
    rgba(0,0,0,1) 80%,
    rgba(0,0,0,0) 100%);
  mask-image: linear-gradient(to bottom,
    rgba(0,0,0,0) 0%,
    rgba(0,0,0,1) 20%,
    rgba(0,0,0,1) 80%,
    rgba(0,0,0,0) 100%);
}
#message_txt {
  xanimation-delay: 4s;
  margin-top: 1vmin;

}
#message3_txt {
  animation-delay: 8s;
}
.message-line {
  xopacity: 0;
  animation: fadeCycle 20s ease-in-out infinite;
}



@keyframes fadeCycle {
  0%   { opacity: 0; }
  10%  { opacity: 1; }
  30%  { opacity: 1; }
  40%  { opacity: 0; }
  100% { opacity: 0; }
}


.azan-block {
  xmargin-top: 12px;
  padding: 1px;
  border-top: 1px solid #ccc;
}
input[type="text"] {
  width: 70px;
  xmargin: 4px 0;
}
.azan-block label {
 width:70px;
 display: inline-flex;
}


#audioStatus {
  xmargin-top: 10px;
  padding: 6px;
  xborder: 1px solid #ccc;
  border-radius: 6px;
  width: 100%;
  xmax-width: 300px;
  xbackground: #f0f0f0;
  xfont-weight: bold;
}

#audioProgressContainer {
  width: 100%;
  height: 10px;
  background: #ddd;
  border-radius: 5px;
  overflow: hidden;
  margin-top: 4px;
}

#audioProgressBar {
  height: 100%;
  width: 0%;
  background: #2e7d32;
  transition: width 0.2s ease;
}


.azan_time_head  {
    height: 1%;
}

audio {
height: 30px;
}


/*diffrent styles*/
    .darkwood , .darkwood .mainbox {
        background-image: URL('Melamine-wood-004.png');
        background-repeat: repeat-x repeat-y;
        background-color: black;
        color: white;
    }
    
    .darkwood .azan_time_box {
            background-image: none;
        }

        .greencream ,
.greencream .mainbox {
    background-image: url('cream.jpg');
    background-repeat: repeat-x repeat-y;
    color: #d4af37;
}

.greencream .curTime {
    /* Add styles if needed */
}

.greencream .iqama_box {
    /* xbackground-image: url('darkgreen.jpg'); */
    background-color: #123f14;
}

.greencream .genbox {
    color: #006400;
}

.greencream .azan_time_box {
    /* xbackground-image: linear-gradient(0deg, #FFF8DC 0%, #006400 20%, #006400 100%); */
    background-image: none;
    xborder-top: 1px solid #FFF8DC;
}

.greencream .curDay,
.greencream .curDateH,
.greencream .curDateHE {
    color: #123f14;
}

.greencream .juma {
    color: white;
}

.creamgreen ,
.creamgreen .mainbox {
    /* xbackground-image: url('darkgreen.jpg'); */
    /* xbackground-repeat: repeat-x repeat-y; */
    background-color: #123f14;
    color: #DAA520;
}

.creamgreen .iqama_box {
    background-image: url('cream.jpg');
    background-repeat: repeat-x repeat-y;
    text-shadow: 2px 2px 2px gray;
    color: #123f14;
}

.creamgreen .azan_time,
.creamgreen .iqama_time {
    /* Add styles if needed */
}

.creamgreen .genbox {
    background: -webkit-linear-gradient(45deg, #d4af37 5%, #debc5b 10%, #e7c97c 30%, #efd69d 50%, #e7c97c 70%, #debc5b 80%, #d4af37 95%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0px 0px transparent;
}

.creamgreen .curTime {
    text-shadow: 2px 2px 2px transparent;
}

.creamgreen .azan_time_box {
    /* xbackground-image: linear-gradient(0deg, #FFF8DC 0%, #006400 20%, #006400 100%); */
    background-image: none;
    xborder-top: 1px solid #123f14;
    color: #123f14;
}

.creamgreen .curDay {
    color: #4659c4;
}

.creamgreen .curDateH,
.creamgreen .curDateHE,
.creamgreen .juma {
    color: #123f14;
}

@keyframes qrBlink {
  0%   { opacity: 0; transform: scale(0.1); }
  10%  { opacity: 1; transform: scale(0.1); }
  30%  { opacity: 1; transform: scale(2); }
  40%  { opacity: 0; transform: scale(0.1); }
  100% { opacity: 0; transform: scale(0.2); }
}

#qr-popup {
  animation: qrBlink 20s ease-in-out infinite;
  transform-origin: left bottom; /* 👈 Anchor scaling to bottom-left */
  position: fixed;
  bottom: 20px;
  left: 20px;

    xmix-blend-mode: multiply; /* or 'overlay' */
  xmix-blend-mode: plus-lighter; /* or 'overlay' */
}
.audioicon {
    font-size: 3vmin;
    display: flow;

}



.scroll-box {
  height: 3.6em; /* Approx. 3 lines */
  overflow: hidden;
  position: relative;
  background: #f9f9f9;
  border: 1px solid #ccc;
  padding: 4px;
  font-size: 14px;
  line-height: 1.2em;
  white-space: pre-wrap;
}

.scroll-content {
  position: absolute;
  width: 100%;
  animation: scrollUp linear infinite;
}

@keyframes scrollUp {
  from { transform: translateY(100%); }
  to   { transform: translateY(-100%); }
}

.xdateContainer {

  background: #e0e0e0;
  border-radius: 8px;
  padding: 20px;
  box-shadow:
    inset 4px 4px 8px rgba(0, 0, 0, 0.3),
    inset -4px -4px 8px rgba(255, 255, 255, 0.6);
  border: 1px solid #ccc;
}
