/* Control Stake fullscreen takeover for the legacy WildStat layout. */

html,
body {
    margin: 0;
    padding: 0;
    min-width: 1024px;
    background-color: #176f2d;
    background-image: url("../images/tab-bg.jpg");
    background-repeat: repeat;
}

body {
    position: relative;
    background-color: #176f2d !important;
    background-image: url("../images/tab-bg.jpg") !important;
    background-repeat: repeat !important;
}

body > center {
    position: relative;
    z-index: 1;
}

.ws-control-takeover {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: none;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    background: #050805;
    isolation: isolate;
}

.ws-control-takeover.is-active {
    display: block;
}

.ws-control-takeover iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    background: #050805;
    color-scheme: dark;
}

body.ws-control-takeover-open {
    overflow: hidden !important;
}

/* Full-height side skins shown after the takeover closes. */
.ws-control-ad {
    position: fixed;
    z-index: 2;
    display: none;
    pointer-events: none;
}

.ws-control-ad iframe {
    display: none;
    border: 0;
    background: transparent;
    color-scheme: dark;
    pointer-events: auto;
}

@media screen and (min-width: 1536px) and (min-height: 520px) {
    .ws-control-ad {
        top: 0;
        bottom: 0;
        display: block;
        width: min(450px, calc((100% - 1024px) / 2));
    }

    .ws-control-ad--left {
        left: max(0px, calc((100% - 1024px) / 2 - 450px));
    }

    .ws-control-ad--right {
        right: max(0px, calc((100% - 1024px) / 2 - 450px));
    }

    .ws-control-ad__desktop {
        display: block !important;
        width: 100%;
        height: 100%;
    }
}

@media screen and (max-height: 519px) {
    .ws-control-ad {
        display: none !important;
    }
}

/* Compact banners retain the exact dimensions of the legacy columns. */
.ws-control-inline-ad {
    display: none;
    border: 0;
    background: transparent;
    color-scheme: dark;
    overflow: hidden;
}

@media screen and (max-width: 1535px) {
    .ws-control-inline-ad {
        display: block;
    }

    .ws-control-inline-ad--left {
        width: 198px;
        height: 360px;
        margin: 0 0 5px 0;
    }

    .ws-control-inline-ad--right {
        width: 220px;
        height: 180px;
        margin: 0 0 5px 0;
    }
}
