@import '../../config/variables.css';

/* **************** TEMPLATE ***************** */
/* ====== Page Head, Body, and Foot ====== */
.main {
    display: table-cell;
    *display: block;
    width: auto;
}
body {
    overflow-y: scroll; /* Do this to avoid the page jumping when scrolling is not necessary */
}

/* .no-focus-ring should be default on on all pages, remove with javascript when user hits tab, aternatively figure out some default :focus states that both look nice and are very easy to spot ; */
body:not(.no-focus-ring) :focus { 
    outline: 2px solid #f60; 
    outline-offset: -2px; 
}
.no-focus-ring:focus, .no-focus-ring :focus,
.probably-touch:focus, .probably-touch :focus { outline: none; }

body, html { background-color: var(--ice); }
.body, .main { *zoom: 1; }
.body:after, .main:after {
    clear: both;
    display: block;
    visibility: hidden;
    overflow: hidden;
    height: 0 !important;
    line-height: 0;
    font-size: xx-large;
    content: ' x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x ';
}
.page {
    width: auto;
    _text-align: left;
    margin-left: var(--small-screen-page-gutter-left);
    margin-right: var(--small-screen-page-gutter-right);
}
.topbar.fixed + .container,
.topmenu.fixed + .container,
.topbar.fixed + .topbar-level2.hidden + .container,
.topmenu.fixed + .topbar-level2.hidden + .container { margin-top: 65px; }

.topmenu.fixed + .topbar-level2.fixed:not(.hidden) + .container { margin-top: 110px; }

/* Special case. Topmenu margin comes from finnlet */
.topbar-level2.fixed:not(.hidden) + .container { margin-top: 45px; }


.container.fullsize { max-width: 100%; }

.head {
    position: relative;
    z-index: 10;
}

@media not all and (--small-screen) {
    .page {
        max-width: var(--large-screen-page-maxwidth);
        margin-left: var(--large-screen-page-gutter-left);
        margin-right: var(--large-screen-page-gutter-right);
    }
    /* These are dictate by the banner formats, might aswell be considered as constants */
    .container {
        max-width: 1010px;
        margin: 0 auto;
    }
    .container.kindawide { max-width: 1240px; }
    .container.prettywide { max-width: 1470px; }

    .skyskraper-left {
        position: absolute;
        left: -240px;
        top: 0;
    }
    .skyskraper-right {
        position: absolute;
        right: -240px;
        top: 0;
    }
}

@media (max-width: 1300px) {
    .container {
        margin: 0;
    }
}
