/*
Theme Name: CiD
Theme URI: https://cid.fi
Author: Ossi Pesonen
Author URI: https://www.ossipesonen.fi
Description:
Version: 1.0
*/

/* CSS RESET */

html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video {
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
    margin: 0;
    padding: 0
}

article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
    display: block
}

body {
    line-height: 1
}

ol, ul {
    list-style: none
}

blockquote, q {
    quotes: none
}

blockquote:before, blockquote:after, q:before, q:after {
    content: none
}

body, html {
    height: 100%;
}

table {
    border-collapse: collapse;
    border-spacing: 0
}

body {
    font: 400 16px 'Open Sans', Verdana, Arial;
    color: #000;
    background: url(images/background.jpg) center no-repeat fixed;
}

h1, h2, h3, h4, h5 {
    font: 400 48px 'Open Sans', Arial, Verdana, Tahoma;
    font-weight: 700;
    color: #00a7c1;
}

h2 {
    font-size: 36px;
    margin-bottom: 45px;
}

h3 {
    font-size: 24px;
    margin-bottom:30px;
}

h4 {
    color: #000;
    margin-bottom: 0;
    font-size: 20px;
}

h5 {
    font-size: 18px;
}

p {
    line-height: 1.7;
    margin-bottom: 24px;
}

a {
    color: #00a7c1;
    outline: 0;
    text-decoration: none;
    transition: 0.2s ease-in-out;
}

table {
    width: 100%;
}

::-webkit-input-placeholder {
    color: #000;
}

:-moz-placeholder {
    color: #000;
}

::-moz-placeholder {
    color: #000;
}

:-ms-input-placeholder {
    color: #000;
}

strong {
    font-weight: 700;
}

a:hover {
    color: #999;
}

input[type=text],
input[type=tel],
input[type=email],
input[type=password],
textarea {
    font: 400 16px 'Open Sans', Verdana, Arial;
    padding: 10px 20px;
    margin: 3px 0;
    border: 0;
    width: 70%;
    box-sizing: border-box;
}

textarea {
    height: 100px;
}

input[type=submit] {
    background: #00a7c1;
    border-radius: 100%;
    width: 100px;
    font: 900 16px 'Open Sans', serif, arial, verdana;
    height: 100px;
    text-align: center;
    line-height: 50px;
    cursor: pointer;
    transition: 0.2s ease-in-out;
}

input[type=submit]:hover {
    background: #00859a;
}

.wrapper {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    position: relative;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

.grid-container {
    font-size: 0;
}

.grid-container > * {
    display: inline-block;
    box-sizing: border-box;
    vertical-align: top;
    font-size: 16px;
}

.grid-1 {
    width: 8.33%;
}

.grid-2 {
    width: 16.66%
}

.grid-3 {
    width: 25%;
}

.grid-4 {
    width: 33.33%;
}

.grid-5 {
    width: 41.66%;
}

.grid-6 {
    width: 50%;
}

.grid-7 {
   width: 58.33%;
}

.grid-8 {
    width: 66.66%;
}

.grid-9 {
    width: 75%;
}

.grid-10 {
    width: 83.33%;
}

.grid-11 {
    width: 91.66%;
}

.grid-12 {
    width: 100%;
}

body {
    padding-top: 110px;
}

img {
    max-width:100%;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 110px;
    background: #FFF;
    z-index: 99;
}

body.admin-bar header {
    top: 32px;
}

header .logo {
    position: absolute;
    left: -162px;
    line-height: 110px;
    display: inline-block;
    height: 100%;
}

header .logo img {
    display: inline-block;
    vertical-align: middle;
}

#menu {
    padding: 0;
}

#menu > ul {
    text-align: center;
}

#menu > ul > li {
    display: inline-block;
}

#menu > ul > li > a {
    display: block;
    padding: 0 15px;
    font: 900 20px 'Open sans', serif, arial, verdana;
    line-height: 110px;
    color: #000;
    text-transform: uppercase;
}

#menu > ul > li > a.active {
    color: #00a7c1;
}

#menu > ul > li > a:hover {
    color: #00a7c1;
}

#slogan {
	text-align: left;
	padding: 50px 0;
	background: rgba(0, 167, 193, 0.67);
	position: relative;
}

#slogan .slogan {
	position: absolute;
	right: 10%;
	top: 50%;
	transform: translateY(-50%);
	-webkit-transform: translateY(-50%);
	font: 700 56px 'Open Sans', serif, arial;
	color: #FFF;
	text-align: center;
}

#etusivu .frontpage-container .wrapper {
    background: #FFF;
    margin-top: 40px;
    padding: 0;
}

.frontpage-container .page-link {
    padding: 0 5px;
    color: #525151;
}

.frontpage-container .page-link .image img {
    width: 100%;
    height: auto;
}

.frontpage-container .page-link:hover,
.frontpage-container .page-link:hover h3 {
    color: #000;
}

.frontpage-container .grid-container {
    margin: 0 -5px;
}

.frontpage-container .page-link .content {
    padding: 25px 40px;
    font-size: 18px;
    font-weight: bold;
}

.frontpage-container .page-link .content h3 {
    font: 700 24px 'Open sans', serif, arial, verdana;
    min-height: 60px;
    margin-bottom: 15px;
    line-height: 1.2;
    transition: .2s ease-in-out;
}

.frontpage-container .page-link .image img {
    display: block;
}

.copyright {
    margin-top: 28px;
    padding-bottom: 40px;
    text-align: center;
    font-size: 16px;
    font-weight: bold;
}

.copyright span {
    font-size: 20px;
}

#etusivu .white-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: -1;
    background: rgba(255, 255, 255, 0.8);
}

section {
    position: relative;
    min-height: calc(100% - 110px);
    border-bottom: 2px solid #525151;
}

section#game-design-and-audio-technique {
    border-bottom: 0;
}

body.admin-bar section {
    min-height: calc(100% - 144px);
}

section.single-page .wrapper {
    background: rgba(255, 255, 255, 0.9);
    padding: 0;
}

section.single-page .wrapper .footer {
    background: #FFF;
}

section.single-page .page {
    padding-bottom: 300px;
    position: relative;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

section.single-page .footer {
    background: rgba(255,255,255,0.8);
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 300px;
    font-size: 18px;
    font-weight: 600;
}

section.single-page .blue-ribbon {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding-top: 20%;
    background: rgba(0, 167, 193, 0.67);
}

section.single-page .footer .wrapper {
    background: #FFF;
    padding: 35px 145px;
    height: 300px;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

section.single-page .content {
    padding: 100px 145px;
    margin-left: 41.66%;
}

section.single-page .image {
    position: absolute;
    background-repeat: no-repeat !important;
    background-size: cover !important;
    top: 0;
    left: 0;
    bottom: 0;
}

section.single-page .footer strong {
    color: #00a7c1;
    font-weight: 600;
    font-size: 24px;
}

#translations .footer .grid-container,
#property-management-lkv .footer .grid-container {
    padding-left: 53%;
}

#game-compositions-and-sound-effects .footer .grid-container,
#game-design-and-audio-technique .footer .grid-container {
    padding-right: 50%;
}

#game-compositions-and-sound-effects .image,
#game-design-and-audio-technique .image {
    right: 0;
    left: auto;
}

#game-compositions-and-sound-effects .content,
#game-design-and-audio-technique .content  {
    margin-left: 0;
    margin-right: 41.66%;
}

.slogan.mobile-only {
    display: none;
}

.toggle-menu {
    display: none;
}

@media screen and (max-width: 1920px) {
    #menu {
        width: 93%;
        margin: 0;
        float: right;
    }
    
    #menu > ul {
        text-align: right;
    }

    header {
        height: 90px;
    }

    header .logo {
        line-height: 90px;
    }

    #menu > ul > li > a {
        line-height: 90px;
        font-size: 16px;
    }

    body {
        padding-top: 90px;
    }

    header .logo img {
        max-height: 60px;
    }

    #slogan .slogan {
        font-size: 28px;
    }

    #slogan .logo img {
        max-height: 120px;
    }

    .frontpage-container .page-link .content  {
        font-size: 16px;
    }

    .frontpage-container .page-link .content h3 {
        font-size: 18px;
        min-height: 40px;
    }

    h1,
    h2 {
        margin-bottom: 35px;
    }

    section.single-page .content {
        padding: 50px 75px;
    }

    section.single-page .content {
        font-size: 16px;
    }

    section.single-page .footer strong {
        font-size: 20px;
    }

    section.single-page .footer .wrapper {
        padding: 35px 75px;
    }

    #translations .footer .grid-container, #property-management-lkv .footer .grid-container {
        padding-left: 46%;
    }

    section.single-page .image {
        width: 35%;
    }

    section.single-page .content {
        margin-left: 35%;
        width: 65%;
    }

    #game-compositions-and-sound-effects .content, #game-design-and-audio-technique .content {
        margin-right: 35%;
    }

    header .logo {
        left: 0;
    }
}

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

    #slogan .wrapper {
        padding: 0 20px;
    }

    header .logo {
        left: 20px;
    }

    #slogan .slogan {
        display: none;
    }

    #slogan .slogan.mobile-only {
        display: block;
        position: inherit;
        right: auto;
        top: auto;
        transform: translateY(0);
        -webkit-transform: translateY(0);
    }

    #slogan {
        padding: 25px 0;
        -webkit-box-sizing: border-box;
        -moz-box-sizing: border-box;
        box-sizing: border-box;
    }

    #slogan .logo {
        display: none;
    }

    #menu {
        margin: 0;
        padding-right: 20px;
    }
}

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

    #menu > ul > li > a {
        font-size: 14px;
        padding: 0 10px;
    }

}

@media screen and (max-width: 1280px) {
    #slogan .slogan {
        font-size: 24px;
    }

    h1, h2 {
        margin-bottom: 24px;
    }

    h1 {
        font-size: 36px;
    }

    h2 {
        font-size: 28px;
    }

    h3 {
        font-size: 24px;
    }

    h4 {
        font-size: 20px;
    }
}

@media screen and (max-width: 1120px) {
    #menu {
        position: fixed;
        top: 0;
        right: -420px;
        height: 100%;
        background: #FFF;
        z-index: 100;
        transition: .25s ease-in-out;
        padding: 35px 50px;
        -webkit-box-sizing: border-box;
        -moz-box-sizing: border-box;
        box-sizing: border-box;
        width: 420px;
    }
    
    #menu > ul > li {
        display: block;
        text-align: center;
    }

    #menu > ul > li > a {
        line-height: 1.0;
        padding: 50px 0;
    }

    .toggle-menu {
        display: block;
        position: absolute;
        top: 0;
        right: 0;
        padding: 20px;
        background: none;
        font-size: 22px;
        border: 0;
        cursor: pointer;
        outline: 0;
        transition: .2s ease-in-out;
        color: #525151;
    }

    .toggle-menu:hover {
        color: #00a7c1;
    }

    body.show-menu #menu {
        right: 0;
    }

    header {
        height: 60px;
    }

    header .logo  {
        line-height:60px;
    }

    header .logo img {
        max-height: 45px;
    }

    body {
        padding-top: 60px;
    }

    .frontpage-container .page-link .content {
        padding:25px;
    }

    .frontpage-container .page-link .content h3 {
        min-height: 75px;
    }
}

@media screen and (max-width: 960px) {
    .page-link .image {
        display: none;
    }

    .frontpage-container .page-link .content {
        padding:70px 25px;
    }

    .frontpage-container .page-link .content h3 {
        min-height: 120px;
    }

    section.single-page .page {
        padding-bottom: 0;
    }

    section.single-page .footer {
        position: inherit;
        bottom: auto;
    }

    h1, h2 {
        margin-bottom: 19px;
    }

    h1 {
        font-size: 30px;
    }

    h2 {
        font-size: 25px;
    }

    h3 {
        font-size: 20px;
    }

    h4 {
        font-size: 16px;
    }

    #translations .footer .grid-container, #property-management-lkv .footer .grid-container{
        padding-left: 0;
    }

    #game-compositions-and-sound-effects .footer .grid-container, #game-design-and-audio-technique .footer .grid-container {
        padding-right: 0;
    }

    section {
        min-height: 0;
    }

    section.single-page .footer,
    section.single-page .footer .wrapper {
        height: auto;
    }
}

@media screen and (max-width: 880px) {
    #game-compositions-and-sound-effects .content, #game-design-and-audio-technique .content {
        margin: 0;
    }
    
    .page-link {
        width: 50%;
        -webkit-box-sizing: border-box;
        overflow: hidden;
        -moz-box-sizing: border-box;
        box-sizing: border-box;
        border: 1px solid #eee;
    }

    .frontpage-container .grid-container {
        margin: 0;
    }

    .page-link:nth-child(3),
    .page-link:nth-child(4) {
        border-bottom: 2px solid #eee;
    }

    .frontpage-container .page-link .content {
        padding: 40px 25px;
        text-align: center;
    }

    .frontpage-container .page-link .content h3 {
        min-height: 60px;
    }
}

@media screen and (max-width: 780px) {
    section.single-page .footer .wrapper {
        padding: 30px;
    }

    section.single-page .image {
        position: inherit;
        top: 0;
        left: 0;
        width: 100%;
        display: block;
        padding-top: 100%;
        background-position: center top !important;
    }

    section.single-page .content {
        margin: 0;
        width: 100%;
    }

    section.single-page .content {
        padding: 30px;
    }

    #slogan .slogan {
        font-size: 20px;
    }
}

@media screen and (max-width: 560px) {
    #slogan .slogan {
        font-size: 16px;
    }

    .page-link {
        width: 100%;
    }

    .frontpage-container .page-link .content h3 {
        min-height: 40px;
    }

    .copyright span {
        font-size: 15px;
    }

    .copyright {
        font-size: 13px;
    }

    h1, h2 {
        margin-bottom: 16px;
    }

    h1 {
        font-size: 25px;
    }

    h2 {
        font-size: 22px;
    }

    h3 {
        font-size: 18px;
    }

    h4 {
        font-size: 15px;
    }

    body,
    section.single-page .content,
    .grid-container > * {
        font-size: 14px;
    }
}

@media screen and (max-width: 480px) {
    section.single-page .footer .wrapper .grid-container > * {
        width: 100%;
        text-align: center;
    }

    #menu {
        width: 100%;
        right: -100%;
    }
}