*{box-sizing: border-box;}
body {
    margin: 0;
}
.wrapper {margin: 0 auto; width: 100%;}
.pdf-controls {
    display: block;
    width: 100%;
    background: #222 url(/static/img/logo.png) no-repeat right;
    padding: 1.5em;
    border-right: 25px solid transparent;
}
.rotate0 {-webkit-transform: rotate(0deg); transform: rotate(0deg); }
.rotate90 {-webkit-transform: rotate(90deg); transform: rotate(90deg); }
.rotate180 {-webkit-transform: rotate(180deg); transform: rotate(180deg); }
.rotate270 {-webkit-transform: rotate(270deg); transform: rotate(270deg); }
.fixed {
    position: fixed; top: 0; left:0;
    z-index: 100;
    width: 100%;
    padding: 1.5em;
    background: rgba(34, 34, 34,.8);
    animation: shadow  2s infinite ease-in-out;
}
.def-button:hover {
    color: #c33;
    box-shadow: 0 0 5px #dadada;
    background-color: #f3f3f3;
    background-image: linear-gradient(#fff,#f3f3f3);
    cursor: pointer;
}

.def-button {
    color: #c33;
    border-radius: 2px;
    overflow: hidden;
    border: 1px solid #d5d5d5;
    text-transform: uppercase;
    font-size: 12px;
    line-height: 28px;
    padding: 0 12px;
    background-color: transparent;
    #color: #555;
    display: inline-block;
    vertical-align: middle;
    font-weight: 700;
    box-sizing: border-box;
}

button,
button:active,
button:focus {
    outline: none;
}

input,
input:active,
input:focus {
    outline: none;
}

input, select {
    height: 32px;
}

input, textarea, select {
    color: #6e6e6e;
    border: 1px solid #CCC;
    width: 10%;
    max-width: 700px;
    font-size: 14px;
    border-radius: 0;
    padding-left: 5px;
}
input, select {
    vertical-align: middle;
}

.pdf-page-ctrl {
    display: inline;
}

@media screen and (max-width: 640px) {
    .pdf-page-ctrl {
        display: none;
    }
}

@media screen and (max-width: 780px) {
    .pdf-controls {
        display: block;
        width: 100%;
        background: #222 url(/static/img/logo-tiny.png) no-repeat right;
        padding: 1.5em;
        border-right: 25px solid transparent;
    }
    .fixed {
        position: fixed; top: 0; left:0;
        z-index: 100;
        width: 100%;
        padding: 1.5em;
        background: rgba(34, 34, 34,.8);
        animation: shadow  2s infinite ease-in-out;
    }
}

@media screen and (max-width: 420px) {
    .pdf-controls {
        display: block;
        width: 100%;
        background: #222;
        padding: 1.5em;
        border-right: 25px solid transparent;
    }
    .fixed {
        position: fixed; top: 0; left:0;
        z-index: 100;
        width: 100%;
        padding: 1.5em;
        background: rgba(34, 34, 34,.8);
        animation: shadow  2s infinite ease-in-out;
    }
}
