/* Selima Regular*/
@font-face {
  font-family: 'selimaregular';
  font-weight: normal;
  font-style: normal;
  font-display: swap;
  src: url('fonts/selima_-webfont.woff') format('woff');
}

/* Perustyylit */
html {
  background-color: #fff;
  padding: 0;
  margin: 0;
}

body {
  font-family: 'Open Sans Condensed', Garamond, Helvetica, sans-serif;
  font-size: 1.3em;
  padding: 0;
  margin: 0;
}

main {
  background-color: #fff;
}

footer {
  background-color: #fff;
  display: block;
  padding-left: 4%;
  font-size: smaller;
}

article {
  padding: 20px;
}

h1 {
  font-family: 'selimaregular', "Brush Script MT", Helvetica, sans-serif;
  color: #fff;
  font-size: 3.5em;
  text-align: center;
  padding: 0;
  margin: 0;
}

h2 {
  font-family: 'Open Sans Condensed', Garamond, Helvetica, sans-serif;
  font-size: 0.8em;
  display: block;
  padding: 0;
  margin: 0;
  font-weight: normal;
}

h3 {
  margin: 15px 0;
}

/* Lisätyylit*/
.indent-25px {
  margin: 0;
  padding-left: 25px;
}

.marg0 {
  margin: 0;
}

.luomumerkki {
  margin-top: 10%;
  font-size: medium;
  line-height: 1.2;
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.flex-row {
  flex-direction: row;
}

.gap-2 {
  gap: 30px;
}

.mb-4 {
  margin-bottom: 4%;
}

/* Linkkien tyylit */
.styled-anchor {
  text-decoration: none;
  color: black;
}

.bold {
  font-weight: bold;
}

.underline {
  text-decoration: underline;
}

.styled-anchor:hover {
  color: #245FA8;
  text-decoration: underline;
}

.reko:visited {
  color: purple;
}

.face-a {
  display: inline-block;
  text-align: center;
  height: 64px;
  width: 64px;
  margin: 6px;
}

.face-img {
  height: 100%;
}

.face-a:hover {
  height: 70px;
  margin: 0;
}

/* Header, navigaatio */
header {
  width: 100%;
  background-image: url(kuvat/elokuu2024.jpg);
  background-repeat: no-repeat;
  background-size: 100%;
  margin-top: 30px;
  padding: 5% 0;
  display: flex;
  flex-direction: column;
}

header a {
  text-decoration: none;
  display: block;
}

header span {
  display: block;
}

#logo {
  height: 150px;
  margin: auto;
  display: block;
  padding: 5%;
}

#menu-toggle {
  display: block;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  height: 30px;
  color: rgba(71, 106, 111, 0.6);
  background: white;
  text-decoration: none;
}

#egg {
  margin-left: 5px;
  display: inline-block;
  width: 11.34px;
  height: 16.2px;
  background-color: rgba(71, 106, 111, 0.6);
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
}

#menu-toggle span {
  padding-left: 5px;
}

#menu {
  position: absolute;
  font-size: 1.4em;
  top: 30px;
  display: none;
  padding: 0;
  margin: 0;
  background: white;
  width: 100%;
}

#menu li {
  display: block;
  border: thin solid rgba(71, 106, 111, 0.4);
  text-align: center;
}

#home-d {
  display: none !important;
}

li.bordered+li.bordered {
  border-top: 0 none !important;
}

#menu li a {
  text-decoration: none;
  color: rgba(71, 106, 111, 0.8);
  display: block;
  padding: 10px 0;
}

#menu li a:hover {
  background-color: rgba(126, 176, 155, 0.8);
  color: white;
}

/* Footer */
footer p {
  margin: 0;
  padding: 20px 0;
}

/* Google maps upotus */
.resp-container {
  position: relative;
  padding-bottom: 200px;
  padding-top: 200px;
  height: 0;
  text-align: center;
}

.resp-iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Facebook upotus */
#fbook {
  width: 100%;
  padding: 232px 0;
  text-align: center;
}

#face {
  height: 0;
  border: none;
}

#face-load {
  display: inline-block;
  height: 36px;
}

/* Instagram feed */
.insta-feed {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  column-gap: 5px;
  row-gap: 5px;
}

.insta-anchor {
  padding: 0;
  margin: 0;
}

.insta-img {
  vertical-align: bottom;
  max-width: 100%;
  max-height: 100%;
}

/* Email */
.sposti:after {
  content: attr(data-nimi) "@" attr(data-domain) "." attr(data-tld);
}

/* Ajankohtaiset */
.ajankohtainen {
  padding: 0.5em 0;
}

.ajankohtainen-container1 {
  display: flex;
  flex-direction: column;
}

.ajankohtainen-cont1-item2 {
  max-width: 100%;
  margin-top: 4%;
}

/* Viivat */
hr.solid {
  border: 0;
  height: 1px;
  background: #476A6F;
  background-image: linear-gradient(to right, #9BBBBF, #476A6F, #9BBBBF);
}

.divider {
  position: relative;
  height: 1px;
  margin: 1em 0;
  padding-bottom: 1em;
  border: none;
  width: 100%;
}

.div-transparent:before {
  content: "";
  position: absolute;
  top: 0;
  left: 5%;
  right: 5%;
  height: 4px;
  background-image: linear-gradient(to right, transparent, rgba(71, 106, 111, 0.5), transparent);
}

/* Aside */
aside section {
  padding: 0.2em 1em 1em 1em;
  margin: 5px;
  background-color: rgba(71, 106, 111, 0.3);
  border-radius: 8px;
}

.faded {
  opacity: 0.3;
}

/* Contact info */
.cinfo {
  padding-bottom: 2em;
}

/* Kuvien tyylit */
.largepic {
  display: block;
  max-width: 100%;
  height: auto;
  padding: 10px 0;
}

.oneofthree {
  max-width: 100%;
}

.oneoftwo {
  max-width: 100%;
}

.flex-item1 {
  max-width: 100%;
}

.flex-item2 {
  max-width: 100%;
}

.vertical-img {
  max-width: 100%;
  padding: 0 0 20px 0;
}

.collage1 {
  display: flex;
  max-width: 100%;
  align-items: flex-start;
}

.coll1-container1 {
  display: flex;
  flex-direction: column;
  max-width: 47.25%;
  margin-right: 1%;
}

.coll1-cont1-item1 {
  max-width: 100%;
  margin-bottom: 2.5%
}

.coll1-cont1-item2 {
  max-width: 100%;
}

.coll1-container2 {
  display: flex;
  flex-direction: column;
  max-width: 52.75%;
}

.coll1-cont2-item1 {
  max-width: 100%;
  margin-bottom: 2.5%;
}

.coll1-cont2-item2 {
  max-width: 100%;
}

.collage2 {
  display: flex;
  max-width: 100%;
}

.coll2-item {
  max-width: 25%;
}

.float-left {
  width: 100%;
  display: block;
  padding-bottom: 30px;
}

.float-right {
  width: 100%;
  display: block;
  padding-bottom: 30px;
}

/* Noscript menu */
.ns-menu ul {
  list-style-type: none;
  padding: 0;
}

.ns-menu li {
  background-color: rgba(71, 106, 111, 0.2);
  border-radius: 2px;
  margin: 5px;
  text-align: center;
}

.ns-menu a {
  display: block;
  text-decoration: none;
  color: black;
  font-size: 1.3em;
  padding: 10px 0;
}

@media only screen and (min-width: 450px) {

  /* Pienet tabletit ja isot puhelimet */
  /* Perustyylit */
  h1 {
    padding: 5%
  }

  article {
    padding: 30px;
  }

  /* Navigaatio */
  #logo {
    height: 200px;
    padding: 0;
  }

  #menu li a {
    padding: 20px 0;
  }

  /* Main */
  main {
    display: flex;
    position: relative;
  }

  .articles {
    flex: 2;
  }

  aside {
    flex: 1;
    padding: 5px;
  }

  /* Kuvien tyylit*/
  .manypics {
    padding-top: 1.5em;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
  }

  .oneofthree {
    max-width: 33%;
    flex-shrink: 0;
  }

  .oneoftwo {
    max-width: 49.75%;
    flex-shrink: 0;
  }

  .flex-item1 {
    max-width: 39.6%;
    flex-shrink: 0;
  }

  .flex-item2 {
    max-width: 19.8%;
    flex-shrink: 0;
  }

  .largepic {
    padding: 30px 0;
  }

  .vertical-img {
    max-width: 400px;
  }
}

@media only screen and (min-width: 900px) {

  /* Isot tabletit */
  /* Perustyylit */
  body {
    background-color: #F3F7F7;
  }

  h1 {
    font-size: 3.8em;
  }

  h2 {
    font-size: 1.2em;
  }

  h3 {
    font-size: 1.5em;
  }

  /* Navigaatio */
  header {
    margin: 0;
  }

  #menu-toggle {
    display: none;
  }

  #menu {
    position: static;
    display: flex !important;
    flex-direction: row;
    list-style-type: none;
    margin-bottom: 0%;
    margin-top: 0%;
    padding-left: 0%;
    font-size: 1.2em;
    border-bottom: thin solid rgba(71, 106, 111, 0.4);
  }

  #menu li {
    flex: auto;
    display: inline;
    border: none;
  }

  #menu li a {
    padding: 0.2em 0;
    color: #476A6F;
  }

  #menu li a:hover {
    background-color: rgba(126, 176, 155, 0.8);
    color: white;
  }

  #homeicon {
    width: 1em;
    height: 1em;
  }

  #homeicon-h2 {
    text-align: center;
  }

  #home-d {
    display: inline-block !important;
  }

  #home-m {
    display: none !important;
  }

  /* Main */
  main {
    display: flex;
    position: relative;
  }

  .articles {
    flex: 2;
  }

  aside {
    flex: 1;
    padding: 5px;
  }

  /* Kuvat */
  .largepic {
    flex-shrink: 0;
  }
  .collage1 {
    max-width: 50%;
  }

  .float-left {
    float: left;
    padding-right: 5%;
    padding-bottom: 5px;
    width: 300px;
  }

  .float-right {
    float: right;
    padding-left: 5%;
    padding-bottom: 5px;
    width: 350px;
  }

  /* Viivat */
  .div-transparent:before {
    top: 0;
    left: 0%;
    right: 0%;
    width: 100%;
    height: 6px;
  }

  hr.solid {
    border-top: 1px rgba(71, 106, 111, 0.5);
    color: rgba(71, 106, 111, 0.5);
  }

  /* Noscript menu */
  .ns-menu {
    display: none;
  }

  /* Ajankohtainen */
  .ajankohtainen-container1 {
    flex-direction: row;
    align-items: flex-start;
  }
  .ajankohtainen-cont1-item2 {
    max-width: 50%;
    margin-top: 0%;
    padding-left: 5%;
  }

  .justify-start {
    justify-content: flex-start;
  }
  .justify-between {
    justify-content: space-between;
  }
}

@media only screen and (min-width: 1100px) and (min-aspect-ratio: 4/3) {

  /* Desktop */
  /* Perustyylit */
  html {
    background-image: url(kuvat/elokuu2024.jpg);
    background-repeat: no-repeat;
    background-size: 100%;
    background-attachment: fixed;
  }

  body {
    font-size: 1.4em;
    padding: 5% 5% 1.5% 5%;
    background-color: transparent;
  }

  main {
    background-color: rgba(255, 255, 255, 0.9);
    padding-bottom: 1em;
  }

  footer {
    background-color: rgba(255, 255, 255, 0.9);
    padding-bottom: 1em;
  }

  footer p {
    padding-top: 0;
    margin: 0;
  }

  h1 {
    font-size: 3.8em;
  }

  header {
    background-image: none;
    padding: 0;
  }

  header span {
    display: inline-block;
  }

  /* Navigaatio */
  #menu {
    background-color: rgba(255, 255, 255, 0.9);
    border-bottom: thin solid #ADBABD;
  }

  #menu li {
    border: none;
  }

  #menu li a {
    padding: 0.6em 0;
  }

  /* Ajankohtaiset */
  .akdate {
    font-size: 1.2em;
  }

}

@media only screen and (min-width: 1200px) {

  /* Main */
  .articles {
    flex: 3;
  }

  aside {
    flex: 1;
  }

}