@font-face {
    font-family: 'circoregular';
    src: url('../fonts/circo/circo-webfont.eot');
    src: url('../fonts/circo/circo-webfont.eot?#iefix') format('embedded-opentype'),
         url('../fonts/circo/circo-webfont.woff2') format('woff2'),
         url('../fonts/circo/circo-webfont.woff') format('woff'),
         url('../fonts/circo/circo-webfont.svg#circoregular') format('svg');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'giorgioregular';
    src: url('../fonts/giorgio/giorgio-webfont.eot');
    src: url('../fonts/giorgio/giorgio-webfont.eot?#iefix') format('embedded-opentype'),
         url('../fonts/giorgio/giorgio-webfont.woff2') format('woff2'),
         url('../fonts/giorgio/giorgio-webfont.woff') format('woff'),
         url('../fonts/giorgio/giorgio-webfont.svg#giorgioregular') format('svg');
    font-weight: normal;
    font-style: normal;
}

@media (orientation: landscape) {
    html, body, ul, li, div, p, h1, img {
        margin:0px;
        padding:0px;
    }
    body {
        /*background-color:deeppink;*/
        font-family: 'giorgioregular';
        color: #515151;
    }
    /**/
    header {
        margin:0px;
        padding:0px;
        min-height:100%;
        height:100%;
        width:18%;
        background-color:#fff;
        /*position:absolute;*/
        display:flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        box-shadow: 4px 0px 8px #eee;
        position: fixed;
    }
    nav {
        width:100%;
        height: 100%;
    }
    nav ul {
        list-style-type: none;
    }
    nav a, nav a:visited {
        text-decoration: none;
        color:#515151;
        font-weight: bold;
    }
    nav a:hover {
        color:#91df2bff;
    }
    #logo {
        background-color:white;
        width:100%;
        padding-bottom: 15px;
    }
    #logo img {
        width:100%;
    }
    #menu_1 {
        min-height:50px;
        width:94%;
        padding-left:5%;
        padding-bottom:20px;
    }
    #menu_1 li {
        line-height: 200%;
    }
    #menu_1b {
        display:none;
    }
    #menu_2 {
        min-height:50px;
        width:94%;
        padding-left:5%;
        padding-top:0px;
    }
    #menu_2 li {
        line-height: 200%;
    }
    #menu_2b {
        display:none;
    }

    /**/

    #page {
        margin-left:19%;
        position:relative;
        display:flex;
        flex-direction: column;
        justify-content: center;
    }
    #footer_picture {
        margin:0px;
        padding:0px;
        height:130px;
        width:280px;
        position: sticky;
        background-image: url(/templates/default/img/quiet.svg);
        filter: drop-shadow( 2px -2px #ddd );
        background-position: bottom;
        background-repeat: no-repeat;
        left:100%;
        bottom: 0;
        float: right;
    }
    footer {
        height: 180px;
        background: linear-gradient(0.25turn, #fff, #ddd 70%);
        width: 100%;
        bottom: 0px;
        display:flex;
        flex-direction:row;
        justify-content: space-between;
    }
    #f_left {
        height: 150px;
        text-align: left;
        padding-top: 10px;
        font-size: 0.8em;
        padding-left: 10px;
        display: flex;
        flex-direction:column;
        justify-content: flex-end;
    }
    #f_center {
        height: 150px;
        text-align: center;
        padding-top: 10px;
        font-size: 0.8em;
        display: flex;
        flex-direction:column;
        justify-content:flex-end;
    }
    #f_right {
        height: 150px;
        text-align: right;
        padding-top: 10px;
        font-size: 0.8em;
        margin-right:5%;
        display: flex;
        flex-direction:column;
        justify-content: flex-end;
    }
    footer p, footer img {
        margin-top: auto;
        vertical-align: bottom;
    }
    footer ul {
        list-style: none;
    }
    footer h1 {
        font-size: 20px;
    }
    footer a, footer a:visited {
        text-decoration: none;
        color:#515151;
        font-weight: bold;
    }
    footer a:hover {
        color:#ef9307;
    }
    #presentation {
        width: 98%;
        /*padding: 10px;
        margin: 20px;
        align-items:center;*/
        /*display:flex;*/
    }
    #presentation h1 {
        height:40px;
        float: left;
        line-height: 120px;
        display: inline-block;
    }
    #presentation img {
        height:120px;
        float: left;
        display: inline-block;
    }
    #desc {
        /*width: 100%;*/
        height: 70px;
        display: inline-block;
    }
    #desc p {
        margin-left: 2%;
        margin-right: 2%;  
    }
    .article {
        width: 93%;
        padding: 10px;
        margin: 20px;
        box-shadow: 4px 4px 10px #ddd;
    }
    .article img {
        float:left;
        height:100px;
        width:100px;	
        opacity:0.6;
    }
    .article dl {
        overflow: hidden;
    }
    
}

/*//////////////////////*/

@media (orientation: portrait) {
    html, body, ul, li, div, p, h1, img {
        margin:0px;
        padding:0px;
    }
    body {
        /*background-color:deeppink;*/
        font-family: 'giorgioregular';
        color: #515151;
    }
    header {
        margin:0px;
        padding:0px;
        height:100px;
        width:100%;
        background-color:#fff;
        /*position:absolute;*/
        justify-content: center;
        /*align-items: center;*/
        box-shadow: 4px 0px 8px #eee;
        position: fixed;
        text-align: center;
        z-index: 1;
    }
    nav {
        width:100%;
        height:100px;
        margin-top: auto;
        margin-bottom: auto;
        /*font-size:0.5em;*/
    }
    nav ul {
        list-style-type: none;
        display: inline-block;
        vertical-align:top;
        line-height: 100px;
    }
    nav li {
        display: inline;
        padding-left: 2%;
        padding-right:2%;
    }
    nav a, nav a:visited {
        text-decoration: none;
        color:#515151;
        font-weight: bold;
        display: inline-block;
    }
    nav a:hover {
        color:#91df2bff;
    }
    #logo {
        width:25%;
        display: inline-block;
        height: 12%;
    }
    #logo img {
        
    }
    #menu_1 {
        display: none;
    }
    #menu_1b {
        width:33%;
        text-align: left;
    }
    #menu_1b img {
        width: 32px;
        height: 32px;
        opacity: 0.6;
    }
    #menu_1b ul{
        display:none;
    }
    #menu_1b li:hover ul {
        display: block;
        position: absolute;
        top:15%;
        left:5%;
        z-index: 1;
    }
    #menu_1b img {
        width: 32px;
        height: 32px;
        opacity: 0.6;
    }
    #menu_1b li ul {
        width:25%;
        position: absolute;
    }
    #menu_1b li ul li {
        display: block;
        line-height:normal;
        padding-top: 5px;
        padding-bottom: 5px;
        background-color: #fff;
        margin-left: 32px;
    }
    #menu_2 {
        display:none;
    }
    #menu_2b {
        width: 33%;
        text-align: right;
    }
    #menu_2b img {
        width: 32px;
        height: 32px;
        opacity: 0.6;
    }
    #menu_2b ul{
        display:none;
    }
    #menu_2b li:hover ul {
        display: block;
        position: absolute;
        top:15%;
        right:5%;
        z-index: 1;
    }
    #menu_2b li ul {
        width:25%;
        position: absolute;
    }
    #menu_2b li ul li {
        display: block;
        line-height:normal;
        padding-top: 5px;
        padding-bottom: 5px;
        background-color: #fff;
        margin-right: 32px;
    }
    #page {
        padding-top:100px;
        display:flex;
        flex-direction: column;
        justify-content: center;
    }
    #presentation {
        width: 100%;
        align-items:center;
        /*display:flex;*/
        padding-bottom:20px;
    }
    #presentation h1 {
        height:40px;
        float: left;
        line-height: 120px;
        display: inline-block;
        padding-left: 1%;
    }
    #presentation img {
        height:120px;
        float: left;
        display: inline-block;
    }
    #desc {
        width: 100%;
        height: 70px;
        display: inline-block;
    }
    #desc p {
        margin-left: 2%;
        margin-right: 2%;        
    }
    .article {
        /*width: 92%;*/
        padding: 10px;
        margin: 20px;
        box-shadow: 4px 4px 10px #ddd;
    }
    .article img {
        overflow: hidden;
        float:left;
        height:100px;
        width:100px;	
        opacity:0.6;
    }
    .article dl {
        overflow: hidden;
    }
    #footer_picture {
        margin:0px;
        padding:0px;
        height:130px;
        width:280px;
        position: sticky;
        background-image: url(/templates/default/img/quiet.svg);
        filter: drop-shadow( 2px -2px #ddd );
        background-position: bottom;
        background-repeat: no-repeat;
        left:100%;
        bottom: 0;
        float: right;
    }
    footer {
        height: 180px;
        background: linear-gradient(0.25turn, #fff, #ddd 70%);
        width: 100%;
        bottom: 0px;
        display:flex;
        flex-direction:row;
        justify-content: space-between;
    }
    #f_left {
        height: 150px;
        text-align: left;
        padding-top: 10px;
        font-size: 0.8em;
        padding-left: 10px;
        display: flex;
        flex-direction:column;
        justify-content: flex-end;
    }
    #f_center {
        height: 150px;
        text-align: center;
        padding-top: 10px;
        font-size: 0.8em;
        display: flex;
        flex-direction:column;
        justify-content:flex-end;
    }
    #f_right {
        height: 150px;
        text-align: right;
        padding-top: 10px;
        font-size: 0.8em;
        margin-right:5%;
        display: flex;
        flex-direction:column;
        justify-content: flex-end;
    }
    footer p, footer img {
        margin-top: auto;
        vertical-align: bottom;
    }
    footer ul {
        list-style: none;
    }
    footer h1 {
        font-size: 20px;
    }
    footer a, footer a:visited {
        text-decoration: none;
        color:#515151;
        font-weight: bold;
    }
    footer a:hover {
        color:#ef9307;
    }
}