/**
 * Button Block styles
 */

/* Default button style*/

.wp-block-button .wp-block-button__link {
  background-color: #253746;
  border-radius: 10px;
}

.wp-block-button .wp-block-button__link:hover,
.wp-block-button .wp-block-button__link.has-meri-background-color:hover,
.wp-block-button .wp-block-button__link.has-horisontti-background-color:hover,
.wp-block-button .wp-block-button__link.has-valkoinen-background-color:hover {
  background-color: #007398 !important;
  text-decoration: none;
}

.wp-block-button .wp-block-button__link.has-poutataivas-background-color:hover {
  background-color: #b3e9fb !important;
  text-decoration: none;
}

.wp-block-button .wp-block-button__link.has-tiili-background-color:hover {
  filter: brightness(110%);
  background-color: #c04c36 !important;
  text-decoration: none;
}

.wp-block-button .wp-block-button__link.has-mansku-background-color:hover {
  filter: brightness(110%);
  background-color: #cf8097 !important;
  text-decoration: none;
}

.wp-block-button .wp-block-button__link.has-raatihuone-background-color:hover {
  filter: brightness(110%);
  background-color: #eaaa00 !important;
  text-decoration: none;
}

.wpcf7 .wpcf7-submit,
/*.wp-block-button .wp-block-button__link,*/
.wp-block-button.is-style-default .wp-block-button__link {
  color: #ffffff;
  font-weight: 700;
  font-family: "Open Sans";
  border-radius: 10px;
  background-color: #253746;
  text-align: left;
  border: 0;
  transition: all 0.25s ease-in-out;
}

.wpcf7 .wpcf7-submit,
.forminator-button,
.winres-web-component .btn {
  font-family: "Open Sans";
  background: #253746;
  color: #ffffff;
  border: 0;
  padding: 15px 30px;
  border-radius: 10px;
  transition: all 0.2s ease-in-out;
  text-decoration: none;
}

/*.wp-block-button .wp-block-button__link:hover,*/
.wpcf7 .wpcf7-submit:hover,
.forminator-button:hover,
.winres-web-component .btn:hover {
  background: #007398 !important;
  text-decoration: none;
  color: #ffffff !important;
}

.wp-block-button.is-style-default .wp-block-button__link {
  min-width: 100%;
}

.wp-block-button.is-style-default .wp-block-button__link:before {
  font-family: "Font Awesome 6 Pro";
  font-weight: 400;
  content: "\f061";
  color: #ffffff;
  padding-right: 10px;
}

.wp-block-button.is-style-default .wp-block-button__link:hover {
  text-decoration: none;
  background: #007398;
}

@media screen and (min-width: 992px) {
  .wp-block-button.is-style-default .wp-block-button__link {
    min-width: 315px;
    font-size: 24px;
    line-height: 28.8px;
    padding: 15px 15px 15px 0px;
  }

  .wp-block-button.is-style-default .wp-block-button__link:before {
    padding: 15px;
  }
}

/* Big button style*/
.wp-block-button.is-style-big .wp-block-button__link {
  background-color: #ffffff;
  font-family: "Open Sans";
  color: #253746;
  border: 1px solid #d0d0d0;
  border: 0;
  border-radius: 10px;
  transition: all 0.2s ease-in-out;
}

.wp-block-button.is-style-big .wp-block-button__link:before {
  font-family: "Font Awesome 6 Pro";
  padding-right: 10px;
  font-weight: 400;
  content: "\f061";
  color: inherit;
}

.wp-block-button.is-style-big .wp-block-button__link:hover {
  background-color: #007398;
  color: #ffffff;
  text-decoration: none;
}

.wp-block-button.is-style-big
  .wp-block-button__link.has-meri-background-color:hover {
  background: #007398 !important;
  color: #ffffff;
  text-decoration: none;
}

.wp-block-button.is-style-big .wp-block-button__link:hover:before {
  color: inherit;
}

@media screen and (min-width: 992px) {
  .wp-block-button.is-style-big .wp-block-button__link {
    padding: 15px 15px;
    font-size: 18px;
    line-height: 27px;
  }

  .wp-block-button.is-style-big .wp-block-button__link:before {
    padding: 15px 15px 15px 0;
  }
}

/* Large button style */
.wp-block-button.is-style-large .wp-block-button__link {
  border-radius: 10px;
  font-family: "Open Sans";
  background-color: #253746;
  color: #ffffff;
  text-align: center;
  font-weight: 400 !important;
  padding: 0.8rem 3rem;
  transition: all 0.2s ease-in-out;
}

.wp-block-button.is-style-large .wp-block-button__link:before {
  content: none;
}

.wp-block-button.is-style-large .wp-block-button__link:hover {
  background-color: #007398;
  text-decoration: none;
}

@media screen and (min-width: 992px) {
  .wp-block-button.is-style-large .wp-block-button__link {
    font-size: 18px;
    line-height: 27px;
  }
}

/* Experience buttons style */
/*.experience-buttons {
  justify-content: space-between;
}*/

@media (max-width: 992px) {
  .wp-block-buttons.experience-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .wp-block-buttons.etusivu,
  .wp-block-buttons.experience-buttons {
    font-size: 0.9em;
    gap: 0.35em;
    /*display: grid;
    grid-template-columns: 1fr 1fr;
    row-gap: 0.5rem;*/
  }
  .wp-block-buttons.experience-buttons {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .wp-block-buttons.etusivu .wp-block-button,
  .wp-block-buttons.etusivu .wp-block-button__link {
    height: 100%;
  }
  .wp-block-buttons.etusivu .wp-block-button__link {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1rem;
  }
}

@media (max-width: 340px) {
  .wp-block-buttons.etusivu,
  .wp-block-buttons.experience-buttons {
    display: grid;
    grid-template-columns: 1fr;
    row-gap: 0.5rem;
  }
}

.experience-buttons .wp-block-button {
  /*width: 33.33%;*/
  margin: 0;
  flex-basis: 33.33%; /* 8rem */
}

@media only screen and (min-width: 768px) {
  .experience-buttons .wp-block-button {
    /*width: 13.65%;*/
    flex-basis: 9rem;
  }
}

.wp-block-button.saaristo-button .wp-block-button__link,
.wp-block-button.tapahtumat-button .wp-block-button__link,
.wp-block-button.nahtavyydet-button .wp-block-button__link,
.wp-block-button.aktiviteetit-button .wp-block-button__link,
.wp-block-button.kierrokset-button .wp-block-button__link,
.wp-block-button.shoppailu-button .wp-block-button__link,
.wp-block-button.hyvinvointi-button .wp-block-button__link {
  color: #253746;
  font-family: "Open Sans";
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  transition: all 0.2s ease-in-out;
  width: 100%;
  border-radius: 10px;
  padding: 0.5rem;
}

@media (min-width: 768px) {
  .wp-block-button.saaristo-button .wp-block-button__link,
  .wp-block-button.tapahtumat-button .wp-block-button__link,
  .wp-block-button.nahtavyydet-button .wp-block-button__link,
  .wp-block-button.aktiviteetit-button .wp-block-button__link,
  .wp-block-button.kierrokset-button .wp-block-button__link,
  .wp-block-button.shoppailu-button .wp-block-button__link,
  .wp-block-button.hyvinvointi-button .wp-block-button__link {
    font-size: 18px;
    padding: 1rem;
    height: 145px;
  }
}

.wp-block-button.saaristo-button .wp-block-button__link:before {
  content: "\f21a";
  font-family: "Font Awesome 6 Pro";
  display: block;
  font-size: 40px;
  margin-bottom: 0.5rem;
}

.wp-block-button.saaristo-button .wp-block-button__link:hover {
  background-color: #e0f6f5 !important;
  text-decoration: none;
}

.wp-block-button.tapahtumat-button .wp-block-button__link:before {
  content: "\f86d";
  font-family: "Font Awesome 6 Pro";
  display: block;
  font-size: 40px;
  margin-bottom: 0.5rem;
}

.wp-block-button.tapahtumat-button .wp-block-button__link:hover {
  background-color: #f8f1df !important;
  text-decoration: none;
}

.wp-block-button.nahtavyydet-button .wp-block-button__link:before {
  content: url("../images/nahtavyydet-icon.svg");
  display: block;
  font-size: 40px;
  margin-bottom: 0.5rem;
}

.wp-block-button.nahtavyydet-button .wp-block-button__link:hover {
  background-color: #fce1e9 !important;
  text-decoration: none;
}

.wp-block-button.aktiviteetit-button .wp-block-button__link:before {
  content: "\f6ec";
  font-family: "Font Awesome 6 Pro";
  display: block;
  font-size: 40px;
  margin-bottom: 0.5rem;
}

.wp-block-button.aktiviteetit-button .wp-block-button__link:hover {
  background-color: #d5f4ee !important;
  text-decoration: none;
}

.wp-block-button.kierrokset-button .wp-block-button__link:before {
  content: "\f4d7";
  font-family: "Font Awesome 6 Pro";
  display: block;
  font-size: 40px;
  margin-bottom: 0.5rem;
}

.wp-block-button.kierrokset-button .wp-block-button__link:hover {
  background-color: #f8f1df !important;
  text-decoration: none;
}

.wp-block-button.shoppailu-button .wp-block-button__link:before {
  content: "\f290";
  font-family: "Font Awesome 6 Pro";
  display: block;
  font-size: 40px;
  margin-bottom: 0.5rem;
}

.wp-block-button.shoppailu-button .wp-block-button__link:hover {
  background-color: #fee1dc !important;
  text-decoration: none;
}

.wp-block-button.hyvinvointi-button .wp-block-button__link:before {
  content: url("../images/hyvinvointi-icon.svg");
  font-family: "Font Awesome 6 Pro";
  display: block;
  font-size: 40px;
  margin-bottom: 0.5rem;
}

.wp-block-button.hyvinvointi-button .wp-block-button__link:hover {
  background-color: #fce1e9 !important;
  text-decoration: none;
}

/* Inline buttons */

/* Icon left */
.wp-block-button.is-style-inline-left .wp-block-button__link,
.wp-block-button.is-style-inline .wp-block-button__link {
  text-decoration: none;
  font-size: 1.15rem;
  font-weight: 600;
  color: #253746;
  font-family: "Open Sans";
  border-radius: 0px;
  background-color: transparent;
  text-align: left;
  padding: 0;
  border-bottom: 2px solid transparent;
  transition: all 0.25s ease-in;
}

.wp-block-button.is-style-inline .wp-block-button__link:hover,
.wp-block-button.is-style-inline-left .wp-block-button__link:hover {
  text-decoration: none;
  font-weight: 600;
  color: inherit;
  background-color: transparent !important;
  padding: 0;
  border-bottom: 2px solid #007398;
}

.wp-block-button.is-style-inline-left .wp-block-button__link::before {
  content: "\f061";
  font-family: "Font Awesome 6 Pro";
  padding-right: 0.5rem;
}

/* Icon right */
.wp-block-button.is-style-inline-right .wp-block-button__link {
  text-decoration: none;
  font-size: 1.15rem;
  font-weight: 600;
  color: #253746;
  font-family: "Open Sans";
  border-radius: 0px;
  background-color: transparent;
  text-align: left;
  padding: 0;
  border-bottom: 2px solid transparent;
  transition: all 0.25s ease-in;
}

.wp-block-button.is-style-inline .wp-block-button__link:hover,
.wp-block-button.is-style-inline-left .wp-block-button__link:hover,
.wp-block-button.is-style-inline-right:not(.has-custom-font-size) .wp-block-button__link:hover {
  font-size: 1.15rem;
}

.wp-block-button.is-style-inline-right .wp-block-button__link:hover {
  text-decoration: none;
  font-weight: 600;
  color: inherit;
  background-color: transparent !important;
  padding: 0;
  border-bottom: 2px solid #007398;
}

.wp-block-button.is-style-inline-right .wp-block-button__link::after {
  content: "\f061";
  font-family: "Font Awesome 6 Pro";
  padding-left: 0.5rem;
}