@import url("https://fonts.googleapis.com/css2?family=Great+Vibes&family=Playfair+Display:ital@1&family=Roboto+Condensed:wght@300&display=swap");

html {
  scroll-behavior: smooth;
}

body {
  background: #fefbe9;
  margin: 0;
  padding: 0;
  font-family: "Roboto Condensed";
  color: #183a1d;
}

/* DESKTOP MENU */

nav,
.nav-links {
  color: #fefbe9;
  display: flex;
}

nav {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  height: 17vh;
  background-color: #4a6545;
  width: 100%;
}

.nav-links {
  width: 50%;
  gap: 2rem;
  list-style: none;
  font-size: 1.4rem;
  letter-spacing: 1px;
  font-weight: normal;
  text-transform: uppercase;
}

.nav-links a,
.nav-links a:visited {
  color: #dfdfb9;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a:active {
  color: #c0c388;
  text-decoration: underline;
  text-underline-offset: 1rem;
  text-decoration-color: #f6c453;
  text-decoration-thickness: 1px;
}

.nav-active {
  text-decoration: underline;
  text-underline-offset: 1rem;
  text-decoration-color: #f0a04b;
  text-decoration-thickness: 1px;
}

/* PÄÄOTSIKKO */

.logo {
  color: #ecedda;
  text-decoration: none;
  font-family: "Great Vibes";
  font-size: 4.75rem;
  font-weight: normal;
  letter-spacing: 0.2px;
}

.logo:hover {
  cursor: default;
}

/* HAMBURGER MENU */

#hamburger-nav {
  display: none;
  justify-content: space-around;
  align-items: center;
  height: 17h;
  background-color: #4a6545;
  width: 100%;
}

.hamburger-menu {
  position: relative;
  display: inline-block;
  z-index: 9999;
}

.hamburger-icon {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 24px;
  width: 30px;
  cursor: pointer;
}

.hamburger-icon span {
  width: 100%;
  height: 2px;
  background-color: #c0c388;
  transition: all 0.3 ease-in-out;
}

.hamburger-menu-links {
  position: absolute;
  top: 100%;
  right: 0%;
  background-color: #ecedda;
  width: 200px;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3 ease-in-out;
  font-weight: bold;
  text-transform: uppercase;
  font-size: 1.2rem;
  letter-spacing: 1px;
}

.hamburger-menu-links a,
.hamburger-menu-links a:visited {
  display: block;
  padding: 10px;
  text-align: center;
  color: #183a1d;
  text-decoration: none;
  transition: all 0.3 ease-in-out;
}

.hamburger-menu-links a:hover,
.hamburger-menu-links a:active {
  color: #4a6545;
  text-decoration: none;
  text-underline-offset: 0.5rem;
  background-color: #dfdfb9;
  text-decoration: underline;
  text-underline-offset: 0.3rem;
  text-decoration-color: #f0a04b;
  text-decoration-thickness: 1px;
}

.hamburger-menu-links .nav-active {
  color: #4a6545;
  text-decoration: underline;
  text-underline-offset: 0.3rem;
  text-decoration-color: #f6c453;
  text-decoration-thickness: 1px;
}

.hamburger-menu-links li {
  list-style: none;
}

.hamburger-menu-links.open {
  max-height: 300px;
}

.hamburger-icon.open span:first-child {
  transform: rotate(45deg) translate(10px, 5px);
}

.hamburger-icon.open span:nth-child(2) {
  opacity: 0;
}

.hamburger-icon.open span:last-child {
  transform: rotate(-45deg) translate(10px, -5px);
}

.hamburger-icon span:first-child {
  transform: none;
}

.hamburger-icon span:first-child {
  opacity: 1;
}

.hamburger-icon span:first-child {
  transform: none;
}

/* BANNERI */

.banner {
  position: relative;
  width: 100%;
  height: 100%;
  background: #dfdfb9;
  display: flex;
  justify-content: center;
  align-items: center;
}

.banner img {
  width: 100%;
  height: 45vh;
  object-fit: cover;
  object-position: 50% 58%;
  opacity: 0.25;
}

.banner .content {
  position: absolute;
  max-width: 60%;
  text-align: center;
  color: #183a1d;
  font-size: 1.5rem;
  line-height: 2rem;
  letter-spacing: 1px;
}

/* SIVULINKIT */

.main-content a,
.main-content a:visited,
.footer a,
.footer a:visited {
  color: #4a6545;
  text-decoration: underline;
  text-underline-offset: 0.1rem;
  font-weight: bold;
}

.main-content a:hover,
.main-content a:active {
  color: #9fb097;
  text-decoration: none;
  font-weight: bold;
}

/* SISÄLTÖ */

.main-content {
  position: relative;
  width: 70%;
  margin: auto;
  text-align: justify;
  font-size: 1rem;
  line-height: 1.6rem;
  padding-bottom: 20px;
}

/*INSERTTI*/

.insert {
  position: relative;
  width: 95%;
  background-color: #ecedda;
  border-radius: 10px;
  margin: auto;
  padding: 1px 30px 10px 30px;
  font-size: 0.9rem;
  line-height: 1.4rem;
  overflow-x:hidden;
}

/* KUVAGALLERIA SIVUN INSERT */

.kuvagalleria_insert {
  position: relative;
  width: 95%;
  background-color: #ecedda;
  border-radius: 10px;
  margin: auto;
  padding: 1px 30px 10px 30px;
  font-size: 0.9rem;
  line-height: 1.4rem;
  text-align: center;
}

.kuvagalleria_insert img {
  height: 255px;
  border: 6px solid #9fb097;
  border-radius: 15px;
  margin: 10px;
}

/*VIEREKKÄINEN INSERTTI */

/* <p class="content" style="padding-right:15px;">
  <p class="content" style="padding-left:15px;"> */

.article-wrapper {
  width: 100%;
  display: flex;
  justify-content: space-around;
  margin: auto;
  padding: 10px 0px 10px 0px;
}

.article-wrapper .content {
  width: 49%;
  margin: auto;
}

/* ALLEKIRJOITUS */
.signature {
  padding-left: 50px;
}

.signature-handwritten {
  font-size: 1.2rem;
  font-family: "Playfair Display";
  padding-left: 30px;
}

.signature-small {
  font-size: 0.7rem;
  padding-left: 30px;
}

.vwy_logo {
  width: 120px;
  float: right;
  padding-left: 60px;
  padding-right: 30px;
}

/* ALAPALKKI */
.footer {
  position: relative;
  background-color: #9fb097;
  margin: 0;
  width: 100%;
  display: flex;
  padding: 10px 0px 10px 0px;
}

.footer-wrapper {
  width: 55%;
  display: flex;
  justify-content: space-around;
  margin-left: auto;
  margin-right: auto;
}

.footer .content {
  font-family: "Playfair Display";
  font-size: 0.85rem;
  line-height: 1.2rem;
  font-weight: normal;
  width: 50%;
  text-transform: none;
  text-align: left;
  color: #183a1d;
}

.vertical {
  border-left: 1px solid #7d9278;
  border-top: 0;
  border-right: 0;
  border-bottom: 0;
  padding-left: 5px;
  top: 0;
}

.footer_mob {
  font-family: "Playfair Display";
  font-size: 0.85rem;
  line-height: 1rem;
  font-weight: normal;
  width: 95%;
  text-transform: none;
  text-align: left;
  color: #183a1d;
}

/* OTSIKOT 
  h1 -- banneriotsikko
  h2 -- sivun iso otsikko
  h3 -- osion väliotsikko */

h1 {
  color: #3a2518;
  font-family: "Playfair Display";
  font-size: 3rem;
  font-weight: normal;
  font-style: italic;
  letter-spacing: 1px;
  line-height: 3.2rem;
}

h2 {
  color: #183a1d;
  font-family: "Playfair Display";
  font-weight: normal;
  font-style: italic;
  font-size: 2.5rem;
  letter-spacing: 0.5px;
  text-decoration: underline;
  text-underline-offset: 0.5rem;
  text-decoration-color: #f6c453;
  text-decoration-thickness: 2px;
}

h3 {
  color: #183a1d;
  font-family: "Playfair Display";
  font-weight: normal;
  font-style: italic;
  font-size: 2rem;
  letter-spacing: 0.5px;
  padding-bottom: 5px;
  text-decoration: underline;
  text-underline-offset: 0.5rem;
  text-decoration-color: #f0a04b;
  text-decoration-thickness: 1px;
}

/* VIIVA */

.gradient {
  background: linear-gradient(to right, #fefbe9, #f6c453, #fefbe9);
  height: 1px;
  border: none;
}

.gradient-insert {
  background: linear-gradient(to right, #ecedda, #f0a04b, #ecedda);
  height: 1px;
  border: none;
}

/* KUVALLINEN HEVOSLISTAUS */

.hevostaulukko {
  width: 100%;
}
.hevostaulukko td {
  width: 20%;
  vertical-align: top;
  text-align: center;
  line-height: 1.275rem;
  font-size: 0.9rem;
}
.hevostaulukko img {
  width: 100%;
  max-width: 200px;
  height: auto;
  margin-top: 10px;
  border: 2px solid #9fb097;
}

.hevostaulukko_mob {
  width: 100%;
}

.hevostaulukko_mob td {
  width: 50%;
  vertical-align: top;
  text-align: left;
  padding-right: 60px;
}

.hevostaulukko a{
  font-size: 0.925rem;
}

.hevostaulukko i {
  font-size: 0.75rem;
  letter-spacing: 0px;
  line-height: 0.45rem;
}

/* KUVATON HEVOSLISTAUS */

.hevoslistaus {
  width: 90%;
  margin: auto;
  padding-bottom: 20px;
  border-spacing: 0;
}

.hevoslistaus th {
  font-size: smaller;
  text-transform: uppercase;
  font-weight: bold;
  border: none;
  background-color: #ecedda;
  font-family: "Roboto Condensed";
  color: #183a1d;
  cursor: pointer;
}

.hevoslistaus td {
  padding: 3px;
  border-bottom: 1px solid #dfdfb9;
}

.hevoslistaus .h_th1 {
  width: 10%;
  vertical-align: top;
}

.hevoslistaus .h_th2 {
  width: 7%;
  vertical-align: top;
}

.hevoslistaus .h_th3 {
  width: 21%;
  vertical-align: top;
}

.hevoslistaus .h_th4, 
.hevoslistaus .h_th5 {
  width: 18%;
  vertical-align: top;
}

.hevoslistaus .h_th6 {
  width: 26%;
  vertical-align: top;
}

/* PONIN SIVU */

.poni_kuvagalleria {
  text-align: center;
}

.poni_kuvagalleria img {
  max-height: 350px;
  width: auto;
  border: 2px solid #9fb097;
}

.poni_kuvagalleria2 {
  text-align: center;
}

.poni_kuvagalleria2 img {
  max-width: 100%;
  border: 2px solid #9fb097;
}

.poni_kuvagalleria3 {
  text-align: center;
}

.poni_kuvagalleria3 img {
  max-height: 200px;
  width: auto;
  border: 2px solid #9fb097;
}

.poni_perustiedot {
  width: 80%;
  margin: auto;
  vertical-align: top;
  text-align: left;
}

.poni_perustiedot td {
  vertical-align: top;
}

.poni_perustiedot .td1 {
  width: 12.5%;
}

.poni_perustiedot .td2 {
  width: 29.5%;
}

.poni_sukutaulu {
  width: 80%;
  margin: auto;
  border-spacing: 1px;
}

.poni_sukutaulu .oritd {
  background-color: #c6cab8;
  padding-left: 10px;
  width: 25%;
}

.poni_sukutaulu .tammatd {
  background-color: #d5d8c5;
  padding-left: 10px;
  width: 25%;
}

.poni_kilpailut {
  width: 90%;
  margin: auto;
}
.poni_kilpailut td {
  vertical-align: top;
  width: 45%;
}

.poni_kilpailut td img {
  padding-top: 20px;
  padding-left: 40px;
  max-width: 100%;
}

.porrastetut {
  display: flex;
  justify-content: center;
  align-items:start;
  height:100%;
}

.porrastetut-nro {
  position: relative;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 3px solid #9fb097;
  background-color: #d5d8c5;
  z-index: 1000;
}

.porrastetut-laji {
  position: absolute;
  top: -55px;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  color: #183a1d;
  font-size: 0.8rem;
  font-weight:bold;
  letter-spacing: 1px;
}

.porrastetut-taso {
  position: absolute;
  top: -35px;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
}

.porrastetut-taso {
  font-size: 3rem;
  font-family:"Roboto Condensed";
  font-style:normal;
  font-weight: normal;
}

.porrastetut-taso span {
  font-weight:normal;
}

.porrastetut-omp-total {
  position: absolute;
  top: 15px;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  color: #183a1d;
  font-size: 1rem;
  font-weight:normal;
  letter-spacing: 1px;
}

svg {
  position: relative;
  width: 150px;
  height: 150px;
  z-index: 1000;
}

svg circle {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: #c6cab8;
  stroke-width: 10;
  stroke-linecap: round;
  transform: translate(5px, 5px);
}

/* RIP */

.sukutaulu_rip {
  width: 650px;
  font-size: 0.85rem;
}

.sukutaulu_rip td {
  padding: 5px 5px 5px 20px;
  width: 33%;
}

/* KUVATON kasvattilistaus */
.kasvattilistaus {
  width: 90%;
  margin: auto;
  padding-bottom: 20px;
  border-spacing: 0;
}

.kasvattilistaus th {
  font-size: smaller;
  text-transform: uppercase;
  font-weight: bold;
  border: none;
  background-color: #ecedda;
  font-family: "Roboto Condensed";
  color: #183a1d;
}

.kasvattilistaus td {
  padding: 3px;
  border-bottom: 1px solid #dfdfb9;
}

.kasvattilistaus .h_th1 {
  width: 10%;
  vertical-align: top;
}

.kasvattilistaus .h_th2 {
  width: 9%;
  vertical-align: top;
}

.kasvattilistaus .h_th3 {
  width: 18%;
  vertical-align: top;
}

.kasvattilistaus .h_th4 {
  width: 24%;
  vertical-align: top;
}

.kasvattilistaus .h_th5,
.kasvattilistaus .h_th6 {
  width: 18%;
  vertical-align: top;
}

/* TUONTI HEVOSLISTAUS */
.evm-saavutukset {
  color: #3a2518;
  font-family: "Playfair Display";
  font-size: 0.85rem;
  font-weight: bold;
  display: block;
  margin-top: -15px;
  margin-bottom: 20px;
}

.evm-saavutukset a,
.evm-saavutukset a:visited,
.evm-saavutukset a:active {
  text-decoration: none;
  color: #3a2518;
}

.evm-saavutukset a:hover {
  color: #9fb097;
}

.flex-container {
  display: flex;
  align-items: center;
}

.flex-child {
  flex: 1;
}

.flex-child:first-child {
  text-align: right;
  margin-right: 0;
}

.flex-child:nth-child(2) {
  padding-left: 40px;
}

.flex-child .hevosen-kuva {
  border: 1px solid #9fb097;
  outline: 6px solid #d5d8c5;
  max-width: 420px;
}

/* VÄRIKOODIT

#FEFBE9 -- haalean vaalea vihreä (taustaväri)
#ecedda -- insertti
#DFDFB9 -- vaalea vihreä
#C0C388 -- kirkas vihreä
#9fb097 -- tummahko vihreä
#4A6545 -- tumma vihreä (yläpalkki)
#183A1D -- tummin vihreä (teksti)
#3A2518 -- tumma ruskea
#F0A04B -- oranssi 
#F6C453 -- keltainen
*/