/* modules/moonphase/views/css/moonphase_front.css */

/* --- Main Container --- */
#moonphase-container {
    background-color: #ffffff;
    padding: 25px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin: 30px auto; /* Center on the page */
    text-align: center;
}

.moonphase-title {
    font-size: 24px;
    color: #333;
    margin-bottom: 20px;
    font-weight: 600;
}

/* --- Input Group --- */
.moonphase-input-group {
    display: flex;
    flex-direction: column; /* Stack input and button vertically */
    gap: 15px; /* Space between items */
    align-items: center;
}

.moonphase-input {
    width: 100%; /* Make button full width */
    max-width: 275px; /* Limit button width */
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    box-sizing: border-box; /* Include padding in width */
    -webkit-appearance: none; /* Remove default date input styling */
    appearance: none;
    background-color: #f9f9f9;
    cursor: pointer;
}

.moonphase-input:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

.moonphase-button {
    background-color: #383232;
    color: white;
    padding: 12px 25px;
    border: none;
    font-size: 17px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    width: 100%; /* Make button full width */
    max-width: 275px; /* Limit button width */
}

.moonphase-button:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

.moonphase-button:active {
    transform: translateY(0);
}

.moonphase-button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

/* --- Loading Indicator --- */
.moonphase-loading {
    margin-top: 20px;
    color: #666;
    font-style: italic;
}

/* --- Pop-up Overlay --- */
.moonphase-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000; /* Ensure it's above other content */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.moonphase-popup-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* --- Pop-up Content --- */
.moonphase-popup-content {
    background-color: #ffffff;
    padding: 30px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    width: 90%; /* Responsive width */
    text-align: center;
    position: relative;
    transform: translateY(-20px); /* Initial state for animation */
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.moonphase-popup-overlay.show .moonphase-popup-content {
    transform: translateY(0);
    opacity: 1;
}

.moonphase-popup-title {
    font-size: 22px;
    color: #333;
    margin-bottom: 15px;
    font-weight: 600;
}

.moonphase-image-wrapper {
    margin-bottom: 20px;
}

.moonphase-image {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    border: 1px solid #eee;
}

.moonphase-description {
    font-size: 16px;
    color: #555;
    margin-bottom: 25px;
    line-height: 1.5;
}

.moonphase-close-button {
    background-color: #383232;
    padding: 10px 20px;
}

.moonphase-close-button:hover {
    background-color: #c82333;
}

/* --- Responsive adjustments --- */
@media (max-width: 600px) {
    #moonphase-container {
        margin: 20px 15px;
        padding: 20px;
    }
    .moonphase-title {
        font-size: 20px;
    }
    .moonphase-popup-content {
        padding: 25px;
    }
    .moonphase-popup-title {
        font-size: 20px;
    }
}

/* --- Utility Class for Hiding Elements --- */
.hidden {
    display: none !important; /* Ensures the element is completely hidden */
}

span#currency-selector-label {
    display:none;
}
