html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Prevent horizontal scrolling */
}

#wow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;     /* Full viewport width */
    height: 100vh;  
    z-index: -1; /* Keep the Vanta effect behind the content */
}

#app {
    font-family: Arial, sans-serif !important;
    margin: 20px auto;
    padding: 1em;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 25em; /* Ensure it adapts to the viewport */
    max-height: auto;
    width: 100%; /* Make the width responsive */
    height: auto; /* Ensure height adjusts based on content */
    min-height: fit-content;
}

#app h3 {
    font-size: 1.3em;
    padding: 0.6em;
    margin-bottom: 0.7em;
    background: linear-gradient(to right, #00b09b, #96c93d);
    color: white;
    text-align: center;
    border-radius: 5px;
    font-family: 'Syne', sans-serif;
    font-weight: 600;
    font-feature-settings: 'pnum' on, 'lnum' on;
}

.current-prayer,
.current-time {
    text-align: center;
    background-color: #000;
    color: #fff;
    padding: 0.5em;
    border-radius: 5px;
    margin-bottom: 1em;
    font-family: 'Syne', sans-serif;
    font-weight: 600;
    font-feature-settings: 'pnum' on, 'lnum' on;
}

.current-prayer span,
.current-time span {
    font-weight: bold;
}

.current-prayer span {
    color: #00b09b;
}

.current-time span {
    color: #ffe875;
}

.current-prayer-row {
    background-color: #00b09b;
    color: white;
}

#app table {
    width: 100%;
    margin-bottom: 1em;
    border-collapse: collapse;
    border-radius: 5px;
    padding: 10px;
    background: white;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

/* Add gradient border to table */
#app table:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 5px solid;
    border-radius: 10px;
    background: linear-gradient(45deg, #00b09b, #96c93d, #00b09b, #96c93d);
    background-size: 400% 400%;
    animation: gradient-border 3s ease infinite;
    z-index: -1;
}

@keyframes gradient-border {
    0% { background-position: 400% 0; }
    50% { background-position: 0 100%; }
    100% { background-position: 400% 0; }
}

#app table td {
    font-size: 1em;
    padding: 0.8em;
    text-align: left;
    border-bottom: 1px solid #ddd;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-feature-settings: 'pnum' on, 'lnum' on;
}

#app table td:last-child {
    text-align: right;
}

#app table tr:nth-child(even) {
    background-color: #e2e1e1;
}

#app table tr:hover {
    background: linear-gradient(to right, #00b09b, #96c93d);
    color: white;
    cursor: pointer;
}

#app table tr.current-prayer {
    background-color: #96c93d;
    color: white;
}

#app table tr:last-child {
    border-bottom: none;
}

.loader {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #00b09b;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
    margin-top: 50px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Media Queries for different screen sizes */
@media (max-width: 1200px) {
    #app {
        width: 80%;
        padding: 1.5em;
    }
    #app h3 {
        font-size: 1.2em;
    }
}

@media (max-width: 900px) {
    #app {
        width: 90%;
    }
    .current-prayer, .current-time {
        font-size: 1.1em;
        padding: 0.6em;
    }
    #app table td {
        font-size: 1em;
        padding: 0.7em;
    }
}

@media (max-width: 600px) {
    #app {
        width: 100%;
        padding: 1em;
    }

    #app h3 {
        font-size: 1.1em;
    }

    .current-prayer, .current-time {
        font-size: 1em;
        padding: 0.4em;
    }

    #app table td {
        font-size: 0.9em;
        padding: 0.6em;
    }

    .loader {
        width: 30px;
        height: 30px;
        margin-top: 30px;
    }
}

/* For very small screens */
@media (max-width: 400px) {
    #app {
        width: 100%;
        padding: 0.8em;
    }

    .current-prayer, .current-time {
        font-size: 0.9em;
        padding: 0.3em;
    }

    #app table td {
        font-size: 0.6em;
        padding: 0.5em;
    }
}
