@font-face {
    font-family: futura;
    src: url("Fontit/TitilliumWeb-Regular.ttf");
}

body {
    margin: 0;
    padding: 0;
    background-color: black;
    font-family: futura;
}

#container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin: 0.2em auto;
    width: 98%;
    background-image: url("Kuvat/RaiMobBG.png");
    background-position: center;
    background-size: cover;
}

#cont1 {
    width: 98%;
    margin-top: 0.5em;
    
}

.teksti, .teksti2 {
    width: 81%;
    font-size: 93%;
    margin-top: 3.5em;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    background-color: rgba(0,0,0,0.21);
    padding: 12px;
    color: white;
}

.teksti {
    font-weight: bold;
    font-size: 115%;
}

.teksti2 {
    text-align: left;
}

#mobileheaderimg {
    display: block;
    width: 94%;
    height: 94%;
    margin: 0 auto;
    position: sticky;
    top: 0;
}

#headerimg {
    display: none;
    width: 95%;
    height: 95%;
    margin: 0 auto;
    position: sticky;
    top: 0;
}

#raitimg {
    width: 60%;
    height: 60%;
    display: block;
    margin: 5em auto;
}

#signimg {
    width: 55%;
    height: 55%;
    display: block;
    margin: 2em auto;
    margin-left: 1.5em;
}

#linkcont {
    width: 94%;
    margin: 2em auto;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

#somelogokuvafise {
    width: 80%;
    height: 80%;
    margin: auto;
    display: block;
}

#somelogokuvaIG {
    width: 80%;
    height: 80%;
    margin: auto;
    display: block;
}

#footerimg {
    display: block;
    margin: 0 auto;
    width: 99%;
    height: 99%;
}

@media (min-width: 430px) {
    
    p {
        padding: 0;
    }
    
    .teksti {
        font-size: 115%;
        width: 72%;
        margin-top: 2em;
        padding: 1em 2.4em;
    }
    
    #container {
        background-image: url("Kuvat/RaiBCKG.png");
    }
    
    #headerimg {
        display: block;
    }
    
    #mobileheaderimg {
        display: none;
    }
    
}

@media (min-width: 920px) {
    
    #cont1 {
        margin-top: 0;
        height: 1800px;
    }
    
    #container {
        background-position: right;
    }
    
    .teksti, .teksti2 {
        width: 77%;
        margin-top: 4em;
        margin-bottom: 1em;
        margin-right: auto;
        margin-left: auto;
        font-size: 154%;
        background-color: rgba(0,0,0,0.01);
    }
    
    .teksti {
        font-size: 199%;
    }
    
    #raitimg {
        display: block;
        width: 700px;
        height: 212px;
        margin-top: 7em;
    }
    
    #headerimg {
        width: 900px;
        height: 87px;
    }
    
    #signimg {
        width: 400px;
        height: 110px;
        margin-left: 12em;
        margin-top: 3em;
    }
    
    #linkcont {
        justify-content: space-around;
        margin-top: 5em;
    }
    
    #somelogokuvafise {
        width: 155px;
        height: 60px;
    }
    
    #somelogokuvaIG {
        width: 650px;
        height: 80px;
    }
    
    #footerimg {
        width: 900px;
        height: 87px;
    }
    
}

@media (min-width: 1410px) {
    #headerimg {
        width: 1400px;
        height: 135px;
    }
    
    #footerimg {
        width: 1400px;
        height: 136px;
    }
}

@media (min-width: 1610px) {
    
    .teksti2 {
        font-size: 169%;
        margin-top: 5em;
    }
    
    .teksti {
        font-size: 230%;
    }
    
    #container {
        width: 96%;
        background-position: center;
    }
    
}

@media (min-width: 2110px) {
    
    #headerimg {
        width: 2100px;
        height: 202px;
    }
    
    #footerimg {
        width: 2100px;
        height: 200px;
    }
    
    #signimg {
        margin-left: 26em;
    }
    
}





