:root {
    --primary: #ED2B2A;
    --secondary: #FFF0E6;
    --light: #F8F8F9;
    --dark: #1f1c6f;
}
.bg-dark {
  background: #ffd168!important;
}
.bg-dark .navbar a {
  color:#000!important;
}
@media (max-width: 992px) {
  .bg-dark .navbar a {
    color:#fff!important;
  }
  .bg-dark {
    background: #ffd168!important;
  }
  .bg-dark .navbar .navbar-toggler {
    background-color: #1f1c6f!important;
  }
}
.contentimg img {
  width: 100%!important;
  height: auto!important;
  float: left;
  max-width: 600px!important;
}
.bg-secondary {
  background: #ffd168!important;
}
.text-primary {
  color:#000!important;
}
.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 30px;
    z-index: 99;
    background: #fff!important;
}
.tmpl-yhteystiedot form {
  margin-top: 2em;
}
h1 {
  font-size: 2em;
}
h2 {
  font-size: 1.6em;
}
h3, h4 {
  font-size: 1.2em;
}
a {
  color:Blue;
}
a:hover {
  color:Blue;
  text-decoration: underline;
}
.service-item {
    box-shadow: 0 0 45px rgba(0, 0, 0, .06);
}
.service-item a.btn {
    color:#000!important;
}
/* Lataaja */
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}
/* Buttonit */
.btn {
    font-weight: 500;
    transition: .5s;
}
.btn.btn-outline-primary{
    color: #FFFFFF;
    background: transparent;
    border-color: #ffd168;
}
.bg-dark .btn.btn-outline-primary{
    color: #FFFFFF!important;
    background: #1f1c6f;
    border-color: #ffd168;
}
.bg-dark .btn.btn-outline-primary:hover{
    color: #FFF!important;
    background: #000;
    border-color: #ffd168;
}
.btn.btn-primary i, .btn.btn-outline-primary i{
    color: #1f1c6f;
}
.btn.btn-primary,
.btn.btn-outline-primary:hover,.btn-primary  {
    color: #000;
    background: #ffd168;
    border-color: #ffd168;
}
.ajanvaraus .btn-primary {
    background: #1f1c6f;
    border-color: #ffd168;
}
.ajanvaraus .btn-primary a {
    color: #fff;
}
.ajanvaraus .btn-primary:hover {
    color: #fff;
    background: #000!important;
}
.donate .btn-primary a {
    color: #000;
}
.donate .btn-primary a:hover, .donate .btn-primary:hover {
    color: #fff!important;
}
.btn.btn-primary:hover {
    color: #fff;
    background: #1f1c6f;
}
.valikko a, .valikko {
  color: #000!important;
}
.btn-square {
    width: 38px;
    height: 38px;
}
.btn-sm-square {
    width: 32px;
    height: 32px;
}
.btn-lg-square {
    width: 48px;
    height: 48px;
}
.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}
/* Valikko */
.fixed-top {
    transition: .5s;
}
.top-bar {
    height: 45px;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.top-bar .text-start small a {
  color:#fff;
}
.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}
.navbar .navbar-nav .nav-link {
    margin-right: 30px;
    padding: 25px 0;
    color: #FFFFFF;
    font-weight: 400;
    outline: none;
}
.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: #fff;
    font-weight: 700;
    text-decoration: underline;
}
.text-end a i:hover{
    color: #1f1c6f;
}
.moblink {
  display: none;
  background: #ffd168;
  padding-left: 10px!important;
  font-weight: 700!important;
  color:#000!important;
  margin-top: 10px;
  border-radius: 10px;
}
@media (max-width: 1100px) {
    .navbar .navbar-nav .nav-link {
        font-size: 14px;
    }
    .d-none .btn-outline-primary {
      display: none;
    }
    .navbar img {
      width: 150px;
      height: auto;
    }
}
@media (max-width: 991.98px) {
    .navbar .navbar-nav {
        margin-top: 10px;
        border-top: 1px solid rgba(0, 0, 0, .07);
        background: var(--dark);
    }
    .navbar .navbar-nav .nav-link {
        padding: 10px 0;
    }
    .navbar img {
      width: 200px;
      height: auto;
    }
    .moblink {
      display: block;
    }
}
@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        visibility: hidden;
        top: 100%;
        transform: rotateX(-75deg);
        transform-origin: 0% 0%;
        transition: .5s;
        opacity: 0;
    }
    .navbar .nav-item:hover .dropdown-menu {
        transform: rotateX(0deg);
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}
/* Header */
.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: rgba(31, 28, 111, .8);
    z-index: 1;
}
.carousel-control-prev,
.carousel-control-next {
    width: 15%;
}
.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
    background-color: var(--dark);
    border: 12px solid var(--dark);
    border-radius: 3rem;
}
@media (max-width: 768px) {
    #header-carousel .carousel-item {
        position: relative;
        min-height: 450px;
    }
    #header-carousel .carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    .carousel h2 {
      font-size: 1.6em;
      margin-bottom: 1.5em!important;
    }
    .carousel p {
      display: none;
    }
}

.page-header {
    padding-top: 12rem;
    padding-bottom: 6rem;
    background: linear-gradient(rgba(31, 28, 111, .8), rgba(31, 28, 111, .8)), url(/assets/img/bg-contact.jpg) center center no-repeat;
    background-size: cover;
}
.page-header h2 {
  font-size: 2em;
}
.page-header .breadcrumb-item+.breadcrumb-item::before {
    color: #999999;
}
.breadcrumb li a {
  color:#ddd;
}
.breadcrumb li.active a {
  color:#ddd;
  font-weight: 700;
}
.breadcrumb li a:hover {
  color:#ddd;
  text-decoration: underline;
}
/* Ota yhteyttä */
.donate {
    background: rgba(31, 28, 111, .8);
    margin-bottom: 0em!important;
}
.btn-group .btn-light:hover,
.btn-group input[type="radio"]:checked+label {
    color: var(--primary);
    border-color: var(--primary);
}
.donate .richtext a {
  color:blue;
}
.donate .richtext a:hover {
  color:blue;
  text-decoration: underline;
}
/* Uutiset */
.blog-archive {
  margin-top: 2em;
}
.blog-item {
  border: 1px solid #ddd;
  padding:1em;
  border-radius: 10px;
}
.blog-item .date {

}
.blog-item h3 a {
  color:#1f1c6f;
}
.blog-item img {
  width: 100%;
  height: auto;
  max-width: 400px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}
/* Footer */
.footer {
      margin-top: 0em!important;
}
.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: rgba(255,255,255,0.5);
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}
.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: rgba(255,255,255,0.5);
    margin-right: 10px;
}
.footer .btn.btn-link:hover {
    color: var(--light);
    letter-spacing: 1px;
    box-shadow: none;
}
.footer .btn.btn-square {
    color: rgba(255,255,255,0.5);
    border: 1px solid rgba(255,255,255,0.5);
}
.footer .btn.btn-square:hover {
	color: var(--secondary);
	border-color: #1f1c6f;
	background: #1f1c6f;
}
.footer .copyright {
    padding: 25px 0;
    font-size: 15px;
    border-top: 1px solid rgba(256, 256, 256, .1);
}
.footer .copyright a {
    color: #000;
}
.footer .copyright a:hover {
    color: #000;
    text-decoration: underline;
}
