@import url('https://fonts.googleapis.com/css2?family=Darker+Grotesque:wght@300..900&family=Mea+Culpa&display=swap');

body {
    background-color: #2c3639;
    background-image: url("data:image/svg+xml,%3Csvg width='84' height='16' viewBox='0 0 84 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M78 7V4h-2v3h-3v2h3v3h2V9h3V7h-3zM30 7V4h-2v3h-3v2h3v3h2V9h3V7h-3zM10 0h2v16h-2V0zm6 0h4v16h-4V0zM2 0h4v16H2V0zm50 0h2v16h-2V0zM38 0h2v16h-2V0zm28 0h2v16h-2V0zm-8 0h6v16h-6V0zM42 0h6v16h-6V0z' fill='%233f4e4f' fill-opacity='0.55' fill-rule='evenodd'/%3E%3C/svg%3E");
    background-attachment: fixed;
    font-family: "Darker Grotesque", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}

header {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

header img {
    max-width: 60%;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    box-shadow: #5f7577 0px 0px 80px;
}

nav {
    background-color: #3F4E4F;
    overflow: hidden;
    margin: auto;
    max-width: 60%;
    text-transform: uppercase;
    box-shadow: #5f7577 0px 0px 5px;
}

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: #DCD7C9;
    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: #DCD7C9;
    padding: 20px;
    max-width: 60%;
    margin: auto;
    box-shadow: white 0px 0px 5px;
}

a {
    color: #000000;
}

a:hover {
    color: #01220c;
    text-shadow: #437e6c 0px 0px 1px;
}

.teksti {
    padding: 10px;
    text-align: justify;
    line-height: 1.9;
    letter-spacing: 1px;
}

h1 {
    font-family: "Mea Culpa", cursive;
    font-weight: 400;
    font-style: normal;
    text-align: center;
    border-bottom: rgba(128, 128, 128, 0.11) 1px solid;
    color: #2C3639;
    letter-spacing: 1px;
    font-size: 38px;
}

footer {
    margin: auto;
    text-align: center;
    background-color: #3F4E4F;
    max-width: 60%;
    padding: 20px;
    color: rgba(255, 255, 255, 0.24);
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 1px;
    box-shadow: #5f7577 0px 0px 5px;
}

* {
    box-sizing: border-box;
}

b {
    color: #2C3639;
    font-weight: 700;
}

.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: #2C3639;
    text-shadow: #3F4E4F 0px 0px 1px;
    font-size: 14px;
    text-transform: uppercase;
    margin-top: 0;
    margin-bottom: 10px;
}

.kortti a {
    text-decoration: none;
}

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

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;
} 

table a {
    color: #000000;
}

.tiedot {
    max-width: 100%;
    border-radius: 3px;
    padding: 10px;
    font-size: 13px;
}

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

.rakennekuva {
    display: block;
    margin: 0 auto;
    max-width: 60%;
    border-radius: 5px;
    box-shadow: #313131 0px 0px 5px;
}


.tieto {
    color: #2C3639;
    text-shadow: #3F4E4F 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: #e7e7e7;
    border-radius: 8px;
    color: #01220c;
}

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

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

.sukutaulu a {
    color: #000000;
}

.sukulainen {
    padding: 8px;
}

.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: #2C3639;
    margin-left: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 17px;
}

.meriitit {
    display: block;
    text-align: center;
    margin: 0 auto 20px;
    font-size: 13px;
    margin-top: -30px;
}

.allekirjotus {
    display: block;
    text-align: left;
    padding: 3px;
    margin-bottom: -15px;
    color: #22282b;
    font-family: "Mea Culpa", cursive;
    font-weight: 400;
    font-style: normal;
    font-size: 22px;
}

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

.column img {
    padding: 2px;
    background-color: rgba(255, 255, 255, 0.459);
    border: #747474bb 2px solid;
}

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

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

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

  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 {
    content: attr(data-label);
    float: left;
    font-weight: bold;
    text-transform: uppercase;
  }
  
  table td:last-child {
    border-bottom: 0;
  }

    .koiracolumn {
        width: 100%;
    }

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

    .card-image {
        width: 100%;
    }

}