﻿/* Large desktops and laptops */
@media (min-width: 1200px) {
    #mobileNav { display:none; }
    .carousel-inner .carousel-caption {
        bottom: initial;
        top: 120px;
        left: 10%;
        max-width: 365px;
    }
}

/* Landscape tablets and medium desktops */
@media (min-width: 992px) and (max-width: 1199px) {
    #mobileNav { display:none; }
    body { margin-bottom: 600px; }
    .footer { min-height: 400px; padding-bottom: 50px; }
    .carousel-inner .carousel-caption {
        bottom: initial;
        top: 120px;
        left: 10%;
        max-width: 365px;
    }
    .nav.MainMenu a { font-size: 14px; }
    .mansoft_kuvagalleria {
        width: 31%!important;
    }
}

/* Portrait tablets and small desktops */
@media (min-width: 768px) and (max-width: 991px) {
    body { margin-bottom: 0px; }
    #mobileNav { display:none; }
    .footer { min-height: 400px; padding-bottom: 50px; margin-top: 50px; position: relative; bottom: initial; }
    .carousel-inner .carousel-caption {
        bottom: initial;
        top: 120px;
        left: 10%;
        max-width: 365px;
    }
    .nav.MainMenu a { font-size: 13px; }
    .mansoft_kuvagalleria {
        width: 47%!important;
    }
}

/* Landscape phones and portrait tablets */
@media (max-width: 767px) {
    body { margin-bottom: 0; }
    .img-logo { top: 5px; left: 15px; }
    .header { background: url(../images/header_bg.png) left -60px repeat-x; }
    .navbar { border-bottom: 1px solid #d1dcba; }
    .footer { min-height: 400px; padding-bottom: 50px; margin-top: 50px; position: relative; bottom: initial; }
    #mainNav, #subNav { display:none; }

    .banner-container p:nth-child(1) img {
        display:none;
    }
    .banner-container {
        position: relative;
        margin-top: 65px;
        min-height: 200px;
        height: 200px;
        overflow: hidden;
    }
    .banner-container span > img,
    .banner-container p:nth-child(2) img {
        display: block;
        position: absolute;
        top: -9999px;
        bottom: -9999px;
        left: -9999px;
        right: -9999px;
        margin: auto;
        min-height: 200px;
        height:auto;
        max-height: 200px;
    }
    .carousel-inner .item {
        min-height: 280px;
    }
    .carousel-inner .carousel-caption {
        bottom: initial;
        top: 0;
        left: 0;
        min-height: 280px;
        padding-left: 30px;
        padding-right: 30px;
        /*text-align: center;*/
    }
    /*.carousel-inner .carousel-caption h1 { height: 100px; width: 300px; margin-top: -30px; margin-left: -150px; top: 50%; left: 50%; position: absolute; }*/
    .carousel-indicators {
        text-align: right;
        right: 20px;
        left: initial;
        bottom: 80px;
    }
    .carousel-transparent-bg {
        min-height: 100px;
        opacity: 0.6;
    }
    .mansoft_kuvagalleria {
        width: 100%!important;
        margin-right: 0px!important;
        margin-left: 0px!important;
    }
    .mansoft_kuvagalleria img {
        width: 100%!important;
    }
}

/* Portrait phones and smaller */
@media (max-width: 480px) {
    .banner-container {
        min-height: 200px;
        height: initial;
    }
    .carousel-inner .item {
        min-height: 260px;
    }
    .carousel-inner .carousel-caption {
        bottom: initial;
        bottom: 0;
    }
    .carousel-indicators {
        bottom: 70px;
    }
    .carousel-inner .carousel-caption {
        height: 300px;
        width: 100%;
    }
    .carousel-transparent-bg {
        position:absolute;
        top: -999px;
        bottom: -999px;
        left: -999px;
        right: -999px;
        margin: auto;
    }
    .mansoft_kuvagalleria {
        width: 100%!important;
    }
    .kuvagalleria_kuvateksti {
        min-height: 50px!important;
        font-size: 12px;
    }
}

@media (max-width: 390px) {
    .banner-container {
        min-height: 200px;
        height: initial;
    }
    .carousel-inner .item {
        min-height: 300px;
        height: 300px;
    }
    .carousel-indicators {
        bottom: 25px;
    }
    .mansoft_kuvagalleria {
        width: 100%!important;
    }
    .kuvagalleria_kuvateksti {
        min-height: 50px!important;
        font-size: 12px;
    }
}
