#sticky-ad-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Sötét szürke overlay */
    z-index: 99997;
    display: none; /* Kezdetben rejtve */
}

#sticky-ad-overlay.visible {
    display: block; /* Megjelenítés, amikor aktív */
}

#sticky-ad {
    z-index: 99998;
    position: fixed;
    top: 35%;
    right: 10px;
    width: 70px;
    height: 70px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--primary-bg-color);
    color: white;
    border: 1px solid var(--primary-bg-color);
    border-radius: 5px;
    box-shadow: 0 0 5px var(--primary-bg-color);
    transition: width 0.3s, height 0.3s;
    cursor: pointer;
}

#sticky-ad a {
    color: white;
}

#sticky-ad-title {
    font-weight: bold;
    font-size: 24px;
    line-height: 1.5;
}

#sticky-ad.expanded {
    width: 400px;
    height: 600px;
    display: flex;
    flex-direction: column;
    cursor: default;
}

#sticky-ad-icon {
    font-size: 32px;
    margin-bottom: 3px;
}

#sticky-ad-icon.hidden {
    display: none;
}

#sticky-ad-content {
    display: none;
    flex-grow: 1;
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}

#sticky-ad.expanded .content {
    display: flex;
}

#sticky-ad-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#sticky-ad-body {
    display: flex;
    align-items: center;
    flex-grow: 1;
    max-height: calc(100% - 70px);
    overflow-y: auto;
    margin: 20px 0;
}

#sticky-ad-pagination {
    display: flex;
    justify-content: center;
}

.sticky-ad-control-btn {
    margin: 0 5px;
    padding: 5px 10px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    background-color: white;
    color: var(--primary-bg-color);
    font-weight: bold;
}

#sticky-ad-close-btn {
    background-color: white;
    color: var(--primary-bg-color);
    border: none;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    font-size: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: background-color 0.3s;
}

#sticky-ad-page-info {
    text-align: center;
    margin-bottom: 10px;
    font-weight: bold;
}

.sticky-ad-page {
    display: none;
    width: 100%;
}

.sticky-ad-page.active {
    display: block;
}

@media (max-width: 1200px) {

    #sticky-ad {
        width: 60px;
        height: 60px;
    }

    #sticky-ad-icon {
        font-size: 28px;
    }
}

@media (max-width: 600px) or (max-height: 720px) {

    #sticky-ad {
        width: 50px;
        height: 50px;
    }

    #sticky-ad-icon {
        font-size: 24px;
    }

    #sticky-ad.expanded {
        width: calc(100% - 20px); /* Teljes szélesség mobilon */
        right: 10px;
        top: 5%;
        height: 90%;
    }
}
