html {
    height: 100%;
}

body .main {
    background: url('img/tausta_Kampusalue_2000') no-repeat center center fixed;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
    filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='img/Lahde_taustakuva 1920.jpg', sizingMethod='scale');
    -ms-filter: "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='img/Lahde_taustakuva 1920.jpg', sizingMethod='scale')";
    overflow-y: auto;
}
    
@media screen and (max-width: 600px) {
    body .main {
        -webkit-background-size: cover;
        -moz-background-size: cover;
        -o-background-size: cover;
        background-size: cover; 
        background-attachment: scroll;
    }
}
/* mobiili taustakuva skrollautuu: */
/*@media screen and (max-width: 600px) and (orientation: portrait) {
    body .main {
        background-attachment: fixed;
        background-position: center top;
        background-size: auto 100vh;
        background-size: auto 100dvh;
    }
}
*/
/* mobiili taustakuva näkyy koko ajan kokonaan: */
@media screen and (max-width: 600px) and (orientation: portrait) {
    body {
        isolation: isolate;
    }

    body::before {
        content: "";
        position: fixed;
        inset: 0;
        z-index: -1;
        background: url('img/tausta_Kampusalue_2000.jpg') no-repeat center top;
        background-size: auto 100vh;
        background-size: auto 100dvh;
        pointer-events: none;
    }

    body .main {
        background: none;
    }
}
h1, h2 {
    margin: 0;
}
h1 span {
    display:block;    
}
a img {
    border: 0;
}

@font-face {
    font-family: 'Dancing Script';
    src:  url('Dancing_Script/static/DancingScript-Regular.ttf');
}
/* MAIN CONTAINERS ---------------------------- */

#modalWrapper {
    position: absolute;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    z-index: 997;
}

header {
    background-color: #ffffff;
    position: relative;
    width: 450px;
    max-width: 90%;
    min-height: 200px;
    height: auto;
    margin: 80px auto;
    padding: 25px;
    border-radius: 5px;
    z-index: 999;
}
.welcome {
    position: relative;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    background: #ffffff url('img/tausta_Kampusalue_2000.jpg') no-repeat center center;
    background-size: cover;
}
.welcome-inner {
    position: relative;
    background-color: #ffffff;
    margin: 80px auto;
    padding: 35px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-info-button {
    display: none;
}

@media screen and (max-width: 800px) {
    .mobile-info-button {
        position: fixed;
        top: 12px;
        right: 12px;
        z-index: 996;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        padding: 0;
        border: 1px solid #555;
        border-radius: 50%;
        background: #fff;
        color: #222;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
        cursor: pointer;
        font-size: 22px;
        font-weight: bold;
        line-height: 1;
    }

    .mobile-info-button:focus-visible {
        background: #222;
        color: #fff;
        border-color: #fff;
        outline: 3px solid #222;
        outline-offset: 3px;
    }

    .mobile-info-button:active {
        background: #444;
        color: #fff;
        transform: scale(0.96);
    }
}

.desktop-info-button {
    display: inline-flex;
    flex: 0 0 36px;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid #555;
    border-radius: 50%;
    background: #fff;
    color: #222;
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
    line-height: 1;
}

.desktop-info-button:focus-visible {
    outline: 3px solid #222;
    outline-offset: 3px;
}

@media screen and (max-width: 800px) {
    .desktop-info-button {
        display: none;
    }
}

@media screen and (max-width: 800px) {
    .welcome {
        position: fixed;
        height: 100vh;
        height: 100dvh;
        align-items: flex-start;
        overflow-y: auto;
        padding: 10px;
    }

    .welcome-inner {
        width: 100%;
        height: auto;
        min-height: 0;
        margin: 0 auto;
        flex: 0 0 auto;
    }
}

@media screen and (max-height: 600px) {
    header {
        padding: 10px;
        margin: 0 auto;
        min-width: 90%;
    }
}

@media screen and (max-width: 800px) {
    header {
        padding: 10px;
        margin: 0 auto;
        min-width: 90%;
    }
}

footer {
    width: 100%;
    text-align: center;
}

main {
}

/* BACKGROUND CONTAINER ----------------------- */

.taustakuva {
    background-repeat: no-repeat;
    background-size: 100% 100%;
    background-position: center center;
}

.taustakuva img {
    z-index: -100;
    width: 100%;
}

/* PARAGRAPHS, HEADINGS & TIMES -------------- */

p {
    font-family: "Lato", sans-serif;
    font-size: 18px;
    font-weight: 500;
    line-height: 30px;
    color: #585858;
}
.info { 
    font-family: "Quicksand", sans-serif;
    font-size: 14px;
    text-transform: uppercase;
    padding-right: 3px;
    font-weight: bold;
    color: #666699;
}
.credit-item {
    padding: 3px 15px 3px 0;
}
.footer p  {
    margin-bottom: 0px;
    text-align: center;
}
.footer-credits {
    flex: 1 1 auto;
    min-width: 0;
}
.footer-credits p {
    text-align: left;
}
@media screen and (min-width: 801px) {
    .footer .credit-item {
        display: inline-block;
    }
}
html[lang="fi"] .en {
    display: none !important;
}
html[lang="en"] .fi {
    display: none !important;
}
.langSel {
    display: inline-flex;
    xwidth: 34px;
    xheight: 34px;
    xpadding: 2px 8px;
    padding: 0px;
    align-items: center;
    justify-content: center;
    xmargin-left: 8px;
    border: 1px solid #c8c8c8;
    border-radius: 4px;
    background-color: rgba(255,255,255,.5);
    color: #333333;
    text-decoration: none;
    vertical-align: middle;
    overflow: hidden;    
}
.langSel:hover {
    background-color: #e2e2e2;
}
.langSel .language-option {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 3em;
    padding: 2px 8px;
    border: 0;
    border-radius: 4px;
    background-color: #eee;
    color: #bbb;
    font: inherit;
    text-align: center;
    cursor: pointer;
}
.langSel .language-option.selected {
    color: #000;
    background-color: #fff;
}
.langSel .language-option:hover {
    background-color: #eef;
}
.langSel .language-option:focus-visible {
    position: relative;
    z-index: 1;
    outline: 2px solid #222;
    outline-offset: -2px;
}

.langSel span span {
    xmargin-right: 10px;
    border-radius: 4px;
    xmargin:1px;
}

/*.info2 {*/
.info2 {
    padding-right: 10px;
}

@media screen and (max-height: 1000px) and (max-width: 1400px) {
    .xxxinfo {
        padding-left: 0px;
        margin-left: 5px;
    }
}

.info a, .linkki {
    color: #666699;
    text-decoration: none;
}
.external-link-icon {
    display: inline-block;
    margin-left: 0.2em;
    width: 0.85em;
    height: 0.85em;
    vertical-align: -0.05em;
}

.info a:hover, .linkki:hover {
    color: #cf7d4c;
}

h1,h2, time {
    font-family: "Dancing Script", sans-serif !important;
    font-weight: 700 !important;
}

h1,h2 {
    color: #cf7d4c !important;
    font-size: 40px;
    text-align: center;
    padding: 30px 15px 22px 15px;
    margin: 0;
}
h2 {
    font-size: 36px;
}
#opening h1 {
    padding: 0;
}
#opening .langSel {
    margin: 0;
    margin-top: 10px;
}


time {
    margin-top: 6px;
    font-size: 28px;
    display: inline-block;
    color: #fff;
    font-weight: bold;
}

@media screen and (max-height: 1000px) and (max-width: 1400px) {
    time {
        margin-top: 6px;
        font-size: 24px;
    }
}

@media screen and (min-height: 500px) and (min-width: 1100px) {
    time {
        margin-top: 13px;
        font-size: 30px;
    }
}

@media screen and (min-height: 700px) and (min-width: 1100px) {
    time {
        margin-top: 16px;
        font-size: 34px;
    }
}

@media screen and (min-height: 1000px) and (min-width: 1400px) {
    time {
        margin-top: 20px;
        font-size: 40px;
    }
}

@media screen and (min-height: 1200px) and (min-width: 1800px) {
    time {
        margin-top: 24px;
        font-size: 46px;
    }
}

@media screen and (min-height: 1400px) and (min-width: 2200px) {
    time {
        margin-top: 30px;
        font-size: 52px;
    }
}

.content p, .content ul {
    padding: 0 0px 10px 0px;
}

.content ul {
    text-align: center;
}

.content a {
    color: #666699;
}

.content a:hover {
    text-decoration: none;
}

.kielet {
    position: absolute;
    right: 20px;
    bottom: 10px;
}

.kielet .info {
    font-size: 12px;
}

.sulje p {
    font-size: 12px;
    font-family: "Quicksand", sans-serif;
    text-transform: uppercase;
    font-weight: bold;
}

.sulje.wider p {
    line-height: normal;
}

.sulje:hover p {
    color: #666699;
}

.footer p {
    font-size: 14px;
    line-height: 14px;
}

/* CONTENT ----------------------------------- */

.main-content {
    position: absolute;
    max-height: 100%;
    height: 100%;
    max-width: 100%;
    display: none;
    z-index: 998;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
}
.main-content p {
    text-align: left;
}

.content {
    height: 100%;
    float: left;
    max-width: 1000px;
}

.kuvapuoli {
    width: auto;
    overflow: hidden;
    max-width: 100%;
    background-color: rgba(255, 255, 255, 0.86);
    z-index: 999;
    margin: auto;
    display: inline-block;
    vertical-align: top;
    padding: 20px;
    min-height: 100%;
}

.kuvapuoli > img {
    display: inline-block;
    height: auto;
    max-width: 100%;
    transition: width 0.7s;
    width: auto;
    cursor: pointer;
    margin: auto;
}

.kuvapuoli > section {
    transition: width 0.7s;
    width: 100%;
}

.content {
    overflow-y: auto;
    display: inline-block;
    float: right;
}

.content img, .kuvavalikko img {
    width: 100%;
}

.kuvavalikko img {
    height: auto;
}

.kuvavalikko .vaaka {
    width: auto;
    height: 100%;
}

.kuvavalikko li {
    display: inline-block;
    width: 150px;
    height: 100px;
    overflow: hidden;
}

.sulje {
    cursor: pointer;
    position: absolute;
    top: 0;
    right: 0;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius:  0 5px 0 5px;
}
.sulje:hover {
    background-color: #eee;
    border: 1px solid #ddd;
}
.sulje:hover * {
    color: #000 !important;
    opacity: 1;
}
.sulje span {
    font-size: 20px;
    line-height: 20px;
}
.suljeluukku {
    padding: 10px;
    border: 1px solid #fff;
    border-radius:  0 0 0 5px;
    box-shadow: inset 0 0 2px #000;
    background-color: rgba(0, 0, 0, 0.2);
}
.suljeluukku * {
    color: #fff;
    text-shadow: none !important;
    text-shadow: 0 0 2px #000 !important;
    opacity: 1 !important;
}
.wider {
    position: absolute;
    top: 0;
    left: 0;
    padding-left: 5px;
    padding-top: 2px;
    width: 80px;
    background-image: url("img/transparency-bg.png");
    z-index: 2000;
}

.close {
    width: 20px;
    height: 20px;
    padding-top: 2px;
    padding-right: 8px;
    display: inline-block;
    float: left;
}

.wider p {
    margin: 6px;
}

hr {
    margin: 0 25px 24px 25px;
    border: 0;
    height: 1px;
    background: #999;
    background-image: -webkit-linear-gradient(left, #ccc, #999, #ccc);
    background-image: -moz-linear-gradient(left, #ccc, #999, #ccc);
    background-image: -ms-linear-gradient(left, #ccc, #999, #ccc);
    background-image: -o-linear-gradient(left, #ccc, #999, #ccc);
}

audio {
    width: 100%;
}

/* HATCHES ----------------------------------- */
.luukkuAuki {
    border-style: solid;
    background-color: #fafafa !important;
    transform: rotateY(-105deg);
    transform-origin: 0;
    transition: .5s linear;
    -webkit-transform: rotateY(-105deg);
    -webkit-transform-origin: 0;
    -webkit-transition: .5s linear;
    -ms-transform: rotateY(-105deg);
    -ms-transform-origin: 0;
    -ms-transition: .5s linear;
    -moz-transform: rotateY(-105deg);
    -moz-transform-origin: 0;
    -moz-transition: .5s linear;
    cursor: pointer;
}


/* Easy Slider */

.sliders {
    margin: 0;
    padding: 0;
    position: relative;
    background-image: url("img/sprinkles.png");
}

.sliders ul {
    padding: 0;
    margin: 0;
    overflow: hidden;
}

.sliders li {
    width: 100%;
    height: 100%;
    overflow: hidden;
    padding: 0;
    margin: 0;
}

.sliders li img {
    width: 100%;
}

.vaaka {
    margin-top: 34%;
}

.caption {
    display: block;
    position: relative;
    height: 40px;
    padding: 5px 15px 2px 15px;
    margin: 0;
    font-size: 28px;
    line-height: normal;
    text-align: center;
    overflow: hidden;
}

.caption.short {
    padding-top: 14px;
    height: 31px;
}

.caption > b {
    margin-right: 15px;
}

.answer {
    text-align: center;
    line-height: normal;
    font-size: 2.4em;
}

.prevBtn, .nextBtn {
    display: block;
    width: 30px;
    height: 30px;
    position: absolute;
    top: 50%;
    z-index: 2000;
}

.prevBtn {
    left: 10px;
}

.nextBtn {
    left: 475px;
}

.prevBtn a, .nextBtn a {
    display: block;
    position: relative;
    width: 30px;
    height: 30px;
}

.prevBtn a {
    background: url("img/prev.png") no-repeat 0 0;
}

.nextBtn a {
    background: url("img/next.png") no-repeat 0 0;
}

.only .prevBtn, .only .nextBtn {
    display: none;
}

/* ---------------------------------------------------------------------------------------- */

.kuvaaTeksti {
    font-style: italic;
}
.kuvaaja {
    display: block;
    font-size: 16px;
}

.container {
    max-width: 100vh !important;
    max-width: 100vw !important;
    display: flex;
    justify-content: center;
    align-items: center;

}

.content {
     max-width: 1000px;
}

.luukkuImageInner {
    border: 1px solid #000;   
    display: flex;
    align-content: center;
    justify-content: center;
 }
.luukkuImageInner.is-wide {
    xwidth: 100%;
}

.luukkuImageInner.is-wide img {
    xwidth: 100%;
    xheight: auto;
} 
.luukkuImageInner img {
width: auto; height: auto; max-width: 100%; max-height: 100%;
}
.row {
    padding-top: 20px;
    padding-bottom: 20px;
}

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

    .row {
        padding-top: 20px;
        padding-bottom: 20px;
    }
    
}
.inside { 
    border-radius: 3px;
    box-sizing: border-box;
    width:100%;
    padding: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.luukku {
    cursor: pointer;
    overflow-y: auto;
    width: 100%;
    height: 100%;
    min-height: 100px;
    box-sizing: border-box;
    border-radius: 3px;
    transform-origin: 0 50%;
    -webkit-transform-origin: 0 50%;
    -ms-transform-origin: 0 50%;
    -moz-transform-origin: 0 50%;
    transition: 1s transform linear, 1s background-color linear;
    -ms-transition: 1s transform linear;
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
    text-align: center;
    border: 1px solid #ccc;
    border-left-style: dotted;
    background-color: rgba(0, 0, 0, 0.1); 
    background-color: rgba(255, 255, 255, 0.1); 
    border: 1px solid rgba(255, 255, 255, 0.9);
    border: 1px dotted rgba(255, 255, 255, 0.9);
    box-shadow: inset 0px 0px 5px  rgba(0, 0, 0, 0.1);
    width:100%;
    display: flex;
    justify-content: center;
    align-items: center;
 }
.luukku time {
    transition: opacity 100ms linear 143ms;
}
.luukkuAuki time {
    opacity: 0;
    transition-delay: 857ms;
}
 .luukku *  {
    color: #fff;
    text-shadow: 0px 0px 3px #000;
 }
 .luukku:hover  {
    color: #fff;
    text-shadow: 0px 0px 3px #000;
    background-color: rgba(0, 0, 0, 0.2); 
 }
 .luukku:focus  {
    color: #fff;
    text-shadow: 0px 0px 3px #000;
     background-color: rgba(0, 0, 0, 0.2);
 }
 .luukku:focus-visible {
     outline: 2px solid #fff;
     outline-offset: -2px;
 }
 .luukkuImage {
     padding: 10px;
     max-height: 666px;
     max-width: 1000px !important;
 }
.luukkuImage img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
}
@media (min-width: 1200px) {

}
@media (min-width: 992px) {

}
@media (min-width: 768px) {

   
}
@media (min-width: 576px) {

   
}
@media (max-width: 576px) {

    .luukkuImage  {
        max-width: 100%;
        max-height: 50vh;
    }
	.kuvapuoli h1, .kuvapuoli h2 {
		padding-top: 8px; 
		padding-bottom: 16px; 
	}
   
}
	.kuvapuoli h1, .kuvapuoli h2 {
		padding-top: 12px; 
	}
.hideIfNotMobile .info { padding-left: 0 !important; }
.contrastChoise img { width: 40px; height: 40px;  }
.contrastChoiseOne  {  border: 1px solid #eee; background-color: #fafafa; border-radius: 4px; padding: 5px 10px; justify-content: center; color: inherit; font: inherit; cursor: pointer;}
.contrastChoiseOne:hover  {background-color: #eee; cursor: pointer;}

.contrastChoiseOne:hover img {
    opacity: 0.5;
}
.footerContrast {
    display: flex;
    align-items: center;
    gap: 6px;
}
.footerContrast .contrastChoiseOne {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin: 0;
    padding: 2px 6px;
    font-size: 12px;
    white-space: nowrap;
}
.footerContrast .contrastChoiseOne img {
    width: 24px;
    height: 24px;
}

@media (max-width: 800px) and (orientation:landscape) {
    .welcome   { padding: 0px; }
    .welcome h1 { font-size: 30px; }
    .welcome-inner { width: 100%; height: auto; min-height: 100%; margin: 0 auto; padding: 0; border-radius: 0; }
    .welcome #opening { padding: 10px; }
    .contrastChoise img { width: 30px; height: 30px;  }
    .luukkuImage  {
        max-width: 100%;
        max-height: 60vh;
    }   
}
@media (max-width: 320px)  {
    .contrastChoise > div  { flex-direction: column;  }
    .contrastChoise > div div  {  margin-right: 0 !important; border: 1px solid #eee; border-radius: 4px; margin-bottom: 5px; padding: 5px; justify-content: center;}
    .contrastChoise img { width: 40px; height: 40px;  }
}
.kvaTxt {
    font-size: 14px;
    line-height: 1.4;
    font-style: italic;
    text-align: center !important;
}
.kvaTxt i {
    color: #000;
}
body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100vh !important;
}

body {
    transition: box-shadow 1000ms;
}
#mainid {
    display: none;
}

.main {
    min-height: 100vh !important;
    position: relative !important;
    border: none !important;
}
.main-inner  {
    transition: box-shadow 1000ms;
    min-height: 100vh !important;
}
.main .container {
    min-height: 90vh;
}
.main .xcontainer {
    min-height: 95vh;
}
footer {
    position: relative !important;
}
footer div {
    background-color: rgba(255, 255, 255, 0.5); 
}
.footer  {
    background-color: rgba(255, 255, 255, 0.5); 
    gap: 10px 20px;
    flex-wrap: nowrap !important;
    padding: 10px 16px;
}
header, footer, aside, section, main {
    display: block;
}


.td-example.td-example-shapes .circle, .td-example.td-example-shapes .xsquare {
    margin: 0.25rem;
}
.circle-lg, .xsquare-lg {
    padding: 2.375rem;
}
.circle, .xsquare {
    align-items: center;
    background-position: center;
    background-size: cover;
    display: inline-flex;
    justify-content: center;
    overflow: hidden;
    padding: 50%;
    position: relative;
    text-align: center;
    vertical-align: middle;
}
.circle>*, .xsquare>* {
    -o-object-fit: cover;
    object-fit: cover;
    -o-object-position: center;
    object-position: center;
    position: absolute;
    max-width: 100%;
}
.circle, .xsquare {
    align-items: center;
    background-position: center;
    background-size: cover;
    display: inline-flex;
    justify-content: center;
    overflow: hidden;
    padding: 50%;
    position: relative;
    text-align: center;
    vertical-align: middle;
}
* {
    box-sizing: border-box;
}

@media screen and (min-width: 801px) {
    .hideIfNotMobile {
        display: none;
    }
}
@media screen and (max-width: 800px) {
    .footer {
        display: none !important;
    }
    .main .container {
        min-height: 100vh;
    }
}
body.moreContrast .main-inner  {
    background-color: rgba(0, 0, 0, 0.2);
 }
body.moreContrast .luukku  {
   background-color: rgba(0, 0, 0, 0.1);
}

body.moreContrast .luukku:hover,
body.moreContrast .luukku:focus {
    background-color: rgba(0, 0, 0, 0.65);
}
body.moreContrast .luukku:focus-visible {
    outline: 2px solid #fff;
    outline-offset: -2px;
}
 body.moreContrast .luukku:hover time {
    color: #fff;
    text-shadow: 0px 0px 3px #000;
}
body.moreContrast .luukku:focus time {
    color: #fff;
    text-shadow: 0px 0px 3px #000;
}


#snow {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    pointer-events: none;
    margin: auto 0;
    z-index: 2;
}
#snow-inner {
    position: relative;
}
