@media only screen and (max-device-width: 480px) and (orientation:landscape) {
  body {
transform: rotate(-90deg);
transform-origin: left top;
width: 100vh:
overflow-x: hidden;
position: absolute;
top: 0;
left: 0;
  }
}
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">

@viewport {
    orientation: portrait;
}

body {
    background-color: #ddd; /* Background color */
    background-repeat: no-repeat;
    background-size: 100%;
    font-family: Helvetica;
    background-attachment:fixed;
    color: #222;            /* Foreground color used for text */
    font-size: 18px;
    margin-left: 0%;        /* Amount of negative space around the outside of the body */
    margin-right: 0%;       /* Amount of negative space around the outside of the body */
    padding: 0;             /* Amount of negative space around the inside of the body */
    width: 100%;
}

#page-wrap {
position: relative;
width: 400px;
margin: 50px auto;
padding: 20px 20px 60px 20px;
background: #ddd;
// opacity: 0.7;
-moz-box-shadow: 0 0 20px black;
-webkit-box-shadow: 0 0 20px black;
   -webkit-border-radius: 0.5em;
box-shadow: 0 0 20px black;
}

body1 {
    background-color: #ddd; /* Background color */
    color: #222;            /* Foreground color used for text */
    font-family: Helvetica; 
    font-size: 14px;
    margin: 0;              /* Amount of negative space around the outside of the body */
    padding: 0;             /* Amount of negative space around the inside of the body */
}

#header h1 {
    margin: 0;
    padding: 0;
}
#header h1 a, h2 a {
    background-color: #ccc;
    border-bottom: 1px solid #666;
    color: #222;
    display: block;
    font-size: 20px;
    font-weight: bold;
    padding: 10px 0 10px;
//    vertical-align: bottom;
    text-align: center;
    text-decoration: none;
//    text-shadow: 0px 1px 0px #fff;
    background-image: -webkit-gradient(linear, left top, left bottom, 
                                       from(#ccc), to(#999));
}
#header ul {
    list-style: none;
    margin: 10px;
    padding: 0;
}
#header ul li a {
    background-color: #FFFFFF;
//    background: -webkit-gradient(linear, left top, left bottom, from(#fff), to(#ddd));
    border: 1px solid #999999;
    color: #222222;
    display: block;
    font-size: 17px;
    font-weight: bold;
    margin-bottom: -1px;
    padding: 12px 10px;
    text-decoration: none;
}
#isopuolikasV a{
   text-align: center;
   float:left;
   border: 4px solid #ddd;
   white-space: nowrap;
   color: #222222;
   padding: 0.5em;
   font-size: 30px;
   font-weight: bold;
   line-height: 4.0em;
   width: 43%;
   display: block;
   background: green;
   overflow: auto;
   text-decoration: none;
   -webkit-appearance: none;
   -webkit-box-shadow: 1px 1px 1px #ddd;
   -webkit-border-radius: 0.5em;
}
#isopuolikasP a{
   text-align: center;
   float:left;
   border: 4px solid #ddd;
   white-space: nowrap;
   color: #222222;
   padding: 0.5em;
   font-size: 30px;
   font-weight: bold;
   line-height: 4.0em;
   width: 43%;
   display: block;
   background: red;
   overflow: auto;
   text-decoration: none;
   -webkit-appearance: none;
   -webkit-box-shadow: 1px 1px 1px #ddd;
   -webkit-border-radius: 0.5em;
}
#isopuolikas a{
   float:left;
   border: 1px solid #555;
   white-space: nowrap;
   color: #222222;
   padding: 0.5em;
   font-size: 18px;
   font-weight: bold;
   line-height: 4.0em;
   width: 44%;
   display: block;
   background: #fff;
 //  background: -webkit-gradient(linear, left top, left bottom, from(#fff), to(#999));
   overflow: auto;
   text-decoration: none;
   -webkit-appearance: none;
   -webkit-box-shadow: 1px 1px 1px #fff;
   -webkit-border-radius: 0.5em;
}
#puolikasV a{
   text-align: center;
   float:left;
   border: 4px solid #ddd;
   white-space: nowrap;
   color: #222222;
   padding: 0.5em;
   font-size: 18px;
   font-weight: bold;
   line-height: 2.0em;
   width: 44%;
   display: block;
   background: green;
   overflow: auto;
   text-decoration: none;
   -webkit-appearance: none;
   -webkit-box-shadow: 1px 1px 1px #ddd;
   -webkit-border-radius: 0.5em;
}
#puolikasP a{
   text-align: center;
   float:left;
   border: 4px solid #ddd;
   white-space: nowrap;
   color: #222222;
   padding: 0.5em;
   font-size: 18px;
   font-weight: bold;
   line-height: 2.0em;
   width: 44%;
   display: block;
   background: red;
   overflow: auto;
   text-decoration: none;
   -webkit-appearance: none;
   -webkit-box-shadow: 1px 1px 1px #ddd;
   -webkit-border-radius: 0.5em;
}
#puolikas a{
   float:left;
   border: 1px solid #555;
   white-space: nowrap;
   color: #222222;
   padding: 0.5em;
   font-size: 18px;
   font-weight: bold;
   line-height: 2.0em;
   width: 44%;
   display: block;
   background: #fff;
//   background: -webkit-gradient(linear, left top, left bottom, from(#fff), to(#999));
   overflow: auto;
   text-decoration: none;
   -webkit-appearance: none;
   -webkit-box-shadow: 1px 1px 1px #fff;
   -webkit-border-radius: 0.5em;
}

#puolikas ul li a {
    background-color: #FFFFFF;
//    background: -webkit-gradient(linear, left top, left bottom, from(#fff), to(#ddd));
    border: 1px solid #999999;
    color: #222222;
    width: 50%;
    display: block;
    font-size: 17px;
    font-weight: bold;
    margin-bottom: -1px;
    padding: 12px 10px;
    text-decoration: none;
}
#content, #sidebar {
    padding: 10px;
}
#footer {
    display: none;
}
#header ul li:first-child a {
    -webkit-border-top-left-radius: 8px;
    -webkit-border-top-right-radius: 8px;
}
#header ul li:last-child a {
    -webkit-border-bottom-left-radius: 8px;
    -webkit-border-bottom-right-radius: 8px;
}
#div. {
    -webkit-border-bottom-left-radius: 8px;
    -webkit-border-bottom-right-radius: 8px;
}
#header ul.hide {
    display: none;
}
#header div.leftButton {
    position: absolute;1
    top: 7px;
    left: 6px;
    height: 30px;2
    font-weight: bold;3
    text-align: center;
    color: white;
    text-shadow: rgba(0,0,0,0.6) 0px -1px 0px;4
    line-height: 28px;5
    border-width: 0 8px 0 8px;6
    -webkit-border-image: url(../napit/clipboard.png) 0 8 0 8;7
}
#header div.pressed {
    -webkit-border-image: url(images/button_clicked.png) 0 8 0 8;
}
#puolikas input{
   float:left;
   border: 1px solid #555;
   padding: 0.5em;
   font-size: 18px;
   font-weight: bold;
   line-height: 2.0em;
   width: 50%;
   background: #fff;
   background: -webkit-gradient(linear, left top, left bottom, from(#fff), to(#999));
   overflow: scroll;
   -webkit-appearance: none;
   -webkit-box-shadow: 1px 1px 1px #fff;
   -webkit-border-radius: 0.5em;
}
input[type="submit"] {
   border: 1px solid #555;
   padding: 0.5em;
   font-size: 18px;
   font-weight: bold;
   line-height: 2.0em;
   width: 100%;
   background: #fff;
   background: -webkit-gradient(linear, left top, left bottom, from(#fff), to(#999));
   overflow: scroll;
   -webkit-appearance: none;
   -webkit-box-shadow: 1px 1px 1px #fff;
   -webkit-border-radius: 0.5em;
}
#puolikas select {
   float:left;
   border: 1px solid #555;
   padding: 0.5em;
   font-size: 18px;
   line-height: 1.2em;
   width: 50%;
   background: #fff;
   background: -webkit-gradient(linear, left top, left bottom, from(#fff), to(#ddd));
   -webkit-appearance: none;
   -webkit-box-shadow: 1px 1px 1px #fff;
   -webkit-border-radius: 0.5em;
}
select {
   border: 1px solid #555;
   padding: 0.5em;
   font-size: 18px;
   line-height: 1.2em;
   width: 100%;
   background: #fff;
   background: -webkit-gradient(linear, left top, left bottom, from(#fff), to(#ddd));
   -webkit-appearance: none;
   -webkit-box-shadow: 1px 1px 1px #fff;
   -webkit-border-radius: 0.5em;
}
 input[type="checkbox"] {
   width: 50px;
   height: 50px;
   width: 10%;
 }
 input:not([type="checkbox"]), textarea {
   border: 1px solid #555;
   padding: 0.5em;
   font-size: 18px;
   line-height: 1.2em;
   width: 100%;
//   background: #fff;
//   background: -webkit-gradient(linear, left top, left bottom, from(#fff), to(#ddd));
   -webkit-appearance: none;
   -webkit-box-shadow: 1px 1px 1px #fff;
   -webkit-border-radius: 0.5em;
 }
#header div.button{
   border: 1px solid #8EC1DD;
   background-color: #DDEEFF;
   border-radius: 4px;
   box-shadow: inset 0 1px 3px #fff, inset 0 -15px #cbe6f2, 0 0 3px #8ec1da;
   -webkit-appearance: none;
   -o-box-shadow: inset 0 1px 3px #fff, inset 0 -15px #cbe6f2, 0 0 3px #8ec1da;
   -webkit-box-shadow: inset 0 1px 3px #fff, inset 0 -15px #cbe6f2, 0 0 3px #8ec1da;
   -moz-box-shadow: inset 0 1px 3px #fff, inset 0 -15px #cbe6f2, 0 0 3px #8ec1da;
   color: #3985a8;
   text-shadow: 0 1px #fff;
   padding: 5px 30px;
}

