@import url('https://fonts.googleapis.com/css2?family=Cedarville+Cursive&family=Darker+Grotesque:wght@300..900&family=Ms+Madi&family=Oooh+Baby&display=swap');

body {
    background-image: url(https://i.ibb.co/xQyDFmB/taustakuva.jpg);
    background-attachment: fixed;
    font-family: "Darker Grotesque", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}

header {
    text-align: left;
    margin-left: 350px;
    max-width: 100%;
    height: auto;
}

section {
    background-color: rgba(220, 215, 201, 1);
    width: 60%;
    margin: auto;
    padding: 30px;
    text-align: justify;
    letter-spacing: 1px;
    line-height: 1.6;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    border-top: #3F4F44 solid 12px;
    border-right: #3F4F44 solid 1px;
    border-left: #3F4F44 solid 1px;
}

a {
    color: #000000;
    text-decoration: none;

}

a:hover {
    color:rgb(173, 173, 173);
    text-shadow: #747474 0px 0px 8px;

}

footer {
    background-color: #DCD7C9;
    width: 60%;
    margin: auto;
    text-align: center;
    text-transform: uppercase;
    font-size: 0.75em;
    line-height: 1.2;
    letter-spacing: 3px;
    padding: 30px;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    border-left: #3F4F44 solid 1px;
    border-right: #3F4F44 solid 1px;
    border-bottom: #3F4F44 solid 10px;
}

footer a {
    color: #000000;
    text-decoration: none;
}

footer a:hover {
    color:rgb(173, 173, 173);
    text-shadow: #747474 0px 0px 8px;
}

/* NAVIGAATIO */
nav {
    overflow: hidden;
    color: #DCD7C9;
    position: relative;
    margin-top: 200px;
    margin-bottom: -120px;
    margin-right: 340px;
    max-width: 100%;
    height: auto;
}

nav ul {
    float: right;
    text-align: center;
    padding: 8px;
    font-size: 1.25em;    
    letter-spacing: 5px;
    display: flex;
    list-style-type: none;
    text-shadow: #ffffff 0px 0px 10px;

}

nav li a {
    color: #DCD7C9;
    transition: all 0.4s;
    text-decoration: none;
    padding: 20px;
}

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

/* OTSIKOT */
h1 {
    color: #A27B5C;
    letter-spacing: 2px;
    margin-left: 15px;
    font-size: 1.5625em;
    font-family: "Oooh Baby", cursive;
    font-weight: 400;
    font-style: normal;
    text-shadow: #747474 0px 0px 2.5px;
}

h2 {
    color: #464646;
    margin-left: 50px;
    font-size: 1.25em;
    font-family: "Cedarville Cursive", cursive;
    font-weight: 400;
    font-style: normal;
    padding: 10px;
}

.huomio {
    text-transform: uppercase;
    letter-spacing: 3px;
    line-height: 0.6em;
    font-size: 0.75em;
    margin-bottom: 50px;
    text-align: right;
}

.koriste {
    float: right;
    margin: 0px 0px 10px 20px;
    box-shadow: #6e6e6e 0px 0px 4px;
}

/* KOIRALISTA */
.koiralista {
    display: flex;
    flex-wrap: wrap; 
    list-style-type: none; 
    padding: 0; 
    margin: 0; 
}

.koiralista li {
    margin: 10px; 
    padding: 15px; 
    flex: 1 1 200px; 
    text-align: center; 
    width: 100%;
}

.koiralista li a:hover {
    color:rgb(173, 173, 173);
    text-shadow: #747474 0px 0px 8px;
}

.koiralista li a {
    text-align: center; 
    text-decoration: none;
    color: #A27B5C;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-shadow: #747474 0px 0px 2.5px;
}

.koirankuva {
    width: 70%;
    border-radius: 8px;
    box-shadow: #000000 0px 0px 2px;
    justify-content: space-around;

}

/* KOIRAN SIVUT */
h3 {
    color:#A27B5C;
    text-align: center;
    font-family: "Oooh Baby", cursive;
    font-weight: 400;
    font-style: normal;
    font-size: 1.75em;
    text-shadow: #747474 0px 0px 2.5px;
}

h4 {
    font-size: 0.875em;
    text-align: center;
    font-weight: normal;
    letter-spacing: 2px;
    text-shadow: #747474 0px 0px 0.5px;
}

.rakennekuva {
    float: left;
    max-width: 100%;
    height: 50%;
    border-radius: 8px;
    box-shadow: #6e6e6e 0px 0px 4px;
}

.tieto {
    text-transform: uppercase;
    color:#A27B5C;
    text-shadow: #747474 0px 0px 5px;
    padding: 3px;
}

.otsikko {
    color:#A27B5C;
    text-shadow: #747474 0px 0px 5px;
    padding: 3px;
    margin-left: 20px;
    font-size: 1.75em;
    font-family: "Oooh Baby", cursive;
    font-weight: 400;
    font-style: normal;
}

.ala {
    margin-left: 75px;
}

.meriitit {
    text-transform: uppercase;
    font-size: 0.875em;
    text-shadow: #747474 0px 0px 5px;
    margin-left: 60px;
}

.loota {
    display: flex;
    align-items: left;
    gap: 20px;
    padding: 15px;
    border-radius: 8px;
    background-color: #ffffff27;
    box-shadow: #000000 0px 0px 1px;
}

.suku {
    display: flex;
    flex-wrap: wrap; 
    list-style-type: none; 
    padding: 0; 
    margin: 0; 
    border-radius: 8px;
    background-color: #ffffff27;
    box-shadow: #000000 0px 0px 1px;
}

.suku li {
    margin: 10px; 
    padding: 15px; 
    flex: 1 1 200px; 
    text-align: center; 
}

.suku li a:hover {
    color:rgb(173, 173, 173);
    text-shadow: #747474 0px 0px 8px;
}

.suku li a {
    text-align: center; 
    text-decoration: none;
    color: #A27B5C;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-shadow: #747474 0px 0px 2.5px;
}

table {
    margin: 0;
    padding: 0;
    width: 100%;
    table-layout: fixed;
    border-radius: 8px;
    background-color: #ffffff27;
    box-shadow: #000000 0px 0px 1px;
}

table caption {
    font-size: 1.5em;
    margin: .5em 0 .75em;
    text-align: left;
    text-transform: uppercase;
    font-size: 0.875em;
    text-shadow: #747474 0px 0px 5px;
}

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

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

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

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

/* MOBIILI */
@media all and (max-width: 1400px) {
nav {
    position: absolute;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: auto;
    padding: 30px;
}

nav li {
    margin: 20px 0;
}

nav li a {
    font-size: 12px;
}

header {
    width: 100%;
    margin: auto;
    padding: 0;
}

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

footer {
    width: 100%;
    padding: 15px;
}

.huomio {
    line-height: 1.6em;
}

.koriste {
    width: 100%;
}

.koirankuva {
    width: 100%;
}

.koiralista li {
    width: 100%;
}

.rakennekuva {
   width: 100%;
}

.loota {
   width: 100%;
   padding: 5px;
   margin: 0;
   display: block;

}