/* General Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #edf2f7;
    margin: 0;
    padding: 0;
    color: #333;
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 900px;
    margin: 40px auto;
    padding: 30px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.container:hover {

    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

h1,
h2,
h3 {
    text-align: center;
    color: #222;
    margin-bottom: 20px;
    font-weight: 700;
    font-family: 'Roboto', sans-serif;
}

h2 {
    margin-top: 0;
}

/* Prayer Header */
.prayer-header {
    background-color: darkseagreen;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.prayer-header h2 {
    margin: 0;
    color: #ffffff;
    font-size: 24px;
    font-weight: 700;
}

/* Labels */
label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #555;
    font-size: 14px;
}

/* Inputs */
input,
select {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border-radius: 6px;
    border: 1px solid #ddd;
    font-size: 16px;
    background-color: #f9fafb;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

input:focus,
select:focus {
    border-color: #3182ce;
    background-color: #ffffff;
    outline: none;
}

/* Buttons */
button {
    display: inline-block;
    padding: 12px 24px;
    margin: 10px 0;
    font-size: 16px;
    color: #ffffff;
    background-color: #3182ce;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.3s ease, transform 0.2s ease;
    width: 100%;
}

button:hover {
    background-color: #2c5282;
    transform: translateY(-2px);
}

/* Prayer Times Section */
#prayerTimes {
    margin-top: 10px;
    font-size: xx-large;
}

.prayer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 20px;
    width: 100%;
    box-sizing: border-box;
}

.prayer-grid p {
    font-size: 18px;
    color: #3182ce;
    text-align: center;
    padding: 20px;
    background-color: #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    animation: pulse 1.5s infinite;
    margin: 0;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.7;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.prayer-time {
    background-color: #f0f4f8;
    padding: 20px;
    text-align: center;
    border-radius: 10px;
    font-size: xx-large;
    color: #333;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.prayer-time:hover {
    background-color: #e2e8f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Weather Information Section */
.weather-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.weather-item {
    background-color: #f0f4f8;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.weather-icon {
    margin-right: 8px;
    color: #3182ce;
}

/* Moon Visualization */
.moon {
    width: 100px;
    height: 100px;
    background-color: #333;
    border-radius: 50%;
    position: relative;
    overflow: hidden;
    margin: 30px auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.moon .illuminated {
    width: 100%;
    height: 100%;
    background-color: #fff;
    position: absolute;
    top: 0;
    border-radius: 50%;
    transform-origin: left;
    transform: scaleX(0);
}

.waning .illuminated {
    transform-origin: right;
}

/* Qibla Info */
.qibla-info {
    background-color: lightcyan;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    border-radius: 10px;
}

/* Directional Labels */
.direction {
    position: absolute;
    font-size: 14px;
    font-weight: bold;
    color: #333;
    text-align: center;
    width: 20px;
}

/* Responsive Form and Inputs */
#inputSections {
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .container {
        padding: 20px;
    }

    h1 {
        font-size: 26px;
    }

    button {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 22px;
    }

    input,
    select {
        font-size: 14px;
    }

    .weather-grid {
        grid-template-columns: 1fr;
    }
}