@font-face { font-family: 'UthmanicHafs'; src: url('fonts/UthmanicHafs1Ver18.woff2') format('woff2'); font-display: swap; font-weight: normal; font-style: normal; } @font-face { font-family: 'UthmanTahaNaskh'; src: url('fonts/Uthman-Taha-Naskh.woff2') format('woff2'); font-display: swap; font-weight: normal; font-style: normal; } :root { --glass-background: rgba(20, 20, 20, 0.6); --glass-border: rgba(255, 255, 255, 0.2); --text-color: #ffffff; --text-color-secondary: rgba(255, 255, 255, 0.8); --accent-color: #3498db; --highlight-color: rgba(46, 204, 113, 0.2); --highlight-border: rgba(46, 204, 113, 0.5); --delete-color: #e74c3c; --icon-fill: #ffffff; } html[data-theme="theme-light"] { --glass-background: rgba(255, 255, 255, 0.7); --glass-border: rgba(200, 200, 200, 0.4); --text-color: #2c3e50; --text-color-secondary: rgba(44, 62, 80, 0.8); --accent-color: #2980b9; --highlight-color: rgba(46, 204, 113, 0.25); --highlight-border: rgba(46, 204, 113, 0.6); --delete-color: #c0392b; --icon-fill: #2c3e50; } html[data-theme="theme-green"] { --accent-color: #27ae60; --highlight-color: rgba(241, 196, 15, 0.2); --highlight-border: rgba(241, 196, 15, 0.5); } html[data-theme="theme-blue"] { --accent-color: #2980b9; --highlight-color: rgba(230, 126, 34, 0.2); --highlight-border: rgba(230, 126, 34, 0.5); } html[data-theme="theme-gold"] { --accent-color: #f1c40f; --highlight-color: rgba(41, 128, 185, 0.2); --highlight-border: rgba(41, 128, 185, 0.5); } body, html { margin: 0; padding: 0; width: 100%; height: 100%; overflow: hidden; font-family: 'Cairo', sans-serif; color: var(--text-color); } body { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 2rem; padding: 2rem 1rem; box-sizing: border-box; } .background-blur { position: fixed; top: -5%; left: -5%; width: 110%; height: 110%; background-size: cover; background-position: center; z-index: -2; filter: blur(12px); transition: background-image 1s ease-in-out; } .overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.6)); z-index: -1; } header { width: 100%; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 0.5rem; } #top-bar { display: flex; justify-content: space-between; align-items: center; width: 100%; max-width: 900px; padding: 0 1rem; box-sizing: border-box; } .top-bar-side { width: 80px; display: flex; } .top-bar-side:first-of-type { justify-content: flex-start; } .top-bar-side:last-of-type { justify-content: flex-end; } .top-bar-button { background: rgba(0,0,0,0.3); border: 1px solid var(--glass-border); color: var(--text-color); border-radius: 20px; transition: background-color 0.2s, transform 0.2s, filter 0.2s; cursor: pointer; display: flex; align-items: center; justify-content: center; } .top-bar-button:hover { filter: drop-shadow(0 0 5px var(--icon-glow)); } #lang-btn { padding: 5px 15px; font-weight: bold; } #theme-btn { padding: 8px; } #theme-btn svg { width: 20px; height: 20px; } #time-wrapper, #date-wrapper { position: relative; padding: 5px 10px; } #time { font-size: 4.5rem; font-weight: 700; text-shadow: 0 0 20px rgba(0, 0, 0, 0.8); line-height: 1; } #full-date { font-size: 1.2rem; opacity: 0.9; text-shadow: 0 0 10px rgba(0, 0, 0, 0.7); } .contextual-settings-wrapper .contextual-controls { display: flex; align-items: center; gap: 10px; position: absolute; bottom: -25px; left: 50%; transform: translateX(-50%); background: rgba(0,0,0,0.5); padding: 5px 10px; border-radius: 20px; opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0.3s; } .contextual-settings-wrapper:hover .contextual-controls { opacity: 1; visibility: visible; } .adjust-btn.small-btn { width: 25px; height: 25px; font-size: 1rem; border-radius: 50%; border: 1px solid var(--glass-border); background-color: rgba(0,0,0,0.2); color: var(--text-color); cursor: pointer; } .offset-input { font-size: 1rem; font-weight: bold; min-width: 20px; text-align: center; background: transparent; border: none; color: var(--text-color); width: 40px; font-family: 'Cairo', sans-serif; } .offset-input:focus { outline: none; } .offset-input::-webkit-outer-spin-button, .offset-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; } .offset-input[type=number] { -moz-appearance: textfield; } main { width: 90%; max-width: 800px; background: var(--glass-background); border: 1px solid var(--glass-border); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 8px 32px 0 var(--glass-shadow); border-radius: 20px; display: flex; flex-direction: column; } .content-wrapper { padding: 2rem 2.5rem; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 1rem; } #ayah-container { width: 100%; max-height: 25vh; overflow-y: auto; padding: 0 15px 10px 0; } #ayah-source { font-size: 1.2rem; color: #f1c40f; margin: 0; opacity: 0.9; } #ayah-text { font-family: 'UthmanTahaNaskh', 'UthmanicHafs', 'Cairo', sans-serif; font-size: 2.2rem; font-weight: normal; line-height: 3.5rem; margin: 0; } #ayah-translation { font-size: 1rem; opacity: 0.8; margin: 0.5rem 0; color: var(--text-color-secondary); } .icon-btn { background: none; border: none; padding: 5px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: transform 0.2s, filter 0.2s; } .icon-btn:hover { transform: scale(1.1); filter: drop-shadow(0 0 5px var(--icon-glow)); } .icon-btn svg { width: 24px; height: 24px; fill: var(--icon-fill); transition: fill 0.2s;} .icon-btn.large svg { width: 40px; height: 40px; } .icon-btn.active-icon svg { fill: var(--accent-color); } #player-controls { display: flex; align-items: center; justify-content: space-evenly; gap: 1rem; width: 100%; margin-top: 1rem; padding: 0 1rem; box-sizing: border-box; } #play-pause-btn .icon-pause, #volume-btn .icon-volume-off, #fav-btn .icon-heart-filled { display: none; } #play-pause-btn.playing .icon-pause, #volume-btn.muted .icon-volume-off, #fav-btn.favorited .icon-heart-filled { display: block; } #play-pause-btn.playing .icon-play, #volume-btn.muted .icon-volume-on, #fav-btn.favorited .icon-heart-outline { display: none; } #fav-btn.favorited svg { fill: var(--delete-color); } footer { border-top: 1px solid var(--glass-border); padding: 1rem 0; display: flex; flex-direction: column; align-items: center; gap: 0.75rem; } #prayer-times { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; padding: 0 1rem; } .prayer { text-align: center; position: relative; padding: 5px; border-radius: 5px; transition: background-color 0.3s, border-color 0.3s; } .prayer-name { font-size: 0.9rem; opacity: 0.8; color: var(--text-color-secondary); } .prayer-time { font-size: 1.1rem; font-weight: 700; } .prayer.highlight { background-color: var(--highlight-color); border: 1px solid var(--highlight-border); } .prayer .prayer-adjust-controls { display: flex; align-items: center; gap: 8px; position: absolute; bottom: -28px; left: 50%; transform: translateX(-50%); background: rgba(0,0,0,0.6); padding: 4px 8px; border-radius: 20px; opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0.3s; z-index: 10; } .prayer:hover .prayer-adjust-controls { opacity: 1; visibility: visible; } .prayer .adjust-btn { width: 22px; height: 22px; font-size: 0.9rem; } .prayer .offset-input { font-size: 0.9rem; min-width: 18px; width: 30px; } .footer-controls { display: flex; align-items: center; gap: 1rem; } #location-display { background: none; border: 1px solid transparent; border-radius: 5px; color: var(--text-color); opacity: 0.7; font-size: 0.8rem; padding: 4px 8px; cursor: pointer; transition: opacity 0.2s, border-color 0.2s; } #location-display:hover { opacity: 1; border-color: var(--glass-border); } #adhan-volume-btn .icon-volume-off { display: none; } #adhan-volume-btn.muted .icon-volume-on { display: none; } #adhan-volume-btn.muted .icon-volume-off { display: block; } #next-prayer-countdown { margin-top: 0.5rem; text-align: center; opacity: 0.8; } #next-prayer-countdown .label { font-size: 0.8rem; } #next-prayer-countdown .time { font-size: 1rem; font-weight: bold; margin-left: 5px; } .modal-hidden { display: none !important; } #tafsir-modal, #reciter-modal, #location-modal, #favorites-modal, #theme-modal, #adhan-reciter-modal, #about-modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.4); display: flex; justify-content: center; align-items: center; z-index: 1000; } .modal-content { background: var(--glass-background); border: 1px solid var(--glass-border); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); box-shadow: 0 8px 32px 0 var(--glass-shadow); padding: 30px; border-radius: 20px; text-align: center; width: 90%; max-width: 500px; max-height: 80vh; color: var(--text-color); display: flex; flex-direction: column; } .modal-content h3 { margin-top: 0; } .modal-content label { display: block; margin-top: 15px; text-align: left; opacity: 0.9; } .modal-content select { width: 100%; padding: 10px; margin-top: 5px; border-radius: 5px; border: 1px solid #ccc; font-family: 'Cairo', sans-serif; } #tafsir-text { font-size: 1.2rem; line-height: 2rem; text-align: center; margin-bottom: 20px; opacity: 0.9; } #close-tafsir-btn, #close-about-btn { padding: 10px 20px; margin-top: 20px; border: none; background-color: var(--accent-color); color: white; border-radius: 5px; cursor: pointer; font-family: 'Cairo', sans-serif; font-size: 1rem; transition: background-color 0.2s; align-self: center; } #close-tafsir-btn:hover, #close-about-btn:hover { background-color: #2980b9; } #reciter-search, #adhan-reciter-search { width: 100%; padding: 10px; margin-bottom: 10px; box-sizing: border-box; background-color: rgba(0,0,0,0.2); border: 1px solid var(--glass-border); border-radius: 5px; color: var(--text-color); font-family: 'Cairo', sans-serif; font-size: 1rem; transition: border-color 0.2s; } #reciter-search:focus, #adhan-reciter-search:focus { outline: none; border-color: var(--accent-color); } #reciter-search::placeholder, #adhan-reciter-search::placeholder { color: var(--text-color-secondary); } #reciter-list, #adhan-reciter-list { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; overflow-y: auto; } #reciter-list button, #adhan-reciter-list button { width: 100%; text-align: left; margin: 0; background-color: rgba(0,0,0,0.2); border: 1px solid var(--glass-border); color: var(--text-color); padding: 10px 15px; font-family: 'Cairo', sans-serif; font-size: 1rem; border-radius: 5px; cursor: pointer; transition: background-color 0.2s; } #reciter-list button:hover, #adhan-reciter-list button:hover { background-color: rgba(0,0,0,0.4); } #reciter-list button.active, #adhan-reciter-list button.active { background-color: var(--accent-color); font-weight: bold; } #favorites-list { overflow-y: auto; } .favorite-item { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 10px; background-color: rgba(0,0,0,0.2); border: 1px solid var(--glass-border); border-radius: 5px; } .favorite-item-content { flex-grow: 1; text-align: right; cursor: pointer; } .favorite-ayah-text { font-family: 'UthmanTahaNaskh', 'UthmanicHafs', 'Cairo', sans-serif; font-size: 1.3rem; line-height: 2.2rem; } .favorite-ayah-source { font-size: 0.8rem; opacity: 0.7; } .favorite-item-actions { display: flex; gap: 10px; } .favorite-item-actions .icon-btn svg { width: 20px; height: 20px; } .favorite-item-actions .icon-btn-delete:hover svg { fill: var(--delete-color); } .loader { border: 4px solid var(--text-color-secondary); border-radius: 50%; border-top: 4px solid var(--accent-color); width: 40px; height: 40px; -webkit-animation: spin 2s linear infinite; animation: spin 2s linear infinite; margin: 20px auto; } @-webkit-keyframes spin { 0% { -webkit-transform: rotate(0deg); } 100% { -webkit-transform: rotate(360deg); } } @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } #theme-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: 15px; margin-top: 20px; } .theme-button { background: rgba(0,0,0,0.2); border: 2px solid var(--glass-border); color: var(--text-color); padding: 15px; border-radius: 10px; cursor: pointer; font-family: 'Cairo', sans-serif; font-size: 1rem; transition: border-color 0.2s, background-color 0.2s; text-align: center; } .theme-button:hover { border-color: var(--accent-color); } .theme-button.active { border-color: var(--accent-color); background-color: var(--accent-color); color: white; } .theme-button .theme-preview { width: 30px; height: 30px; border-radius: 50%; margin: 0 auto 10px auto; border: 2px solid white; } #theme-button-dark .theme-preview { background-color: #2c3e50; } #theme-button-light .theme-preview { background-color: #ecf0f1; } #theme-button-green .theme-preview { background-color: #27ae60; } #theme-button-blue .theme-preview { background-color: #2980b9; } #theme-button-gold .theme-preview { background-color: #f1c40f; } #about-modal .modal-content { text-align: left; } .about-section { margin-bottom: 20px; } .contact-links { display: flex; gap: 20px; margin-top: 10px; } .contact-links a svg { width: 28px; height: 28px; fill: var(--text-color); transition: fill 0.2s; } .contact-links a:hover svg { fill: var(--accent-color); } .update-section h4 { margin-bottom: 10px; border-bottom: 1px solid var(--glass-border); padding-bottom: 5px; } .update-section ul { list-style: none; padding: 0; margin: 0; max-height: 150px; overflow-y: auto; } .update-section li { margin-bottom: 10px; } .version-tag { background-color: var(--accent-color); color: white; padding: 2px 6px; border-radius: 5px; font-size: 0.7rem; margin-right: 8px; } #ayah-container::-webkit-scrollbar, #favorites-list::-webkit-scrollbar, #reciter-list::-webkit-scrollbar, #adhan-reciter-list::-webkit-scrollbar, .update-section ul::-webkit-scrollbar { width: 8px; } #ayah-container::-webkit-scrollbar-track, #favorites-list::-webkit-scrollbar-track, #reciter-list::-webkit-scrollbar-track, #adhan-reciter-list::-webkit-scrollbar-track, .update-section ul::-webkit-scrollbar-track { background: rgba(0,0,0,0.1); border-radius: 10px; } #ayah-container::-webkit-scrollbar-thumb, #favorites-list::-webkit-scrollbar-thumb, #reciter-list::-webkit-scrollbar-thumb, #adhan-reciter-list::-webkit-scrollbar-thumb, .update-section ul::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 10px; } #ayah-container::-webkit-scrollbar-thumb:hover, #favorites-list::-webkit-scrollbar-thumb:hover, #reciter-list::-webkit-scrollbar-thumb:hover, #adhan-reciter-list::-webkit-scrollbar-thumb:hover, .update-section ul::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.4); }