@media
screen and (max-device-width: 780px) and (orientation: portrait),
screen and (max-device-width: 1024px) and (orientation: landscape)
{
    body {
        background: #000000;
        overflow: scroll;
        margin: 0;
    }
    #mainwrapper {
        margin: 0;
        border-radius: 0;
        padding: 0;
        width: 100%;
        background: #511d69
    }
    #header-topbar {
        width: 100%;
        margin: 0;
    }
    #header-left {
        float: none;
        margin: 0;
        width: 100%;
        position: relative;
        padding: 0px;
        border-radius: 0;
    }
    #header {
        margin-bottom: 0;
    }
    #quote {
        top: 0;
        padding: 0px !important;
        width: 100% !important;
        height: auto;
    }
    #quote-content {
        padding: 0px !important;
    }
    #quote:before, #quote:after {
        display: none;
    }
    .ribbon:after {
        display: none;
    }
    #header-left img {
        height: auto;
    }
    #header-right {
        display: none;
    }
    #contentwrapper {
        background: none;
        padding-bottom: 115px;
    }

    #navbar {
        text-align: center;
        margin: 0;
        float: none;
        width: 100%;
        margin-bottom: 15px;
    }
    #navbar ul:last-child {
        border-right: 0;
    }
    #navbar ul {
        width: 100%;
    }
    #navbar ul li {
        display: inline-block;
        text-align: center;
        min-width: 32%;
        line-height: 30px;
        border: 1px solid #e7e7e7;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    #navbar ul li a {
        display:inline
    }

    #content-wrapper {
        padding: 0;
    }
    #mid-content-wrapper {
        width: 100%;
    }
    #mid-content {
        width: 90%;
        padding: 5%;
        padding-bottom: 40px;
        border: 0;
        margin: 0;
        margin-bottom: 15px;
    }
    .infopanel {
        right: 0;
        width: 100%;
     }
    #facebookshare {
        display: none;
    }
    #youtubevideo {
        display: none;
    }
    #contactinfo {
        position: fixed;
        bottom: 30px;
        width: 100%;
        z-index: 2;
        margin: 0;
        box-shadow:  0px -2px 4px #888;
    }
    #contactinfo .stripbar {
        display: none;
    }
    #contactinfo .photo{
        float: right;
        height: auto;
        width: 60px;
    }
    #contactinfo .photo img {
        height: 65px;
        width: auto;
    }
    #contactinfo #info{
        padding: 5px;
        margin: 0;
    }
    #contactinfo table{
        float: right;
        margin-right: 15px;
    }
    #info td {
        padding: 0;
        margin: 0;
    }
    .link-wrapper {
        display: none;
    }
    #contactinfo h5 {
        display: none;
    }
    #contactinfo table {

    }
    input {
        width: 80% !important;
    }
    textarea{
        width: 100%;
    }
    #footer-bar {
        display: none;
        width: 100%;
    }
    #footer-underbar {
        text-align: center;
        width: 100%;
        position: fixed;
        bottom: 0;
        height: 30px;
        z-index: 2;
        outline: 1px solid rgba(0, 0, 0, 0.2);
        border-top: 1px solid rgba(255, 255, 255, 0.2);
        background-color: rgb(204, 192, 230);
        line-height: 30px !important;
    }
    #footer-underbar span {
        line-height: 30px !important;
    }
    #drepturi {
        display: none;
    }
    #right-panel {
        width: 100%;
    }
}
