*{ box-sizing: border-box; padding: 0px; margin: 0px; } BODY{ width: 100%; height: 100vh; z-index:0; font-family: Arial, sans-serif; font-size: 18px; color: #5a5a5a; } :root { --gold_dark: #D5A841; --gold_light: #DAB65E; --blue_dark: #0C348F; --blue_middle: #5575B2; --blue_hotel: #6074D1; --blue_light: #BBCCEC; } DIV#head{ width: 100%; height:90px; } DIV#content{ min-height:100px; padding-bottom:30px;} DIV#footer{ min-height:100px; } /*----------------------------- HEAD ----------------------------------*/ DIV#head { position:relative; background-color: var(--blue_dark); overflow: visible; } IMG#head_sign{ width:37px; height:auto; position:absolute; cursor:pointer;} DIV#head_name { position:absolute; color:var(--gold_light); cursor:pointer;} DIV#head_name B { color:var(--gold_light); } DIV#head H1{ position:absolute; color:var(--blue_light); font-weight:normal;} DIV#head FORM INPUT, DIV#head FORM SELECT { height:38px; border-radius:5px; border: 0px; background:var(--blue_middle); padding: 0px 0px 0px 10px; font-size:16px; color:white; vertical-align: top; } DIV#head FORM BUTTON{ height:38px; border-radius:5px; border: 0px; background:#8c732e; color:#c4ae62; padding: 0px 10px 0px 10px; vertical-align: top; cursor:pointer; } DIV#searchBox, DIV#filterBox{ display:block; position:absolute; overflow:hidden; } DIV#searchBox INPUT { width:340px; } DIV#searchBox input::placeholder { color:var(--blue_light); } DIV#searchBox DIV#searchStatus { font-size:15px; color:var(--blue_light); margin-top:2px; } DIV#searchBox DIV#btnClearAdr{ display:none; position:absolute; top:5px; left:320px; font-size:20px; color:white; cursor:pointer; } .head_button{ position:absolute; width:38px; height:38px; line-height:36px; border: 2px solid var(--blue_middle); border-radius:5px; background-color:var(--blue_dark); font-size:18px; text-align:center; font-weight: bold; color:var(--blue_light); cursor:pointer; } DIV#buttonsLang{ visibility:hidden; position:absolute; z-index: 3;} DIV#buttonsLang A{ display:block; position:static; font-size:15px; text-decoration:none; font-weight:normal;} DIV#buttonsLang A:hover { color:white; } DIV#buttonBurger{ display:none; } /*------------------------CONTENT------------------------*/ DIV#content H1{ font-size:25px; margin:10px 0px 10px 0px; color:#666; } DIV#content H3, P{ margin: 10px 0px 10px 0px; } DIV#text3col { width:100%; } DIV#legal{ background-color:white; width:100%; } DIV#legal H3, P {margin: 10px 0px 20px 0px; } DIV.col2{ line-height:26px; } DIV.col2 IMG{ width:100%; height:auto; } /*------------------------FOOTER ---------------------*/ DIV#footer{ background:#f5f5f5; color:#929292; } DIV#footer P, DIV#footer H3 { margin: 10px 0px 10px 0px; font-size:18px; } DIV#footer A{ display:block; margin-bottom:5px; } DIV#footer IMG { position:absolute; width:36px; height:36px; } DIV#footer DIV{ position:relative; } /*=========================LANDSCAPE=======================*/ @media all and (orientation:landscape) { DIV#bodyPage{ width:1920px; transform-origin:0% 0%; } IMG#head_sign{ left:20px; top:14px; } DIV#head_name { left:70px; top:15px; font-size:25px; } DIV#head_name B { font-size:25px; } DIV#head H1{ left:70px; top:48px; font-size:20px;} DIV#buttonSearch{ right:144px; top:31px; } DIV#buttonUser{ right:96px; top:31px; } DIV#buttonLang{ right:49px; top:31px; } DIV#buttonsLang{ right:49px; top:70px; } DIV#buttonBurger{ right:49px; top:31px; } DIV#head_links{ position:absolute; right:200px; top:18px; } DIV#head_links A{ color:#7189b6; text-decoration:none; margin-right:30px; } DIV#head_links A B{ color:#7189b6; } DIV#searchBox { left:470px; top:28px; } DIV#legal{ padding:20px 50px 20px 70px; } DIV.col2{ display:inline-block; vertical-align:top; width:48%; margin-right:20px; } DIV#footer { padding:10px 50px 50px 50px; } DIV#footer DIV{ display:inline-block; vertical-align: top; margin-right:50px; } DIV#footer IMG#ico-face { top: 50px; right: 50px; } DIV#footer IMG#ico-x { top: 50px; right: 0px; } } /*========PORTRAIT=========*/ @media all and (orientation:portrait) { DIV#bodyPage{ width:500px; } IMG#head_sign{ left:20px; top:22px; } DIV#head_name { left:68px; top:25px; font-size:22px; } DIV#head_name B { font-size:22px; } DIV#head H1{ left:70px; top:53px; font-size:17px;} DIV#buttonSearch{ right:108px; top:31px; } DIV#buttonUser{ right:63px; top:31px; } DIV#buttonLang{ right:18px; top:31px; } DIV#buttonsLang{ right:18px; top:67px; } DIV#buttonBurger{ right:18px; top:31px; } DIV#head_links{ display:none; } DIV#searchBox { left:35px; top:100px; } DIV#legal{ padding:20px 20px 20px 20px; } DIV#legal IMG{ width:100%; height:auto; } DIV#footer { padding:20px 10px 20px 20px; } DIV#footer H3 { margin: 30px 0px 15px 0px; } DIV#footer A{ margin-bottom:20px; } DIV#footer IMG#ico-face { top: 40px; right: 70px; } DIV#footer IMG#ico-x { top: 40px; right: 20px; } } //console.log( 'title:', document.querySelector('title').text ); //console.log( 'description: ', document.querySelector('meta[name="description"]').content ); // -------------------- function funResizeWindow(){ var elBodyPage = document.getElementById('bodyPage'); if( !elBodyPage ) { return; } var screenWidthByJS = window.innerWidth; var koefZoom = screenWidthByJS/1940; elBodyPage.style.transform = 'scale('+koefZoom+')'; } // -------------------- function funHideShowSearch() { if( document.getElementById('searchBox').style.display=='block' ) { document.getElementById('searchBox').style.display='none'; if( window.innerWidth < window.innerHeight ) { document.getElementById('head').style.height='90px'; } } else { document.getElementById('searchBox').style.display='block'; if( window.innerWidth < window.innerHeight ) { document.getElementById('head').style.height='170px'; } } } // -------------------- function funHideShowLng() { if( document.getElementById('buttonsLang').style.visibility=='visible' ) { document.getElementById('buttonsLang').style.visibility='hidden'; } else { document.getElementById('buttonsLang').style.visibility='visible'; } } // -------------------- function funDOMContentLoaded(){ if( window.innerWidth > window.innerHeight ) { funResizeWindow(); window.addEventListener("resize", funResizeWindow); } } document.addEventListener("DOMContentLoaded", funDOMContentLoaded);