html {overflow-y: scroll;
width: 100%;}

body {
  margin: 0 !important;
  padding: 0;
  display: block !important;
  /*background-image: url('etusivuKuva.png');*/
  color: black !important;
  background: white !important;
  /*width:auto;
  height:auto;*/
  width: 100% !important;
  font-family: 'Montserrat', 'Roboto',sans-serif, tahoma, helvetica, times, verdana !important;
  font-size:16px;
  /*font-family: "Trebuchet MS", Verdana, sans-serif;*/
}



/*//Lisätään valmiit luokat Flexboxin gridille:
//HUOM! Käytä tätä Bootstrapin gripin sijasta, mikäli haluat, että vierekkäiset divit ovat yhtä korkeita.*/

.flex-row {
  position:relative;
  display: flex;
  flex-flow: row wrap;
  justify-content: flex-start;
}

/* Common styles for small and large grid columns */
.flex-col-1, .flex-col-2, .flex-col-3, .flex-col-4, .flex-col-5, .flex-col-6, .flex-col-7, .flex-col-8, .flex-col-9, .flex-col-10, .flex-col-11, .flex-col-12,
.flex-col-sm-1, .flex-col-sm-2, .flex-col-sm-3, .flex-col-sm-4, .flex-col-sm-5, .flex-col-sm-6, .flex-col-sm-7, .flex-col-sm-8, .flex-col-sm-9, .flex-col-sm-10, .flex-col-sm-11, .flex-col-sm-12,
.flex-col-lg-1, .flex-col-lg-2, .flex-col-lg-3, .flex-col-lg-4, .flex-col-lg-5, .flex-col-lg-6, .flex-col-lg-7, .flex-col-lg-8, .flex-col-lg-9, .flex-col-lg-10, .flex-col-lg-11, .flex-col-lg-12 {
  box-sizing: border-box;
  flex: 0 0;
  flex-basis: 100%;
}

/* Extra small device columns (smartphones) */
.flex-col-1 { flex-basis: calc(1 / 12 * 100%); }
.flex-col-2 { flex-basis: calc(2 / 12 * 100%); }
.flex-col-3 { flex-basis: calc(3 / 12 * 100%); }
.flex-col-4 { flex-basis: calc(4 / 12 * 100%); }
.flex-col-5 { flex-basis: calc(5 / 12 * 100%); }
.flex-col-6 { flex-basis: calc(6 / 12 * 100%); }
.flex-col-7 { flex-basis: calc(7 / 12 * 100%); }
.flex-col-8 { flex-basis: calc(8 / 12 * 100%); }
.flex-col-9 { flex-basis: calc(9 / 12 * 100%); }
.flex-col-10 { flex-basis: calc(10 / 12 * 100%); }
.flex-col-11 { flex-basis: calc(11 / 12 * 100%); }
.flex-col-12 { flex-basis: 100%; }

/* Small device columns (phones to tablets) */
@media (min-width: 768px) and (max-width: 991px) {
  .flex-col-sm-1 { flex-basis: calc(1 / 12 * 100%); }
  .flex-col-sm-2 { flex-basis: calc(2 / 12 * 100%); }
  .flex-col-sm-3 { flex-basis: calc(3 / 12 * 100%); }
  .flex-col-sm-4 { flex-basis: calc(4 / 12 * 100%); }
  .flex-col-sm-5 { flex-basis: calc(5 / 12 * 100%); }
  .flex-col-sm-6 { flex-basis: calc(6 / 12 * 100%); }
  .flex-col-sm-7 { flex-basis: calc(7 / 12 * 100%); }
  .flex-col-sm-8 { flex-basis: calc(8 / 12 * 100%); }
  .flex-col-sm-9 { flex-basis: calc(9 / 12 * 100%); }
  .flex-col-sm-10 { flex-basis: calc(10 / 12 * 100%); }
  .flex-col-sm-11 { flex-basis: calc(11 / 12 * 100%); }
  .flex-col-sm-12 { flex-basis: 100%; }
}

/* Medium and large device columns (desktop and up) */
@media (min-width: 992px) {
  .flex-col-lg-1 { flex-basis: calc(1 / 12 * 100%); }
  .flex-col-lg-2 { flex-basis: calc(2 / 12 * 100%); }
  .flex-col-lg-3 { flex-basis: calc(3 / 12 * 100%); }
  .flex-col-lg-4 { flex-basis: calc(4 / 12 * 100%); }
  .flex-col-lg-5 { flex-basis: calc(5 / 12 * 100%); }
  .flex-col-lg-6 { flex-basis: calc(6 / 12 * 100%); }
  .flex-col-lg-7 { flex-basis: calc(7 / 12 * 100%); }
  .flex-col-lg-8 { flex-basis: calc(8 / 12 * 100%); }
  .flex-col-lg-9 { flex-basis: calc(9 / 12 * 100%); }
  .flex-col-lg-10 { flex-basis: calc(10 / 12 * 100%); }
  .flex-col-lg-11 { flex-basis: calc(11 / 12 * 100%); }
  .flex-col-lg-12 { flex-basis: 100%; }
}

.etusivuKuva,
.etusivuKuvaMob {
  /*border-top: 15px solid rgba(250,200,0,0.3);
  border-bottom: 15px solid rgba(250,200,0,0.3);*/
  display: inline-block;
  min-width: 100%;
  max-width: 100%;
  width: 100%;
  position: relative;
  top:0px;
  left:0px;
  z-index: 1;
}

.paaOtsikkoDiv {
/*  position: absolute;*/
  position: absolute;
  top:0px;
/*  background: linear-gradient(rgba(0,0,0,0.6),rgba(0,50,150,0));*/
  /*  padding-top: 50px;*/
  height: 200px;
  padding-top: 100px;
  left: 0px;
  top:0px;
  left:0px;
  z-index: 2;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  display: inline-block;
  width:100%;
}
@media (max-width: 767px) {
  .paaOtsikkoDiv {
    padding-top: 0px !important;
  }
  .paaOtsikko2 {
    font-size: 11px !important;
    margin-top:0px !important;
  }
}
@media (min-width: 768px) {
  .paaOtsikkoDiv {
    padding-top: 60px !important;
  }
  h1.paaOtsikko {
    font-size: 45px !important;
  }
  h2.paaOtsikko2 {
    font-size: 18px !important;
  }
}

@media (min-width: 1000px) {
  .paaOtsikkoDiv {
    padding-top: 100px !important;
  }
  h1.paaOtsikko {
    font-size: 60px !important;
  }
  h2.paaOtsikko2 {
    font-size: 22px !important;
  }
}

@media (min-width: 1300px) {
  .paaOtsikkoDiv {
    padding-top: 130px !important;
  }
}

@media (min-width: 1600px) {
  .paaOtsikkoDiv {
    padding-top: 200px !important;
  }
}

h1.paaOtsikko {
/*  display: none;*/
  position: relative;
  font-size: 65px;
  margin-top: 0px;
  margin: 0px;
  padding: 0px;
  left: 0px;
  top: 0px;
  padding-top:0px;
  padding-right: 0px;
  padding-bottom: 20px;
  margin-top: 0%;
  /*background: linear-gradient(rgba(245,245,245,0.8),rgba(245,245,245,0));*/
  color: rgb(200,200,240) !important;
  margin-left: auto;
  text-align: center;
  margin-right: auto;
  color: rgba(255,255,0,1) !important;
/*  text-shadow: 10px 10px 10px rgba(0,0,0,0.8);*/
  font-family: 'Merienda';
  width: 100%;
}

h2.paaOtsikko2 {
/*  display: none;*/
  position: relative;
  font-size: 20px;
  margin-top: 0px;
  color: rgb(200,200,240) !important;
/*  font-style: italic;*/
font-weight: bold;
font-size: 24px;
  text-align: center;
  color: rgba(255,255,0,1) !important;
/*  text-shadow: 10px 10px 10px rgba(0,0,0,0.8);*/
/*  font-family: 'Merienda';*/
  width: 100%;
}

h3.etusivunTeksti {
  /*position: absolute;
  font-size: 20px;
  top: 200px;*/
  max-width:90% !important;
  margin-top: 0px;
  padding-left: 0px;
  padding-top:0px;
  padding-bottom: 50px;
  color: black;
  margin-left: auto;
  text-align: center;
  margin-right: auto;
  display: block;
  text-align: justify;
  line-height: 30px;
  font-size: 18px;
}

h3.etusivunTeksti div {
  font-size: 32px;
}
.actualContent {
  margin-top: 80px;
  width: 90%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.karttaKuva {
  width: 100%;
  text-align: center;
  display: inline-block;
  margin-left: auto;
  margin-right: auto;
}

div.karttaDiv {
  display: inline-block !important;
  width: 60% !important;
  vertical-align: top;
}
div.karttaDiv img {
  width: 95%;
  text-align: center;
  display: block;
}
div.terveTuloaDiv {
  display: inline-block !important;
  width:38% !important;
  vertical-align: top;
}

div.karttaJAtervetuloaDiv {
/*  background: rgba(250,200,0,0.1);*/
  padding-top:10px;
  padding-bottom: 50px;
}
h2.terveTuloa {
  /*border-radius: 15px;*/
  color: rgb(20,20,20) !important;
  /*text-shadow: 2px 2px 1px rgba(50,50,50,0.3);*/
  padding: 28px;
  font-size: 30px;
  display: block;
  text-align: left;
  margin-top: 18px;
  padding-top: 50px;
  padding-bottom: 50px;
  margin-left: 10px;
  line-height: 45px;
}

@media (max-width: 1300px) {
  div.karttaDiv {
    width:  100% !important;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    display: block;
  }
  div.karttaDiv img {
    width: 80% !important;
    display: block !important;
    text-align: center !important;
  }
  div.terveTuloaDiv {
    display: block !important;
    width: 100% !important;
    font-size:25px;
    text-align: center;
  }
  h2.terveTuloa {
    text-align: left !important;
    margin: 0px !important;
    margin-top: 40px !important;
    line-height:60px;
    padding: 0px !important;
  }
  .footer {
    margin-top: 50px !important;
  }
}

.etusivuKuvaMob {
  display:none;
}

@media (max-width: 767px) {
  .tapahtumatDivWrapper {
    min-width:100% !important;
    padding-left: 0px !important;
  }
  .tapahtumatDiv {
    padding-left: 0px !important;
  }
  .etusivuKuva {
    display: none;
  }
  .etusivuKuvaMob {
    display: block;
    margin-top: 100px;
  }
  .paaOtsikkoDiv { 
    background: rgba(50,100,180,0.8);
    background: linear-gradient(45deg, rgba(50,100,200,0.2),10%, rgba(50,100,180,1), 90%, rgba(50,100,200,0.2));
    border-top:10px solid rgba(50,100,180,0.5);
    background: url('tausta8.png');
    background-position: right;
    border-bottom: 10px solid rgba(50,100,180,0.5);
    padding-top: 0px;
    height:100px;
  }
  h1.paaOtsikko {
    font-size: 33px;
    padding-bottom: 10px;
    margin-top: 10px;
    margin-bottom: 0px;
    display: block !important;
  }
  h3.etusivunTeksti {
    line-height: 30px;
    font-weight: bold;
    font-size: 16px;
    text-align: left;
    max-width: 98% !important;
  }
  div.karttaDiv img {
    width: 90% !important;
  }
  h2.terveTuloa {
    font-size: 22px !important;
    line-height:45px;
    text-align: center;
    color: black !important;
    font-weight: bold;
    max-width: 90% !important;
    margin-left: auto;
    margin-right: auto;
    display: inline-block;
    margin-right: auto;
  }
}

.footer {
  margin-top: 120px;
  border-top: 1px solid rgba(50,50,50,0.2);
  padding-top: 0px;
  padding-top: 15px !important;
  padding-bottom: 80px !important;
  width:85%;
/*  background: rgba(240,240,240,1);*/
  margin-left: auto !important;
  margin-right: auto !important;
  max-width: 1300px;
  min-height: auto !important;
}
.footer h1 {
  line-height: 25px;
  padding-left: 15px;
  text-align: left !important;
/*  background: rgba(0,50,150,0.7);*/
  height:110px;
  vertical-align: top;
  margin-top: 0px;
  padding-top: 30px;
  margin-bottom: 0px;
}
.kanariaLinkki {
  font-size: 15px;
  padding-right: 15px;
  float:right;
}
.footer h4 {
  padding-top: 15px;
  padding-left: 15px;
  width: calc(100% - 360px);
}
.footer h1, .footer h4, .footer h5 {
  display: inline-block;
  text-align: left;
}
@media (max-width:767px) {
  .footer {
    text-align: center !important;
    margin-left: auto;
    margin-right: auto;
    height: auto !important;
    padding-bottom: 30px;
    border-top:4px solid rgba(150,150,150,0.5);
    width: 100%;
    background: rgba(240,240,240,0.7);
  }
  .footer h1, .footer h4 {
    line-height: 28px;
    display: block;
    padding-left:0px !important;
    font-size: 18px !important;
    width:100%;
    text-align: center !important;
    height:auto;
    margin-left: auto;
    margin-right: auto;
  }
  .footer h1 span {
    font-size: 22px !important;
  }
  .kanariaLinkki {
    border-top: 2px solid rgba(0,0,0,0.1);
    padding-top: 15px;
    display:block;
    line-height: 24px;
    float:none;
    text-align: center !important;
  }
  .tekninentoteutus {
    text-align: center !important;
    float:none;
    display: block !important;
    width:100% !important;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
    background: rgba(240,240,240,0.8) !important;
  }
}
.tapahtumatYlaDiv {
  padding:10px;
  text-align: left;
}
.kalenteriTable {
  border-collapse: collapse;
  margin: 30px auto;
  width: 100%;
  max-width: 900px;
  font-family: "Inter", sans-serif;
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

/* Päiväotsikot */
.kalenteriTable .tableOtsikot td {
  background: linear-gradient(135deg, #4f8bc9, #336fa5);
  color: white;
  font-size: 17px;
  font-weight: 600;
  padding: 12px 0;
  letter-spacing: 0.5px;
}

/* Kalenterin solut */
.kalenteriTable td {
  border: 1px solid rgba(230, 230, 230, 0.9);
  height: 68px;
  font-size: 17px;
  text-align: center;
  background: #f7f9fc;
  transition: all 0.15s ease;
  position: relative;
}

/* Hover-efekti */
.kalenteriTable td:not(.tapahtumaPaivaTD):hover {
  background: #e9f2ff;
  cursor: pointer;
}

/* Päivänumero */
.kalenteriTable span {
  font-weight: 600;
  color: #2b2b2b;
  font-size: 16px;
}

/* Tapahtumien etiketti */
.kalenteriTable i {
  display: block;
  margin-top: 5px;
  font-size: 12px;
  font-weight: 600;
  color: white;
  background: #4f8bc9;
  border-radius: 4px;
  padding: 2px 0;
  opacity: 0.9;
}

/* Tapahtuma-päivien korostukset */
.tapahtumaPaivaTD {
  background: #dbeafe !important;
  font-weight: bold;
  border: 1px solid #b6d0f5;
  box-shadow: inset 0 0 8px rgba(50,100,200,0.25);
}

.seuraPaiva,
.tiistaiTapaaminen,
.kavelyRetki {
  background: #4f8bc9 !important;
  color: white;
}

.seuraPaiva i,
.tiistaiTapaaminen i {
  background: #3d82c4;
  opacity: 1;
}

/* Tyhjä solu */
.kalenteriTable td:empty,
.kalenteriTable td:contains("-") {
  background: #f0f0f0;
  color: #999;
}


.kalenteriTable {
  border-collapse: collapse;
  margin-top: 20px;
}

.kalenteriTable .tableOtsikot td {
  background: rgba(50,120,180,0.8) !important;
   color:white;
   border-right: 1px solid rgba(250,250,250,0.8);
   font-size: 20px;
   font-weight: bold;
}

.kalenteriTable td {
  vertical-align: bottom;
  padding:10px;
  border:1px solid rgba(250,250,250,1);
  padding-left:0px;
  padding-right:0px;
  width:120px;
  background: rgba(20,100,200,0.2);
  height:55px;
  font-size:17px;
  text-align: center !important;
  vertical-align: middle;
}
.kalenteriTable span {
  vertical-align: bottom;
  display: inline-block;
}

.kalenteriTable i {
  font-style: normal;
  background: rgba(50,150,200,1);
  color:white;
  display: block;
  margin-top: 0px;
  font-size: 13px;
  font-weight: bold;
  opacity:0;
}
.seuraPaiva,
.tiistaiTapaaminen,
.kavelyRetki {
  
  background: rgba(50,120,180,0.8) !important;
  
  width:80px;
  text-align:center;
}
.seuraPaiva i,
.tiistaiTapaaminen i {
  font-style: normal;
  background: rgba(50,150,200,1);
  color:white;
  display: block;
  margin-top: 0px;
  font-size: 13px;
  font-weight: bold;
  opacity:1 !important;
}

.tekninentoteutus {
  font-size:11px;
  float:right;
  padding-top: 15px;
}

.activeMonth {
  background: rgba(0,150,50,0.5) !important;
}
.kalenteriTable i {
    display:none;
  }
  .tapahtumatDiv {
/*    border:1px solid rgba(0,50,150,0.1);*/
/*    border-radius: 15px;*/
/*    background: rgba(0,50,150,0.1);*/
  }
@media (max-width:1000px) {
  .tapahtumatYlaDiv {
    text-align: center !important;
  }
  .tapahtumatDiv {
    border-left: none !important;
    margin-top: 30px;
    display: block;
    text-align: left;
  }
  .kalenteriTable i {
    display:none;
  }
  .kalenteriTable .tableOtsikot td {
    font-size: 16px !important;
  }
  .kalenteriTable td {
    width:80px;
    font-size: 12px;
    font-weight: normal !important;
    height:20px;
    padding-top: 7px;
    padding-bottom: 7px;
  }
  .kalenteriTable span {
    font-weight: normal !important;
  }
}

.tapahtumatDiv {
  height:450px;
  overflow-y: scroll;
  border-left: 2px solid rgba(50,50,50,0.1);
}

.yksiTapahtumaDiv {
  padding:15px;
}

.tapahtumatDiv h3,
.tapahtumatDiv h4 {
  padding:10px;
  padding-left: 10px;
/*  border-left:10px solid rgb(0,50,150,0.1);*/
  background: rgba(150,150,150,0.1);
}

.tapahtumatDiv h3 {
  font-size: 20px;
  font-weight: bold;
}

.macScrollable::-webkit-scrollbar {
    -webkit-appearance: none;
  }
.macScrollable::-webkit-scrollbar:horizontal {
    height: 11px;
  }
.macScrollable::-webkit-scrollbar:vertical {
    height: 11px;
  }
.macScrollable::-webkit-scrollbar-thumb {
    border-radius: 8px;
    border: 2px solid white; /* should match background, can't be transparent */
    background-color: rgba(0, 0, 0, .3);
}
.macScrollable::-webkit-scrollbar-thumb:hover {
      background-color: rgba(0, 0, 0, .5);
}


.valittuTapahtumaTausta {
  color:rgb(0,50,200) !important;
}

.kalenteriOtsikot span {
  height:60px;
  display: inline-block;
  padding-top: 15px;
}
.kalenteriOtsikot span {
  vertical-align: top;
/*  background: rgba(0,50,100,0.1);*/
/*  color: white;*/
  display: inline-block;
  width:43%;
  padding:10px;
  font-size: 24px;
}

.kalenteriOtsikot span:nth-child(2) {
  width:54%;
  padding-top: 15px;
  font-size: 21px;
  background: rgba(0,50,100,0.2);
}
.tapahtumatOtsikkoMob {
  display:none;
}
@media (max-width:1000px) {
  .tapahtumatOtsikkoMob {
    display:block;
    margin-top: 60px;
  }
  .kalenteriOtsikot span {
    width:100%;
    background: none;
  }
  .kalenteriOtsikot a {
    font-size: 11px;
  }
  .kalenteriOtsikot span:nth-child(2) {
    display: none;
  }
}


.kuukaudenValintaDiv a {
  display: inline-block;
  margin-left: 10px;
  width:150px !important;
  text-align: center;
  margin-top: 10px;
}


/* TAPAHTUMALISTA – moderni korttinäkymä */
.tapahtumatDivWrapper {
  padding-left: 20px !important;
}

.tapahtumatOtsikkoMob span {
  font-weight: 700 !important;
  font-size: 22px !important;
  display: inline-block !important;
  padding-bottom: 10px !important;
  color: #2a4a6f !important;
}

/* Scrollattava alue */
.tapahtumatDiv {
  height: 500px !important;
  overflow-y: auto !important;
  padding-right: 10px !important;
  border-left: 2px solid rgba(0,0,0,0.08) !important;
}

/* Yksittäinen tapahtuma */
.yksiTapahtumaDiv {
  width:90% !important;
  margin-left:auto !important;
  margin-right:auto !important;
  background: #ffffff !important;
  border: 1px solid rgba(0,0,0,0.08) !important;
  border-radius: 10px !important;
  padding: 18px 20px !important;
  margin-bottom: 15px !important;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05) !important;
  transition: all 0.2s ease !important;
}

/* Hover-efekti */
.yksiTapahtumaDiv:hover {
  background: #f5f9ff !important;
  border-color: rgba(50,120,180,0.4) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 18px rgba(50,120,180,0.15) !important;
  cursor: pointer !important;
}

/* Päivä + aika + nimi */
.yksiTapahtumaDiv h3 {
  font-size: 18px !important;
  margin: 0 !important;
  color: #1e3b63 !important;
  font-weight: 700 !important;
  line-height: 26px !important;
}

/* Paikka */
.yksiTapahtumaDiv i {
  display: block !important;
  font-style: normal !important;
  margin-top: 5px !important;
  color: #33547a !important;
  font-weight: 600 !important;
  opacity: 0.8 !important;
}

/* Kuvaus */
.yksiTapahtumaDiv h5 {
  font-size: 15px !important;
  margin-top: 10px !important;
  line-height: 22px !important;
  font-weight: 500 !important;
  color: #3a3a3a !important;
}

/* Valitun päivän tapahtuman korostus */
.valittuTapahtumaTausta {
  background: #dae8ff !important;
  border-color: rgba(50,120,200,0.7) !important;
  box-shadow: 0 0 8px rgba(50,120,200,0.25) !important;
}

/* Mobile ja tablet */
@media (max-width: 1000px) {

  .tapahtumatDivWrapper {
    padding-left: 0 !important;
  }

  .tapahtumatDiv {
    height: auto !important;
    max-height: 400px !important;
    margin-top: 25px !important;
    border-left: none !important;
    padding-right: 0 !important;
  }

  .yksiTapahtumaDiv {
    margin-left: auto !important;
    margin-right: auto !important;
    width: 96% !important;
  }

  .tapahtumatOtsikkoMob {
    display: block !important;
    margin-top: 40px !important;
    text-align: center !important;
  }
}

.tapahtumaTitle {
  text-align: center;
  font-size: 32px;
  font-weight: 800;
  color: #1f355b;
  margin: 40px 0 25px;
  /*position: relative;*/
  /*display: inline-block;*/
  padding-bottom: 12px;
  background: rgba(0,50,130,0.1);
  padding: 18px 26px;
  border-radius: 14px;
  box-shadow: 0 6px 22px rgba(0,0,0,0.08);
}

@media (max-width: 767px) {
  .tapahtumaTitle {
    font-size: 20px !important;
  }
  .kuukaudenValintaDiv a {
    width:100px !important;
  }
}

.tapahtumaTitle::after {
  content: "";
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 3px;
  background: linear-gradient(to right, #5a8fff, #3d6dd6);
  border-radius: 2px;
}

.tapahtumaTitle .subtitle {
  display: block;
  margin-top: 6px;
  font-size: 17px;
  font-weight: 600;
  color: #3c4f6e;
  opacity: 0.85;
}