* {
    font-family: Arial;
    box-sizing: border-box;
}

body {
    margin: 0;
}

#wrapper {
    min-width: 920px;
}

#wrapper > header {
    display: grid;
    height: 96px;
    grid-template-columns: 96px 1fr 96px;
    grid-template-rows: 56px 8px 32px;
}

#wrapper > main {
    min-height: calc(100vh - 128px);
    display: grid;
    grid-template-columns: 256px 1fr;
    grid-template-rows: 1fr;
}

#wrapper > footer {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    height: 32px;
    background: #68b;
    color: #ddd;
    font-size: 10pt;
}
#wrapper > footer a {
    color: #ddd;
    font-weight: bold;
}

#wrapper > footer > section {
    padding: 8px 16px;
    text-align: center;
}

#wrapper > footer > section:first-child {
    text-align: left;
}

#wrapper > footer > section:last-child {
    text-align: right;
}

a.logo {
    display: block;
    grid-row-start: 1;
    grid-row-end: 3;
    background: url('/img/logo-back.svg') no-repeat;
    width: 96px;
    height: 96px;
    margin: 0;
}

#wrapper > header > h1 {
    grid-column-start: 2;
    grid-column-end: 4;
    grid-row-start: 1;
    padding: 16px 24px 8px;
    margin: 0;
    font-size: 1.2em;
    color: #fff;
    background: #0078ec;
}

#wrapper > header > nav {
    grid-row-start: 3;
    grid-column-start: 2;
    grid-column-end: 4;
    background: #000;
    padding: 4px 16px;
}

nav.menu {
    
}

nav.menu > ul {
    display: flex;
    margin: 0;
    padding: 0;
    list-style: none;
}

nav.menu > ul > li {
    font-size: 0.8em;
    padding: 4px 8px;
    margin: 0;
    border-radius: 8px;
    cursor: pointer;
}

nav.menu > ul > li[sel] {
    /*background: #000;*/
    /* border-bottom: 1px solid #7df; */
}

nav.menu > ul > li[sel] > a {
    color: #fff;
}

nav.menu > ul > li:hover > a {
    color: #ff9800;
}

nav.menu > ul > li > a {
    text-decoration: none;
    font-weight: bold;
    color: #658fb5;
}

.exit_field {
    font-size: 9pt;
    grid-column-start: 3;
    grid-row-start: 1;
    padding: 8px;
    text-align: center;
}

.exit_field p {
    margin:  0;
    padding: 2px;
    color: #fff;
}

.exit_bttn {
    font-size: 8pt;
    padding: 2px 8px;
    background: #41a6ff;
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    border-radius: 4px;
}

.exit_bttn:hover {
    background: #ff9800;
}

#sub_panel {
    font-size: 10pt;
    border-right: 1px solid #9ad;
    padding: 8px 16px 16px;
}

#content {
    font-size: 10pt;
    padding: 8px 16px 16px;
    overflow-x: hidden;
    overflow-y: auto;
    max-height:  calc(100vh - 160px);
}

#content_section {
    grid-column-start: 1;
    grid-column-end: 3;
    font-size: 10pt;
    padding: 8px 16px 16px;
    overflow-x: hidden;
    overflow-y: auto;
    max-height:  calc(100vh - 160px);
}



article.info {
    color: #444;
}

article.info h4 {
    font-size: 1.3em;
    color: #246;
}

article.metar_list {
    margin: 8px 16px;
    padding: 0 8px;
}

article.metar_list > h4 {
    padding: 8px 0 0;
    margin: 0 0 8px -16px;
    color: #68b;
}


/* NEWS */

div.news_container {
    display: flex;
    flex-wrap: wrap;
}

article[class^="news_"] {
    border-radius: 8px;
    border-color: #9ad;
    border-style: solid;
    border-width: 1px 2px 2px 1px;
    margin: 4px;
    color: #9ad;
}

article[class^="news_"] > h4 {
    font-family: monospace;
    padding: 4px 6px;
    height: 24px;
    margin: 0;
}

span.date_time {
    font-size: 14pt;
    font-weight: normal;
}

span.date_time > sup {
    margin-left: -2.7em;
    margin-right: 1em;
    font-size: 0.5em;
    vertical-align: baseline;
    position: relative;
    top: -1em;
}

span.date_time > sub {
    font-size: 0.5em;
    vertical-align: baseline;
    position: relative;
}

article[class^="news_"] > div {
    margin: 8px 16px 0;
    overflow-x: hidden;
    overflow-y: scroll;
    height: calc(100% - 24px - 28px - 8px);
    color: #000;
}

article[class^="news_"] > footer {
    font-family: monospace;
    padding: 4px 16px 8px;
    height: 28px;
    text-align: right;
}

@media screen and (max-width: 1046px) {
    article.news_large {
        width: 488px !important;
    }
}


article.news_small {
    width: 240px;
    height: 180px;
}

article[class^="news_"] > div::-webkit-scrollbar {
  width: 0;
}

article.news_large {
    width: 364px;
    height: 180px;
}

/* POP UP */

#pop_up {
    background: rgb(32, 71, 103, .5);
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100vw;
    height: 100vh;
    display: grid;
    grid-template-columns: 10% auto 10%;
    grid-template-rows: 5% calc(100vh - 10%) 5%;
}

#pop_up > .pop_up_window {
    background: white;
    border-radius: 16px;
    padding: 16px;
    grid-column-start: 2;
    grid-row-start: 2;
}

#pop_up > .pop_up_window > .pop_up_context {
    font-size: 10pt;
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
}

#pop_up > .pop_up_window > .pop_up_context::-webkit-scrollbar {
    width: 8px;
}
#pop_up > .pop_up_window > .pop_up_context::-webkit-scrollbar-track {
    background: rgba(28, 82, 128, .3);
}
#pop_up > .pop_up_window > .pop_up_context::-webkit-scrollbar-thumb {
    width: 8px;
    background-color: #5b8ca9;
}


