/* Container for full-screen overlay */
#modalContainer {
    position: fixed;                   /* (2) Changed from absolute → fixed for better behavior */
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 10000;
}

/* Main alert box */
#alertBox {
    position: relative;
    width: 320px;                      /* (3) Slightly wider box */
    min-height: 140px;
    margin: 100px auto;
    background: #ffefff;               /* (4) Bright fun pastel background color */
    border-radius: 20px;               /* (5) Rounded corners */
    box-shadow: 0px 8px 20px rgba(0,0,0,0.25); /* (6) Added drop shadow */
    animation: fadeIn 0.25s ease-out;  /* (8) Smooth fade-in animation */
}

@keyframes fadeIn {
    from {opacity: 0; transform: scale(0.9);}
    to {opacity: 1; transform: scale(1);}
}

/* Title bar */
#alertBox h1 {
    margin: 0;
    padding: 12px;
    font-size: 1.1em;                  /* (7) Increased title font size */
    background-color: #ff66cc;         /* (1) Bright pink fun title bar */
    color: white;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}

/* Message text */
#alertBox p {
    padding: 10px 15px;
    font: 0.9em Arial;
    color: #333;                       /* Improved text contrast */
}

/* Close button */
#alertBox #closeBtn {
    display: block;
    width: 90px;                       /* Slightly larger button */
    margin: 12px auto;
    background-color: #ff66cc;
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 12px;               /* Rounded button */
}
