/* styles.css – unchanged core styles + new pop-up styles */
body {
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
    background-color: #f0f0f0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow: hidden;
    position: relative;
}

.container {
    text-align: center;
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,.1);
    max-width: 80%;
    animation: fadeIn 1s ease-in-out;
    z-index: 10;
}

.message {
    font-size: 2em;
    color: #000000;
    margin-bottom: 10px;
    animation: bounce .5s infinite alternate;
}

.subtext {
    font-size: 1.2em;
    color: #333;
}

/* ---------- POP-UP STYLES ---------- */
.popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    background: #fff;
    border: 4px solid #000;
    box-shadow: 8px 8px 0 #000;
    font-family: 'Comic Sans MS', 'Comic Sans', 'Chalkboard', 'Marker Felt', cursive;
    font-size: 1.1rem;
    text-align: center;
    padding: 20px;
    z-index: 100;
    animation: popupPop .3s ease-out forwards;
    display: none;
}

.popup.show { display: block; }

.popup .title {
    font-weight: bold;
    font-size: 1.4rem;
    margin-bottom: .5rem;
    color: #ff0;
    text-shadow: 2px 2px 0 #f00;
    background: #00f;
    padding: 4px 8px;
    display: inline-block;
    transform: rotate(-2deg);
}

.popup .deal {
    margin: 15px 0;
    font-size: 1.3rem;
    color: #000;
}

.popup button {
    background: #ff0;
    border: 3px solid #000;
    font-weight: bold;
    padding: 6px 12px;
    cursor: pointer;
    margin: 0 4px;
    transform: skew(-10deg);
}

.popup .close {
    position: absolute;
    top: 5px;
    right: 8px;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    color: #f00;
}

/* Staggered entrance */
@keyframes popupPop {
    0%   { transform: translate(-50%, -50%) scale(0.5); opacity: 0; }
    100% { transform: translate(-50%, -50%) scale(1);   opacity: 1; }
}

/* Responsive tweaks */
@media (max-width: 600px) {
    .message { font-size: 1.5em; }
    .subtext { font-size: 1em; }
    .container { max-width: 90%; }
    .popup { width: 260px; font-size: .95rem; }
    .popup .title { font-size: 1.2rem; }
}
