*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    width:100vw;
    height:100vh;
    overflow:hidden;
    font-family:Arial, Helvetica, sans-serif;
    color:white;
}

/* MAIN SCREEN */
#screen{
    width:100vw;
    height:100vh;
    background-size:cover;
    background-position:center;
    background-repeat:no-repeat;
    display:flex;
    flex-direction:column;
    justify-content:space-between;
    align-items:center;
}

/* TOP BAR */
#top-bar{
    width:100%;
    height:30%;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:10px;
    padding-top:25px;
}

/* LOGO */
/* #logo{
    margin-top:65px;
} */

#logo img{
    height: 250px;
    width: 250px;
    object-fit:contain;
}

/* BIG CLOCK */
#big-clock{
    font-family: "Noto Serif Thai", serif;
    font-size:190px;
    font-weight:700;
    text-align:center;
    letter-spacing:15px;
    line-height:1;
}

/* DATES */
#date-arabic{
    font-size:50px;
    direction:rtl;
    text-align:center;
    font-weight:900;
    opacity:0.8;
    margin-top: -15px;
}

#date-german{
    font-size:50px;
    text-align:center;
    font-weight:900;
    opacity:0.8;
}

/* PRAYER TIMES SECTION */
#prayer-times{
    width:85%;
    height:52%;
    display:flex;
    flex-direction:column;
    justify-content:space-evenly;
    align-items:center;
}

/* EACH ROW */
.prayer-row{
    width:100%;
    display:grid;
    grid-template-columns:1fr 1fr 1fr;
    align-items:center;
    text-align:center;
    font-size:45px;
    padding:10px 35px;
    background:rgba(0,0,0,0.50);/* background style blor */
    border-radius:12px;
    letter-spacing:1px;
}

/* NEXT PRAYER HIGHLIGHT */
.prayer-row.next-prayer{
    background:rgba(36, 36, 36, 0.45);/* background style blor */
    border:1px solid white;
    box-shadow:0 0 2px white;
    transition:all 0.6s ease;
}

.prayer-row.next-prayer .prayer-time{
    color:white;
    font-weight:700;
}

/* PRAYER NAMES */
.prayer-name-de{
    font-weight:400;
    text-transform:uppercase;
    font-family:'Playfair Display', serif;
    letter-spacing:2px;
    font-size:60px;
}

.prayer-name-ar{
    font-family:'Amiri', serif;
    direction:rtl;
    font-weight:400;
    font-size:60px;
    letter-spacing:4px;
}

.prayer-time{
    font-weight:700;
    font-size:75px;
    letter-spacing:4px;
}

/* BOTTOM BAR */
#bottom-bar{
    width:92%;
    height:23%;
    display:grid;
    grid-template-columns:1fr 1fr;
    grid-template-rows:auto auto;
    gap:15px;
}

/* BOTTOM BOXES */
.bottom-box{
    background:rgba(0,0,0,0.60);/* background style blor */    
    border-radius:16px;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    padding:10px;
    text-align:center;
}

/* FIRST ROW */
#jumuah-box{
    grid-column:1;
    grid-row:1;
}

#next-adhan-box{
    grid-column:2;
    grid-row:1;
}

/* SECOND ROW INFO */
#info-box{
    font-family:'Cinzel', serif;
    grid-column:1 / span 2;
    grid-row:2;
    display:flex;
    flex-direction:row;
    justify-content:center;
    align-items:center;
    gap:15px;
    white-space:nowrap;
    margin-bottom:20px;
}

/* EXTRA TEXT */
#info-box .title{
    margin:0;
    font-family:'Playfair Display', serif;
    font-size:50px;
    flex-shrink:0;
    font-weight: 800;
}

#info-box .text{
    font-family: "Noto Serif Thai", serif;
    font-size:50px;
    letter-spacing:4px;
    font-weight: 800;
    margin-bottom: -10px;
    white-space:nowrap;
}

/* TITLES */
.bottom-box .title-ar{
    font-size:50px;
    direction:rtl;
    font-weight:300;
    font-family:'Amiri', serif;
}

.bottom-box .title,
.bottom-box .prayer-name{
    font-size:50px;
    margin-bottom:6px;
    font-family:'Playfair Display', serif;
    letter-spacing:1px;
}

/* TIMES */
.bottom-box .time{
    font-size:60px;
    font-weight:300;
}

/* NEXT PRAYER NAME */
.prayer-name{
    font-size:55px;
    margin-bottom:5px;
}

.adhan-row{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:10px;
    font-size:2px;
    font-weight:300;
}

.adhan-row .prayer-name{
    font-size:55px;
}

.adhan-row .title{
    font-size:50px;
    margin:0;
}


#info-box{
    position:relative;
    overflow:hidden;
}

/* IBAN visible by default */
#iban-container{
    display:flex;
    gap:15px;
    align-items:center;
    justify-content:center;
}

/* ticker hidden initially */
#ticker-container{
    display:none;
    width:100%;
    overflow:hidden;
}

/* scrolling text */
#ticker-text{
    display:inline-block;
    white-space:nowrap;
    font-size:55px;
    direction:rtl;
}

#ticker-text-de{
    font-family: 'Playfair Display', serif, "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji";
    display:inline-block;
    white-space:nowrap;
    font-size:55px; 
    direction:ltr;
}

/* animation */
@keyframes scrollText{
    from{
        transform: translateX(-100%);
    }
    to{
        transform: translateX(100%);
    }
}
@keyframes scrollTextDE{
    from{
        transform: translateX(100%);
    }
    to{
        transform: translateX(-100%);
    }
}

#tasbih-container{
    width:100%;
    overflow:hidden;
    display:flex;
    align-items:center;
}

#tasbih-text{
    white-space:nowrap;
    font-size:55px;
    font-family:'Amiri', serif;
    direction:rtl;
    display:inline-block;
}

/* scroll animation (RIGHT → LEFT like Arabic) */
@keyframes scrollTasbih{
    from{
        transform: translateX(-100%);
    }
    to{
        transform: translateX(100%);
    }
}

/* // 3 ANIMATION: CONIC GRADIENT SPINNING BORDER */
@property --angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: true;
}

#next-adhan-box.active-iqamah{

    --angle: 0deg;

    border-radius: 16px;
    border: 2px solid rgba(255,255,255,0.2);

    background:
        conic-gradient(
        from var(--angle),
        rgba(255,255,255,0.08),
        rgba(0,0,0,0.6),
        rgba(255,255,255,0.08),
        rgba(0,0,0,0.6)
        );

    animation: rotateBg 4s linear infinite;
}

@keyframes rotateBg {
    to {
        --angle: 360deg;
    }
}
