/* ====== Modal Background ====== */
#myModal {
display: none; /* Hidden by default */
position: fixed;
z-index: 9999;
left: 0;
top: 0;
width: 100%;
height: 100%;
overflow: auto; /* Enable scroll if needed */
background-color: rgba(0, 0, 0, 0.8); /* Black with opacity */
animation: fadeIn 0.3s ease-in-out;
}
/* ====== Modal Content Box ====== */
#myModal .modal-content {
background-color: #fff;
margin: 15% auto;
padding: 25px 20px 30px;
border-radius: 10px;
width: 90%;
max-width: 400px;
box-shadow: 0 6px 25px rgba(0, 0, 0, 0.25);
text-align: center;
animation: slideUp 0.4s ease;
font-family: "Poppins", Arial, sans-serif;
}
/* ====== Text Styles ====== */
#myModal .modal-content p {
color: #333;
line-height: 1.4em;
}
/* ====== Close Button (Yes, I'm 21) ====== */
#myModal .modal-content .close {
display: inline-block;
background-color: #e91e63;
color: #fff;
padding: 10px 20px;
margin-top: 20px;
border-radius: 25px;
cursor: pointer;
font-weight: 600;
font-size: 16px;
transition: background 0.3s ease, transform 0.2s;
}
#myModal .modal-content .close:hover {
background-color: #c2185b;
transform: scale(1.05);
}
/* ====== Animations ====== */
@keyframes fadeIn {
from { opacity: 0; }
to { opacity: 1; }
}
@keyframes slideUp {
from { transform: translateY(50px); opacity: 0; }
to { transform: translateY(0); opacity: 1; }
}
/* ====== Responsive ====== */
@media (max-width: 480px) {
#myModal .modal-content {
margin: 40% auto;
padding: 20px 15px;
}
#myModal .modal-content .close {
font-size: 14px;
padding: 8px 18px;
}
}