/* ip-ping-style.css */

/* Responsive Container */
.ip-ping-container {
    max-width: 500px;
    margin: 20px auto;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
    background-color: #fff;
}

/* Form Elements */
.ip-ping-container h3 {
    text-align: center;
    font-size: 20px;
    margin-bottom: 20px;
}

.ip-ping-container label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

.ip-ping-container select {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

/* Stronger Selector for Ping Button Styles */
.ip-ping-container input#ping-submit {
    width: 100%;
    padding: 12px;
    background-color: #fcc237 !important; /* Changed to yellow with !important to override any other styles */
    color: #000 !important; /* Black text for better contrast */
    border: none !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    font-size: 16px !important;
    transition: background-color 0.3s ease !important;
}

.ip-ping-container input#ping-submit:hover {
    background-color: #fbc02d !important; /* Slightly darker yellow on hover */
}

/* Modal Styles */
.ip-ping-modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.5); /* Black w/ opacity */
}

.ip-ping-modal-content {
    background-color: #fefefe;
    margin: 5% auto; /* 5% from the top and centered */
    padding: 20px;
    border: 1px solid #888;
    width: 90%;
    max-width: 600px; /* Could be more or less, depending on screen size */
    border-radius: 8px;
    position: relative;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.3s;
    text-align: center; /* Center content within modal */
}

/* Close Button */
.ip-ping-close {
    color: #aaa;
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.ip-ping-close:hover,
.ip-ping-close:focus {
    color: black;
    text-decoration: none;
}

/* Go Shopping Button in Popup */
.go-shopping-button {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 20px;
    background-color: #fcc237;
    color: #000;
    text-align: center;
    font-weight: bold;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.go-shopping-button:hover {
    background-color: #fbc02d;
}

/* Responsive Adjustments */
@media (max-width: 600px) {
    .ip-ping-modal-content {
        width: 95%;
    }
}

/* Animation for Modal */
@keyframes fadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
}
