body {
    font-family: 'Poppins', sans-serif;
    text-align: center;
    background: linear-gradient(120deg, #ffcc00, #ff6600);
    color: white;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.container {
    max-width: 450px;
    width: 90%;
    background: rgba(255, 255, 255, 0.15);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease-in-out;
}

.container:hover {
    transform: scale(1.02);
}

.hidden {
    display: none;
}

#amount {
    display: block;
    font-size: 24px;
}


.salami-board h3 {
    color: #053706;
}

#amountText {
    font-size: 20px;
    font-weight: bold;
    color: #f6210a;
}

#salamiAmount {
    font-size: 24px;
    font-weight: bold;
    color: #053706;
}


@media (max-width: 1024px) {
    .container {
        max-width: 80%;
        padding: 25px;
    }
}

@media (max-width: 768px) {
    .container {
        max-width: 90%;
        padding: 20px;
    }

    input,
    button {
        font-size: 14px;
        padding: 12px 15px;
    }
}

@media (max-width: 480px) {
    .container {
        max-width: 95%;
        padding: 15px;
    }

    input,
    button {
        font-size: 12px;
        padding: 10px 12px;
    }
}

input,
button {
    padding: 14px 20px;
    margin: 10px 0;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    width: 100%;
    box-sizing: border-box;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

input {
    background-color: rgba(255, 255, 255, 0.8);
    color: #333;
    font-weight: bold;
}

button {
    background: #218838;
    color: white;
    cursor: pointer;
    font-weight: bold;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

button:hover {
    background: #1e7e34;
    transform: scale(1.05);
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.3);
}

.hidden {
    display: none;
}

.boy-animation img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.salami-board {
    background: white;
    color: black;
    padding: 20px;
    border-radius: 8px;
    display: inline-block;
    margin-top: 20px;
    animation: fadeIn 1s ease-in-out;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.popup-content {
    background: #fff3cd;
    padding: 20px;
    margin-top: 300px;
    border-radius: 10px;
    text-align: center;
    color: black;
    position: relative;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    width: 90%;
    animation: fadeIn 0.5s ease-in-out;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.popup-content img {
    max-width: 100px;
    height: auto;
    border-radius: 10px;
    margin-bottom: 15px;
}

.close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 28px;
    cursor: pointer;
    color: black;
}

.payment {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin: 10px 0;
}

.payment .method {
    display: flex;
    align-items: center;
    width: 100%;
    margin-bottom: 15px;
    box-sizing: border-box;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

.payment .pic {
    flex: 0 0 30%;
    margin-right: 15px;
    display: flex;
    justify-content: center;
}

.payment .pic img {
    width: 60%;
    height: auto;
    border-radius: 5px;
}

.payment .num {
    flex: 1;
    text-align: left;
    font-size: 16px;
    color: #333;
}

/* Responsiveness for smaller screens */
@media (max-width: 768px) {
    .payment .method {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .payment .pic {
        margin-right: 0;
        margin-bottom: 10px;
        justify-content: center;
    }

    .payment .num {
        text-align: center;
    }
}

/* Initial hidden state and animation for alert box */
.alert-box {
    display: none; /* Start hidden */
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0); /* Center and scale down initially */
    background: #ffcc00; /* Yellow background */
    color: black; /* Text color */
    padding: 20px 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); /* Shadow effect */
    font-size: 18px;
    z-index: 9999; /* Ensure it's on top of other content */
    text-align: center;
    animation: popIn 0.3s ease-out forwards; /* Apply pop-in animation */
}

/* Pop-in animation */
@keyframes popIn {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9); /* Initially scaled down */
    }

    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1); /* Final scaled size */
    }
}

/* Animation for fade-out effect (when alert is removed) */
.hide-alert {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.9); /* Scale it down and fade */
    transition: opacity 0.3s ease-out, transform 0.3s ease-out; /* Smooth transition */
}


.footer a {
    text-decoration: none;
    color: #23834c;
}

.footer {
    padding: 10px;
}