/*! normalize.css  */

button,hr,input{overflow:visible}progress,sub,sup{vertical-align:baseline}[type=checkbox],[type=radio],legend{box-sizing:border-box;padding:0}html{line-height:1.15;-webkit-text-size-adjust:100%}body{margin:0}h1{font-size:2em;margin:.67em 0}hr{box-sizing:content-box;height:0}code,kbd,pre,samp{font-family:monospace,monospace;font-size:1em}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted}b,strong{font-weight:bolder}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring,button:-moz-focusring{outline:ButtonText dotted 1px}fieldset{padding:.35em .75em .625em}legend{color:inherit;display:table;max-width:100%;white-space:normal}textarea{overflow:auto}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details{display:block}summary{display:list-item}[hidden],template{display:none}

/*--------------------- PAGE STRUCTURE ---------------------------------------------*/

:root {
  --step--2: clamp(0.6944rem, 0.6859rem + 0.0379vw, 0.72rem);
  --step--1: clamp(0.9167rem, 0.8922rem + 0.1087vw, 0.99rem);
  --step-0: clamp(1.05rem, 1.0062rem + 0.1945vw, 1.1813rem);
  --step-1: clamp(1.32rem, 1.2444rem + 0.3362vw, 1.5469rem);
  --step-2: clamp(1.368rem, 1.2674rem + 0.4473vw, 1.669rem);
  --step-3: clamp(1.728rem, 1.5716rem + 0.6952vw, 2.1973rem);
  --step-4: clamp(2.0736rem, 1.8493rem + 0.997vw, 2.7466rem);
  --step-5: clamp(2.4883rem, 2.1734rem + 1.3999vw, 3.4332rem);
}

body {
	background: url(../img/bgr/body-bgr.jpg);	
}

.wrapper {
	max-width: 1440px;
	margin: 0 auto;
}

header {
	text-align: center;
}

main {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
}

section {
	max-width: 600px;
	margin-bottom: 1.5em;
}

section.palladium-esittely, section.tulossa {
	margin-right: 4.5vw;
	margin-left: 17px;
}

section.kirja-info {
	margin: 0 auto;
}

section.kirja-info .text-wrap {
	margin-left: 1vw;
	margin-right: 1vw;
}

section.kirjankansi {
	margin: 0 auto;
	text-align: center;
}

section.kirjankansi img {
	margin-left: 1vw;
	margin-right: 1vw;
}

section.kirjailijaesittely {
	margin-right: 1vw;
	margin-left: 20px;
}

section .text-wrap {
	border-radius: 1px 1px 8px 8px;
	box-shadow: 1px 1px 2px 0 rgba(0, 0, 0, 0.2);
	background: url(../img/bgr/reika.png) no-repeat 1% 2%, url(../img/bgr/reika.png) no-repeat 99% 2%, url(../img/bgr/text-wrap-bgr.jpg);
}

section.palladium-esittely .text-wrap, section.kirjailijaesittely .text-wrap  {
	display: flex;
	justify-content: flex-end; 
}

section.palladium-esittely .text-wrap p, section.kirjailijaesittely .text-wrap p {
	max-width: 60%;
}

section.palladium-esittely img {
	margin-bottom: -229px;
	margin-left: -18px;
	position: relative;
	z-index: 2;
}

section.kirjailijaesittely img {
	margin-bottom: -228px;
	margin-left: -17px;
	position: relative;
	z-index: 2;
}

section.uusimmat .kirja-wrap, section.tulossa .kirja-wrap, section.kirjaluettelo .kirja-wrap {
	display: flex;
	flex-wrap: wrap;
	gap: 1vw;
	justify-content: center;
}

#runous-sivu main section.last::after {
  	content: "";
  	display: block;
  	width: 103px;
  	height: 150px;
  	margin: 0 auto;
  	background-image: url("../img/miekkakirja.png");
  	background-size: contain;
 	background-repeat: no-repeat;
}

#tietokirjat-sivu main section.last::after {
  	content: "";
  	display: block;
  	width: 152px;
  	height: 150px;
  	margin: 0 auto;
  	background-image: url("../img/tietokirjat-deco.png");
  	background-size: contain;
  	background-repeat: no-repeat;
}

#palladium-sivu section.content p:last-of-type::after {
  	content: url("../img/painokone.png");
  	width: 134px;
  	height: 150px;
  	display: block;
  	margin: 0 auto;
}

.kirja-box {
	max-width: 160px;
}

section.kauppa {
	margin-left: 1vw;
	margin-right: 1vw;
	margin-top: -.8em;
	transition: all .3s;
}

section.kauppa:hover {
	transform: rotate(2.5deg);
}

section.kirjaluettelo {
	max-width: 1200px;
	flex-basis: 100%;
}

#sivu section.kirjaluettelo {
	max-width: 1440px;
}

.kirjasivun-kirjanavi  {
	display: flex;
	justify-content: center;
}

footer {
	background: url(../img/bgr/footer-bgr.png) repeat-x left top;
	width: 100%;
	display: flex;
	flex-wrap: wrap;
	gap: 1vw;
	justify-content: center;
	margin-top: 3px;
	padding-top: 11px;
}

footer .footer-logo {
	margin-top: 10px;
	margin-left: 10px;
	max-height: 116px;
}

footer .maili::after {
  	content: "";
  	display: block;
  	width: 129px;
  	height: 203px;
  	margin: 0 auto;
  	background-image: url("../img/trickster-kala.png");
  	background-repeat: no-repeat;
  	background-position: center;
  	background-size: contain;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  border: 0;
  white-space: nowrap;
}

/*------- #sivu --------*/

#sivu main {
	display: block;
	margin: 0 auto;
}

#sivu section.content {
	max-width: 80ch;
	margin: 0 auto;
	padding: 0 1rem;
}

#sivu section.kauppa {
	margin: 0 auto;
	margin-top: -50px;
}

/*--------------------- TEXT STYLES ---------------------------------------------*/

@font-face {
  font-family: 'Impact Label';
  src: url('../fonts/Impact-Label.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

header h1 {
	margin-right: 1vw;
	margin-left: 1vw;
}

h1, h2, h3, h4 {
	font-family: "Special Elite", monospace;
	font-weight: 400;
	color: #db231a;
}

header h2 {
	font-weight: 400;
 	font-size: var(--step-0);
	color: #dc2222;
	margin-top: -15px;
	margin-right: 1vw;
	margin-left: 1vw;
}

.content h2, h2.kirjaluettelo-otsikko {
	font-size: var(--step-1);
	text-align: center;
	margin-bottom: 0;
}

h2.kirjaluettelo-otsikko {
	margin-bottom: 1em;
}

.content h2::before, h2.kirjaluettelo-otsikko::before  {
  	content: "";
  	display: inline-block;
  	width: 94px;
  	height: 38px;
  	background-image: url("../img/bgr/kasi-vasen.png");
  	background-size: contain;
  	background-repeat: no-repeat;
}

.content h2::after, h2.kirjaluettelo-otsikko::after {
  	content: "";
  	display: inline-block;
  	width: 94px;
  	height: 38px;
  	background-image: url("../img/bgr/kasi-oikea.png");
  	background-size: contain;
  	background-repeat: no-repeat;
}

section h1 {
 	font-size: var(--step-2);
	margin-bottom: -2px;
}

section.palladium-esittely h1, section.tulossa h1, section.kirjailijaesittely h1 {
	text-align: right;
}

section.palladium-esittely h1::before, section.tulossa h1::before, section.kirjailijaesittely h1::before {
	content: ". . . . . . . . . . . . . . . . . . . . . . . . . . . ";
	position: relative;
	font-size:14px; 
	z-index: 1;
}

section.tulossa h1::before {
	content: ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .";
}

section.uusimmat h1, section.kirjailijaesittely h1 {
	color: #000;
}

section.kirjailijaesittely h1::before {
	content: " . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .";
}

section.uusimmat h1::after {
	content: " . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .";
	position: relative;
	font-size:14px; 
	z-index: 1;
}

section.content h1, h1.kirjaotsikko  {
	font-size: var(--step-3);
	margin-top: 2rem;
	text-align: center;
}

section.content h1::before, h1.kirjaotsikko::before {
	content: ". . . . . . ";
	font-size:14px; 
}

section.content h1::after, h1.kirjaotsikko::after {
	content: " . . . . . .";
	font-size:14px; 
}

.kirja-box h2, .kirja-box p {
	font-size: var(--step--1);
	text-align: center;
}

.kirja-box p {
	margin-top: 6px;
	margin-bottom: -6px;
}

p, ul {
	font-family: "Special Elite", monospace;
	font-size: var(--step-0);
	color: #000;
}

ul li {
	list-style: none;
}

section .text-wrap p, section .text-wrap ul {
	position: relative;
	z-index: 3;
	padding-right: .5vw;
	padding-top: 4px;
}

section .text-wrap ul {
	padding-right: .5vw;
	padding-top: 24px;
	line-height: 1.5em;
}

.kirja-info ul li em {
	color: #dc2222;
	font-style: normal;
}

.kirja-info p {
	padding: 1.5em;
}

footer .maili p {
	color: #dc2222; 
}

figcaption {
	font-family: "Special Elite", monospace;
	font-size: var(--step--1);
}

p.center {
	text-align: center;
}

/*--------------------- NAV.MAIN & LINK STYLES ---------------------------------------------*/

nav.main ul {
	list-style: none;
	line-height: 1.5;
	margin-left: -31px;
}

nav.main ul li {
	display: inline-block;
	font-size: 25px;
	margin-right: 1.05vw;
	transition: transform 0.2s ease;
}

footer nav.main ul li {
	font-size: 22px;
}

nav.main ul li:first-child {
	transform: rotate(-2.5deg);
}

nav.main ul li:nth-child(3){
	transform: rotate(-1.5deg);
}

nav.main ul li:nth-child(4){
	transform: rotate(1.9deg);
}

nav.main ul li:hover{
	transform: rotate(0deg);
}

nav.main a:link, nav.main a:visited {
	font-family: 'Impact Label', monospace;
	color: #000;
	text-decoration: none;
	display: inline-block;
	filter: drop-shadow(0px 0px 2px #fff);
	transition: all .3s;
}

nav.main a:hover {
	color: #CF2526;
}

nav.main a.holvi {
	color: #CF2526;
}

nav.main a.holvi:hover {
	color: #000;
}

nav.main a.facebook {
	color: #1877F2;
}

nav.main a.facebook:hover {
	color: #000;
}

a.special, a.special:visited{
	font-family: 'Impact Label', monospace;
	color: #CF2526;
	font-size: 22px;
	text-decoration: none;
	display: inline-block;
	padding-bottom: 10px;
	transform: rotate(-1.5deg);
	filter: drop-shadow(0px 0px 2px #fff);
}

a.special:hover{
	color: #000;
}

p a:link, p a:visited, li a:link, li a:visited {
	color: #db231a;
	text-decoration: none;
	transition: all .3s;
}

p a:hover, li a:hover {
	color: #093;
}

.kirja-wrap a {
	text-decoration: none;
}

/*--------------------- IMAGE STYLES ---------------------------------------------*/

img {
	max-width: 100%;
	height: auto;
}

header h1 img {
	margin-top: -15px;
}

.kirja-box img {
	box-shadow: 1px 1px 2px 0 rgba(0, 0, 0, 0.3);
	transition: all .3s;
}

.kirja-box img:hover {
	box-shadow: 1px 1px 2px 0 rgba(0, 0, 0, 0.6);
	filter: sepia(100%);
}

section.content figure {
	text-align: center;
}

section.content img {
	border: 7px solid #fff;
    transform: rotate(.6deg);
    box-shadow: 1px 2px 4px 0 rgba(0, 0, 0, 0.25);
	border-radius: 2px;
}

section.kirjankansi img {
    box-shadow: 1px 2px 4px 0 rgba(0, 0, 0, 0.25);
	border-radius: 2px;
	transform: rotate(-.5deg);
}

section.content img.kirjailijakuva {
	margin-right: 1.5vw;
	border: 5px solid #fff;
    box-shadow: 1px 1px 2px 0 rgba(0, 0, 0, 0.2);
	border-radius: 50%;
	float: left;
	width: 150px;
	height: 150px;
	shape-outside: circle();
}

/*---------------------  SIVUJEN VAIHTUMISEN ANIMAATIO  ---------------------------------------------*/

.fade-in {
  	opacity: 0;
  	animation: fadeIn 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px); /* pieni liike alhaalta ylös */
}
  to {
    opacity: 1;
    transform: translateY(0);
}
}

/*---------------------  MEDIAQUORIES  ---------------------------------------------*/

/* 1190px or less */

@media screen and (max-width:1190px)  {

footer {
	justify-content: center;
}

footer nav.main ul {
	text-align: center;
}

footer .maili {
	margin-top: -40px;
}
}

/* 1065px or less */

@media screen and (max-width:1065px)  {

section {
	margin-bottom: .5em;
}
}

/* 940px or less */

@media screen and (max-width:940px)  {

footer .maili {
	margin-top: -28px;
}

img.footer-logo {
    width: 190px;
    height: auto;
}

nav.main ul li {
  font-size: 22px;
}
}

/* 620px or less */

@media screen and (max-width:620px)  {
	
section h1 {
	margin-bottom: .5em;
}	
	
section.palladium-esittely h1::before {
	content: "";
}

section.palladium-esittely h1{
	display: none;
}

section.tulossa h1::before {
	content: "";
}

section.tulossa h1::after {
	content: ":";
}

section.kirjailijaesittely h1::before {
	content: "";
}

section.uusimmat h1::after {
	content: ":";
	font-size: 20px;
}

section.tulossa h1, section.uusimmat h1 {
	text-align: center;
}

section.palladium-esittely {
	margin-right: 1vw;
	margin-left: 17px;
}

section.kirjailijaesittely .text-wrap p {
  max-width: 55%;
  padding-top: 5px;
}

header h1 img {
  	width: 230px;
  	height: auto;
}

img.footer-logo {
    width: 160px;
    height: auto;
}

section.kirjailijaesittely h1 {
	font-size: 21px;
	margin-bottom: .2em;
	margin-right: 1.5vw;
}

.content h2 {
	text-align: left;
}

.content h2::before, h2.kirjaluettelo-otsikko::before {
	background-image: url("../img/bgr/kasi-vasen-pieni.png");
	width: 76px;
	height: 31px;
}

.content h2::after, h2.kirjaluettelo-otsikko::after {
	background-image:none;
}

/* 540px or less */

@media screen and (max-width:540px)  {

section.palladium-esittely .text-wrap p {
  	max-width: 55%;
}

section.kirjailijaesittely .text-wrap p {
    max-width: 50%;
}

section.content h1::before, h1.kirjaotsikko::before {
	content: "";
}

section.content h1::after, h1.kirjaotsikko::after {
	content: "";
}

section.content img {
	border: 6px solid #fff;
}

#sivu section.kauppa {
	display: none;
}
}

/* 460px or less */

@media screen and (max-width:460px)  {

section.palladium-esittely .text-wrap p {
  max-width: 50%;
}

section.kirjailijaesittely .text-wrap p {
    max-width: 48%;
}

nav.main {
  	margin-top: -10px;
}

nav.main ul li, footer nav.main ul li {
    font-size: 20px;
}

header h1 img {
    width: 200px;
    height: auto;
}
}

/* 414px or less */

@media screen and (max-width:414px)  {

section.palladium-esittely img {
  margin-bottom: -170px;
}

.content h2::after, h2.kirjaluettelo-otsikko::after {
  width: 0;
  height: 0;
}
}

/* 400px or less */

@media screen and (max-width:400px)  {

section.palladium-esittely .text-wrap p {
  padding-top: 9px;
}

section.kirjankansi img {
	transform: rotate(0);
}
}

/* 340px or less */

@media screen and (max-width:340px)  {

section.content img.kirjailijakuva {
  	float: none;
  	margin: 1em 1em 0 1em;;
}
}