.simple-ad-rotator {
    position: relative;
    overflow: hidden;
    margin: 20px auto;
    text-align: center;
    border: 1px solid #ddd;
    background: black;
    
}

.simple-ad-rotator .ad-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease-in-out;
}

.simple-ad-rotator .ad-item img {
    display: block;
}

.simple-ad-rotator .ad-text-content {
    padding: 20px;
    width: 100%;
    height: 100%;
    box-sizing: border-box;

    display: flex;
    flex-direction: column;      /* stack lines and elements vertically */
    justify-content: center;     /* vertical centering */
    align-items: center;         /* horizontal centering */
    text-align: center;          /* center text inside each element */
    word-wrap: break-word;       /* prevent long words from overflowing */
}

.simple-ad-rotator a {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}
