.ruflo-ps-modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.6); /* Black w/ opacity */
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

.ruflo-ps-modal.active {
    display: flex;
}

.ruflo-ps-modal-content {
    background-color: #fefefe;
    margin: auto; /* Centered */
    padding: 30px;
    border: 1px solid #888;
    width: 90%;
    max-width: 800px; /* Max width for larger screens */
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,0.19);
    animation-name: animatetop;
    animation-duration: 0.4s;
    border-radius: 8px;
    position: relative;
    text-align: center;
}

/* The Close Button */
.ruflo-ps-close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 20px;
    cursor: pointer;
}

.ruflo-ps-close-button:hover,
.ruflo-ps-close-button:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.ruflo-ps-modal-content h2 {
    margin-top: 0;
    margin-bottom: 25px;
    color: #333;
    font-size: 1.8em;
}

.ruflo-ps-tiles-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.ruflo-ps-tile {
    background-color: #e0f7fa; /* Light blue */
    border: 1px solid #b2ebf2;
    padding: 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.ruflo-ps-tile:hover {
    background-color: #b2ebf2; /* Darker blue on hover */
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
    transform: translateY(-3px);
}

.ruflo-ps-tile h3 {
    margin-top: 0;
    color: #00796b; /* Dark teal */
    font-size: 1.3em;
    margin-bottom: 10px;
}

.ruflo-ps-tile p {
    color: #263238; /* Dark grey */
    font-size: 0.9em;
    line-height: 1.4;
}

/* Animation */
@-webkit-keyframes animatetop {
    from {top:-300px; opacity:0}
    to {top:0; opacity:1}
}

@keyframes animatetop {
    from {top:-300px; opacity:0}
    to {top:0; opacity:1}
}

/* Responsive Adjustments */
@media (max-width: 600px) {
    .ruflo-ps-modal-content {
        width: 95%;
        padding: 20px 15px;
    }
    .ruflo-ps-tiles-container {
        grid-template-columns: 1fr;
    }
    .ruflo-ps-modal-content h2 {
        font-size: 1.5em;
    }
    .ruflo-ps-tile h3 {
        font-size: 1.1em;
    }
}