body, h1, h2, p, div {
    margin: 0;
    padding: 0;
}
* { padding: 0; margin: 0;}
html, body {
    min-height: 100% !important;
    height: 100%;
    width: 100%;
}
body {
    color: white;
    font-weight: bold;
    font-size: 12px;
    font-family: 'Varela Round', sans-serif;
    background-repeat: repeat;
    background-position: center;
    background: url(../img/v2bg.jpg) 0% 0% / 100% 100% no-repeat;
    overflow-x: hidden;
    overflow-y: hidden;
    background-size: cover;
    text-transform: uppercase;
}
#footermobile {
        display: none;
}

.content {
    margin-top: 4.5%;
    text-align: center;
    width: 100%;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

#front {
    display: none;
    display: flex;
    height: 100%;
    justify-content: flex-start;
    flex-direction: column;
    align-items: stretch;
}

.header{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1%;
}

.listSalat {
    display: flex;
    color: #0a2d31;
    justify-content: space-evenly;
    align-items: center;
}

/* ---- Nom de la mosquÃ©e ---- */
#nom_mosquee {
    text-align: left;
    overflow: hidden;
    font-size: 4vh;
    color: white;
    text-shadow: 0px 4px 1px rgba(0, 0, 0, 0.22);
    text-transform: capitalize;
}

/* ---- TempÃ©rature Â°C ---- */
#temperature {
    display: flex;
    color: white;
    text-shadow: 0px 4px 1px rgba(0, 0, 0, 0.22);
    align-items: center;
  
}
#temperature_label {
    margin-left: 0.5%;
    font-size: 3vh;
}

#icon_network{
    height: 25px;
    vertical-align: middle;
    margin-right: 0.5%;
}
#icon_label img{
    object-fit: none;
    width: 30px;
    padding-right: 0.5%;
}

#site_web{
    width: 20vh;
    text-transform: none;
}
/* ---- Nom de la mosquée & Température °C ---- */
.header-left {
    border-left: 3px solid #ffc200;
    padding-left: 1%; 
    margin-left: 2%; 
}

.header-right {
    font-size: 3vh;
    display: flex;
    border-right: 3px solid #ffc200;
    padding-right: 1%;
    margin-right: 2%;
    justify-content: space-between;
    align-items: center;
}


#icon_network {
  width: 30px; /* Largeur de l'icône (à ajuster selon vos besoins) */
  height: auto; /* Hauteur automatique pour maintenir les proportions */
  margin-right: 10px; /* Espacement entre l'icône et le texte (à ajuster selon vos besoins) */
}

/* ---- duaa  ---- */

.dua-content {
    padding:0% 5% 5% 5%;
    line-height: 2.2em;
    text-align: center;
    font-size: 5.3vh;
    margin-top: 3%;
}

.dua-content .invocation_title_ar {
    display: flex;
    color: #ffff86;
    font-size: 9vh;
    flex-direction: column;
    margin-bottom: -3%;
    margin-top: -4%;
}

.dua-content .invocation_title_fr {
    display: flex;
    color: #ffff86;
    font-size: 3vh;
    flex-direction: column;
    text-transform: uppercase;
}

.dua-content .invocation_fr {
    font-size: 5vh;
    line-height: 8vh;
    text-transform: capitalize;
}

.dua-content .invocation_ar {
    font-size: 8vh;
    line-height: 11vh;
    padding-bottom: 1.5%;
    padding-top: 1.5%;
}

#dateHeader { 
    width: 46%;
    z-index:2;
    margin : 0% 1% ;
 }

 .small-seconds {
    font-size: 10vh;
    vertical-align: super;
    padding-left: 2%;
}
/* ---- // -- // --- // --- // --- //--- // -- // ---- */

#shuruqTime {
    width: 27%;
    color : #ffe765;
    text-shadow: 0px 4px 1px rgba(0,0,0,0.22);
}

#joumouaaTime {
    width: 27%;
    color : #ffe765;
    text-shadow: 0px 4px 1px rgba(0,0,0,0.22);
}

#joumouaaTimeSelected {
    width: 27%;
    color: #ffe765;
    transform: translate3d(tx, ty, tz);
    text-shadow: 5px 1px 6px #d79002;
}

.chourouk-id, .joumouaa-id, .aid-id, .imsak-id {
    color: white;
    font-size: 4vh;
}
.white-days {
    color: #ffe765;
    text-shadow: 0px 4px 1px rgba(0,0,0,0.22);
    font-size: 4.5vh;
    letter-spacing: 0.02em;
}
.gregorianDate {
    padding: 1%;
    color: #ffff;
    font-size: 3vh;
    text-shadow: 0px 4px 1px rgba(0,0,0,0.22);
    letter-spacing: 0.2rem;
    text-transform: capitalize; 
}

/* ---- Adhan countdown ---- */

#countdown {
    display: inline;
    bottom: 0;
    width: 100%;
    color: #ffff;
    text-shadow: 0px 4px 1px rgba(0,0,0,0.30);
    text-transform: none;
}
.countdown {
    font-size: 3.7vh;
    font-weight: 700;
    margin-left: 1vh;
}

/* ---- Footer List Salat ---- */
/* -- Adhan counter -- */
.next-prayer {
    border-top: solid;
    text-align: left;
    border-color: #fbc626;
    border-width: 6px;
    padding-top: 0.5%;
    margin-bottom: 1%;
}

#footer {
    position: absolute;
    width: 100%;
    bottom: 0;
    text-align: center;
    background-color: rgb(0 0 0 / 28%);
}
/* ---- Salat Blocs---- */
.salat, .msalat {
    border-radius: 20px 20px 20px 20px;
    padding-top: 1.8%;
    margin-bottom: 1%;
    background-image: linear-gradient(to bottom, #c6d7df, #d6e0e8, #e6eaf0, #f3f4f8, #ffffff);
}
.salat, .nextTimetosalat , .msalat {
    font-size: 5vh;
    width: 17%;
}
.tsalat {
    display: block;
}
.listSalat div {
    margin-left: 1vh;
    margin-right: 1vh;
    box-shadow: 0px 5px 7px rgb(0 0 0 / 38%);
}
/* ---- List Salat ---- */
.nextTimetosalat .tsalat {
    font-size: 5vh;
    color: white;
}

.tsalat {
    font-size: 5vh;
    color: #0a2d31;
}


/* ---- List time Salat ---- */

.timesalat {
    display: flex;
    background-image: linear-gradient(to bottom, #c6d7df, #d6e0e8, #e6eaf0, #f3f4f8, #ffffff);
    font-size: 3vh;
    color: #262626;
    border-radius: 0 0 15px 15px;
    justify-content: center;
    align-items: flex-end;
}

/* ---- Icone list time iqama salat ---- */

#icon_iqama {
    width: 35px;
    margin-right: 1%;
}

/* ---- Incoming Salat ---- */
.nextTimetosalat {
    border-radius: 20px 20px 20px 20px;
    padding-top: 1.8%;
    margin-bottom: 1%;
    color: white;
    border: solid 4px;
    border-color: #fbc626;
    background-image: radial-gradient(circle, #26977c, #0c7b6e, #00605c, #054648, #0a2d31);
}

.nextTimetoJoumouaa {
    background: linear-gradient(to bottom, rgba(58,58,59) 0, rgba(35,35,36) 60%, rgba(30,30,31) 100%);
    border-radius: 2vw;
    font-size: 3vw;
    margin: 50px auto;
    padding: 0 1vw;
    width: fit-content;
    text-align: center;
}

/* ---- Display none/block, blink elements ---- */

.display-none {
    transition: all 0.4s ease;
    display: none;
    transition: opacity 1s ease-out;
    opacity: 0;
    height: 0;
    overflow: hidden;
}

.display-block {
    display: block;
    opacity: 1;
    height: auto;
}

/* ---- Black screen + Hide elements ---- */
#black-screen,
.main,
.iqama,
.adhan {
    height: 100vh;
    margin: auto;
}
#blackscreen {
    transition: all 0.4s ease;
    opacity: 0;
    background-image: url("../img/blackpixel.png");
}

#events {
    color: white;
    font-weight: bold;
    font-size: 12px;
    font-family: 'Varela Round', sans-serif;
    background-repeat: repeat;
    background-position: center;
    background: url(../img/v2bg-events.jpg) 0% 0% / 100% 100% no-repeat;
    overflow-x: hidden;
    overflow-y: hidden;
    background-size: cover;
}

.joumouaa {
    font-size: 2.5vw;
}
.custom-time {
    font-size: 2.5vw;
}

.important {
    color: #B0413E;
}
.aid-id {
    color: #B0413E;
}
.time {
    font-size: 20vh;
}
.top-content .time {
    color:white;
    text-shadow: 0px 4px 1px rgba(0,0,0,0.22);
}

.hijriDate {
    font-size: 5vh;
    text-transform: full-width;
}

.flash, .visibilty-hidden {
    visibility: hidden;
}

.hidden {
    display: none;
}

.iqama,
.adhan {
    color: #fff;
    position: relative;
}
.iqama .top {
    display: flex;
    height: 25%;
    font-size: 9vh;
    align-items: center;
}
.adhan .top {
    display: flex;
    height: 25%;
    font-size: 9vh;
    align-items: center;
}
.adhan .image {
    background-repeat: no-repeat;
    background-position: 50%;
    background-size: contain;
    height: 50%;
}

.iqama .image {
    background-repeat: no-repeat;
    background-position: 50%;
    background-size: contain;
    height: 50%;
}
.loudspeaker {
    width: 12vh;
}
.adhan .ar {
    font-size: 700%;
}
.adhan .fr {
    margin-top: 50px;
    font-size: 5vh;
}

.footer {
    position: fixed;
    bottom: 10px;
    left: 0;
    right: 0;
    padding: 0 200px;
}

.time-bottom {
    font-size: 8vh;
    position: absolute;
    bottom: 0px;
    right :15px;
}
.time-bottom.ar {
    left :15px;
}

.top-content .next-prayer {
    font-size: 3vh;
}

.invocation_after_adhan {
    font-size: 6vh;
    line-height: 160%; 
}

/* Texte défilant */
.messagedefilant {
    display: flex;
    justify-content: center;
}

.messagedefilant div {
    text-align: center;
}

.messagedefilant div span,
.messagedefilant div:after {
  position: relative;
  display: inline-block;
  font-size: 3.3vh;
  white-space: nowrap;
  top: 0;
  text-transform: none;
}

.messagedefilant div span {
  animation: fadein 3s;
}

@keyframes defilement {
  0% { margin-left: 0; }
  100% { margin-left: 100%; } /* Changer la valeur de margin-left pour faire dÃ©filer de gauche Ã  droite */
}
@keyframes fadein {
    from { opacity: 0; }
    to   { opacity: 1; }
}


/* ---- Responsive ---- */

/* Styles pour les Ã©crans de taille maximale de 767px (tÃ©lÃ©phones) et 768px Ã  1024px (iPad) */

/* Background adjustement*/
@media screen and (max-width: 400px) {
    body {
        background-position: center;
    }
}

@media only screen and (max-width: 767px) {
        body {
            color: white;
            font-weight: bold;
            font-size: 12px;
            font-family: 'Varela Round', sans-serif;
            background: url(../img/v2bgmobile.jpg) no-repeat;
            background-size: cover;
            overflow-y: hidden;
            overflow-x: hidden;
            background-position: center;
            position: fixed;
            width: 100%;
            height: 100%;
            appearance: none;
           -moz-appearance: none;
           -webkit-appearance: none;
        }

/* ---- Display none ---- */  

        .gregorianDate,.header-right,#joumouaaTime,#temperature,#shuruqTime,#footer,.messagedefilant {
            display: none;
        }

/* ---- Id for events body ---- */      

        #events {
            color: white;
            background: url(../img/v2bgmobile-events.jpg) no-repeat;
            background-size: cover;
        }

/* ---- Header ---- */     

        .header {
            justify-content: center;
        }
        .header-left {
            border:none;
            padding-top: 10px;
        }            
        #front {
            justify-content: flex-start;
        }
        #nom_mosquee {
            font-size: 2.5vh;
            text-align: center;
            width: 100%;
        }

/* ---- Content ---- */            
        .content {
            margin-top: 18%;
        }
        .adhan .top, .iqama .top {
            font-size: 3vh !important;
        }
        .adhan .top .loudspeaker, .iqama .top .loudspeaker {
            width: 6vh;
        }
        .adhan .top, .iqama .top {
            font-size: 3vh !important;
        }
        .adhan .top .loudspeaker, .iqama .top .loudspeaker {
            width:6vh;
        }

/* ---- Date ---- */
        #dateHeader {
            padding: 0;
            width: 70%;
        }
        .small-seconds {
            font-size: 3vh;
        }
        .time {
            font-size: 9vh;
        }
        .white-days {
            text-shadow: 0px 2px 2px rgb(0 0 0 / 34%);
            font-size: 2vh;
        }
        .hijriDate {
            font-size: 2vh;
        }

        #icon_label img {
            height: 2em;
        }

/* ---- Duaa ---- */

        .dua-content {
            font-size: 1.7vh;
            margin: 3%;
        }
        .dua-content .invocation_title_ar {
            width: 100%;
            font-size: 4.5vh;
        }
        .dua-content .invocation_title_fr {
            font-size: 1.5vh;
        }
        .dua-content .invocation_ar {
            width: 100%;
            font-size: 3vh;
            line-height: 6vh;
        }
        .dua-content .invocation_fr {
            line-height: 4vh;
            font-size: 2vh;
            padding: 3%;
        }

/* ---- Footer - Bloc Salat ---- */

        #footermobile {
            display: block;
        }

        .nextTimetosalat {
            border-radius: 20px 20px 20px 20px;
            padding-top: 3%;
            margin-bottom: 1%;
            text-shadow: 0px 4px 1px rgba(0,0,0,0.30);
            background-image: radial-gradient(circle, #26977c, #0c7b6e, #00605c, #054648, #0a2d31);
        }
        .nextTimetosalat #icon_iqama {
            -webkit-filter: invert(100%);
            filter: invert(100%);
        
        }

        .countdown {
            padding-top: 1%;
            display: flex !important;
            justify-content: center;
            font-size: 3vh;
            text-align: center;
        }

        .next-prayer {
            border: none;
            padding-top: 0;
            margin-bottom: 0;
        }

        .timer {
            display: flex;
            justify-content: center;
            text-align: center;
        }
        #icon_iqama {
            width: 28px;
            margin-right: 1%;
        }

/* ---- Salat Blocs---- */

        .listSalat {
            display: flex;
            flex-direction: column;
            margin: 10px;
        }
        .tsalat {
            font-size: 4vh;
            background: none;
            width: 13vh;
        }
        .msalat {
            border-radius: 10px 10px 0px 0px;
        }
        .salat, .msalat {
            border-radius: 20px 20px 20px 20px;
            padding-top: 3%;
            margin-bottom: 1%;
        }

        .listSalat div {
            display: flex;
            margin: 2%;
            font-size: 2vh;
            border-radius: 10px;
            justify-content: space-around;
            align-items: center;
            width: 45vh;
        }
        .psalat {
            width: 4vh;
        }
        .salat, .msalat {
            border-radius: 20px 20px 20px 20px;
            padding-top: 3%;
            margin-bottom: 1%;
        }
    }
}