/* index2.css — styles for index2.php */

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    background-color: rgb(17, 34, 51);
}

#outer {
    display: flex;
    flex-direction: column;
    gap: 8px;
    height: calc(100vh - 32px); /* 16px top + 16px bottom margin */
    min-width: 1000px;
    max-width: 1200px;
    margin: 16px auto;
    padding: 8px;
    box-sizing: border-box;
    background-color: #996633;
    border: 2px solid #ffeeaa;
    border-radius: 16px;
    position: relative;
}

/* Two stacked layers for crossfade background cycling.
   One fades out while the other fades in. */
.bg-layer {
    position: absolute;
    inset: 0;
    border-radius: 16px;
    background-position: top left;
    background-repeat: no-repeat;
    mask-image: radial-gradient(ellipse 95% 20% at top left, black 20%, transparent 100%);
    pointer-events: none;
    transition: opacity 2s ease-in-out;
    z-index: 0;
}

/* Lift all real content above the background layers */
#outer > :not(.bg-layer) {
    position: relative;
    z-index: 1;
}

@font-face {
    font-family: 'Papyrus';
    src: url('/css/PAPYRUS.TTF') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* --- Top banner --- */

#topbanner {
    flex-shrink: 0;
    height: 120px;
    overflow: hidden;
    display: flex;
    align-items: center;
}

#topbanner-title {
    padding-left: 12px;
    font-family: 'Papyrus', fantasy;
    font-size: 32pt;
    font-weight: bold;
    color: #ffffee;
    text-shadow: 0 0 4px #000, 0 3px 4px rgba(0, 0, 0, 0.8);
    white-space: nowrap;
}

#topnav {
    margin-left: auto;
    padding-right: 8px;
    padding-bottom: 6px;
    align-self: flex-end;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
}

#topnav a {
    display: inline-block;
    padding: 4px 10px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 9pt;
    font-weight: bold;
    color: #ffeeaa;
    text-decoration: none;
    background-color: rgba(0, 0, 0, 0.25);
    border: 1px solid #ffeeaa;
    border-radius: 5px;
    transition: background-color 0.15s, color 0.15s;
}

#topnav a:hover {
    background-color: #ffeeaa;
    color: #4d2200;
}

/* --- Body row --- */

#body-row {
    display: flex;
    flex: 1;
    gap: 8px;
    overflow: hidden;
}

#body-row iframe {
    border: 2px solid #ffeeaa;
    border-radius: 8px;
    display: block;
    overflow: hidden;
}

#mainmenu {
    width: 150px;
    flex-shrink: 0;
}

#mainclient {
    flex: 1;
}

/* --- Bottom line --- */

#bottomline {
    flex-shrink: 0;
    height: 20px;
    display: flex;
    align-items: center;
    font-size: 8pt;
}

#bottomline a {
    text-decoration: none;
    margin-left: 10px;
    color: #ffeeaa;
}

f { font-size: 80%; }
