html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: Arial, Helvetica, sans-serif;
    background: #0f172a;
    color: #111827;
}

* {
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
}

a {
    color: inherit;
}

.page {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 10px;
}

.frame {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border: 1px solid #d7dee8;
    border-radius: 12px;
    background: #f8fafc;
    box-shadow: 0 18px 45px rgba(2, 8, 23, 0.32);
}

.bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 56px;
    padding: 7px 10px;
    overflow: hidden;
    background: #111827;
    background: -webkit-linear-gradient(top, #131b2c 0%, #0d1421 100%);
    background: linear-gradient(to bottom, #131b2c 0%, #0d1421 100%);
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand {
    float: left;
    line-height: 42px;
    font-size: 15px;
    font-weight: bold;
    white-space: nowrap;
    letter-spacing: 0.02em;
}

.nav-links {
    float: right;
    max-width: 72%;
    white-space: nowrap;
    overflow: hidden;
}

.nav-links a {
    display: inline-block;
    margin: 5px 0 0 6px;
    padding: 6px 8px;
    border-radius: 4px;
    background: #d40000;
    background: -webkit-linear-gradient(top, #ef0000 0%, #b70000 100%);
    background: linear-gradient(to bottom, #ef0000 0%, #b70000 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.12);
    color: #fff;
    font-size: 12px;
    line-height: 1;
    font-weight: bold;
    text-decoration: none;
}

.nav-links a:hover {
    background: #ff2c2c;
    background: -webkit-linear-gradient(top, #ff4d4d 0%, #d10000 100%);
    background: linear-gradient(to bottom, #ff4d4d 0%, #d10000 100%);
}

.surface {
    position: absolute;
    top: 54px;
    left: 0;
    right: 0;
    bottom: 60px;
    overflow: hidden;
    background: #eef2f7;
    background: -webkit-linear-gradient(top, #f5f7fb 0%, #e7ecf3 100%);
    background: linear-gradient(to bottom, #f5f7fb 0%, #e7ecf3 100%);
}

.pane {
    position: relative;
    float: left;
    width: 33.3333%;
    height: 100%;
    overflow: hidden;
    background: #ffffff;
    border-right: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.pane:last-child {
    border-right: 0;
}

.pane iframe,
.pane object,
.pane embed,
.pane svg {
    display: block;
    width: 100%;
    height: 100%;
    border: none;
}

.pane img {
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    width: auto;
    height: auto;
    max-width: 82%;
    max-height: 82%;
    border: none;
    box-shadow: 0 10px 28px rgba(2, 8, 23, 0.12);
    background: #ffffff;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
}

.pane video {
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    width: auto;
    height: auto;
    max-width: 92%;
    max-height: 92%;
    display: block;
    box-shadow: 0 10px 28px rgba(2, 8, 23, 0.16);
    background: #000000;
}

.main-split {
    width: 100%;
    height: 100%;
}

.footer-ticker {
    clear: both;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 60px;
    overflow: hidden;
    background: #d40000;
    background: -webkit-linear-gradient(top, #f40000 0%, #c10000 100%);
    background: linear-gradient(to bottom, #f40000 0%, #c10000 100%);
    color: white;
    font-size: 1.5rem;
    line-height: 60px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.ticker-content {
    display: inline-block;
    position: absolute;
    white-space: nowrap;
    -webkit-animation: ticker-loop 20s linear infinite;
    animation: ticker-loop 20s linear infinite;
}

@-webkit-keyframes ticker-loop {
    0% { -webkit-transform: translate(100vw, 0); }
    100% { -webkit-transform: translate(-100%, 0); }
}

@keyframes ticker-loop {
    0% { transform: translate(100vw, 0); }
    100% { transform: translate(-100%, 0); }
}

#info-display,
#error-display {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    overflow-y: auto;
    box-sizing: border-box;
    padding: 40px;
}

#info-display {
    background: rgba(8, 15, 24, 0.88);
    color: #ffffff;
}

#error-display {
    background: rgba(200, 0, 0, 0.9);
    color: #ffffff;
}

.popup-panel {
    max-width: 920px;
    margin: 0 auto;
    padding: 24px;
    border-radius: 10px;
    background: #ffffff;
    color: #111111;
    border: 1px solid #d6dee8;
    box-shadow: 0 18px 50px rgba(2, 8, 23, 0.35);
}

.popup-panel h2 {
    margin: 0 0 12px;
    font-size: 28px;
    line-height: 1.15;
}

.popup-panel p {
    margin: 0 0 12px;
    font-size: 16px;
    line-height: 1.5;
}

.popup-panel ul {
    margin: 0;
    padding: 0 0 0 20px;
}

.popup-panel li {
    margin: 0 0 8px;
    font-size: 15px;
    line-height: 1.45;
}

.popup-close {
    display: inline-block;
    margin-top: 16px;
    padding: 8px 12px;
    border: 0;
    border-radius: 4px;
    background: #111111;
    background: -webkit-linear-gradient(top, #2d3442 0%, #0f172a 100%);
    background: linear-gradient(to bottom, #2d3442 0%, #0f172a 100%);
    color: #ffffff;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
}

.object-fallback {
    display: table;
    width: 100%;
    height: 100%;
    background: #ffffff;
    color: #111111;
}

.object-fallback span {
    display: table-cell;
    padding: 18px;
    vertical-align: middle;
    text-align: center;
    font-size: 15px;
    line-height: 1.45;
}

.link-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 10px 12px;
    background: rgba(0, 0, 0, 0.56);
    color: #ffffff;
    font-size: 13px;
    line-height: 1.35;
    font-weight: bold;
}

.frame-wrap {
    position: relative;
    width: 100%;
    height: 100%;
}

.frame-link {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    padding: 6px 10px;
    border-radius: 4px;
    background: rgba(17, 17, 17, 0.82);
    color: #ffffff;
    font-size: 12px;
    line-height: 1;
    font-weight: bold;
    text-decoration: none;
}

.frame-link:hover {
    background: rgba(17, 17, 17, 0.95);
}

.layout-triple-split-with-footer .pane img,
.layout-left-wide-right-stack .pane img,
.layout-left-stack-right-full .pane img,
.layout-right-stack-left-full .pane img,
.layout-three-rows .pane img {
    max-width: 70%;
    max-height: 70%;
}

.layout-center-wide-image .pane img,
.layout-top-image-bottom-split .pane img,
.layout-left-image-right-stack .pane img {
    max-width: 88%;
    max-height: 88%;
}

.layout-center-wide-video .pane video {
    max-width: 88%;
    max-height: 88%;
}

@media screen and (max-width: 900px) {
    .nav-links {
        max-width: 60%;
    }

    .nav-links a {
        margin-left: 4px;
        padding: 5px 7px;
    }

    .popup-panel h2 {
        font-size: 24px;
    }
}
