html, body { height: 100%; width: 100%; position: relative; margin: 0px auto; padding: 0px 0px 0px 0px; background-color: whitesmoke; font-family: 'Montserrat ', sans-serif; font-family: 'Oswald', sans-serif; } article { height: 100%; width: 100%; } nav { height: 10%; width: 100%; display: flex; justify-content: space-between; align-items: center; padding-top: 20px; box-shadow: 2px 2px 20px #8c8c8c; } nav ul, ul li { list-style: none; margin: 0; padding: 0 15px 0 0; text-align: right; } nav ul li { display: inline-block; vertical-align: middle; white-space: nowrap; } nav li a { padding: 5px; text-decoration: none; color: #696969; font-size: 20px; font-weight: bold; vertical-align: middle; } a:hover { background-color: #F0E68C; } #wrapper{ height: 60%; width: 100%; } #samolot { height: 100px; width: 150px; padding: 0 0 30px 30px; } .bilet{ float: left; height: 50%; width: 25%; margin: 15px 0 0 15px; } #rectangle_top{ width: 98%; height: 17%; background-color: #e6e6e6; } #rectangle_top p{ text-align: left; display: inline-block; font-size: 25px; padding-left: 10px; } p{ padding: 0; margin: 5px auto 0 0; } #div_input{ margin: 0; padding: 0; } #div_input p{ font-size: 15px; } input[type="text"]{ height: 8%; width: 97%; } input[type="button"]{ margin: 15px 0 auto auto; padding: 0 0 0 0; width: 97%; height: 65px; border-radius: 8px; border-style: none; background-color: #ffa31a; font-size: 18px; color: white; font-style: inherit; } .textpanel{ float: left; margin: 15px 0 0 15px; height: 50%; width: 63%; } #palmy{ height: 100%; width: 100%; background-image: url(http://s1.1zoom.me/big0/375/USA_Coast_Hawaii_Palma_482728.jpg); background-repeat: no-repeat; } #main_text p:first-child{ font-size: 50px; } #main_text p:nth-child(2){ font-size: 25px; } .ad{ float: left; height: 90%; width: 10%; margin: 15px auto auto 5px; background-image: url(https://ocdn.eu/pulscms-transforms/1/UqpktkqTURBXy9mY2IwY2YwZjY3MzUwNTgwNWU1YjZjOTAwODc5YTE2ZC5qcGVnkpUDADXNA8DNAhyTBc0EsM0Cdg); background-repeat: no-repeat; } .ad p:first-child{ margin: 0 33% 0 33%; writing-mode: vertical-rl; text-orientation: upright; text-transform: uppercase; word-wrap: break-word; font-weight: bold; font-size: 46px; color: white; } .footer{ margin-top: 100px; height: 10%; width: 100%; background-color: #8c8c8c; } #rightxd{ float: right; height: 100%; width: 30%; background-color: #696969; } #rightxd p{ font-size: 20px; vertical-align: middle; }