/* Base styles */
body {
    background-color: black;
    color: gold;
    font-family: Arial, sans-serif;
}

a {
    text-decoration: none;
    color: gold;
    transition: 0.3s;
}

a:hover {
    color: #ffd700;
}

/* Popup styles */
.popup {
    display: none; 
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    overflow: auto;
    padding-top: 60px;
}

.popup-content {
    background-color: #222;
    margin: 5% auto;
    padding: 20px;
    border-radius: 10px;
    width: 60%;
    text-align: center;
}

.popup-content img {
    width: 100%;
    max-width: 200px;
    margin-bottom: 20px;
}

.popup-content h3 {
    font-size: 20px;
    color: #fff;
    font-weight: 400;
}

/* Close button */
.close {
    color: #fff;
    font-size: 30px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 25px;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: gold;
    text-decoration: none;
    cursor: pointer;
}
/* Global Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
    text-transform: capitalize;
}

body {
    background-color: #000;
    color: #fff;
    margin: 0;
    padding: 0;
    font-size: 16px;
}

/* Links */
a {
    text-decoration: none;
    color: #ffd700;
}

a:hover {
    color: #fff;
    text-decoration: underline;
}

/* Quick Link to Scroll to Verse */
.quick-link {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 18px;
    background-color: #ffd700;
    padding: 10px;
    border-radius: 10px;
    transition: background 0.3s ease;
}

.quick-link:hover {
    background-color: #cc9900;
}

/* Heading Styles */
.prayer {
    text-align: center;
    font-size: 2rem;
    margin-top: 50px;
    color: #ffd700;
}

.welcome {
    text-align: center;
    font-size: 1.8rem;
    margin: 20px;
    color: #ffd700;
}

.intro {
    text-align: center;
    font-size: 1.2rem;
    margin-top: 20px;
    color: #ccc;
}

.result {
    text-align: center;
    font-size: 1.5rem;
    margin-top: 30px;
    padding: 20px;
    background-color: rgba(255, 215, 0, 0.2);
    border-radius: 10px;
    border: 2px solid #ffd700;
}

.explain {
    text-align: center;
    font-size: 1.5rem;
    margin-top: 50px;
}

.link-explain {
    color: #ffd700;
}

h3 {
    text-align: center;
    font-size: 1.2rem;
    margin-top: 30px;
    color: #ffd700;
}

/* Image Styles */
.image {
    display: block;
    margin: 30px auto;
    width: 50%;
    max-width: 500px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    animation: fadeIn 2s ease-in-out;
}

/* Audio Controls */
audio {
    display: block;
    margin: 30px auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Button for Start Now */
.start-btn {
    background-color: #ffd700;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 1rem;
    color: black;
    transition: background-color 0.3s ease;
}

.start-btn:hover {
    background-color: #cc9900;
}

/* Animation for Fade In */
@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* Loader GIF Styles */
#loading {
    display: block;
    margin: 20px auto;
    width: 100px;
    height: 100px;
    animation: spin 2s linear infinite;
}

/* Spin Animation */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
    .quick-link {
        top: 10px;
        left: 10px;
        font-size: 16px;
        padding: 8px;
    }

    .prayer {
        font-size: 1.6rem;
    }

    .welcome {
        font-size: 1.5rem;
    }

    .intro {
        font-size: 1rem;
    }

    .result {
        font-size: 1.2rem;
    }

    h3 {
        font-size: 1rem;
    }

    .image {
        width: 80%;
    }

    audio {
        width: 80%;
    }

    .start-btn {
        font-size: 1rem;
    }

    #loading {
        width: 80px;
        height: 80px;
    }
}

@media (max-width: 480px) {
    .quick-link {
        font-size: 14px;
        padding: 6px;
    }

    .prayer {
        font-size: 1.4rem;
    }

    .welcome {
        font-size: 1.2rem;
    }

    .intro {
        font-size: 0.9rem;
    }

    .result {
        font-size: 1rem;
    }

    h3 {
        font-size: 0.9rem;
    }

    .image {
        width: 100%;
    }

    audio {
        width: 100%;
    }

    .start-btn {
        font-size: 0.9rem;
    }

    #loading {
        width: 60px;
        height: 60px;
    }
}
.btn {
    display: inline-block;
    padding: 15px 30px;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    background-color: gold;
    color: black;
    border-radius: 8px;
    border: 2px solid #ffd700;
    cursor: pointer;
    transition: 0.3s;
}

.btn:hover {
    background-color: #ffd700;
    color: black;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.3);
}


/* For screens smaller than 600px (mobile devices) */
@media screen and (max-width: 600px) {
    .prayer, .welcome, .intro, .result, .explain, h1, h2, h3 {
        font-size: 16px;
        text-align: center;
    }

    .btn {
        width: 100%;
        font-size: 16px;
        padding: 12px 0;
    }

    .popup-content {
        width: 80%;
        padding: 15px;
    }

    .popup-content img {
        max-width: 150px;
    }
}

/* For screens between 600px and 900px (tablets) */
@media screen and (max-width: 900px) and (min-width: 601px) {
    .prayer, .welcome, .intro, .result, .explain, h1, h2, h3 {
        font-size: 18px;
        text-align: center;
    }

    .btn {
        font-size: 18px;
        padding: 12px 25px;
    }

    .popup-content {
        width: 70%;
        padding: 18px;
    }

    .popup-content img {
        max-width: 180px;
    }
}

/* For larger screens */
@media screen and (min-width: 901px) {
    .prayer, .welcome, .intro, .result, .explain, h1, h2, h3 {
        font-size: 20px;
        text-align: left;
    }

    .btn {
        font-size: 20px;
        padding: 15px 30px;
    }

    .popup-content {
        width: 60%;
        padding: 25px;
    }

    .popup-content img {
        max-width: 200px;
    }
}