/*
Theme Name: Kuopion Pomppulinna
Description: Custom theme for Kuopion Pomppulinna bounce castle rental
Version: 1.0
Author: Pepe Utriainen
Text Domain: kuopionpomppulinna
*/
/* =================
Teeman root tyylit
================== */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Cherry Bomb One', cursive;
}

p,
span {
    font-family: 'Poppins', sans-serif;
}

a {
    font-family: 'Fredoka', sans-serif;
    text-decoration: none;
    color: #424242;
}

:root {
    --punainen: #F42317;
    --sininen: #0475CF;
    --fontti-1: 'Cherry Bomb One';
    --fontti-2: 'Fredoka', sans-serif;
    --fontti-3: 'Poppins', sans-serif;
}

/* ====================
Ensimmäinen banneri
====================== */
.header-banneri {
    position: relative;
}

#carouselExample {
    position: relative;
}

#carouselExample img {
    max-height: 700px;
    object-fit: cover;
}

.koristebanneri-wrapperi {
    width: 100%;
    padding: 30px 60px 30px 10px;
    position: absolute;
    top: 0;
    left: 0;
    width: fit-content;
    background-color: #ffff;
    z-index: 10;
    border-radius: 0 0 100px;
}

.koristebanneri-wrapperi a {
    font-weight: 600;
    font-size: 17px;
}

.etusivu-teksti {
    position: absolute;

    /* Important */
    top: 50%;

    /* Position Y halfway in */
    left: 50%;

    /* Position X halfway in */
    transform: translate(-50%,-50%);

    /* Move it halfway back(x,y) */
    z-index: 14;
    font-family: 'Cherry Bomb One', cursive;
    color: #ffff;
}

.koristekuva-keski-mobiili img {
    width: 80%;
    height: auto;
}

.etusivu-teksti h3 {
    color: red;
    text-align: center;
    font-size: clamp(1rem, 2.5vw, 5rem);
    text-shadow: rgb(255, 255, 255) 3px 0px 0px, rgb(255, 255, 255) 2.83487px 0.981584px 0px, rgb(255, 255, 255) 2.35766px 1.85511px 0px, rgb(255, 255, 255) 1.62091px 2.52441px 0px, rgb(255, 255, 255) 0.705713px 2.91581px 0px, rgb(255, 255, 255) -0.287171px 2.98622px 0px, rgb(255, 255, 255) -1.24844px 2.72789px 0px, rgb(255, 255, 255) -2.07227px 2.16926px 0px, rgb(255, 255, 255) -2.66798px 1.37182px 0px, rgb(255, 255, 255) -2.96998px 0.42336px 0px, rgb(255, 255, 255) -2.94502px -0.571704px 0px, rgb(255, 255, 255) -2.59586px -1.50383px 0px, rgb(255, 255, 255) -1.96093px -2.27041px 0px, rgb(255, 255, 255) -1.11013px -2.78704px 0px, rgb(255, 255, 255) -0.137119px -2.99686px 0px, rgb(255, 255, 255) 0.850987px -2.87677px 0px, rgb(255, 255, 255) 1.74541px -2.43999px 0px, rgb(255, 255, 255) 2.44769px -1.73459px 0px, rgb(255, 255, 255) 2.88051px -0.838247px 0px;
}

.etusivu-teksti p {
}

.header-banneri svg {
    position: absolute;
    bottom: 0;
    left: 0;
    fill: #ffff;
    z-index: 11;
}

.koristekuva-vasen {
    width: 100%;
}

.koristekuva-vasen img {
    margin: 20px 0 20px 0;
    width: auto;
    max-height: 300px;
}

.koristekuva-keski {
    max-width: 300px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    height: 100%;
}

.koristekuva-keski img {
    width: 100%;
    max-width: 400px;
    height: auto;
}

/* ==================
Banneri karuselli
==================== */
.carousel-item {
    transition: transform 2.0s ease-in-out;
}

.carousel-fade .active.carousel-item-start,
.carousel-fade .active.carousel-item-end {
    transition: opacity 0s 2.6s;
}

/* =================
Toinen section
================== */
.toinenosasto-section {
    position: relative;
    overflow: hidden;
}

.toinenosasto-section h6 {
    font-size: 16px;
    font-family: var(--fontti-2);
}

.toinenosasto-section h3 {
    font-size: clamp(1.2rem, 3.5vw, 10.1rem);
    color: var(--sininen);
    text-shadow: rgb(255, 255, 255) 2px 0px 0px, rgb(255, 255, 255) 1.75517px 0.958851px 0px, rgb(255, 255, 255) 1.0806px 1.68294px 0px, rgb(255, 255, 255) 0.141474px 1.99499px 0px, rgb(255, 255, 255) -0.832294px 1.81859px 0px, rgb(255, 255, 255) -1.60229px 1.19694px 0px, rgb(255, 255, 255) -1.97998px 0.28224px 0px, rgb(255, 255, 255) -1.87291px -0.701566px 0px, rgb(255, 255, 255) -1.30729px -1.5136px 0px, rgb(255, 255, 255) -0.421592px -1.95506px 0px, rgb(255, 255, 255) 0.567324px -1.91785px 0px, rgb(255, 255, 255) 1.41734px -1.41108px 0px, rgb(255, 255, 255) 1.92034px -0.558831px 0px;
}

.toinenosasto-section .toinenotsikko {
    font-size: clamp(1rem, 3.5vw, 10.1rem);
    color: var(--punainen);
    text-shadow: rgb(255, 255, 255) 2px 0px 0px, rgb(255, 255, 255) 1.75517px 0.958851px 0px, rgb(255, 255, 255) 1.0806px 1.68294px 0px, rgb(255, 255, 255) 0.141474px 1.99499px 0px, rgb(255, 255, 255) -0.832294px 1.81859px 0px, rgb(255, 255, 255) -1.60229px 1.19694px 0px, rgb(255, 255, 255) -1.97998px 0.28224px 0px, rgb(255, 255, 255) -1.87291px -0.701566px 0px, rgb(255, 255, 255) -1.30729px -1.5136px 0px, rgb(255, 255, 255) -0.421592px -1.95506px 0px, rgb(255, 255, 255) 0.567324px -1.91785px 0px, rgb(255, 255, 255) 1.41734px -1.41108px 0px, rgb(255, 255, 255) 1.92034px -0.558831px 0px;
}

.toinenosasto-section-vasen-sisalto-kortti {
    width: 100%;
    font-weight: 700;
    font-size: 18px;
    font-family: var(--fontti-2);
}

.toinenosasto-section-vasen-sisalto-kortti li {
    padding: 10px;
    border-radius: 8px;
    transition: transform 0.2s;
    list-style-type: '👉';
}

.toinenosasto-section-vasen-sisalto-kortti li:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    color: #F42317;
    cursor: pointer;
}

.toinenosasto-vasenkuva img {
    width: 100%;
    height: auto;
    -webkit-mask-image: url(assets/images/maski-koristekuva.png);
    -webkit-mask-size: contain;
    -webkit-mask-position: center;
    -webkit-mask-repeat: no-repeat;
    mask-image: url(assets/images/maski-koristekuva.png);
    mask-size: contain;
    mask-position: center;
    mask-repeat: no-repeat;
    object-fit: cover;
}

.koristekuva-1 img,
.koristekuva-2 img,
.koristekuva-4 img {
    width: 55%;
    height: auto;
}

.koristekuva-3 img {
    width: 95%;
    height: auto;
}

.koristekuva-1 {
    position: absolute;
    top: 10%;
    right: 5%;
    max-height: 10px;
    opacity: 0.5;
    transform: rotate(337deg);
    -webkit-transform: rotate(337deg);
    -moz-transform: rotate(337deg);
    z-index: 1;
    max-width: 55px;
}

.koristekuva-2 {
    position: absolute;
    right: 10%;
    bottom: 15%;
    max-height: 10px;
    opacity: 0.5;
    transform: rotate(4deg);
    -webkit-transform: rotate(4deg);
    -moz-transform: rotate(4deg);
    z-index: 1;
    max-width: 75px;
}

.koristekuva-3 {
    position: absolute;
    right: 10%;
    top: 50%;
    max-height: 10px;
    transform: rotate(4deg);
    -webkit-transform: rotate(4deg);
    -moz-transform: rotate(4deg);
    -webkit-transform: scaleX(-1);
    transform: scaleX(-1);
    z-index: 10;
    max-width: 490px;
}

.koristekuva-4 {
    position: absolute;
    left: 15%;
    top: 233px;
    max-height: 10px;
    transform: rotate(348deg);
    -webkit-transform: rotate(348deg);
    -moz-transform: rotate(348deg);
    z-index: 1;
    max-width: 65px;
}

/* =================
Kolmas section
================== */
.kolmas-section {
    position: relative;
    min-height: 800px;
    background-color: #00B8FF;
    display: flex;
    justify-content: center;
    align-items: center;
}

.kolmas-section-koristekuva {
    position: absolute;
    left: 0;
    width: 100px;
}

.kolmas-section-koristekuva img {
    max-width: 200px;
}

.kolmas-section h2 {
    color: var(--punainen);
    text-shadow: rgb(255, 255, 255) 3px 0px 0px, rgb(255, 255, 255) 2.83487px 0.981584px 0px, rgb(255, 255, 255) 2.35766px 1.85511px 0px, rgb(255, 255, 255) 1.62091px 2.52441px 0px, rgb(255, 255, 255) 0.705713px 2.91581px 0px, rgb(255, 255, 255) -0.287171px 2.98622px 0px, rgb(255, 255, 255) -1.24844px 2.72789px 0px, rgb(255, 255, 255) -2.07227px 2.16926px 0px, rgb(255, 255, 255) -2.66798px 1.37182px 0px, rgb(255, 255, 255) -2.96998px 0.42336px 0px, rgb(255, 255, 255) -2.94502px -0.571704px 0px, rgb(255, 255, 255) -2.59586px -1.50383px 0px, rgb(255, 255, 255) -1.96093px -2.27041px 0px, rgb(255, 255, 255) -1.11013px -2.78704px 0px, rgb(255, 255, 255) -0.137119px -2.99686px 0px, rgb(255, 255, 255) 0.850987px -2.87677px 0px, rgb(255, 255, 255) 1.74541px -2.43999px 0px, rgb(255, 255, 255) 2.44769px -1.73459px 0px, rgb(255, 255, 255) 2.88051px -0.838247px 0px;
}

.kolmas-section h3 {
    color: #ffff;
    margin: 20px 0 20px 0;
    text-shadow: rgb(0, 0, 0) 3px 0px 0px, rgb(0, 0, 0) 2.83487px 0.981584px 0px, rgb(0, 0, 0) 2.35766px 1.85511px 0px, rgb(0, 0, 0) 1.62091px 2.52441px 0px, rgb(0, 0, 0) 0.705713px 2.91581px 0px, rgb(0, 0, 0) -0.287171px 2.98622px 0px, rgb(0, 0, 0) -1.24844px 2.72789px 0px, rgb(0, 0, 0) -2.07227px 2.16926px 0px, rgb(0, 0, 0) -2.66798px 1.37182px 0px, rgb(0, 0, 0) -2.96998px 0.42336px 0px, rgb(0, 0, 0) -2.94502px -0.571704px 0px, rgb(0, 0, 0) -2.59586px -1.50383px 0px, rgb(0, 0, 0) -1.96093px -2.27041px 0px, rgb(0, 0, 0) -1.11013px -2.78704px 0px, rgb(0, 0, 0) -0.137119px -2.99686px 0px, rgb(0, 0, 0) 0.850987px -2.87677px 0px, rgb(0, 0, 0) 1.74541px -2.43999px 0px, rgb(0, 0, 0) 2.44769px -1.73459px 0px, rgb(0, 0, 0) 2.88051px -0.838247px 0px;
}

.kolmas-section  p,
.kolmas-section  ul {
    font-size: 18px;
    font-size: clamp(1rem, 2.5vw, 1.15rem);
    font-family: var(--fontti-2);
    font-weight: 500;
}

.koriste-aallot-yla {
    position: absolute;
    top: -10px;
    left: 0;
    width: 100%;
    fill: #ffff;
}

.koriste-aallot-ala {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    fill: #ffff;
    transform: rotate(180deg);
    z-index: 1;
}

.kolmas-section-wrapperi {
    margin: 6% 0 6% 0;
    z-index: 10;
}

.toinenkaruselli img {
    width: 100%;
    height: auto;
    mask: url(assets/images/maski-koristekuva.png) no-repeat center;
    -webkit-mask: url(assets/images/maski-koristekuva.png) no-repeat center;
    mask-size: 100% 100%;
    -webkit-mask-size: 100% 100%;
    object-fit: cover;
}

.kolmas-sectio-infoboxsi {
    /* From https://css.glass */
background: rgba(255, 255, 255, 0.87);
border-radius: 5px;
box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
backdrop-filter: blur(8.2px);
-webkit-backdrop-filter: blur(8.2px);
border: 1px solid rgba(255, 255, 255, 0.3);
padding: 5%;
}


.carousel-height .carousel-item {
  height: 400px; /* Set the desired height here */
  overflow: hidden !important;
}

.carousel-height .carousel-item img {
  height: 100% !important;
  object-fit: cover !important;
}

.carousel-fade .carousel-item {
    opacity: 0;
    transition-duration: 1.9s;
    transition-property: opacity;
   }
   
   .carousel-fade  .carousel-item.active,
   .carousel-fade  .carousel-item-next.carousel-item-left,
   .carousel-fade  .carousel-item-prev.carousel-item-right {
     opacity: 1;
   }
   
   .carousel-fade .active.carousel-item-left,
   .carousel-fade  .active.carousel-item-right {
    opacity: 0;
   }
   
   .carousel-fade  .carousel-item-next,
   .carousel-fade .carousel-item-prev,
   .carousel-fade .carousel-item.active,
   .carousel-fade .active.carousel-item-left,
   .carousel-fade  .active.carousel-item-prev {
    transform: translateX(0);
    transform: translate3d(0, 0, 0);
   }


.kolmas-section li {
    padding: 8px;
    border-radius: 4px;
    transition: transform 0.2s;
    list-style-type: '👉';
    background-color: #ffff;
    margin-bottom: 4px;
}

.kolmas-section span {
    margin: 1px;
    display: inline-table;
    padding: 10px;
    font-size: 14px;
    border-radius: 4px;
    font-weight: 600;
    background-color: #ffff19;
    font-family: var(--fontti-3);
    z-index: 20;
}


/*=====================
Pomppupäiväkaruselli
=========================*/


.kolmas-section-kuva-oikea {
    width: 100%;
}

.pomppupäivät_esittelykuva img {
    width: 100% !important;
    height: auto!important;
    object-fit: cover;
    border-radius: 10px;
}

/*======================
Neljäs section
========================*/

.neljäs-section .lightbox-gallery .col-sm-6 {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.neljäs-section .lightbox-gallery img {
    border-radius: 10px;
    -webkit-transition: .3s ease-in-out;
    transition: .3s ease-in-out;
}

.neljäs-section .lightbox-gallery img:hover {
    -moz-transform: scale(1.1);
    -webkit-transform: scale(1.1);
    -o-transform: scale(1.1);
    -ms-transform: scale(1.1);
    transform: scale(1.1);
    z-index: 100;
}

/*=====================
footer
=========================*/

.pohja-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #00B8FF;
}

.pohja-footer span {
    font-size: 20px;
    font-family: var(--fontti-1);
    text-shadow: rgb(255, 255, 255) 3px 0px 0px, rgb(255, 255, 255) 2.83487px 0.981584px 0px, rgb(255, 255, 255) 2.35766px 1.85511px 0px, rgb(255, 255, 255) 1.62091px 2.52441px 0px, rgb(255, 255, 255) 0.705713px 2.91581px 0px, rgb(255, 255, 255) -0.287171px 2.98622px 0px, rgb(255, 255, 255) -1.24844px 2.72789px 0px, rgb(255, 255, 255) -2.07227px 2.16926px 0px, rgb(255, 255, 255) -2.66798px 1.37182px 0px, rgb(255, 255, 255) -2.96998px 0.42336px 0px, rgb(255, 255, 255) -2.94502px -0.571704px 0px, rgb(255, 255, 255) -2.59586px -1.50383px 0px, rgb(255, 255, 255) -1.96093px -2.27041px 0px, rgb(255, 255, 255) -1.11013px -2.78704px 0px, rgb(255, 255, 255) -0.137119px -2.99686px 0px, rgb(255, 255, 255) 0.850987px -2.87677px 0px, rgb(255, 255, 255) 1.74541px -2.43999px 0px, rgb(255, 255, 255) 2.44769px -1.73459px 0px, rgb(255, 255, 255) 2.88051px -0.838247px 0px;
}



/* ======================
Responsiiviset asetukset
======================= */
@media only screen and (max-width: 521px) {
    .koristekuva-3 {
        display: none;
    }

    .koristekuva-1,
    .koristekuva-4,
    .koristekuva-2 {
        left: 85% !important;
    }

    .koristebanneri-wrapperi {
        padding: 6px;
        border-radius: 0 0 10px 10px;
        width: 100%;
    }

    .koristekuva-keski a {
        display: none !important;
    }
}

/* Extra small devices (phones, 600px and down) */
@media only screen and (min-width: 522px) {
    .mobiili-yhteystiedot {
        display: none;
    }
}

/* Small devices (portrait tablets and large phones, 600px and up) */
@media only screen and (min-width: 600px) {
}

/* Medium devices (landscape tablets, 768px and up) */
@media only screen and (max-width: 768px) {
    .koristekuva-3 {
        right: -200px;
        top: 300px;
        max-width: 400px;
    }
}

/* Large devices (laptops/desktops, 992px and up) */
@media only screen and (min-width: 992px) {
}

/* Extra large devices (large laptops and desktops, 1200px and up) */
@media only screen and (max-width: 768px) {
    #carouselExample img {
        max-height: 400px;
    }
}

@media only screen and (max-width: 1669px) {
    .koristekuva-4 {
        left: 5%;
        top: 40%;
    }

    .koristekuva-1 {
        right: 3%;
        max-width: 30px;
        top: 15%;
    }

    .koristekuva-2 {
        right: 2%;
        max-width: 55px;
        bottom: 10%;
    }
}

@media only screen and (max-width: 1746px)
{
    .kolmas-section-koristekuva {
        display: none;
    }
}
