@font-face {
    font-family: teksti;
    src: url(Lato-Regular.ttf);
}

@font-face {
    font-family: teksti;
    src: url(Lato-Italic.ttf);
    font-style: italic;
}


.container {
    max-width: 800px;
    margin: auto;
}

body {
    font-family: teksti, serif;
    background-image: url(taustakuva.jpg);
    margin: 0;
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
}

main {
    background-color: rgba(252, 232, 191, 0.932);
    padding: 15px 9%;
}

nav {
    background-color: rgba(250, 204, 112, 0.89);
    padding: 15px 9%;
}

nav a {
    color: rgb(128, 12, 12);
}

nav a:hover {
    text-decoration: none;
}

nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    columns: 2 200px;
}




header {
    background-color: rgba(216, 158, 43, 0.89);
    padding: 15px;
    text-align: center;
}

h1 {
    margin: 0;
    font-size: 50px;
    color: aliceblue;
}

h2 {
    color: rgb(105, 14, 14);
}

h3 {}

h4 {
    text-align: left;
    font-size: 1em;
    font-weight: normal;
    font-style: italic;
    margin-top: 1em;
    margin-bottom: 0;
}

table {}

td:first-child {
    text-align: right;
    padding-right: 8px;
    white-space: nowrap;
}

td {
    vertical-align: top;
}

ol {
    margin-left: 0;
    padding-left: 1em;
}

li {
    margin-bottom: 0.5em;
}

hr {}


#alkuun {
    background-color: rgb(19, 145, 67);
    position: fixed;
    right: -100px;
    bottom: 25px;
    padding: 5px 10px;
    border-radius: 10px;
    transition: right 0.4s ease;
}

#alkuun a {
    color: aliceblue;
    text-decoration: none;
}



@media (min-width: 800px) {
    #alkuun {display: none;
    }
}

@media (max-width: 500px) {
    h1 {
        font-size: 60px;
    }
    .rullattu #alkuun {
        right: 25px;
    }
}