@import url('https://fonts.googleapis.com/css2?family=Amarante&family=Ballet:opsz@16..72&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

body {
    background-image: url(img/taustakuva.jpg);
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
    background-attachment: fixed;
    font-size: 13px;
    font-family: "Montserrat", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;

}

header {
    max-width: 100%;
    text-align: center;
    margin-top: 20px;
    margin-bottom: -67px;
}

nav {
    background-color: #217e1e4d;
    overflow: hidden;
    margin: auto;
    max-width: 70%;
    text-transform: uppercase;
}

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: #add8bb;
    text-align: center; 
    padding: 20px 45px; 
    font-size: 16px;
    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;
}

section {
    background-color: rgba(175, 182, 171, 0.94);
    padding: 20px;
    max-width: 70%;
    margin: auto;
    box-shadow: #5e8855 0px 0px 5px;
}

.esittely {
    padding: 15px;
    text-align: justify;
    line-height: 1.9;
    letter-spacing: 0.5px;
}

.luonne {
    padding: 15px;
    text-align: justify;
    line-height: 1.9;
    letter-spacing: 0.5px;
}

a {
    color: black;
    text-decoration: none;
}

a:hover {
    color: #257222;
    text-shadow: #115528 0px 0px 7px;
}

/* K o r i s t e e t */
.koriste {
    float: right;
    width: 45%;
    height: 390px;
    margin: 0px 0px 15px 35px;
    box-shadow: #01220c 0px 0px 3px;
    border-radius: 3px;
}

.koriste1 {
    float: right;
    height: 550px;
    margin: 0px 0px 15px 35px;
    box-shadow: #01220c 0px 0px 3px;
    border-radius: 3px;

}

.tähdet {
    display: flex;
    justify-content: center;
}

blockquote {
    background-color: #0b381aa2;
    color: #add8bb;
    text-transform: uppercase;
    line-height: 2.2;
    letter-spacing: 1px;
    padding: 20px;
    max-width: 67%;
    border-radius: 3px;
    font-size: 12px;
}

b {
    color: #082e15;
    font-weight: 600;
}

/* A l a o s a */
footer { 
    background-color: rgba(175, 182, 171, 1);
    max-width: 70%;
    margin: auto;
}

.alaosa {
    float: left;
    width: 33.33%;
    text-align: center;
    padding: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 11px;
    line-height: 1.5;
    
}

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

* {
    box-sizing: border-box;
}

/* O t s i k o t */
h1 {
    color: #115528;
    text-shadow: #257222 0px 0px 1px;
    margin-left: 25px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: "Amarante", serif;
    font-weight: 400;
    font-style: normal;
    font-size: 22px;
}

/* T ä b i  */
.tab {
    overflow: hidden;
    text-align: center;
}

.tab button {
    background-color: transparent;
    font-family: "Amarante", serif;
    font-weight: 400;
    font-style: normal;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 5px;
    color: #115528;
    text-shadow: #257222 0px 0px 1px;
    border-radius: 3px;
    float: center;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 14px 30px;
    transition: 0.4s;
}

.tab button:hover {
    background-color: #ffffff27;
}

.tab button.active {
    background-color: #ffffff27;
}

.tabcontent {
    display: none;
    padding: 6px 12px;
}

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

table caption {
    color: #000000;
    letter-spacing: .1em;
    text-transform: uppercase;
    text-align: left;
    padding: .35em;
    margin-left: 20px;
}

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

table th {
    letter-spacing: .1em;
    text-transform: uppercase;
    font-weight: normal;
    padding: 1em;
} 

/* K o i r a k o r t i t */
.koiracolumn {
    float: left;
    width: 33.33%;
    padding: 0 10px;
}

.row {
    margin: 0 -5px;
}

.card {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
    font-size: 12px;
}

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

.koirankuva {
    flex: 0 0 120px;
}

.koirankuva img {
    width: 100%;
    height: 150px;
    display: block;
    border-radius: 12px;
    object-fit: cover;
}

.kortti {
    flex: 1;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.kortti h3 {
    color: #115528;
    text-shadow: #045e22 0px 0px 2px;
    font-family: "Amarante", serif;
    font-weight: 400;
    font-style: normal;
    font-size: 14px;
    text-transform: uppercase;
    margin-top: 0;
    margin-bottom: 10px;
}

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

/* K o i r a n    t i e d o t */ 
.loota {
    display: flex;
    flex-wrap: wrap;
    gap: 0rem;
    align-items: flex-start;
    justify-content: left;
}

.tiedot {
    flex: 1 1 520px;
    min-width: 300px;
    width: auto;
    border-radius: 3px;
    padding: 10px;
    font-size: 12px;
}

.tiedot caption {
    font-size: 12px;
}

.tiedot td {
    padding: 12px;
    text-align: left;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-bottom: #ffffff27 1px solid;
}

.loota .rakennekuva {
    flex: 0 0 320px;
    max-width: 100%;
    height: 490px;
    border-radius: 5px;
    box-shadow: #313131 0px 0px 5px;
}

.loota p {
    flex: 1 1 100%;
    min-width: 250px;
}

.tieto {
    color: #0b381a;
    text-shadow: #257222 0px 0px 1px;
    text-transform: uppercase;
    padding: 10px;
    font-weight: 500;
    font-size: 14px;
}

.extra {
    font-size: 11px;
    padding: 5px;
    text-transform: uppercase;
    background-color: #dddddd3d;
    border-radius: 8px;
    color: #01220c;
}

.sukutaulu {
    padding: 15px;
	width: 100%;
    margin-bottom: 20px;
}

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

.sukutaulu a {
    text-transform: uppercase;
}

.sukulainen {
    text-transform: uppercase;
    padding: 8px;
}

.info {
    text-transform: uppercase;
    font-size: 11px;
    margin-left: 25px;
}

.suku {
    background-color: #ffffff27;
    height: 170px;
    border-radius: 8px;
    float: left;
    width: calc(50% - 15px);
    padding: 10px;
    margin-right: 20px;
    text-align: center;
    line-height: 1.8;
}

.suku:nth-child(2n) {
    margin-right: 0;
}

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

.suku h2 {
    color: #115528;
    text-shadow: #257222 0px 0px 1px;
    margin-left: 25px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: "Amarante", serif;
    font-weight: 400;
    font-style: normal;
    font-size: 19px;
}

/* K i s a */ 
.laatikko {
    background-color: #ffffff27;
    border-radius: 8px;
    flex: 1;
    padding: 20px;
    height: auto;
    color: #000000;
    text-align: justify;
    box-sizing: border-box;
    font-size: 14px;
}

.kilpailut h2 {
    color: #115528;
    text-shadow: #257222 0px 0px 1px;
    font-family: "Amarante", serif;
    font-weight: 400;
    font-style: normal;
    font-size: 19px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
}

h2 {
    color: #115528;
    text-shadow: #257222 0px 0px 1px;
    margin-left: 25px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: "Amarante", serif;
    font-weight: 400;
    font-style: normal;
    font-size: 22px;
    text-align: center;
}

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

/* M o b i i l i */
@media all and (max-width: 1400px) {
header {
    width: 100%;
    margin: auto;
    padding: 0;
}

section {
    width: 100%;
    margin: auto; 
    padding: 15px;
}

  .column {
    width: 100%;
  }

  .koriste {
    width: 100%;
}

  @media screen and (max-width: 600px) {
  table {
    border: 0;
  }

  table caption {
    font-size: 1.3em;
  }
  
  table thead {
    border: none;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
  }
  
  table tr {
    border-bottom: 3px solid #ddd;
    display: block;
    margin-bottom: .625em;
  }
  
  table td {
    border-bottom: 1px solid #ddd;
    display: block;
    font-size: .8em;
    text-align: right;
  }
  
  table td::before {
    /*
    * aria-label has no advantage, it won't be read inside a table
    content: attr(aria-label);
    */
    content: attr(data-label);
    float: left;
    font-weight: bold;
    text-transform: uppercase;
  }
  
  table td:last-child {
    border-bottom: 0;
  }
} 

  .koiracolumn {
    width: 100%;
    display: block;
    margin-bottom: 20px;
}

@media (max-width: 900px) {
    .koiracolumn {
        width: 50%;
        margin-bottom: 15px;
    }
}

@media (max-width: 640px) {
    .koiracolumn {
        width: 100%;
    }

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

    .card-image {
        width: 100%;
    }
}

}