﻿div.layout {
    max-width: 1000px;
    margin: 0px auto;
    min-height: 100%;
}

a:focus, a:hover {
    color: #060;
    text-decoration: underline;
}

.bottom a:visited, .bottom a:hover,
.portlet-state-manager a:visited {
    color: #fff;
}

table {
    border-collapse: separate;
}

.testi.layout {
    background: url('preview/testi-wmark.png') repeat 30% 170px;
}

.esikatselu.layout {
    background: url('preview/esikatselu-wmark.png') repeat 30% 170px;
}

.inner.no-padding {
    padding: 0;
}

.no-padding-left {
    padding-left: 0;
}

.no-padding-right {
    padding-right: 0;
}

.row {
    margin-bottom: 0;
}

    .row .card, .row .card img {
        margin-bottom: 20px;
    }

.card .fa-chevron-right {
    padding-right: 5px;
}


.btn-material-green {
    background-color: #060;
}

.bg-gray h3 {
    color: #666;
}

.card .caption .btn .fa {
    margin-left: 0;
}

.card .btn {
    white-space: normal;
}

@media (max-width:600px) {

    .card .inner {
        padding: 0;
    }
}

.footer i.fa-chevron-right {
    font-size: 80%;
}

.checkboxGrid.content-template label {
    padding-left: 4px;
}

.alert-row {
    margin-bottom: 0;
}

@media (min-width:900px) {
    .navbar-collapse, .navbar .container {
        padding-left: 0;
        padding-right: 0;
    }

    .navbar .navbar-nav > li > a.home {
        padding-right: 20px;
        padding-left: 20px;
    }
}

/*Etusivun liimatun päänavigaation poisto pienemmistä pääte-laitteista*/
@media (max-width: 900px) {
    .affix {
        position: static;
    }
}

/*navin hoverit*/
.navbar .navbar-nav > li > a:focus, .navbar .navbar-nav > li > a:hover,
.navbar .navbar-nav > li:focus, .navbar .navbar-nav > li:hover {
    background: #ff9933;
    border-color: #ff9933;
    color: #fff;
}

    .navbar .navbar-nav > li:focus a, .navbar .navbar-nav > li:hover a {
        color: #fff;
    }


.navbar .navbar-nav > .active > a,
.navbar .navbar-nav > .active > a:focus,
.navbar .navbar-nav > .active > a:hover {
    background: #ff9933;
    border-color: #ff9933;
    color: #fff;
}


.navbar-nav > li > .dropdown-menu {
    left: -300px;
    padding: 0;
}

li .dropdown-menu {
    visibility: hidden !important;
}

li:hover .dropdown-menu {
    visibility: visible !important;
}

.dropdown-menu {
    white-space: nowrap;
}

    .dropdown-menu ul {
        padding: 0px 10px;
        text-align: left;
    }


    .dropdown-menu li a, .dropdown-menu li a:hover {
        background: url('bullet_tri.png') no-repeat 5px 6px;
        list-style-image: none;
        padding-left: 15px;
    }

.dropdown ul li.title {
    font-weight: bold;
    color: #000;
    padding-left: 0;
}

div.dropdown-menu {
    padding: 15px 0 0 0 !important;
    background: transparent !important;
    border: 0 !important;
    border: none;
    box-shadow: none;
    -webkit-box-shadow: none;
}

.dropdown .bordered {
    background-color: #fff;
    border-color: #FF9933;
    border-style: solid;
    border-width: 2px !important;
    padding: 10px;
    position: relative;
    display: block;
    display: table;
    width: 100%;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}


    .dropdown .bordered:before, .dropdown .bordered:after {
        border-color: rgba(0, 0, 0, 0) rgba(0, 0, 0, 0) #FF9933;
        border-style: solid;
        border-width: 0 16px 16px;
        content: "";
        display: block;
        height: 0;
        right: 22%;
        position: absolute;
        padding: 0;
        width: 0;
        z-index: 10;
        top: -16px;
    }


    .dropdown .bordered:after {
        border-color: rgba(0, 0, 0, 0) rgba(0, 0, 0, 0) #FFFFFF;
        top: -13px;
        z-index: 11;
    }

/* IE 8,9,10 fix for the navigationbox */
.ie8 .dropdown {
    padding: 3px 0 0 0 !important;
}

    .ie8 .dropdown .bordered:before, .ie8 .dropdown .bordered:after {
        display: none;
    }

.ie9 .dropdown {
    padding: 3px 0 0 0 !important;
}

    .ie9 .dropdown .bordered:before, .ie9 .dropdown .bordered:after {
        display: none;
    }

.ie10 .dropdown {
    padding: 3px 0 0 0 !important;
}

    .ie10 .dropdown .bordered:before, .ie10 .dropdown .bordered:after {
        display: none;
    }

.dropdown ul {
    position: relative;
    display: block;
    display: table-cell;
    padding: 5px 2px 5px 2px;
    margin: 0;
    list-style-type: none;
    color: #060;
}

    .dropdown ul li {
        margin: 8px 0px 0px 0px;
        padding: 3px 8px;
        text-align: left !important;
    }

        .dropdown ul li a {
            white-space: nowrap; /* fix narrow width issue on IE/Opera */
            color: #060 !important;
            margin: 0;
            text-align: left !important;
            padding: 2px 0 0 15px !important;
        }

            .dropdown ul li a:hover {
                text-decoration: underline !important;
            }

.dropdown .bottom-link {
    background-color: #FF9933;
    text-align: right;
    border-color: #FF9933;
    border-style: solid;
    border-width: 2px !important;
}

    .dropdown .bottom-link a {
        display: inline-block;
        margin: 0;
        padding: .3em .5em;
        font-weight: bold;
        color: #fff !important;
    }


@media (max-width: 899px) {
    .custom-hidden-xs {
        display: none !important;
    }
}

/*Carousel*/
.carousel .card .inner .btn.pull-bottom {
    position: absolute;
    bottom: 45px;
}

.carousel .fa-chevron-left {
    left: -15px;
}

.carousel .fa-chevron-right {
    right: -8px;
}

.carousel-control.left {
    left: 0;
}

.carousel-control.right {
    right: 0;
}

.carousel .carousel-control {
    color: #FF9933 !important;
    opacity: 0.7;
}

    .carousel .carousel-control:hover {
        opacity: 1.0;
    }


/*Flicker fix*/
.carousel-inner > .active.right {
    left: 33.33333%;
}

@media (max-width: 991px) {

    /*Flicker fix*/
    .carousel-inner > .active.right {
        left: 50%;
    }
}

@media (max-width: 767px) {
    /*Flicker fix*/
    .carousel-inner > .active.right {
        left: 100%;
    }
}

@media (max-width: 720px) {
    .carousel-indicators li, .carousel-indicators li.active {
        height: 15px;
        width: 15px;
        margin-left: 10px;
        margin-right: 10px;
    }
}

@media (max-width: 400px) {
    .carousel-indicators li, .carousel-indicators li.active {
        height: 10px;
        width: 10px;
        margin-left: 5px;
        margin-right: 5px;
    }
}
