@import url('https://fonts.googleapis.com/css2?family=Cormorant:ital,wght@0,300..700;1,300..700&family=Metamorphous&display=swap');

body {
    background-image: url(img/taustakuva.jpg);
    background-size: cover;
    background-attachment: fixed;
    margin: auto;
    font-size: 16px;
  font-family: "Cormorant", serif;
  font-optical-sizing: auto;
  font-weight: 500;
  font-style: normal;
}

html {
    scroll-behavior: smooth;
}

header {
    display: flex;
    justify-content: center;
    max-width: 100%;
    margin-bottom: -30px;
}

/* navigaatio */
nav {
    background-color: #00245acc;
    overflow: hidden;
    margin: auto;
    max-width: 55%;
    text-transform: lowercase;
}

nav ul {
    list-style-type: none; 
    display: flex; 
    margin: 0;
    justify-content: center;
    padding: 5px;
}

nav ul li {
    float: left; 
}

nav li a {
    display: block; 
    color: #8ec1fc;
    text-align: center; 
    padding: 20px 45px; 
    font-size: 18px;
    text-decoration: none;
    position: relative;
    transition: all 0.5s;
    letter-spacing: 5px;
}

nav li a:hover {
    color: #ffffff;
    text-shadow: 0 0 10px #ffffff, 0 0 20px #ffffff, 0 0 30px #ffffff, 0 0 40px #ffffff;
}

a {
    color: rgb(181, 216, 236);
    text-decoration: none;
    letter-spacing: 1.5px;
}

a:hover {
    color: #ffffff;
    text-shadow: 0 0 10px #ffffff, 0 0 20px #ffffff, 0 0 30px #ffffff, 0 0 40px #ffffff;
}

/* sisältö */
section {
    background-color: rgba(14, 34, 75, 0.973);
    color: rgb(181, 216, 236);
    margin: auto;
    text-align: justify;
    padding: 30px;
    width: 55%;
    letter-spacing: 1px;
    line-height: 2;    
}

footer { 
    background-color: #00245a9d;
    color: rgb(181, 216, 236);
    text-align: center;
    max-width: 55%;
    margin: auto;
    margin-bottom: 25px;
    padding: 20px;
    letter-spacing: 3px;
    font-size: 13px;
    text-transform: lowercase;
}

/* otsikot*/
h1 {
    font-family: "Metamorphous", serif;
    font-weight: 400;
    font-style: normal;
    color: rgb(200, 231, 250);
    border-bottom: 1px solid #ffffff0a;
    font-size: 20px;
    letter-spacing: 2px;
    text-shadow: rgb(201, 221, 236) 0px 0px 3px;
}

/* koristeet */
.koriste {
    max-width: 100%;
    box-shadow: 0px 0px 5px #000000;
    display: flex;
    justify-content: center;
}

.divider {
    max-width: 100%;
    display: flex;
    text-align: center;
    margin: auto;
    padding: 10px;
    opacity: 0.1;
}

* {
    box-sizing: border-box;
}

/* koirat*/
.koirat {
    width: 100%;
    margin: auto;
    padding: 10px;
    background-color: #17345f71;
}

.column {
    float: left;
    width: 50%;
    line-height: 1.3;
    padding: 20px;
}

.row:after {
    content: "";
    display: table;
    clear: both;
}

.column p {
    text-align: left;
}

.column a {
    text-decoration: none;
    letter-spacing: 1.5px;
    color: rgb(200, 231, 250);
    text-shadow: #96B6C5 0px 0px 3px;
}

.column a:hover {
    color: #ffffff;
    text-shadow: 0 0 10px #ffffff, 0 0 20px #ffffff, 0 0 30px #ffffff, 0 0 40px #ffffff;
}

h2 {
    color: rgb(200, 231, 250);
    font-family: "Cinzel", serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-size: 17px;
    letter-spacing: 1px;
    text-align: center;
}

/* koiran sivu*/
.koira-esittely {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row-reverse;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 20px;
}

.koira-esittely .eläin {
    display: block;
    width: min(450px, 100%);
    height: 350px;
    object-fit: cover;
    margin: 0;
    border-radius: 20%;
}

.koira-esittely .tiedot {
    flex: 1 1 min(320px, 45%);
    min-width: 240px;
    margin: 0;
}

.tiedot {
    background-color: #17345f71;
    padding: 15px;
    text-align: left;
    border-radius: 5px;
}

.kuva-modal {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.88);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease-in-out, visibility 0.2s ease-in-out;
    z-index: 10000;
}

.kuva-modal.open {
    opacity: 1;
    visibility: visible;
}

.kuva-modal-content {
    position: relative;
    max-width: 100%;
    max-height: 100%;
    overflow: hidden;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.6);
}

.kuva-modal-content img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 90vh;
    object-fit: contain;
    background-color: #000;
}

.kuva-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 2.2rem;
    color: #ffffff;
    cursor: pointer;
    user-select: none;
    line-height: 1;
}

.tieto {
    letter-spacing: 2px;
    color: rgb(123, 167, 197);
    text-shadow: #96B6C5 0px 0px 3px;
}

.meriitit {
    font-size: 11px;
    padding: 3px;
    border-bottom: 1px solid #ffffff0a;
}

.extra {
    font-size: 10px;
    margin-left: 5px;
    padding: 5px;
    text-transform: uppercase;
    background-color: #dddddd34;
    border-radius: 8px;
    color: white;
}

.sukutaulu {
    background-color: #17345f71;
    padding: 15px;
	width: 100%;
    margin-bottom: 20px;
    border-radius: 5px;
    font-size: 14px;
}

.sukutaulu td {
	padding: 15px;
    text-align: left;
}

.sukutaulu a {
    text-transform: uppercase;
}

/* kalenteri */
table {
    margin: 0;
    padding: 10px;
    width: 100%;
    table-layout: fixed;
    background-color: #17345f71;
}

table caption {
    margin: .5em 0 .75em;
    text-align: left;
    font-size: 17px;
    letter-spacing: 3px;
    text-shadow: #96B6C5 0px 0px 3px;
    border-bottom: 1px solid #ffffff0a;
}

table tr {
    padding: .35em;
}

table th, table td {
    padding: .3125em;
    text-align: left;
    font-size: 14px;
}

table th {
    letter-spacing: .1em;
    font-weight: bold;
    padding: .35em;
}

