@charset "UTF-8";

@font-face {
    font-family: josefinsans;
    src: url(josefinsans.ttf);
}

body {
    font-family: josefinsans;
    font-size: 16px;
    background-color: #333333;
    color: #222222;
}

h1, h2, h3, h4 {
    font-family: josefinsans;
}

h1 {
    margin-bottom: 0.1em;
    font-size: 2em;
    font-weight: 700;
}

h2 {
    margin-top: 2em;
}

.center {
    text-align: center;
    width: 100%;
}

.kuvaus {
    font-size: 1.2em;
    font-weight: 500;
    margin: 2em 0;
}

.full {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.wrapper {
    max-width: 600px;
    text-align: center;
    padding: 1.5em 2.5em;
    box-sizing: border-box;
    background-color: #ecdac5;
    box-shadow: 0 5px 30px #111111;
    border-radius: 1em;
    margin: 2em 0;
}

.ohje {
    text-align: left;
}

.katko {
    text-transform: capitalize;
}

@keyframes float {
	0% {
		transform: translatey(0px) rotate(0deg);
	}
	25% {
		transform: translatey(-10px) rotate(-10deg);
	}
    50% {
		transform: translatey(-20px) rotate(0deg);
	}
    75% {
		transform: translatey(-10px) rotate(10deg);
	}
	100% {
		transform: translatey(0px) rotate(0deg);
	}
}

.aarrekuva {
    max-height: 50vh;
    display: block;
    margin-left: auto;
    margin-right: auto;
    padding: 2em;
    box-sizing: border-box;

	transform: translatey(0px);
	animation: float 6s ease-in-out infinite;
}

.kokoelma-aarre {
    display: flex;
    width: 100%;
    border: 3px dashed #654f36;
    border-radius: 1em;
    padding: 1em;
    box-sizing: border-box;
    margin: 1em 0 1em 0;
    text-align: left;
    font-size: 0.9em;
}

.kokoelma-aarre h2 {
    margin-top: 0.25em;
}

.kokoelma-aarre img {
    width: 25%;
    flex-basis: 25%;
}

.kokoelma-aarre div {
    width: 75%;
    flex-basis: 75%;
    padding-left: 1em;
}

.button {
    display: inline-block;
    color: #fff;
    background-color: #E83F3E;
    border-bottom: 5px solid #bc3333;
    border-radius: 1em;
    padding: 0.75em 1em;
    text-decoration: none;
    text-transform: uppercase;
    font-family: sans-serif;
    font-weight: bold;
    margin-left: 0.5em;
    font-size: 0.8em;
}

.button:hover {
    background-color: #f94545;
    
}