@import url('https://fonts.googleapis.com/css2?family=Gravitas+One&family=Mea+Culpa&family=Roboto+Serif:ital,opsz,wght@0,8..144,100..900;1,8..144,100..900&display=swap');

@font-face {
  font-family: Hanora; /* set name */
  src: url(Hanora.otf); /* url of the font */
font-weight:400;
}


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
background-image: linear-gradient(to bottom right, #efe6d6, #E0D0B1);
    font-family: "Roboto Serif", serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.8em;
    color: #5d5654;
    text-shadow: none;
text-align:justify;
}

a:link, a:active, a:visited { color: #404D40; }
a:hover { color: #718871; }

/* LAYOUT */
.layout {
  display: flex;
  min-height: 100vh;
}

/* SIDEBAR */
.sidebar {
  width: 320px;
  padding: 30px 20px;
  color: #eee;
border-right: solid #23362D 1px;

  background: url("k/nav.jpg");
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

.sidebar-image { color: #333333; }

.logo h1 {
  font-family: 'Playfair Display', serif;
}

.logo span {
  font-size: 12px;
  letter-spacing: 2px;
}

nav ul {
  list-style: none;
  margin-top: 20px;
}

nav li {
  padding: 15px 15px 10px 25px;
  border-radius: 6px;
  margin-bottom: 6px;
  cursor: pointer;
  transition: 0.3s;
  position: relative;
}

nav li i { font-style:normal; float:right; color: rgb(255,0,0,0) }
nav li:hover i { font-style:normal; float:right; color: #FFFFFF; }

nav li a:link, nav li a:active, nav li a:visited {
font-family: Gravitas One;
text-transform:uppercase;
color: #FFFFFF;
text-decoration:none;
font-size: 18px;
letter-spacing: 2px;
font-weight:400;
}

nav li a:hover { color: #FFFFFF; }

nav li:hover {
background:
    linear-gradient(rgba(91,132,111,0.95), rgba(50,71,61,0.95));
  color: #404D40;
  transform: translateX(5px);
}



/* MAIN */

.main { width: 90%; max-width: 1200px; padding: 20px 30px; }

/* CONTENT */
.content {
  display: flex;
  gap: 40px;
}

/* POLAROID STYLE */
.polaroid {
  background: #f7f2e7;
  padding: 10px;
  border: 1px solid #ddd;

  box-shadow: 0 8px 20px rgba(0,0,0,0.25);

  transform: rotate(-1deg);
}

.polaroid img {
  width: 100%;
  display: block;
}

.polaroid p {
  font-size: 13px;
  text-align: center;
  margin-top: 8px;
  font-style: italic;
}

/* PIN (circle tack) */
.pinned::before {
  content: "";
  width: 14px;
  height: 14px;
  background: radial-gradient(circle at 30% 30%, #7C927C, #293229);
  border-radius: 50%;

  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);

  box-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* TAPE EFFECT */
.taped {
  position: relative;
}

.taped::before,
.taped::after {
  content: "";
  position: absolute;
  width: 60px;
  height: 20px;
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(2px);

  transform: rotate(-8deg);
  top: -10px;
}

.taped::before {
  left: 20px;
}

.taped::after {
  right: 20px;
  transform: rotate(8deg);
}

/* IMAGE STYLES */
.hero-image img {
  width: 500px;
  border-radius: 6px;
  border: 6px solid #e6dccb;
}

/* TEXT */
.text { width:100%; margin-top: 20px; }

.text h2 {
  font-family: 'Playfair Display', serif;
  margin-bottom: 15px;
}

.text p {
  margin-bottom: 12px;
}

.quote {
  font-style: italic;
  margin-top: 10px;
}

/* IMAGE CARD */
.image-card {
  width: 350px;
  text-align: center;
float:right;
margin: 10px 40px;
}

.image-card h3 {
  margin-top: 10px;
  font-family: 'Playfair Display', serif;
}

.image-card2 {
  width: 370px;
  text-align: center;
float:left;
margin: 10px 60px;
}

.image-card3 {
  width: 80%;
float:left;
margin: 10px 60px;
}





.hevoslista {
width: 100%;
}

.hevoslista td {
padding: 15px 20px;
}

.hevoslista a:link, .hevoslista a:active, .hevoslista a:visited {
    font-family: "Roboto Serif", serif;;
    font-size: 24px;
    font-variant: small-caps;
    font-weight: 400;
    font-style: normal;
    color: #596C59;
    text-shadow: 1px 1px rgba(0, 0, 0, 0.1);
    letter-spacing: 1px;
text-decoration:none;
}


	/* VARSALISTAUS */

#varsalista {
border-collapse:collapse;
width: 567px;
float:left;
padding: 0;
margin: 20px 0;
}

#varsalista td { padding: 10px 0; vertical-align: middle; }

#varsalista img {
float:left;
margin: 0 20px 0 0;
height: 115px;
}

.varsakuva {   background: #f7f2e7;
  padding: 3px;
  border: 1px solid #ddd;

  box-shadow: 0 8px 20px rgba(0,0,0,0.25);

  transform: rotate(-1deg); }


h1 {
    font-family: "Roboto Serif", serif;
    font-size: 30px;
    font-variant: small-caps;
    font-weight: 500;
    font-style: normal;
    color: #596C59;
    padding: 0 0 0 35px;
    margin: 1em 0 1.1em 0;
    text-shadow: 1px 1px rgba(0, 0, 0, 0.1);
    letter-spacing: 1px;
}
h1:first-letter {
    font-family: "Mea Culpa";
    font-size: 66px;
    font-weight: 500;
    vertical-align: middle;
    color: #596C59;
    text-shadow: 0 0 10px rgba(90, 71, 87, 0.3);
    
}

h1 small {
font-size: 13px;
    font-variant: normal;
padding-left: 80px;
}

h2 {
    font-family: "Roboto Serif", serif;;
    font-weight: 500;
    font-style: italic;
    font-size: 18px;
    color: #596C59;
    margin: 40px auto 10px auto;
    padding: 0 0 0 35px;
    text-shadow: 1px 1px rgba(0, 0, 0, 0.1);
    line-height: 1.6;
}

h3 {
    font-family: "Roboto Serif", serif;;
    font-weight: 500;
    font-style: italic;
    font-size: 16px;
    color: #596C59;
    margin: 20px auto 10px auto;
    padding: 0 0 0 35px;
    text-shadow: 1px 1px rgba(0, 0, 0, 0.1);
    line-height: 1.6;
}

h3 small { font-size: 13px; padding-left: 10px; }


h4 {
    font-family: "Roboto Serif", serif;;
    font-weight: 500;
    font-style: italic;
    font-size: 18px;
    color: #596C59;
    margin: 40px 0 0 0;
    padding: 0 0 0 35px;
    text-shadow: 1px 1px rgba(0, 0, 0, 0.1);
    line-height: 1.6;
}

h4 small { font-size: 13px; padding-left: 10px; }




.geno {
    display: inline-block;
    padding: 1px 3px;
    font-size: 11px;
    line-height: 1.5em;
    border-radius: 3px;
    margin-left: 5px;
    color: #83857E;
}

.geno:before {
    content: "[ ";
}

.geno:after {
    content: " ]";
}

.palkinto {
    text-align: center;
    margin: 0 10px;

    font-family: "Roboto Serif", serif;
    font-size: 15px;
    font-weight: 400;
    font-style: normal;
    color: #70576c;
    text-shadow: 1px 1px rgba(0, 0, 0, 0.1);
    letter-spacing: 1px;
}

.sukutaulu { width: 100%; }
.sukutaulu td { padding: 10px 15px; }

#kalenteri { width:100%; border-top: dashed #787878 1px; border-collapse:collapse; }

#kalenteri td { padding: 5px 10px; border-bottom: dashed #787878 1px; background: rgba(255, 255, 255, 0.1); }
#kalenteri tr:hover { background: rgba(255, 255, 255, 0.2); }

.pkk {
border: 1px solid rgba(173, 135, 156, 0.4);
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.1), 0 6px 20px 0 rgba(0, 0, 0, 0.1);
border-radius: 10px;
margin: 5px 0 0 -5px;
width: 95%;
height:auto;
}



.hevoskuvat { text-align:center; }
.hevoskuvat img {
border: 1px solid rgba(173, 135, 156, 0.4);
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.1), 0 6px 20px 0 rgba(0, 0, 0, 0.1);
border-radius: 10px;
margin: 10px;
}


.meriitit { line-height: 1.8; margin: 0 0 20px 20px; }
.merkki { color: #914155; margin-right: 5px; }
.merkki2 { font-size: 18px; color: #914155; margin-left: 5px; }

.ruusukkeet { text-align:center; }
.ruusukkeet img { height: 130px; margin: 5px; }

.historia {
    font-family: "Roboto Serif", serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.8em;
    color: #5d5654;
font-style:italic;
}


