/* Global Styles with green tones */
body {
    font-family: 'Poppins', sans-serif;
    text-align: center;
    background-color: #e6f5ea;
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
}

h1 {
    color: #1a202c;
    font-size: 2.2em;
    margin: 20px 0;
    text-transform: uppercase;
}

h2 {
    color: #2d3748;
    font-size: 1.5em;
    margin: 15px 0;
    border-bottom: 2px solid #38a169;
    padding-bottom: 5px;
    display: inline-block;
}

.participants {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    box-sizing: border-box;
}

/* Participant Card Styles */
.participant {
    background-color: #ffffff;
    border: 1px solid #c6f6d5;
    border-radius: 8px;
    padding: 20px;
    width: 90%;
    max-width: 280px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.participant:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.participant p {
    font-size: 1.1em;
    color: #4a5568;
    font-weight: bold;
    margin: 10px 0;
}

/* Button Styles */
button {
    background-color: #38a169;
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 1em;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #2f855a;
}

/* Professional Popunder Notification Styles */
.popunder {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #38a169;
    color: white;
    padding: 20px 15px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    width: 80%;
    max-width: 300px;
    max-height: 200px;
    text-align: center;
    font-weight: bold;
    font-size: 1.1em;
    overflow: hidden;
    z-index: 1000;
}

.popunder.error {
    background-color: #e53e3e;
}

.popunder.success {
    background-color: #38a169;
}

/* Responsive Styles for small to medium screens */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    h1 {
        font-size: 1.8em;
    }

    h2 {
        font-size: 1.3em;
    }

    .participant {
        width: 100%;
        padding: 15px;
    }

    button {
        font-size: 0.9em;
        padding: 8px 15px;
    }

    .popunder {
        width: 90%;
        font-size: 1em;
        padding: 15px;
    }
}

/* Responsive Styles for larger screens like tablets and desktops */
@media (min-width: 769px) and (max-width: 1024px) {
    h1 {
        font-size: 2.2em;
    }

    h2 {
        font-size: 1.5em;
    }

    .participant {
        width: 40%;
        padding: 20px;
    }

    button {
        font-size: 1em;
    }
}

@media (min-width: 1025px) {
    h1 {
        font-size: 2.5em;
    }

    h2 {
        font-size: 1.8em;
    }

    .participants {
        gap: 20px;
    }

    .participant {
        width: 25%;
        max-width: 300px;
        padding: 25px;
    }

    button {
        font-size: 1.1em;
        padding: 12px 20px;
    }

    .popunder {
        font-size: 1em;
    }
}
