/* Global Styles */
body {
    font-family: 'Poppins', sans-serif; /* Modern, clean font */
    background-color: #121212; /* Dark background for high contrast */
    color: #fff; /* White text for better readability */
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Title Styling */
h1 {
    font-size: 4rem; /* Larger font size for the title */
    font-weight: 700;
    color: #f39c12; /* Accent color (orange) */
    margin-bottom: 10px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 3px; /* Adds space between letters */
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.6); /* Subtle shadow for title */
}



/* General Container */
.container {
    padding: 10px;
    max-width: 100%;
    box-sizing: border-box;
    width: 100%;
}

/* Date and Time Styling */
#current-time {
    font-size: 2rem;
    margin-bottom: 20px;
    text-align: center;
    color: #fff;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5); /* Subtle shadow for text */
}

/* Location and Coordinates Styling */
#location, #coordinates, #country-name, #method-name {
    font-size: 1rem;
    margin-bottom: 10px;
    text-align: center;
    color: #aaa; /* Light gray for secondary text */
}

/* Ensure only one card per row */
#prayer-times {
    display: flex;
    flex-direction: column;
    align-items: center; /* Center cards */
    gap: 30px;
    width: 100%;
}

/* Individual Prayer Time Card */
.card {
    background-color: #333;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    text-align: center;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    color: #fff;
    width: 90%; /* Make width dynamic */
    max-width: 600px; /* Prevent it from becoming too wide */
}

/* Hover effect for cards */
.card:hover {
    transform: translateY(-10px); /* Slight lift effect */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); /* Stronger shadow for hover effect */
}

/* Card Title (Prayer Name) */
.card h4 {
    font-size: 1.6rem; /* Default font size for h4 */
    margin-bottom: 10px;
    font-weight: 600;
    color: #f39c12; /* Accent color */
}

/* Prayer Time Text */
.card p {
    font-size: 1.4rem; /* Default font size for prayer times */
    font-weight: 500;
    margin: 0;
}

/* Responsive Design for Smaller Screens */
@media (max-width: 768px) {
    h1 {
        font-size: 3rem; /* Adjust title size */
    }

    #current-time {
        font-size: 1.6rem; /* Adjust time size */
    }

    .card {
        width: 95%; /* Adjust width for smaller screens */
        max-width: 500px;
    }

    .card h4 {
        font-size: 1.4rem;
    }

    .card p {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2.5rem; /* Adjust title for small screens */
    }

    #current-time {
        font-size: 1.2rem;
    }

    .card {
        width: 98%; /* Make cards take more screen space */
        max-width: 400px;
    }

    .card h4 {
        font-size: 1.2rem;
    }

    .card p {
        font-size: 1rem;
    }
}

/* Toggle Location Button */
#toggle-location-btn {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    outline: none;
    margin: 20px auto;
    display: block;
    width: 200px;
}

#toggle-location-btn:hover {
    background-color: #45a049;
    transform: scale(1.05);
}

#toggle-location-btn:active {
    background-color: #388e3c;
    transform: scale(0.98);
}

/* Prayer Method Selection Box */
#method-selection {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    margin-top: 30px;
    display: none;
    text-align: center;
    width: 100%;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

#method-selection select {
    padding: 12px 20px;
    font-size: 16px;
    width: 100%;
    margin-top: 15px;
    border-radius: 8px;
    border: 1px solid #ddd;
    background-color: #f9f9f9;
    transition: background-color 0.3s, border-color 0.3s;
}

#method-selection select:focus {
    outline: none;
    border-color: #4CAF50;
    background-color: #f0f8f0;
}

#method-selection button {
    padding: 12px 20px;
    font-size: 18px;
    margin-top: 20px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.1s;
    font-weight: bold;
}

#method-selection button:hover {
    background-color: #45a049;
    transform: scale(1.05);
}

#method-selection button:active {
    background-color: #388e3c;
}
