@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 {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  height: 12vh;
  background-color: #4a6545;
  width: 100%;
}

nav a {
  color: #fefbe9;
  text-decoration: none;
}

/* PÄÄOTSIKKO */

.logo {
  color: #ecedda;
  text-decoration: none;
  font-family: "Great Vibes";
  font-size: 3.5rem;
  font-weight: normal;
}

/* 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;
  padding-top: 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: 240px;
  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;
}

/* 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;
  text-align: center;
  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;
  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;
  margin: 2% 0 2% 0;
}

.gradient-insert {
  background: linear-gradient(to right, #ecedda, #f0a04b, #ecedda);
  height: 1px;
  border: none;
  margin: 2% 0 2% 0;
}

/* PONIN SIVU */

.poni_kuvagalleria {
  text-align: center;
  padding-top: 1%;
}

.poni_kuvagalleria img {
  max-height: 350px;
  width: auto;
  border: 2px solid #9fb097;
}

.poni_kuvagalleria4 {
  text-align: center;
}

.poni_kuvagalleria4 img {
  max-height: 200px;
  width: auto;
  border: 2px solid #9fb097;
}

.poni_perustiedot {
  width: 60%;
  margin: auto;
  vertical-align: top;
  text-align: left;
  padding: 1%;
}

.poni_perustiedot td {
  vertical-align: top;
}

.poni_perustiedot td:nth-child(1) {
  text-align: right;
  width: 33%;
}

.poni_perustiedot td:nth-child(2) {
  text-align: right;
  width: 17%;
  padding-right: 1.5%;
}

.poni_perustiedot td:nth-child(3) {
  padding-left: 1.5%;
  width: 17%;
}

.poni_perustiedot td:nth-child(4) {
  width: 33%;
}

.meriitit_wrapper {
  max-width: 80%;
  margin: 0 auto;
  padding: 2% 0 1% 0;
}

.meriitit_container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.meriitti {
  background-color: #d5d8c5;
  padding: 1%;
  text-align: center;
  border: 1px solid #c6cab8;
  border-radius: 5px;
  font-size: 0.7rem;
  line-height: normal;
  flex-grow: 0;
  flex-shrink: 1;
  flex-basis: auto;
  flex-basis: calc(13% - 10px);
}

.meriitti b {
  font-size: 0.9rem;
}

.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%;
}
