﻿body {
    margin: 0;
    padding: 0;
    background-color: black;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    font-family: Arial, sans-serif;
}

.container {
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%; /* Ensure the container takes full height */
}

.webinar-container {
    text-align: center;
    padding: 20px;
    width: 100%;
    max-width: 100%;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 3px 3px 10px 0 rgb(20 20 43 / 4%);
    height: 100%; /* Ensure the container takes full height */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

    .webinar-container h1 {
        margin-bottom: 5px;
        color: white;
        white-space: nowrap;
        font-size: 2em; /* Default size for medium to large screens */
    }

    .webinar-container h3 {
        margin-bottom: 20px;
        color: white;
        white-space: nowrap;
        font-size: 0.9em; /* Default size for medium to large screens */
    }

/* Responsive font size adjustments */
@media (max-width: 1200px) {
    .webinar-container h1 {
        font-size: 1.8em;
    }
    .webinar-container h3 {
        font-size: 0.9em;
    }
}

@media (max-width: 992px) {
    .webinar-container h1 {
        font-size: 1.6em;
    }
    .webinar-container h3 {
        font-size: 0.8em;
    }
}

@media (max-width: 768px) {
    .webinar-container h1 {
        font-size: 1.4em;
    }
    .webinar-container h3 {
        font-size: 0.7em;
    }
}

@media (max-width: 576px) {
    .webinar-container h1 {
        font-size: 1.2em;
    }
    .webinar-container h3 {
        font-size: 0.7em;
    }
}

@media (max-width: 400px) {
    .webinar-container h1 {
        font-size: 1em;
    }
    .webinar-container h3 {
        font-size: 0.7em;
    }
}

.webinar-embed {
    width: 100%;
    flex: 1; /* Ensure the embed div takes remaining space */
    display: flex;
    justify-content: center;
    align-items: center;
}

iframe {
    width: 100%;
    height: 100%;
    border: 1px solid #dbdfec;
    border-radius: 12px;
    box-shadow: 3px 3px 10px 0 rgb(20 20 43 / 4%);
}

#button-container {
    display: none;
    text-align: center;
    position: absolute; /* Make the button position absolute within the container */
    top: 0px; /* Adjust the position as needed to overlap the heading and embed area */
    left: 50%;
    transform: translateX(-50%);
    width: 100%; /* Set the width to 80% */
    z-index: 10000; /* Ensure it's on top of other elements */
    pointer-events: none; /* Ensure it does not interfere with iframe interactions */
}

#myButton {
    background-color: gold;
    color: darkgreen;
    border: 2px solid darkgreen;
    font-weight: bold;
    padding: 10px 30px; /* Adjusted padding values for smaller size */
    font-size: 26px; /* Font size remains the same */
    border-radius: 5px;
    cursor: pointer;
    max-width: 100%;
    box-sizing: border-box;
    pointer-events: auto; /* Allow interaction with the button */
    /*box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);*/ /* Add a drop shadow */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

    #myButton:hover {
        background-color: darkgoldenrod;
    }

/* Media queries for responsiveness */
@media (max-width: 1600px) {
    #myButton {
        font-size: 22px;
        padding: 14px 28px;
    }
}

@media (max-width: 1400px) {
    #myButton {
        font-size: 19px;
        padding: 13px 26px;
    }
}

@media (max-width: 1200px) {
    #myButton {
        font-size: 17px;
        padding: 12px 24px;
    }
}

@media (max-width: 992px) {
    #myButton {
        font-size: 15px;
        padding: 11px 22px;
    }
}

@media (max-width: 768px) {
    #myButton {
        font-size: 14px;
        padding: 10px 20px;
    }
}

@media (max-width: 576px) {
    #myButton {
        font-size: 13px;
        padding: 9px 18px;
    }
}

@media (max-width: 400px) {
    #myButton {
        font-size: 12px;
        padding: 8px 16px;
    }
}

@media (max-width: 320px) {
    #myButton {
        font-size: 11px;
        padding: 7px 14px;
    }
}
