/* init */

html, body {
    padding: 0;
    margin: 0;
    border: 0;
    font-family: Arial, sans-serif;
}

div {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

div, ul, li, p, img {
    padding: 0;
    margin: 0;
    border: 0;
}

h2 {
    padding: 0;
    margin: 0;
    font-size: medium;
}

a {
    color: #19578A;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* base */

.whitebase {
    background-color: white;
}

.bluebase {
    background-color: #19578A;
    min-height: 10px;
}

.graybase {
    background-color: #74747a;
}

.ltgraybase {
    background-color: #eee;
}

/* main content */

.fullwidth {
    width: 940px;
    clear: both;
    overflow: hidden;
}

.centered {
    margin: 0px auto 0px auto;
}

.quarterwidth {
    display: block;
    width: 220px;
}

.freewidth {
    display: block;
    margin-right: 20px;
    float: left;
}

.firstcolumn {
    clear: both;
}

.lastcolumn {
    margin-right: 0px;
}

.spacebefore {
    margin-top: 20px;
}

.fourcolumn {

}

.column {
    float:left;
    margin-right: 20px;
}

.fourcolumn .column:nth-of-type(4n) {
    margin-right: 0px;
}

.fourcolumn .column:nth-of-type(4n + 1) {
    clear: left;
}

/* elements */

#logoarea {
    margin-top: 20px;
    min-height: 70px;
}

#logo {
    float: left;
    width: 450px;
}

#search {
    float: right;
    width: 450px;
    /*height: 70px;
    line-height: 65px;*/
    text-align: right;
    font-size: small;
}

#search img, #search form, #search span, #search a {
    display: inline-block;
    margin-bottom: 5px;
}

#search form {
    margin-left: 1em;
}

.search-box-blur {
    background: #EEEEEE url(//www.uta.fi/resurssit/kuvat/hakutausta.gif) left no-repeat;
}

.search-box-blur-en {
    background: #EEEEEE url(//www.uta.fi/resurssit/kuvat/hakutausta_en.gif) left no-repeat;
}

.search-box-focus {
    background: #EEEEEE;
}

#topmenu {
    margin-bottom: 10px;
    font-family: 'Open Sans', sans-serif;
    color: #19578A;
}

#topmenu a {
    color: #19578A;
    text-decoration: none;
}

#topmenu a:hover {
    text-decoration: underline;
}

#topmenupop {
    display: none;
    font-family: 'Open Sans', sans-serif;
    color: #19578A;
    font-size: medium;
}

#carousel {
    height: 375px;
    overflow: visible;
}

#carousel ul.slick-dots {
    bottom: 10px;
    left: 706px;
    width: 200px;

}
#carousel ul.slick-dots li {
    width: 15px;
    margin: 0 2px;
}

.slick-slider {
    margin-bottom: 0px;
}

.slide {
    color: #eee;
    font-family: 'Crimson Text', serif;
}

.slide div {
    width: 220px;
    float:left;
    margin-left: 10px;
    margin-top: 20px;
}

.slide img {
    width: 706px;
    height: 375px;
    border: 0;
    float: left;
}

.slide h2 {
    font-style: italic;
    font-weight: normal;
    font-size: 200%;
}

.slide p {
    margin-top: 10px;
    line-height: 1.2em;
    font-size: 120%;
    font-style: italic;
}

.slide a {
    color: #eee;
}

#nocarousel {
    display: none;
    font-size: smaller;
}

#nocarousel .slide img {
    width: 100%;
    height: auto;
}

#nocarousel .slide div {
    width: 100%;
    height: auto;
    margin: 0px;
    padding: 5px;
}

#middle > div {
    min-height: 200px;
    /*background-color: #eee;*/
    margin-top: 20px;
}

#middle h2 {
    color: #19578A;
    border-left: 1px #19578A solid;
    border-bottom: 1px #19578A solid;
    padding: 5px 0px 1px 9px;
    font-family: 'Open Sans', sans-serif;
}

#middle p {
    font-size: 95%;
    margin-top: 1em;
    margin-left: 10px;
}

#focus div {
    margin-bottom: 10px;
    text-align: center;
}

#buttons {
}

#buttons .button {
    height: 50px;
    line-height: 47px;
    margin-top: 20px;
    border: none;
    font-family: 'Open Sans', sans-serif;
    display: block;
    font-size: small;
    text-align: center;
}

#buttons .button span {
    display: inline-block;
    vertical-align: middle;
    line-height: normal;
}

#buttons a {
    color: #222
}

#buttons a:hover {
    text-decoration: none;
}

#bottom {
    min-height: 200px;
    background-color: #eee;
    font-size: small;
}

#bottom div {
    overflow: hidden;
    margin-top: 10px;
    margin-bottom: 10px;
}

#bottom p {
    margin-top: 1em;
}


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

    .fullwidth {
        width: 700px;
    }

    .fourcolumn .column:nth-of-type(4n) {
        margin-right: 20px;
    }

    .fourcolumn .column:nth-of-type(4n + 1) {
        clear:none;
    }

    .fourcolumn .column:nth-of-type(3n) {
        margin-right: 0px;
    }

    .fourcolumn .column:nth-of-type(3n + 1) {
        clear:left;
    }

    #search {
        width: 220px;
    }
    
    #carousel {
        height: 500px;
    }
    
    .slick-slide {
        height: 500px;
    }

    #carousel .slide div {
        width: 700px;
        float: none;
        margin-left: 0px;
        padding: 10px;
        margin-top: 0px;
        padding-top: 20px;
        position: absolute;
        bottom: 0px;
    }

    #carousel .slide img {
        width: 706px;
        height: 375px;
        border: 0;
        float: none;
    }
    
    #carousel ul.slick-dots {
        bottom: 10px;
        left: 480px;
        width: 200px;
    }
}

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

    .fullwidth {
        width: 460px;
    }

    .fourcolumn .column:nth-of-type(3n) {
        margin-right: 20px;
    }

    .fourcolumn .column:nth-of-type(3n + 1) {
        clear:none;
    }

    .fourcolumn .column:nth-of-type(2n) {
        margin-right: 0px;
    }

    .fourcolumn .column:nth-of-type(2n + 1) {
        clear:left;
    }

    #logo {
        width: 440px;
        float: none;
    }
    
    #search {
        width: 440px;
        text-align: left;
        float: none;
        margin-top: 10px;
        margin-bottom: 10px;
    }
    
    #topmenulist {
        display: none;
    }
    
    #topmenupop {
        display: block;
    }
    
    #carousel {
        height: 375px;
    }
    
    .slick-slide {
        height: 375px;
    }
    
    #carousel .slide img {
        width: 460px;
        height: auto;
    }
    
    #carousel .slide div {
        width: 460px;
        font-size: smaller;
    }
    
    #carousel ul.slick-dots {
        bottom: 10px;
        left: 240px;
        width: 200px;
    }

}

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

    .fullwidth {
        width: inherit;
        margin-left: 5px;
        margin-right: 5px;
    }

    .fourcolumn .column:nth-of-type(n) {
        margin-right: 0px;
        float: none;
    }
    
    .quarterwidth {
        width: 100%;
    }

    #bottom p {
	margin-left: 10px;
	margin-right: 10px;
    }

    #logo {
        width: 100%;
        float: none;
    }
    
    #search {
        width: 100%;
        text-align: left;
        float: none;
        margin-top: 10px;
        margin-bottom: 10px;
    }
    
    .bluebase {
        display: none;
    }
    
    #nocarousel {
        display: block;
    }
    
}
