@import url('https://fonts.googleapis.com/css2?family=Sniglet:wght@400;800&display=swap');

@import url('https://fonts.googleapis.com/css2?family=Mr+Bedfort&display=swap');
body {
    font-family: "Sniglet", system-ui;
  font-weight: 400;
  font-style: normal;

    /*font-family: "Sniglet", system-ui;
  font-weight: 800;
  font-style: normal;*/
  background-image: url(uudempi_tausta_2.jpg);
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
  color: white;
}

h1{
 text-shadow: 0px 0px 40px rgb(49, 49, 49);
 margin: 0;
 font-size: 60px;
  font-family: "Mr Bedfort", cursive;
  font-weight: 400;
  font-style: normal;
}

h2 {
 text-shadow: 0px 0px 40px rgb(49, 49, 49);
 color: rgb(255, 255, 255);
 
}

h3{
 text-shadow: 0px 0px 40px rgb(49, 49, 49);
 color: rgb(255, 255, 255);

}

h4{
    text-align: left;
    font-size: 1em;
    font-weight: normal;
    font-style: italic;
    margin-top: 0.5em;
    margin-bottom: 0;
    text-shadow: 0px 0px 60px rgb(27, 27, 27);
}

table {

}

td:first-child {
    text-align: right;
    padding-right: 10px;
    white-space: nowrap; /* pitää tarvittavan tekstin samalla rivillä*/
}

td {
    vertical-align: top; /*Tekee tekstirivit siistiksi pienessä tilassa */
}

ol {
    margin-left: 0;
    padding-left: 1em;
}

li {
    margin-bottom: 9px;
}

hr {
 color: rgb(88, 59, 40);
}

header {
background-color: rgb(59, 41, 29);
text-align: center;
padding: 60px;
}

nav {
padding: 20px;
color: rgb(255, 255, 255);
}

body a {
    color: rgb(255, 255, 255);
}

nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    columns: 2 200px;
}

body a:hover {
    text-decoration: none;
}

footer {
    background-color: rgb(255, 255, 255);
    color: hsla(0, 0%, 100%, 0.678);
    text-align: center;
    padding: 20px;
}

.container{
    background-color: rgba(61, 47, 35, 0.945);
    max-width: 600px;
    margin: auto;
    padding: 20px;
}

main {
    padding: 80px 5%;
}

#alkuun {
    background-color: rgb(85, 68, 54);
    position: fixed;
    right: -100px;
    bottom: 20px;
    padding: 5px;
    border-radius: 10px;
    transition: right 0.5s ease;
}

#alkuun a {
    color: rgb(255, 255, 255);
    text-decoration: none;
}

@media (min-width: 600px) {
    #alkuun {display: none;}
}

@media (max-width: 600px) {
    h1 {font-size: 60px;}
}

.rullattu #alkuun {
    right: 20px;
}