@import url('https://fonts.googleapis.com/css2?family=Carter+One&family=Quicksand:wght@300..700&family=Sancreek&display=swap');

body {
    background-image: url("https://i.ibb.co/WWS8Mqr3/taustakuva.png");
    background-size: 100% auto;
    background-repeat: no-repeat;
    background-attachment: fixed;
    font-family: "Quicksand", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}

header {
    background-color: #ffffff94;
    margin: auto;
    margin-top: 80px;
    border-top-left-radius: 30%;
    border-top-right-radius: 30%;
    border-left: #575d72 7px dashed;
    border-right: #575d72 7px dashed;
    border-top: #575d72 7px dashed;
    font-family: "Sancreek", serif;
    font-weight: 400;
    font-style: normal;
    text-align: center;
    padding: 40px;
    font-size: 60px;
    letter-spacing: 15px;
    color: #2c3646;
    text-shadow: #b3b6be 0px 0px 5px;
    max-width: 50%;
}

/* navigaatio */
nav {
    background-color: #2a3647cc;
    overflow: hidden;
    margin: auto;
    max-width: 65%;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    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 {
    font-family: "Sancreek", serif;
    font-weight: 400;
    font-style: normal;
    display: block; 
    color: #cfd5db;
    text-align: center; 
    padding: 20px 45px; 
    font-size: 16px;
    text-decoration: none;
    transition: all 0.4s;
    position: relative;
    letter-spacing: 10px;
}

nav li a:hover {
    transform: rotate(-10deg);
}

a {
    color: #000000;
    font-weight: 500;
    text-decoration: none;
}

a:hover {
    color: rgb(181, 191, 212);
}

b {
    color: #2c3646;
}


.ak {
    font-family: "Sancreek", serif;
    font-weight: 400;
    font-style: normal;
    color: #323546;
}

section {
    background-color: #8e8f97fb;
    width: 70%;
    margin: auto;
    text-align: justify;
    padding: 50px;
    line-height: 2.2;
    letter-spacing: 1px;
    font-size: 14px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    border-top: #535a63cc 3px solid;
    border-left: #535a63cc 5px solid;
    border-right: #535a63cc 5px solid;
}

.päiväkirjateksti {
    background-color: #b5b7c2c7;
    font-size: 13px;
    padding: 20px;
    letter-spacing: 1.5px;
    line-height: 1.8;
    border-radius: 10px;
    border: #747474 1px dashed;
}

footer {
    font-family: "Sancreek", serif;
    font-weight: 400;
    font-style: normal;
    background-color: #2a3647cc;
    max-width: 70%;
    margin: auto;
    color: #999ea3;
    text-align: center;
    padding: 30px;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 13px;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

/* KORISTEKUVAT */
.column {
    float: left;
    width: 33.33%;
    padding: 5px;
}

.column img {
    box-shadow: #494949 0px 0px 5px;
}

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

* {
    box-sizing: border-box;
}

/* OTSIKOT */
h1 {
    font-family: "Carter One", system-ui;
    font-weight: 400;
    font-style: normal; 
    color: #393b4d;
    text-align: left;
    letter-spacing: 2px;
    font-size: 22px;
    border-bottom: #30314627 3px dashed;
}

h2 {
    font-family: "Sancreek", serif;
    font-weight: 400;
    font-style: normal;
    text-align: left;
    color: #393b4d;
    font-size: 22px;
    letter-spacing: 8px;
    text-shadow: #323546 0px 0px 1px;
    border-bottom: #30314627 3px dashed;
    margin-bottom: 2px;
}

/* KOIRAKORTIT */
.koiracolumn {
    float: left;
    width: 33.33%;
    padding: 0 10px;
}

.row {
    margin: 0 -5px;
}

.card {
    background-color: #b5b7c2c7;
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}

.card-inner {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.kortti {
    flex: 1;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 0.9;
    min-height: 100px;
    text-align: left;
}

.kortti h3 {
    color: #393b4d;
    margin-top: 0;
    font-family: "Sancreek", serif;
    font-weight: 400;
    font-style: normal;
    text-align: left;
    letter-spacing: 0.8px;
    border: none;
}

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

.kortti a {
    text-decoration: none;
}


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

.eläin {
    display: block;
    float: left;
    width: 48%;
    border-radius: 8px;
    margin-top: 40px;
    margin-bottom: 10px;
    animation: eläin-sparkle 12s linear infinite;
}

@keyframes eläin-sparkle {
    0%, 18%, 100% {
        filter: drop-shadow(0 0 3px #b3b6be);
    }
    22%, 30% {
        filter: drop-shadow(0 0 14px #e0e5ee);
    }
    34% {
        filter: drop-shadow(0 0 5px #b3b6be);
    }
    58% {
        filter: drop-shadow(0 0 3px #b3b6be);
    }
    64%, 72% {
        filter: drop-shadow(0 0 17px #ffffff);
    }
    76% {
        filter: drop-shadow(0 0 6px #b3b6be);
    }
}

@media (prefers-reduced-motion: reduce) {
    .eläin {
        animation: none;
    }
}

.tiedot {
    float: right;
    width: 50%;
    height: 520px;
    background-color: #ffffff27;
    text-align: left;
    padding: 20px;
    border-radius: 8px;
    margin-top: 0;
}

.tiedot + h1 {
    clear: both;
}

.kilpailumenestys {
    display: block;
    margin: 0 0 20px;
    padding: 10px;
    background-color: #ffffff27;
    border-radius: 6px;
    text-align: center;
}

.kilpailumenestys-label {
    display: block;
    margin-bottom: 6px;
    color: #2e353d;
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.kilpailumenestys-step {
    display: inline-block;
    width: 18%;
    height: 8px;
    margin: 0 1%;
    background-color: #b3b6be;
    border-radius: 4px;
}

.kilpailumenestys-step.active {
    background-color: #d69b3c;
    box-shadow: 0 0 5px #e0b66a;
}

.tieto {
    font-family: "Sancreek", serif;
    font-weight: 400;
    font-style: normal;
    letter-spacing: 3px;
    color: #2e353d;
}

.eläimet {
    background-color: transparent;
    width: 80%;
    margin: auto;
    padding: 20px;
}

.meriitit {
    margin-left: 70px;
    font-size: 12px;
}

/* Kilpailukalenteri */
table {
    margin: 0;
    padding: 0;
    width: 100%;
    table-layout: fixed;
    border-radius: 8px;
    background-color: #ffffff27;
}

table caption {
    font-family: "Sancreek", serif;
    font-weight: 400;
    font-style: normal;
    color: #252b33;
    letter-spacing: 5px;
    text-transform: uppercase;
    text-align: left;
    padding: .35em;
}

table tr {
    border: 1px solid #ddd;
    padding: .61em;
}

table th, table td {
    padding: 1em;
    text-align: left;
}

table th {
    letter-spacing: .1em;
    text-transform: uppercase;
    font-weight: normal;
    text-shadow: #747474 0px 0px 5px;
    padding: 1em;
}

/* KISASIVUT */
.laatikon {
    flex: 1;
    padding: 15px;
    height: auto;
    color: #000000;
    text-align: justify;
    box-sizing: border-box;
}

.kilpailut {
      display: flex;
      gap: 10px;
      padding: 5px;
    }

.laatikko {
    background-color: #ffffff27;
    box-shadow: #000000 0px 0px 2px;
    flex: 1;
    padding: 20px;
    height: auto;
    text-align: justify;
    box-sizing: border-box;
    border-radius: 8px;
}


/* MOBIILI */
@media screen and (max-width: 900px) {
    body {
	background-size: cover;
}
    header {
        max-width: 90%;
        padding: 24px 16px;
        font-size: clamp(38px, 8vw, 64px);
        letter-spacing: 8px;
    }

    nav {
        max-width: 90%;
    }

    nav ul {
        flex-wrap: wrap;
    }

    nav ul li {
        float: none;
        flex: 1 1 auto;
    }

    nav li a {
        padding: 14px 20px;
        font-size: 15px;
        letter-spacing: 5px;
    }

    section,
    footer {
        width: 90%;
    }

    section {
        padding: 30px;
    }

    .koiracolumn {
        width: 100%;
    }

    .card-inner {
        flex-direction: column;
    }
}
}

@media screen and (max-width: 600px) {
    header {
        max-width: 100%;
        margin-top: 30px;
        padding: 18px 10px;
        font-size: clamp(30px, 10vw, 48px);
        letter-spacing: 4px;
    }

    nav,
    section,
    footer {
        width: 100%;
        max-width: none;
    }

    nav ul li {
        flex-basis: 50%;
    }

    nav li a {
        padding: 12px 6px;
        font-size: 12px;
        letter-spacing: 2px;
    }

    section {
        padding: 15px;
    }

    table {
        display: block;
        max-width: 100%;
        min-width: 560px;
        overflow-x: auto;
        white-space: nowrap;
    }

    table th,
    table td {
        padding: .75em;
    }
}