@font-face {
    font-family: leipis;
    src: url(../reseptit/fontit/Sansation-Regular.ttf);
}

@font-face {
    font-family: leipis;
    src: url(../reseptit/fontit/Sansation-Italic.ttf);
    font-style: italic;
}

@font-face {
    font-family: leipis;
    src: url(../reseptit/fontit/Sansation-Bold.ttf);
    font-weight: bold;
}

header,nav,footer {
    text-align: center;
    padding: 6.7px;
}

header {
color: rgb(255, 205, 247);
background-color: rgb(255, 0, 200);
}

h1 {
    font-size: 50px;
    margin: 0;
}

nav{
color: rgb(255, 0, 200);
background-color: rgb(255, 205, 247);
text-align: left;
}

a {
    color: rgb(255, 0, 200);
}

nav ul {
    columns: 3;
}

nav ul li {
    margin-bottom: 0.5em;
}

footer {
    background-color: rgb(73, 0, 61);
    color: aliceblue;
    margin: 0;
}

body {
    font-family: leipis, sans-serif;
    background-color: rgb(171, 171, 255);
    margin: 0;
    background-image: url(kalakukko.jpg);
}

.container {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    background-color: rgb(248, 250, 250);
}

main {
    padding: 10px 50px;
}

td {
    vertical-align: top;
}

td:first-child {
    text-align: right;
    padding-right: 0.5em;
}

table h2 {
    font-weight: normal;
    text-align: left;
    margin-top: 1em;
    margin-bottom: 0;
    font-style: italic;
}

table h4 {
    font-weight: normal;
    margin: 0;
    margin-top: 1.5em;
    margin-bottom: 0;
    text-align: left;
    font-style: italic;
}

table tr:first-child h4 {
margin-top: 0;
}


ol li {
    margin-bottom: 1em;
}

ol {
    padding-left: 1em;
}

#alkuun {
    color: rgb(255, 0, 200);
background-color: rgb(255, 205, 247);
text-decoration: none;
padding: 0.3em 0.6em;
border-radius: 50px;
position: fixed;
right: -200px;
bottom: 20px;
transition: all 1s;
}

.rullattu #alkuun {
    right: 20px;
}

@media (max-width: 550px){
    main {
        padding: 10px 0.75em;
}
    ol {
    list-style-position: inside;
    padding: 0;
}
}