body{
    background-color: #F9F9F9;
    font-family: 'Lato', sans-serif;
    font-size: 1em;
}

h1,h2,h3,h4{
    font-size: 2.4em;
    font-weight: 700;
    margin-bottom: 1em;
}

h2,h3,h4{
    font-size: 1.4em;
    margin-top: 1em;  
}

p{   
    font-weight: 400;
}
a:hover{
    text-decoration: none;
}

.orange{
    background-color: #F4BB3A;
}

.text-red{
    color: #E44F50;
}

.text-grey{
   color: #707278; 
}

.breadcrumbs{
    color: #707278;
    margin: 1.5em 0;
}

.breadcrumbs a{
    color: #707278; 
}

/* Secondary modal - Bootstrap */
.modal-content{
    background-color: #f3bb38;
    color: #fff;
    padding: 1em;
}
.modal-title{
    font-size: 26px;
    text-align: center;
}
.modal-footer,
.modal-header{
    border: none;
}

/* Hero */
.hero-image {
    padding:0;
    position: relative;
    height: 85vh;
    background-position: top center;
    background-size: cover;
    text-align: center;
}
@media(max-width:768px) {
    .hero-image {
        height: 40vh;
    }
}
.hero-bend{
    position: absolute;
    width: 100%;
    height:auto;
    bottom: 0;
    left: 0;
    right: 0;
}
.hero-arrow{
    position: absolute;
    width: 40px;
    height: auto;
    bottom: 40px;
    margin: 0 auto;
}


/* Navi */
.upp-logo-big{
    position: absolute;
    top: 1em;
    left: 2em;
    z-index: 100;
}
.upp-logo-big img{
    width:160px;
    height: auto;
}
@media (min-width: 970px) {
    .upp-logo-big{
        top: 16vh;
        left: 4em;
    }
    .upp-logo-big img{
        width:320px;
        height: auto;
    }
}

.navi{
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 4em;
    height: 75px;
    width: 100%;
}
.menu{
    margin: 0;
    padding: 0;
}
.menu li {
    display: inline-block;
    list-style: none;
}
.menu .wpml-ls-item-en { /* hide eng language slector if it pops up somehow */
    display: none;
}
.menu-item {
    position: relative;
}
.menu-item a{
   display:block;
   line-height: 75px;
   padding: 0 1.4rem;
   text-decoration: none;
   color: #221E1F;
   font-weight: 700;
   font-size: 0.9em;
}
.sub-menu .menu-item a{
    line-height: 40px;
}
.navi li.menu-item:hover{
    background-color: #F8D689;
}
.navi li.menu-item:hover .sub-menu {
    display: block;
}
.navi .sub-menu {
    display: none;
    position: absolute;
    z-index: 200;
    left: 0;
    top: 75px;
    list-style: none;
    background: #f8eed6;
    border: solid #F4BB3A;
    border-width: 0 1px 1px 1px;
    padding:0;
}
.sub-menu {
    width:300px;
}
.sub-menu li{
    width:100%;
}
.logo-container{
    position: absolute;
    z-index: 100;
    display: flex;
    margin: -5px auto;
    background-image: url('../images/kopiraitti/kopiraitti-ribbon.png');
    background-size: contain;
    background-position: top center;
    background-repeat: no-repeat;
    height: 260px;
    width: 240px;
    align-items: center;
    justify-content: center;
}
.logo-container img{
    width: 80%;
    height: auto;
    margin: 0 auto 1em auto; 
}
.drawer-contents .wpml-ls-legacy-list-horizontal.wpml-ls-statics-footer{
    margin-bottom: 0;
}

#drawerMenu{
    display: none;
}
.drawer{
    position: absolute;
}
.drawer-heading{
    padding: 2em 0 1em 0;
}
.drawer-contents{
    padding-bottom: 1em;
}
.drawer .menu-item {
    display: inline-block; 
}
.drawer .menu-item a{
    line-height: 1em;
    color: #FFFFFF;
    font-size: 1.2em;
    line-height: 1.5em;
}
.drawer .sub-menu{
    padding-left: 1em;
    padding-bottom: 1em; 
}
.drawer .sub-menu .menu-item a{
    font-size: 1em;
    font-weight: 300;
    line-height: 1.2em;
}
.drawer .wpml-ls li{
    width: auto;
}
.drawer-controls{
    padding: 10px 0 0 0;
}

@media only screen and (max-width: 1024px) {
    .logo-container{
        height: 120px;
        width: 100px;
    }
    .navi{
        display: none;
    }
    #drawerMenu{
        display: block;
    }
}


.link-navbar {
    width:220px;
    margin:0 1em 0 2em;
    position: relative;
    height:75px;
}
.logo-navbar {
    position: absolute;
    top:0;
}
.lang-switcher{
    position: absolute;
    width: 200px;
    right: 0;
    top: 18px;
}
.lang-switcher a{
    color: #221E1F;
    font-size: 0.9em;
    z-index: 100;
}

/* Drawer menu */
.drawerToggleBtn{
    width: 54px;
    height: 46px;
    padding: 0;
    margin: 0;
    background-color: transparent;
    background-image: url('../images/drawer_close.png');
    border: none;
}

.folded .drawerToggleBtn{
    background-image: url('../images/drawer_open.png');
}
.drawerBackBtn{
    background-image: url('../images/drawer_home.png');
}

.drawer-nav {
    padding:0;
}

.drawer li {
    margin-top: 5px;
}

.drawer-nav li a {
    padding:0;
    color: #ffe4a7;
}
.drawer-nav li a:hover,.drawer-nav li a:focus, .drawer-nav li a:active {
    color: #ffe4a7;
    text-decoration: underline;

}
#drawer-score-area div.data {
    padding: 6px;
}

.drawer-heading a{
    color: white;
    text-decoration: none;
}
.drawer-heading h2{
    font-family: "rosewood-std-fill";
    font-style: normal;
    font-weight: 400;
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 26px;
}

.drawer-footer.locked {
    pointer-events: none; /*prevents this element from blocking other elements, needed especially for IE*/
}

/* Search */
.search{
    position: absolute;
    width: 320px;
    right: 0; 
    padding: 1em 2em;
    background-color: hsl(42, 89%, 75%, 0.75);
    transition: width 0.3s;    
}
.searchToggleBtn{
    display: none;
}
.search-closed{
    width: 80px;
}
.searchform{
    position: relative;
    overflow: hidden;
}
.search-closed .searchform{
    display: none;
}
.search-closed .searchToggleBtn{
    display: block;
}
.search input[type=text]{
    background-color:  transparent;
    border: none;
    border-bottom: 2px solid  #F4BB3A;
}
.search input[type=text]:focus,
.search input[type=text]:active{
    background-color:  transparent;
    border: none;
}
.search input[type=image]{
    position: absolute;
    right: 0px;
    opacity: 0.75;
}
::placeholder {
    color: rgb(80, 80, 80);
}

/* Sidebar */
.menu-sidebar{
    margin-top: 85px;
    background-color: hsl(42, 89%, 75%, 0.3);
    list-style: none;
    padding: 0.5em 1em 2em 1em; 
}
.menu-sidebar li{
    list-style: none;    
}
.menu-sidebar ul{
    padding: 0;
}
.menu-sidebar .children{
    padding-left: 1em;
    font-size: 0.9em;
}
.page_item_has_children ul{
    display: none;
}

.menu-sidebar .current_page_item > ul,
.menu-sidebar .current_page_ancestor > ul{
    display: block;
}
.menu-sidebar a{
    color: #3A6AB3;
    text-decoration: none;
}
.menu-sidebar .current_page_item > a{
    font-weight: 700;
    color: #221E1F;
}

.menu-sidebar h4,
.sidebar-nosto h4{
    font-weight: 700;
    font-size: 1em;
    text-transform: uppercase;
}
.menu-sidebar .child{
    padding-left: 1em;
    font-size: 0.9em;
}
.sidebar-nosto{
    background-color: hsl(42, 89%, 75%, 0.3);
    padding: 0.5em 1em 1em 1em; 
    margin-top: 1em;
}

/* Feedback button */
#feedbackMenu{
    position: fixed;
    right: 0;
    top: 45vh;
    z-index: 300;
}
.feedback-contents{
    display: none;
}
.feedback-contents-open{

}
@media(max-width:768px) {
    #feedbackMenu{
        display: none;
    }
}

/* New styles for front-page */
.front-content {
    text-align:center;
}

.front-links {
    border-left: 6px solid #F9F9F9;
    border-right: 6px solid #F9F9F9;
    width: 100%;
    padding-bottom: 63%;
    background-size: cover;
}
.front-link-heading::before {
    border:20px solid #fff0;
    border-bottom:20px solid #F9F9F9;
    content:"";
    width:20px;
    position: absolute;
    top:-40px;
    left:0;
    right:0;
    margin:0 auto;
}
.front-link-heading {
    padding:2rem 0;
    width:100%;
    position: relative;
}

.front-link-heading h4 {
    text-align:center;
    color:black;
    font-size:1.125rem;
    font-weight:bold;
}
h1.front-heading {
    margin-top:4rem;
    font-size:2.5rem;
    font-weight:bold;
    text-transform: none;
    color:black;
}
h2.front-heading {
    text-align:center;
    font-weight:bold;
    font-size:1.75rem;
}

.front-content p {
    max-width: 600px;
    display: block;
    margin: 0 auto;
    line-height: 1.6;
}
.btn.btn-front {
    border-radius: 30px;
    color: white;
    background-color: #E44F50;
    padding: 0.75rem 5rem;
    margin-top: 3rem;
    margin-bottom:1rem;
    font-weight:bold;
}
.front-lift {
    padding:0;
}
.front-lift a {
    text-decoration: none;
}

.etusivu-video-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
}
.etusivu-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.front-video {
    margin:2rem auto 4rem;
}

.front-popular-container {
    padding:2rem 0 4rem;
    background-color:#BDE6F2;
}
.front-popular-row {
    padding:0 0.5rem;
}
.front-popular {
    padding:0;
    border:0.25rem solid #BDE6F2;
}
.front-popular a {
    display: block;
    background-color:#3A6AB3;
    width:100%;
    color:white;
    font-size:1rem;
    font-weight:bold;
    padding:1.5rem 1rem;
}
.front-popular a:hover {
    background-color:#3B95D2;
    text-decoration: none;
}

.front-cta {
    padding:2rem 0;
    background-image:url("../assets/tapeeti.png");
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.front-cta-box {
    max-width: 1140px;
    width: 100%;
    margin: 0 100px;
    padding-left: 1rem;
}
.front-btn-cta {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}
.front-btn-cta .btn {
    margin:0 1rem;
}

/* Frontpage news lifts */
.news-box,
.some-box{
    background-color: #FFFFFF;
    margin: 0 1em;
}

.some-box{
    background-color: transparent;
}

.box-header{
    width: 100%;
    line-height: 60px;
    background-color: #E44F50;
    color: #FFFFFF;
    text-align: center;
    font-weight: 700;
}
.box-wrapper{
    padding: 1em;
}
.some-box .box-header{
    background-color: #3A6AB3;
}
.news-item{
    margin-bottom: 1em;
}
.news-item h3{
    font-size: 1em;
    margin: 0;
}
.news-item a{
    color: #221E1F;
    text-decoration: none;
}

/* New styles for front-page END*/
/* Page content */
.content-container{
    padding: 120px 0 3em 0;
}
.content-column{
    padding: 0 0 0 2em;
}
.content-column img{
    width: 100%;
    height: auto;
    margin: 1em 0;
}
.nosto-boksi,
.esimerkki{
    padding: 1.5em;
    background-color: hsl(42, 89%, 75%, 0.3);
}
.nosto-boksi{
    font-style: italic;
    padding: 1.5em 1em 1.5em 4em;
    background-color: #BDE6F2;
    background-image: url('../images/kopiraitti/bulb.png');
    background-repeat: no-repeat;
    background-position: 20px center;
}
.aftercontent{
    padding: 0.5em 1.5em 1.5em 1.5em;
    background-color: hsl(42, 89%, 75%, 0.3);
}

@media only screen and (max-width: 1024px) {
    .content-container{
        padding: 5em 1em 0 1em;
    }
    .content-column{
        padding: 1em;
    }
    .menu-sidebar{
        margin-top: 1em;
    }
}

/* Footer */
.footer-container a{
    color: #FFFFFF;
}

/* Category */
.cat-item-container{
    padding-bottom: 2em; 
}
.cat-item-container h2{
    margin-top: 0.5em;
}

.sidebar-nosto a{
    color: #3A6AB3;
    text-decoration: none;
}
.sidebar-nosto li{
    list-style: none;
}


/* FAQ */
.questions-container h2{
    color: #707278;
}
.question h3{
    font-size: 1.4em;
    margin: 1em 0 0.5em 0;
    cursor: pointer;
}
.question h3::before{
    content: "+ ";
}
.active h3::before{
    content: "- ";
}

.answer{
    display: none;
}
.active .answer{
    display: block;
}

/* Footer */
.footer-container{
    background-color: #231F20;
    color: #FFFFFF;
    padding: 2em;
}
.logo-footer{
    width: 50%;
    height: auto;
    margin: 0 auto;
}
.footer-container h4{
    font-size: 1em;
    font-weight: 700;
}
.footer-bottom{
    margin-top: 2em; 
}

@media(max-width:768px) {
    .front-cta {
        text-align:center;
    }
    .front-btn-cta {
        justify-content: center;
        margin-top:1rem;
    }
}