@charset "utf-8";

@-ms-viewport{
	width: device-width;
}

@-o-viewport{
    width: device-width;
}

@viewport{
    width: device-width;
}

* {
    box-sizing: border-box;
    padding:0;
    margin:0;
    --sininen1:#08183B;
	--sininen2:#091A3F;
    --valkonen:#fefefe;
}

::-webkit-scrollbar {
    width:1px;
}
::-webkit-scrollbar-track {
    background:var(--sininen1);
}
::-webkit-scrollbar-thumb {
    background:var(--sininen2);
}

:root {
    font-size:calc( 20px + (30 - 20) * (100vw - 300px) / (1920 - 300) );
    color:var(--valkonen);
    font-family: 'Playfair Display', serif;
}

::selection {
	background: none;
	text-shadow: 0 0 3px rgba(255,255,255,.8);
	color:var(--valkonen);
}
::-moz-selection {
	background: none;
	text-shadow:  0 0 3px rgba(255,255,255,.8);
	color:var(--valkonen);
}

html {
    background:var(--sininen1);
}

html, body {
    width:100%;
    overflow-x:hidden;
}

.wrap {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width:100%;
    height:100vh;
    z-index: 2;
}
.sisalto {
    display: none;
    padding:40px 6.4vw 45px;
}
.sisalto h1 {
    padding-bottom:30px;
    font-size: 264%;
    font-weight: 600;
    text-shadow:  0 0 1px rgba(255,255,255,.8);
}
.sisalto p {
    line-height: 1.618;
    text-shadow:  0 0 1px rgba(255,255,255,.8);
}
.sisalto p span {
    display: inline-block;
    width: 100%;
    padding-top:23px;
    font-size: 61.8%;
    font-weight: 600;
    text-align: right;
}

.tausta {
    position:fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    width:100%;
    height:100vh;
    top:0;
    left:0;
    z-index: 1;
}
.tausta svg {
    display: none;
    width:100%;
    height:auto;
}

@media (min-width: 2000px)
{
    :root {
        font-size:36px;
    }
}

@media (max-aspect-ratio: 27/17)
{
    .sisalto {
        padding:0 6.4vw 25px;
    }
    .sisalto p span {
        text-align: left;
    }

    .tausta {
        display: block;
    }
    .tausta svg {
        position: absolute;
        left:50%;
        top:50%;
        transform: translate(-50%, -50%);
        width:auto;
        height:100vh;
    }
}

@media (max-width: 360px) and (max-height: 360px)
{
    :root {
        font-size:16px;
    }

    .sisalto h1 {
        padding-bottom: 11px;
        line-height: 1.1;
    }
    .sisalto p span {
        padding-top: 13px;
    }
}