@font-face {
    font-family: "InaiMathi";
    src: url("fonts/InaiMathiOAU-Regular.woff") format("woff");
}

@font-face {
    font-family: "Panama";
    src: url("fonts/PanamaBold.woff") format("woff");
}

@font-face {
    font-family: "Panama Italic";
    src: url("fonts/panama_demo_italic-webfont.woff") format("woff");
}


body {
    background-color: rgb(26, 35, 36);
    margin: .25em;
    padding: 0px;
    -webkit-hyphens: none;
    -ms-hyphens: none;
    hyphens: none;
    -webkit-touch-callout: none !important;
    -webkit-user-select: none !important;
    -khtml-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
}

p {
    font-family: "InaiMathi", sans-serif;
    margin: 0px;
    padding: 0px;
}

a {
    text-decoration: none;
    color: inherit;
    text-shadow: inherit;
    transition: 1s ease-in-out;
}

.grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
}

.background {
    position: fixed;
    right: 0;
    bottom: 0;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -100;
    margin: 0;
    background: url("images/katkine-aken-taust.jpg") center center no-repeat;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
}

.container {
    margin: .25em;
    padding: 0px;
    height: 60vh;
    text-shadow: 0 0 2px rgba(255, 255, 255, 0.5);
    color: transparent;
    overflow: hidden;
    box-shadow: inset 0 0 60px 0 rgba(100, 100, 100, 0.7);
    border: 1px solid rgba(209, 213, 219, 0.03);
    position: relative;
    border-radius: 10px;
    backdrop-filter: blur(3px) saturate(80%);
    -webkit-backdrop-filter: blur(3px) saturate(80%);
    -moz-backdrop-filter: blur(3px) saturate(80%);
    -o-backdrop-filter: blur(3px) saturate(80%);
    transition: 1s ease-in-out;
}


.container:hover {
backdrop-filter: blur(1px);
-webkit-backdrop-filter: blur(1px);
-moz-backdrop-filter: blur(1px);
-o-backdrop-filter: blur(1px);
transition: 1s ease-in-out;
}


.text {
    font-size:1.5em;
    display: block;
    margin: auto;
    padding: .5em;
    animation-name: scroll;
    animation-duration: 120s;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
    transition: 1s ease-in-out;
    text-shadow: 0 0 2px rgba(255, 255, 255, 0.5);
}


.textkolofon {
    margin: auto;
    padding: .5em;
    text-shadow: 0 0 2px rgba(255, 255, 255, 0.5);
    transition: 1s ease-in-out;
    animation-name: scroll;
    animation-duration: 90s;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
    font-size:1em;
}


@keyframes scroll {
    0% {
        transform: translateY(60vh);
    }

    100% {
        transform: translateY(-100%);
    }
}

.artist {
    margin-top: .25em;
    font-size: 2em;
    text-align: center;
    width: 100%;
    line-height: 1.2em;
    text-shadow: 0 0 3px rgba(255, 255, 255, 0.5);
    transition: 1s ease-in-out;
    font-family: "Panama", serif;
}

.author {
    margin-top: .25em;
    font-size: 1em;
    text-align: center;
    width: 100%;
    line-height: 1.2em;
    font-family: "Panama", serif;
}

.heading {
    margin-top:0.25em;
    font-size: 2em;
    text-align: center;
    width: 100%;
    line-height: 0.9em;
}

.title, .titlerussian {
    font-size: 7em;
    line-height: 0.8em;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
    transition: 1s ease-in-out;
    overflow-wrap: break-word;
    text-align: center;
    width: 97%;
    margin-right:1.5%;
    margin-left:1.5%;
}

.subtitle {
    font-size: 2em;
    text-align: center;
    width: 100%;
    line-height: 1.2em;
    text-shadow: 0 0 3px rgba(255, 255, 255, 0.5);
    transition: 1s ease-in-out;
}


.lang-select {
    text-align: center;
    font-family: "InaiMathi", sans-serif;
    line-height: 1.4em;
    transition: 1s ease-in-out;
    font-size:1.6em;
    text-shadow: 0 0 3px rgba(255, 255, 255, 0.5);
}

#title {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
}

img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 80%;
    transition: 1.5s ease-in-out;
    z-index:-1;
}
img:hover {
    opacity: 100%;
    transition: 1.5s ease-in-out;
}

.container:hover > .pildiallkiri {
    opacity:40%;
    color:white;
    text-shadow: 0 0 0px rgba(255, 255, 255, 0.5);
}

.pildiallkiri{
    font-family: "InaiMathi", sans-serif;
    opacity:8%;
    text-shadow: 0 0 2px rgba(255, 255, 255, 0.5);
    font-size:1em;
    z-index:1;
    width: 90%;
    padding:5%;
    position:absolute;
    bottom:0;
    text-align: center;
    transition: 1s ease-in-out;
}

.tekstiallkiri{
    font-family: "InaiMathi", sans-serif;
    font-size:0.8em;
    text-align: center;
    line-height:1.2em;
}

.poetry {
    font-family: "Panama", serif;
    line-height: 1.4em;
}

.poetry i{
    font-family:"Panama Italic", serif;
}

.container:hover > .text{
    text-shadow: 0 0 0px rgba(255, 255, 255, 0.5);
}
.container:hover > .textkolofon{
    text-shadow: 0 0 0px rgba(255, 255, 255, 0.5);
}
.container:hover > .lang-select{
    text-shadow: 0 0 0px rgba(255, 255, 255, 0.5);
}

.container:hover > .title{
    text-shadow: 0 0 2px rgba(255, 255, 255, 0.5);
}

.container:hover > .subtitle{
    text-shadow: 0 0 0px rgba(255, 255, 255, 0.5);
}

.container:hover > .artist{
    text-shadow: 0 0 0px rgba(255, 255, 255, 0.5);
}


a:hover {
    text-decoration: underline;
    color: rgba(255, 255, 255, 0.5);
}

.no-touch{
    animation-play-state:running;
}

.no-touch:hover,
.no-touch:focus,
.touch.over {
    text-shadow: 0 0 0px rgba(255, 255, 255, 0.5);
}

.plaintext{
    margin-left:28%;
    margin-right:28%;
    padding: 20px;
    color:rgb(26, 35, 36);
    line-height:1.4em;
    font-size:1.5em;
}

p::-moz-selection {text-shadow: 0 0 3px rgba(26, 35, 36, 0.5) }
p::selection {text-shadow: 0 0 3px rgba(26, 35, 36, 0.5)}

.plaintext a{
    color:inherit;
    transition:none;
    text-decoration:underline;
}

.plaintext a:hover{
    color:inherit;
    transition:none;
    text-decoration:none;
}

@media only screen and (max-width: 2000px) {
    .text{
        font-size:1em;
    }
    .title{
        font-size:5em;
    }
    .titlerussian{
        font-size:3.7em;
    }
    .subtitle{
        font-size:1em;
    }
    .artist{
        font-size:1em;
    }
    .lang-select{
        font-size: 1em;
    }
    .pildiallkiri, .tekstiallkiri {
        font-size: .7em;
    }
    .textkolofon{
        font-size: .85em;
    }
    .plaintext{
        font-size:1em;
    }

}

@media only screen and (max-width: 1080px) {
    .grid {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr 1fr;
    }

    body {
        background-repeat: no-repeat;
        background-position: center;
        background-attachment: fixed;
        background-size: auto 100vh;
    }

    .background{
        background: url("images/katkine-aken-taust.jpg") left center no-repeat;
        -webkit-background-size: cover;
        -moz-background-size: cover;
        -o-background-size: cover;
        background-size: cover;    
    }
    .plaintext{
        margin-left:15%;
        margin-right:15%;
    }
    .titlerussian{
        font-size:3em;
    }


}

@media only screen and (max-width: 840px) {
    .grid {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
    }


}

@media only screen and (max-width: 640px) {
    .grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .container {
        height: 90vh;
    }

    .plaintext{
        margin-left:0;
        margin-right:0;
    }

    .titlerussian{
        font-size:5em;
    }

    @keyframes scroll {
        0% {
            transform: translateY(90vh);
        }

        100% {
            transform: translateY(-100%);
        }
    }
}

@media only screen and (max-width: 480px) {
    .grid {
        display: grid;
        grid-template-columns: 1fr;
    }
    .text{
        font-size:1.3em;
    }
    .title{
        font-size:6em;
    }
    .artist, .subtitle, .lang-select{
        font-size: 1.3em;
    }
    .pildiallkiri, .tekstiallkiri{
        font-size:1em;
    }
    .textkolofon{
        font-size: 1em;
    }
    .titlerussian{
        font-size:5.2em;
    }


}

@media only screen and (max-width: 320px) {
    .grid {
        display: grid;
        grid-template-columns: 1fr;
    }
    .text{
        font-size:1em;
    }
    .title{
        font-size:4.5em;
    }
    .titlerussian{
        font-size:4.2em;
    }
    .artist{
        font-size:1.5em;
    }
    .lang-select{
        font-size: 1em;
    }
    .pildiallkiri, .tekstiallkiri, .textkolofon{
        font-size:.8em;
    }

}