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

body {
    background-color: #10151d;
    font-family: "Nunito Sans",
        sans-serif;
    line-height: 1.6;
}

.date {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 10px 50px;
    font-size: 48px;
    height: 18vh;
    position: fixed;
    width: 100%;
    z-index: 1000;
    top: 0;
    background-color: rgba(0, 0, 0, 0.274);
    backdrop-filter: blur(10px);
    color: white;
    font-weight: 600;
}

.buttons {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 10px 20px;
    font-size: 48px;
    height: 6vh;
    position: fixed;
    width: 100%;
    z-index: 1000;
    bottom: 0 !important;
    background-color: rgba(0, 0, 0, 0.274);
    backdrop-filter: blur(10px);
    color: white;
}

.btns {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 75px;
}

.location {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    font-size: 16px;
}

.location i {
    margin-right: 10px;
}

main {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    height: 100vh;
    justify-content: space-between;
    align-items: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-clip: border-box;
}

main>div {
    padding: 10px;
    width: 45%;
    height: 250px;
    z-index: 5;
}

.hadith {
    background-size: cover;
    background-repeat: no-repeat;
    background-blend-mode: darken;
    font-size: 25px;
    text-shadow: 1px 1px 2px #000000;
    width: 50%;
    margin: auto;
    color: white;
    overflow-y: scroll;
    background-color: rgba(0, 0, 0, 0.4);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    height: 100%;
    min-height: 200px;
    max-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    flex-wrap: wrap;
    padding: 50px 30px;
    gap: 5px;
    text-align: center;
    font-size: 1.25vw;
}

.prayer {
    text-shadow: 1px 1px 2px #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: white;
    margin: auto;
    overflow-y: scroll;
    background-color: rgba(0, 0, 0, 0.4);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    width: 30%;
    height: 100%;
    min-height: 200px;
    max-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    /* padding: 50px 10px; */
    gap: 10px;
    text-align: center;
    overflow: auto;
    font-size: 1.5vw;
}

.transmetuesi {
    font-style: italic;
    color: #cbd5e1;
}

strong {
    color: #e2e8f0;
}

.nga {
    position: relative;

    width: 100%;
    text-align: center;
    font-size: 1vw;
    color: #cbd5e1;
}


.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    border-radius: 12px;
    backdrop-filter: blur(2px);
}

.audio,
.clock {
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0ms;
}

.audio:hover,
.clock:hover {
    transform: scale(1.1);
}

/* width */
::-webkit-scrollbar {
    width: 10px;
    border-radius: 20px;
    background-color: rgba(0, 0, 0, 0.2);
}

/* Track */
::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 20px;
}

/* Handle */
::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.8), rgba(0, 0, 0, 0.2));
    border-radius: 20px;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, rgba(255, 255, 255, 1), rgba(0, 0, 0, 0.4));
    border-radius: 20px;
}


footer {
    position: fixed;
    bottom: 20px;
    left: 38vw;
    text-align: center;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    z-index: 1001;
    margin-bottom: -5px;
}

a {
    color: white;
    text-emphasis: none;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0ms;
}

a:hover {
    color: aquamarine;
}

.prayer-time {
    animation: blink 1s infinite;
}

@keyframes blink {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@media screen and (max-width: 768px) {

    .date {
        font-size: 24px;
        height: fit-content;
    }

    .buttons {
        font-size: 24px;
        height: fit-content;
    }

    main {
        flex-direction: column;
    }

    #hadith {
        width: 90%;
        font-size: 14px;
        display: none;
    }

    .prayer {
        order: -1;
        font-size: 20px;
        justify-content: default;
        width: 90%;
        padding-top: 50px;
    }

    footer {
        display: none;
    }

}


.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
}

.modal-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    min-width: 320px;
    max-width: 480px;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    z-index: 10000;
    transition: all 0.25s cubic-bezier(0.165, 0.84, 0.44, 1) 0ms;
    animation: popupFadeIn 0.357s cubic-bezier(0.075, 0.82, 0.165, 1);
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 600;
}

.modal-content {
    padding: 1.5rem;
    max-height: 70vh;
    overflow-y: auto;
}

.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid #e2e8f0;
    text-align: right;
}

.modal-footer button {
    padding: 0.5rem 1rem;
    background-color: #e2e8f0;
    border-radius: 0.25rem;
    transition: all 0.25s cubic-bezier(0.165, 0.84, 0.44, 1) 0ms;
    border: none;
    cursor: pointer;
    height: 35px;
}

.modal-footer button:hover {
    background-color: #cbd5e1;
}


/* Popup fade animation */

@keyframes popupFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.7);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

::selection {
    background-color: rgba(188, 210, 218, 0.548);
    color: black;
}