﻿



#main-container {
    display: flex;
    width: 80%;
    max-width: 800px;
    height: 400px;
    border: 2px solid #ccc;
    border-radius: 8px;
    background-color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: fixed; /* Popup behavior */
    top: 50%; /* Center vertically */
    left: 50%; /* Center horizontally */
    transform: translate(-50%, -50%);
    z-index: 9999; /* Above other elements */
    opacity: 0; /* Hidden by default */
    pointer-events: none; /* Prevent interactions when hidden */
    transition: opacity 0.5s;
    overflow: hidden;
    flex-direction: row; /* Default flex direction */
}

.container-section {
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px 0 0 8px;
}

.section-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center; /* Align the content in the center */
    text-align: center; /* Center-align the text */
    padding: 10px;
}

    .section-content h1 {
        text-align: center;
        color: green;
        margin-bottom: 20px;
    }

    .section-content h2 {
        margin: 0 0 10px;
        font-size: 24px;
    }

    .section-content p {
        margin: 0 0 30px;
        font-size: 16px; /* Scaled for mobile */
        color: #555;
        line-height: 30px;
    }

.quote-button {
    padding: 10px 20px;
    font-size: 16px;
    color: white;
    background-color: green;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

    .quote-button:hover {
        background-color: darkgreen;
    }

.close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: transparent;
    border: none;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    color: #333;
}

    .close-button:hover {
        color: red;
    }





@media (max-width: 768px) {
    #main-container {
        width: 90%;
        height: auto;
        flex-direction: column;
    }

    .container-section {
        width: 100%;
    }

    .section-image {
        height: 200px;
        border-radius: 8px 8px 0 0;
    }

    .section-content {
        padding: 20px;
    }

        .section-content h1 {
            font-size: 20px;
        }

        .section-content p {
            font-size: 14px;
            line-height: 24px;
        }

    .quote-button {
        width: 100%;
        padding: 12px;
    }

    .close-button {
        top: 5px;
        right: 5px;
        font-size: 24px;
    }
}
