* {
    box-sizing: border-box;
}

html {
    background: url(../images/sitebg3.gif) no-repeat center center fixed;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
}

body {
    padding: 0;
    margin: 0;
    font-family: "calibri";
}


#header {
    width: 100%;
}

#sitelogo{
width:120px;
height:120px;
margin-left:10px;
}

#closebtnabout {
    position: relative;
    float: left;
    top: -10px;
    left: 100%;
    margin-left: -10px;
    width: 20px;
    height: 20px;
}

#closebtnfindus {
    position: relative;
    float: left;
    top: 5px;
    left: 100%;
    margin-left: -8px;
    width: 20px;
    height: 20px;
}

#closebtnabout:hover {
    cursor: pointer;
}

#closebtnfindus:hover {
    cursor: pointer;
}

#closebtnbox:hover {
    cursor: pointer;
}

#sitelogo {
    float: left;
}

#topbtns {
    float: left;
    margin-top: 50px;
    margin-left: 20px;
}

#topbtns button {
    background: none;
    border: none;
    color: #333;
    font-size: 18px;
}

#social_icon {
    width: 60px;
    height: auto;
    margin-right: 10px;
}

#topbtns button:focus {
    outline: 0 !important;
}

#topbtns button:hover {
    cursor: pointer;
}

#aboutdiv {
    visibility: hidden;
    position: absolute;
    top: 100px;
    left: 100px;
    background: white;
    color: black;
    width: 700px;
    height: auto;
    z-index: 99;
    border-radius: 30px 5px;
    border: 1px solid red;
    background: #ccc;
    padding: 20px;
    box-shadow: 0 0 30px 0 rgba(255, 0, 0, 1);
}

#aboutdiv p {
    clear: both;
}

#aboutbg {
    position: absolute;
    visibility: hidden;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #333;
    opacity: 0.9;
    z-index: 98;
}

#findusdiv {
    visibility: hidden;
    position: absolute;
    top: 30px;
    left: 300px;
    background: white;
    color: black;
    width: auto;
    min-width: 50px;
    height: auto;
    z-index: 99;
    border-radius: 5px;
    border: 1px solid red;
    background: #ccc;
    padding: 5px;
    padding-right: 15px;
    padding-bottom: 0;
    box-shadow: 0 0 30px 0 rgba(255, 0, 0, 1);
}

#findusbg {
    position: absolute;
    visibility: hidden;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #333;
    opacity: 0.9;
    z-index: 98;
}

#flags {
    float: right;
    margin-top: 20px;
    margin-right: 20px;
}

#flags img {
    width: 55px;
    height: 35px;
    box-shadow: 0 0 6px 0 rgba(210, 210, 210, 0.4);
}

#flags img:hover {
    box-shadow: 0 0 20px 0 rgba(255, 0, 0, 1);
}


#categories {
    clear: both;
    float: left;
    width: 240px;
    height: auto;
    padding: 20px;
}

#categories button {
    background: #777;
    border: none;
    color: #fff;
    font-size: 16px;
    margin: 1px;
    display: block;
    width: 100%;
    height: 30px;
    opacity: 0.5;
}

#categories button:focus {
    outline: 0 !important;
}

#categories button:hover {
    cursor: pointer;
    box-shadow: 0 0 20px 0 rgba(255, 0, 0, 1);
}


#boxes_fetched {
    width: 82%;
    float: right;
    padding-right: 10px;
    margin-top: -30px;
}

#outerbox {
    width: 24%;
    height: 11vw;
    float: right;
    margin: 5px;
    cursor: pointer;
}

#box {
    width: 100%;
    height: 100%;
}

#box:hover {
    cursor: pointer;
}

.box1,
.box2,
.box3,
.box4,
.box5,
.box6,
.box7,
.box8,
.box9,
.box10,
.box11,
.box12 {
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
}

#popupboxbg {
    position: absolute;
    visibility: hidden;
    width: 100%;
    top: 0;
    left: 0;
    background: #333;
    opacity: 0.9;
    z-index: 999;
}


#popupbox {
    visibility: hidden;
    position: absolute;
    top: 50%;
    left: 50%;
    padding: 0;
    background: white;
    z-index: 1000;
    box-shadow: 0 0 20px 10px rgba(211, 211, 211, 0.67);
}

#closebtnbox {
    position: relative;
    float: left;
    top: 5px;
    left: 100%;
    margin-left: -25px;
    width: 20px;
    height: 20px;
    background:url(../images/close_button.png) top left no-repeat;
}

#leftbtn,
#rightbtn {
    position: relative;
    float: left;
    top: 50%;
    width: 20px;
    height: 20px;
}

#leftbtn {
    background:url(../images/arrow_left.png) top left no-repeat;
    margin-left: 3px;
}

#rightbtn {
    background:url(../images/arrow_right.png) top left no-repeat;
    left: 100%;
    margin-left: -46px;
}

#leftbtn:hover,
#rightbtn:hover {
    cursor: pointer;
}

#boximgcontainer {
    position: relative;
    top: 25px;
    left: 25px;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
}

#boxdescription {
    visibility: hidden;
    position: relative;
    height: 55px;
    background: #000;
    opacity: 0.8;
    color: #fff;
    padding: 10px;
}

#videoframe {
    margin-top: -20px;
}

.footer {
    position: absolute;
    margin: 0;
    padding: 0;
    top: 100%;
    margin-top: -150px;
    height: 150px;
    width: 100%;
    background-color: #444444;
    opacity: 0.7;
}

.footercontent {
    position: absolute;
    margin: 0;
    padding: 0;
    top: 100%;
    margin-top: -150px;
    height: 150px;
    width: 100%;
}

.footercontentbox {
    position: relative;
    margin: 0;
    padding-left: 10px;
    padding-right: 10px;
    border-right: 1px dashed #666;
    height: 148px;
    float: left;
}

.footercontent h1 {
    color: #fff;
    font-weight: 500;
    font-size: 20px;
    margin: 0;
    margin-top: 2px;
}

.footercontent p {
    margin-top: 5px;
}

#news {
    width: 20%;
    font-size: calc(7px + .6vw);
}

#services {
    width: 30%;
}

#partners {
    width: 25%;
}

#clients {
    width: 25%;
    border: none;
}

#services_title1 {
    margin-top: 5px;
}

#services_title1,
#services_title2,
#services_title3,
#services_title4,
#services_title5,
#services_title6 {
    float: left;
    clear: left;
    text-align: left;
    color: #333;
    width: auto;
    font-size: calc(7px + .4vw);
}

#services_title1:hover,
#services_title2:hover,
#services_title3:hover,
#services_title4:hover,
#services_title5:hover,
#services_title6:hover {
    cursor: pointer;
}

#services_text1,
#services_text2,
#services_text3,
#services_text4,
#services_text5,
#services_text6 {
    margin-top: 5px;
    color: #ddd;
    width: auto;
    text-align: justify;
    font-size: calc(5px + .6vw);
    margin-left: calc(60px + 7vw);
}

#services .active {
    color: #ddd;
}

#partners .frame,
#clients .frame {
    height: 50px;
    width: auto;
    border: 0;
    margin: 4px;
    white-space: nowrap;
    text-align: center;
    float: left;
}

#partners .helper,
#clients .helper {
    display: inline-block;
    height: 100%;
    vertical-align: middle;
}

#partners img,
#clients img {
    vertical-align: middle;
    max-height: 50px;
    max-width: 100px;
}


@media only screen and (max-width:1338px),
screen and (min-aspect-ratio:197/100) {
    #boxes_fetched {
        width: 81%;
    }

    #outerbox {
        width: 23%;
        height: 10vw;
    }
}

@media only screen and (min-aspect-ratio:205/100) {
    #boxes_fetched {
        width: 79%;
    }

    #outerbox {
        width: 20%;
        height: 9vw;
    }
}

@media only screen and (min-aspect-ratio:218/100) {
    #boxes_fetched {
        width: 75%;
    }

    #outerbox {
        width: 20%;
        height: 8vw;
    }
}

@media only screen and (min-aspect-ratio:232/100) {
    #boxes_fetched {
        width: 75%;
    }

    #outerbox {
        width: 20%;
        height: 7vw;
    }
}

@media only screen and (min-aspect-ratio:251/100) {
    #boxes_fetched {
        width: 75%;
    }

    #outerbox {
        width: 20%;
        height: 6vw;
    }
}

@media only screen and (max-width:1265px) {
    #boxes_fetched {
        width: 80%;
    }

    #outerbox {
        width: 23%;
        height: 10vw;
    }
}

@media only screen and (max-width:1205px) {
    #boxes_fetched {
        width: 79%;
    }

    #outerbox {
        width: 23%;
        height: 10vw;
    }
}

@media only screen and (max-width:1155px) {
    #boxes_fetched {
        width: 78%;
    }

    #outerbox {
        width: 23%;
        height: 10vw;
    }
}


@media only screen and (max-width:1095px) {
    #boxes_fetched {
        width: 77%;
    }

    #outerbox {
        width: 23%;
        height: 10vw;
    }
}

@media only screen and (max-width:1045px) {
    #boxes_fetched {
        width: 76%;
    }

    #outerbox {
        width: 23%;
        height: 10vw;
    }
}

@media only screen and (max-width:1000px) {
    #categories {
        width: 230px;
    }

    #categories button {
        font-size: 15px;
    }
}

@media only screen and (max-width:966px) {
    #categories {
        width: 220px;
    }

    #categories button {
        font-size: 14px;
    }
}

@media only screen and (max-width:920px) {
    #categories {
        width: 210px;
    }

    #categories button {
        font-size: 14px;
    }
}


@media only screen and (max-width:877px) {
    #categories {
        width: 200px;
    }

    #categories button {
        font-size: 13px;
    }
}


@media only screen and (max-width:837px) {
    #categories {
        width: 190px;
    }

    #categories button {
        font-size: 12px;
    }
}


@media only screen and (max-width:800px) {

    #header {
        text-align: center;
    }
    
    #sitelogo{
        width:200px;
        height:200px;
        margin-left:0;
    }
    
    #topbtns,
    #flags {
        margin: 0;
        padding: 0;
    }

    #sitelogo {
        float: none;
    }

    #topbtns {
        float: none;
    }

    #flags {
        float: none;
        margin-top: 10px;
        margin-bottom: 10px;
    }

    #findusdiv {
        position:fixed;
        width: 96%;
        top: 60px;
        left: 0;
        margin: 10px;
        margin-top: 20px;
    }
    #aboutdiv{
        position:fixed;
        width: 96%;
        top: 40px;
        left: 0;
        margin: 10px;
        margin-top: 20px;
    }
    #aboutbg, #findusbg {
        position:fixed;
    }
    #outerbox,
    #boxes_fetched,
    #categories {
        width: 100%;
        padding: 0;
        margin: 0;
        float: none;
    }

    #outerbox {
        height:29vw;
        width: 50%;
        float: left;
    }

    #categories,
    #boxes_fetched {
        margin-bottom: 10px;
    }

    #categories button {
        font-size: 16px;
    }

    .footer,
    .footerbox {
        display: none;
    }

    .footercontentbox {
        border: 0;
        height: 160px;
    }

    .footercontent {
        position: static;
        float: none;
        margin: 0;
        padding: 0;
        top: 0;
        width: 100%;
        text-align: center;
    }

    #footercontent p {
        margin-top: 10px;
    }

    .footercontent h1 {
        color: #fff;
        font-weight: 500;
        font-size: 25px;
        margin: 0;
        margin-top: 2px;
        margin-bottom: 10px;
    }

    #news {
        margin-top: 11px;
    }

    #news,
    #services,
    #clients,
    #partners {
        width: 100%;
        border: 0;
        background-color: #999;
        min-width: 0;
        border-bottom: 1px dashed #333;
        font-size: 18px;
    }

    #services_title1,
    #services_title2,
    #services_title3,
    #services_title4,
    #services_title5,
    #services_title6 {
        width: 40%;
        font-size: 16px;
    }

    #services_text1,
    #services_text2,
    #services_text3,
    #services_text4,
    #services_text5,
    #services_text6 {
        width: 55%;
        font-size: 16px;
        text-align:left;
    }

    #services {
        height: 270px;
    }

    #services_text1,
    #services_text2,
    #services_text3,
    #services_text4,
    #services_text5,
    #services_text6 {
        width: auto;
    }

    #popupboxbg {
        position:fixed;
    }

    #popupbox {
        position:fixed;
    }
    
    #leftbtn {
        background:url(../images/arrow_left_mob.png) top left no-repeat;
        height:40px;
        margin-top:-20px;
        z-index:999;
        opacity:0.7;
        margin-left:20px;
    }

    #rightbtn {
        background:url(../images/arrow_right_mob.png) top left no-repeat;
        height:40px;
        margin-top:-20px;
        z-index:999;
        opacity:0.7;
        margin-left:-80px;
    }
    #closebtnbox{
        background:url(../images/close_button_mob.png) top left no-repeat;
        z-index:999;
        opacity:0.7;
        top: 20px;
        margin-left: -40px;
    }
}