@import url('https://fonts.googleapis.com/css2?family=Kufam:ital,wght@0,400..900;1,400..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Ruwudu:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@100;200;300;400;500;600;700&family=Ruwudu:wght@400;500;600;700&display=swap');

*{
    padding: 0;
    margin: 0;   
    box-sizing: border-box;
    direction: rtl;
    font-family: "Kufam","IBM Plex Sans Arabic","Ruwudu",  sans-serif;
    /* font-weight: 400; */
}
:root{
    --main-color: #56e39f;
    --bg-color: #465775;
    --other: #59C9A5;
}
.container{
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background-color: var(--bg-color);
}

.title {
    font-size: 50px;
    font-weight: 700;
    letter-spacing: 1px;
    text-align: center;
    height: 120px;
    line-height: 120px;
    color: var(--main-color);
    text-shadow: 0 0 10px #000;
}
.container header{
    width: 100%;
    max-height: fit-content;
    display: flex;
    flex-direction: column;
    background-image: 
    linear-gradient(to right, #57657e5e,#57657e59) 
    ,url(./img/masjid.jpg);
    background-size: cover;
}

.container nav{
    display: flex;
    width: 100%;
    height: 60px;
    border-bottom: solid .3px #aaa;
    justify-content: space-around;
    align-items: center;
}
.container nav select{
    width: 150px;
    border: .3px solid #aaa;
    padding: 10px ;
    border-radius: 10px;
    background-color: #57657e9a;
    color: aquamarine;
    font-size: 20px;
}
.container nav select option{
    background-color: #57657e;
    font-size: 18px;
}
@media screen and (min-width: 760px) {
    .container header{
        display: flex;
        flex-direction: row;
        height: 150px;
    border-bottom: solid .3px #aaa;
    background-image: 
    linear-gradient(to right, #57657e85,#57657e86) 
    ,url(./img/masjid-wide.jpg);
    background-size: contain;
    background-repeat: repeat;
    }
    .container .title{
        width: 60%;
        height: 150px;
    line-height: 150px;
    }
    .container header nav{
        display: flex;
        flex-direction: column;
        width: 40%;
        height: 150px;
        border: none;
    }
}
.container main{
    width: 100%;
    min-height: fit-content;
    overflow: hidden;
    position: relative;
    bottom: 0;
    overflow-y: scroll;
    direction: ltr;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.date-time{
    height: 40px;
    width: 300px;
    margin: 8px 0;
    background-color: #3c4b64;
    display: flex;
    justify-content: space-around;
    align-items: center;
    color: #fff;
    padding: 0 30px;
    border-radius: 15px;
    border: solid var(--other) .5px;
    color: var(--main-color);
}
.date-time div{
    height: 100%;
    line-height: 45px;
    padding: 0 10px;
    direction: ltr;
}
.date-time i{
    font-size: 20px;
    transition: .3s;
}
.date-time i:hover{
    transform: scale(1.08);
    color: #fff;
}
.container main .boxs{
    width: 100%;
    padding: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-around;
    direction: rtl;
    margin: 15px 0;
}
.container main .boxs .box{
    width: 130px;
    height: 130px;
    border: solid .4px var(--main-color);
    border-radius: 15px;
    box-shadow: 0 0 6px #85ebafaf ,0 0 8px #ffffffbb  inset;
    background: var(--other);
    display: flex;
    flex-direction: column;
}
.container main .boxs .box h2,p{
    height: 50%;
    text-align: center;
    line-height: 70px;
    color: #FFF;
    text-shadow: 1px 1px 5px #000;
}
.container main .boxs .box p{
    line-height: 40px;
    font-size: 20px;
    direction: ltr;
}

.container main .hadith{
    width: 80%;
    max-height: 430px;
    display: flex;
    flex-direction: column;
    border-radius: 20px;
    color: #FFF;
    background-color: #145234;
    position: relative;
    border: 4px double #fff;
}
.container main .hadith p{
    width: 100%;
    padding: 25px;
    text-shadow: 1px 1px 5px #000;
    direction: rtl;
    line-height: 35px;
    height: fit-content;
    max-height: 360px;
    overflow: hidden;
    overflow-y: scroll;
}
.container .hadith .icon{
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    position: relative;
}
.container .hadith .icon i{
    width: fit-content;
    padding: 10px;
    color: var(--main-color);
    border: solid 1px var(--main-color);
    border-radius: 50%;
    font-size: 25px;
    transition: .3s;
}
.container .hadith .icon i:hover{
    color: #fff;
    transform: scale(1.05);
    position: relative;
}
/* .fa-copy::after {
    content: '';
    width: 50px;
    height: 30px;
    position: absolute;
    top: -40px;
    overflow: visible;
    background-color: #77ac77ab;
    border: solid .1px #fff;
    border-radius: 10px;

    right: 50%;
    transform: translate(50%);
    
} */
@media screen and (max-width: 450px){
    .container .title{
        font-size: 40px;
        height: 80px;
    }
    .container nav{
        height: 70px;
    }
    .container nav select{
        width: 120px;
        font-size: 18px;
    }
    
    .container main .boxs{
        flex-direction: column;
    }
    .container main .boxs .box{
        flex-direction: row;
        width: 100%;
        height: 60px;
        align-items: center;
    }
    .container main .boxs .box h2,p{
        width: 50%;
        height: fit-content;
    }
    .container main .hadith{
        width: 90%;
    }
}
.container main .foot{
    width: 100%;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #00110c;
    margin-top: 15px;
    color: #fff;
    position: relative;
    bottom: 0;
    direction: ltr;
    letter-spacing: 1px;
}
.container main .foot span{
    color: var(--main-color);
}