/* popup msg start */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: #567;
}

.container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    flex-direction: column;
    color: white;
}

.btn {
    padding: 10px 20px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 20px;
}

.popup {
    width: 400px;
    background: #fff;
    border-radius: 6px;
    position: absolute;
    top: 0; /* Start hidden at the top */
    left: 50%;
    transform: translate(-50%, -50%) scale(0.1); /* Center and shrink */
    text-align: center;
    padding: 0 30px 30px;
    color: #333;
    visibility: hidden; /* Hidden by default */
    transition: transform 0.4s ease-in-out, top 0.4s ease-in-out;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.popup img {
    width: 100px;
    margin-top: -50px;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.popup h2 {
    font-size: 38px;
    font-weight: 500;
    margin: 20px 0 10px;
}

.popup p {
    font-size: 16px;
    margin-bottom: 20px;
}

/* Flexbox layout container to hold both buttons horizontally */
.popup-btn-group {
    display: flex;
    gap: 12px;
    margin-top: 15px;
    width: 100%;
}

/* Updated selector matching anchor elements for language routing */
.popup .popup-btn-group .lang-btn {
    flex: 1;
    display: inline-block;
    text-decoration: none; /* Removes underline styling from links */
    text-align: center;
    padding: 12px 0;
    background: #6c757d;
    color: #fff;
    border: 0;
    outline: none;
    font-size: 18px;
    border-radius: 4px;
    cursor: pointer;
    box-shadow: 0 5px 5px rgba(0,0,0,0.2);
    transition: background-color 0.2s ease;
}

/* Hover state styling rules */
.popup .popup-btn-group .lang-btn:hover {
    background: #5a6268;
    color: #fff;
}

/* Class added by JavaScript to display the popup */
.open-popup {
    visibility: visible;
    top: 50%;
    transform: translate(-50%, -50%) scale(1); /* Expand to full size */
}

/* Media query to stack buttons on tiny smartphone viewports */
@media (max-width: 400px) {
    .popup-btn-group {
        flex-direction: column;
        gap: 10px;
    }
    .popup {
        width: 90%;
    }
}
