    h1 {
        text-align: center;
        font-size: 24px;
        margin-bottom: 20px;
        color: #003366;
    }
    .new-message-container {
        background-color: #f9f9f9;
        padding: 15px;
        border-radius: 8px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        margin-top: 10px;
    }
    .flexi_container img {
        width: 100%; /* Make the image responsive to fit the container */
        border:1px grey;
        border-radius: 15px; /* Match the container's rounded corners */
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Add a subtle shadow */
    }
    .calculator-container {
        width: 100%; 
        max-width: 1000px; 
        height: 350px; 
        background-color: #f9f9f9;
        border-radius: 12px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        padding: 20px;
        margin: 20px auto;
        align-items: center; /* Center the calculator vertically */
    }
    .calculator {
        display: grid;
        gap: 20px;
    }
    .calculator-boxes {
        display: flex;                /* Use flexbox instead of grid */
        justify-content: center;      /* Center the items horizontally */
        align-items: center;          /* Align the items vertically */
        gap: 15px;                    /* Space between the items */
    }
    .input-group {
        display: flex;
        flex-direction: column; /* Stack label above input */
        align-items: center;
    }
    label {
        font-size: 15px;
        margin-bottom: 5px; /* Space between label and input */
        color: #003366;
    }
    .additional-label {
        margin-top: 5px;
        font-size: 15px;
        color: #003366;
    }
    .calculator-container h2 {
        margin-bottom: 20px;
        font-size: 1.5rem;
        color: #003366;
    }
    .box-with-buttons {
        position: relative;
        display: flex;
        align-items: center;
        width: 200px; /* Adjust width as needed */
        height: 50px; /* Adjust height as needed */
    }
    .box {
        width: 80%;
        height: 50px;
        font-size: 1.2rem;
        text-align: center;
        padding-right: 40px; /* Add padding for the buttons */
        border: 1px solid #ddd;
        border-radius: 8px;
        background-color: #f9f9f9;
    }
    .button-group {
        position: absolute;
        right: 13px; /* Position the buttons inside the input field */
        top: 50%;
        transform: translateY(-50%);
        display: flex;
        flex-direction: column; /* Stack the buttons vertically */
        gap: 2px; /* Minimal gap between buttons */
    }
    .btn {
        width: 30px; /* Adjust the button size */
        height: 20px;
        font-size: 1rem;
        background-color: #f0f0f0;
        border: 1px solid #ddd;
        border-radius: 4px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #003366;
    }
    .btn.plus {
        margin-bottom: 2px; /* Optional: Extra space below the + button */
    }
    /* Main container (no scrolling effect) */
    .flexi_container {
        width: 90%; /* Increased width */
        max-width: 800px; /* Optional: Adjusted maximum width */
        max-height: 741%; /* Set maximum height */
        background-color: white;
        border-radius: 12px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        padding: 20px;
        text-align: center;
        margin: 20px auto;
        margin-top: 40px;
    }
   
    .flex_above  {
        /*background-color: #f1f1f1;  Light background color */
        padding: 20px; /* Padding around the content */
        text-align: center; /* Center the text */
        border-radius: 5px; /* Optional rounded corners */
        margin-bottom: 20px; /* Space between footer and advertisement */
        position: relative;
        width: 90%; /* Decreased width (Adjust as needed) */
        max-width: 750%; /* Optional: Limit maximum width */
        margin-left: auto; /* Center it horizontally */
        margin-right: auto; /* Center it horizontally */
    }
    .footer-image {
        width: 100%; /* Makes the image cover the entire width */
        height: 100%; /* Makes the image cover the entire height */
        object-fit: cover; /* Ensures the image covers the div area without distortion */
        border-radius: 5px;
    }
    /*ending of css of footer advertisement*/
    .fle_ads {
        display: flex; /* Use flexbox for layout */
        justify-content: flex-start; /* Align content to the left */
    }
    .left-box-container, .right-box-container {
        display: flex;
        flex-direction: column; /* Stack the boxes vertically */
    }
    .fl_box {
        width: 200px;
        height: 600px;
        margin: 10px;
        background-color: lightblue;
        border-radius: 5px;
    }
    .fl_box img {
        width: 100%; /* Make image fill the entire width of the box */
        height: 600px; /* Maintain aspect ratio */
        border-radius: 5px;
    }

    /* Styling for the box */
    .gold_calculator {
        width: 760px;
        height: 380px;
        background-color: white;
        border-radius: 10px;
        box-shadow: 2px 2px 15px rgba(0, 0, 0, 0.2);
        position: relative; 
        display: flex;
        flex-direction: column;
        align-items: center;
        padding-top: 20px; 
    }
    /* Styling for the label */
    .box-label {
        color: #003366;
        font-size: 22px;
        font-weight: normal; /* Ensures no bold effect */
    }
    .box1-value, 
    .box2-value, 
    .box3-value, 
    .box4-value {
        color: #6e0319;
        font-family: 'Times New Roman', 'Arial', sans-serif; /* Fallback to Arial */
    }
    /* Moves the top label slightly upwards */
    .box-label-top {
        position: relative;
        top: -23px; /* Moves label up without affecting value */
        font-weight: normal; /* Ensures no bold effect */
    }
    /* Moves the bottom label slightly downwards */
    .box-label-bottom {
        position: relative;
        bottom: -25px; /* Moves label down without affecting value */
        font-weight: normal; /* Ensures no bold effect */
    }
    /* Box container */
    .box-container {
        display: flex;
        justify-content: center;
        gap: 20px;
        margin-top: 20px;
    }
    /* Individual boxes */
    .box11 {
        width: 160px;
        height: 60px;
        background-color: white;
        border: 1px solid black;
        border-radius: 5px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        font-size: 18px;
        font-weight: bold;
        position: relative;
    }
    /* Button container - Stack buttons vertically */
    .button-container {
        display: flex;
        flex-direction: column; /* Aligns buttons vertically */
        align-items: center;
        gap: 3px; /* Space between buttons */
        position: absolute;
        left: 134px; /* Adjust position to the left */
    }
    /* Small box around each button */
    .button-box {
        width: 23px;
        height: 23px;
        border: 1px solid black; /* Box around the button */
        border-radius: 5px;
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: white;
    }
    /* Button styling */
    .btn {
        font-size: 18px; /* Increase arrow size */
        background: none;
        border: none;
        cursor: pointer;
    }
    /* Box 4 wrapper */
    .box4-wrapper {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px; /* Space between labels and box */
        margin-top: 20px;
    }
    /* Box 4 */
    .box4 {
        width: 150px;
        height: 60px;
        background-color: white;
        border: 1px solid black;
        border-radius: 5px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 18px;
        font-weight: bold;
    }
    /* Label 4A - Before Box 4 */
    .box4-label-left {
        white-space: nowrap;
    }
    /* Label 4B - After Box 4 */
    .box4-label-right {
        white-space: nowrap;
    }
    /* Popup background */
    .custom-popup {
        display: none;
        position: fixed;
        z-index: 999;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        overflow: auto;
        background-color: rgba(0, 0, 0, 0.4);
    }
    /* Popup content */
    .custom-popup-content {
        background-color: #fff;
        margin: 10% auto;
        padding: 20px;
        border-radius: 8px;
        width: 300px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
        position: relative;
        text-align: center;
    }   
    /* Close button */
    .custom-close-btn {
        position: absolute;
        top: 10px;
        right: 15px;
        color: #aaa;
        font-size: 24px;
        font-weight: bold;
        cursor: pointer;
    }
    .custom-close-btn:hover {
        color: #000;
    }
    /* Horizontal group for labels and button */
    .custom-horizontal-group {
        display: flex;
        justify-content: center;
        align-items: flex-start;
        gap: 20px;
        margin-top: 20px;
    }
    /* Label style */
    .custom-popup-label {
        font-weight: 500;
        color: #333;
        padding-top: 20px;
    }
    /* Grouping box and button */
    .custom-popup-box-group {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    /* Box style – modified for spinner */
    .custom-popup-box {
        width: 150px;
        height: 60px;
        background-color: #f0f0f0;
        border: 1px solid #ccc;
        border-radius: 6px;
        display: flex;
        align-items: center;
        padding: 0 5px;
        font-weight: 500;
        color: #333;
    }
    /* Value remains unaffected by spinner */
    .custom-popup-value {
        flex-grow: 1;
        text-align: left;
    }
    /* Spinner container given a fixed width so it appears as a small box */
    .custom-spinner {
        display: flex;
        flex-direction: column;
        justify-content: center;
        width: 20px;
    }
    /* Spinner buttons style */
    .custom-spinner button {
        background: transparent;
        border: 1px solid #ccc; /* Added border */
        width: 24px;            /* Increased width */
        height: 24px;           /* Increased height */
        font-size: 18px;        /* Increased font size */
        line-height: 1;
        padding: 4px;           /* Added some padding */
        margin: 0;
        border-radius: 4px;     /* Optional: rounds the corners slightly */
        cursor: pointer;
    }
    .custom-spinner button:focus {
        outline: none;
    }
    /* Button style for Submit */
    .custom-popup-action-btn {
        padding: 8px 16px;
        border: 2px solid #007bff;
        background-color: transparent;
        color: #007bff;
        border-radius: 5px;
        cursor: pointer;
        transition: all 0.3s ease;
    }
    .custom-popup-action-btn:hover {
        background-color: #007bff;
        color: white;
    }
    .custom-outline-btn {
        margin-top: 15px;
        margin-left: 10px;
        width: 120px;
        height: 40px;
        outline: 2px solid #28a745; /* Green outline */
        outline-offset: 3px;
        background-color: transparent;
        color: #28a745;
        border: none;
        border-radius: 1px;
        font-weight: 600;
        transition: all 0.3s ease;
    }
    .custom-outline-btn:hover {
        background-color: #28a745;
        color: white;
    }
    /*ending css for felxi calculator*/