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

body {
    background-image: url(img/taustakuva.png);
    background-size: cover;
    background-attachment: fixed;
    font-family: "Quicksand", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-size: 14px;
}

header {
    font-family: "Sancreek", serif;
    font-weight: 400;
    font-style: normal;
    text-align: center;
    padding: 0.2em;
    font-size: 60px;
    letter-spacing: 8px;
    color: #553a21;
    text-shadow: #7B542F 0px 0px 5px;
}

a {
    color: #000000;
}

.huomio {
    text-transform: uppercase;
    letter-spacing: 5px;
    font-size: 11px;
    color: #553a21;
    margin-left: 25%;
}

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

.ala {
    text-transform: uppercase;
    letter-spacing: 5px;
    font-size: 11px;
    color: #553a21;
    margin-left: 10%;
}

section {
    background-color: rgba(255, 207, 113, 0.90);
    border-radius: 8px;
    box-shadow: #7B542F 0px 0px 3px;
    width: 60%;
    margin: auto;
    text-align: justify;
    padding: 1.2em;
    line-height: 2.0;
    letter-spacing: 1px;
}


h1 {
    font-family: "Carter One", system-ui;
    font-weight: 400;
    font-style: normal; 
    color: #553a21;
    text-align: left;
    letter-spacing: 2px;
    font-size: 25px;
    border-bottom: #7B542F 3px dotted;
}

.koriste {
    width: 100%;
    box-shadow: #7B542F 0px 0px 4px;
    border-radius: 3px;
}

.eläin {
    display: block;
    width: 80%;
    margin: 0 auto;
    box-shadow: #7B542F 0px 0px 4px;
}

.tiedot {
    text-align: center;
}

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

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

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

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

.column p {
    text-align: center;
}

.column a {
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #553a21;
    text-shadow: #7B542F 0px 0px 3px;
}

.column a:hover {
    color: #B6771D;
    text-shadow: #7B542F 0px 0px 3px;
}

footer {
    text-align: center;
    color: #FF9D00;
    text-transform: uppercase;
    text-shadow: #ffffff 0px 0px 5px;
    font-size: 11px;
    letter-spacing: 9px;
    padding: 2em;
}

/* Typewriter */
.typewriter {
    font-family: "Sancreek", serif;
    font-weight: 400;
    font-style: normal;
    font-size: 40px;
    text-align: center;
    color: #553a21;
    text-shadow: #7B542F 0px 0px 5px;
    overflow: hidden; /* Ensures the content is not revealed until the animation */
    white-space: nowrap; /* Keeps the content on a single line */
    margin: 0 auto; /* Gives that scrolling effect as the typing happens */
    letter-spacing: .25em; /* Adjust as needed */
    animation: typing 3s steps(50, end),
    blink-caret .1s step-end infinite;
}

@keyframes typing {
    from { width: 0 }
    to { width: 30% }
}

.typewriter a {
    text-decoration: none;
    text-transform: uppercase;
    font-family: "Quicksand", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-size: 13px;
    color: #FF9D00;
    text-shadow: #FFCF71 0px 0px 2px;
}

/* TAB */
.tab {
    overflow: hidden;
    text-align: center;
}

.tab button {
    background-color: transparent;
       font-family: "Sancreek", serif;
    font-weight: 400;
    font-style: normal;
    letter-spacing: 5px;
    color: #553a21;
    font-size: 16px;
    float: center;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 14px 30px;
    transition: 0.4s;
}

.tab button:hover {
    background-color: transparent;
}

.tab button.active {
    background-color: transparent;
}

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

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

table caption {
    color: #553a21;
    text-shadow: #7B542F 0px 0px 2px;
    letter-spacing: .1em;
    text-transform: uppercase;
    text-align: left;
    padding: .35em;
    margin-left: 20px;
}

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

* {
    box-sizing: border-box;
}

/* 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%;
    margin: auto; 
    padding: 15px;
}

.huomio {
    line-height: 1.6em;
}

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