/* Make HTML 5 elements display block-level for consistent styling */
header, nav, main, article, footer, address {
    display: block;
}

img {
    border: 0
}

p {
    padding: 10px 0;
    margin: 0
}

a {
    text-decoration: none;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

td {
    padding: 0;
    vertical-align: bottom;
}

ul {
    margin: 10px 25px;
}

hr {
    height: 1px;
    border: 0;
    border-top: 1px solid #cccccc;
    margin: 1em 0;
}

*:focus, textarea, input, select {
    outline: none;
}

input, select {
    vertical-align: middle;
}

/*
* Clickjacking very commonly uses a transparent iframe.
* I can't imagine a modern web site that would ever do
* this, so let's just never allow transparent iframes.
* @url http://maymay.net/blog/2008/12/29/clickjanecss-a-css-user-style-sheet-to-help-detect-and-avoid-clickjacking-attacks/
*/
iframe {
    filter: alpha(opacity=100) !important; /* for IE */
    opacity: 1 !important; /* for conforming browsers */
}

/**
 * Chrome bug workaround
 * https://code.google.com/p/chromium/issues/detail?id=336476
 * solution from: http://stackoverflow.com/questions/21984543/google-chrome-bug-website-not-displaying-text
 */
body {
    -webkit-animation: fix 1s 1;
}

@-webkit-keyframes fix {
    0% {
        opacity: 1
    }
    100% {
        opacity: 1
    }
}

fieldset {
    padding: 10px 8px 9px 8px;
    margin-top: 14px;
}

legend, .center legend, .right legend {
    text-align: left !important;
}

.small, .smaller {
    font-size: 0.8em;
}

.left * {
    text-align: left !important;
}

.center * {
    text-align: center !important;
}

.right * {
    text-align: right !important;
}

.justify * {
    text-align: justify !important;
}

.left {
    text-align: left !important;
}

.center {
    text-align: center !important;
}

.right {
    text-align: right !important;
}

.justify {
    text-align: justify !important;
}

.center input, .center textarea, .center select, .center option,
.right input, .right textarea, .right select, .right option,
.justify input, .justify textarea, .justify select, .justify option {
    text-align: left !important;
}

.top {
    vertical-align: top !important;
}

.middle {
    vertical-align: middle !important;
}

table.middle * {
    vertical-align: middle !important;
}

.bottom {
    vertical-align: bottom !important;
}

.bold {
    font-weight: bold !important;
}

.normal {
    font-weight: normal !important;
}

.underline {
    text-decoration: underline;
}

.strikethrough {
    text-decoration: line-through;
}

.block {
    display: block !important;
}

.clr {
    clear: both;
    font-size: 1px;
    height: 1px;
}

.marginauto {
    margin-left: auto !important;
    margin-right: auto !important;
}

.nowrap {
    white-space: nowrap;
}

.unselectable {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}


.overflow-ellipsis {
    overflow: hidden;
    -ms-text-overflow: ellipsis;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
}
