        /* Yleinen tyyli */
        * {
            //margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: Roboto, Arial, sans-serif;
            display: flex;
            flex-direction: column;
            min-height: 100vh;
        }

        /* Header */
        header {
            //display: flex;
            justify-content: space-between;
            align-items: center;
            background-color: white;
            color: black;
            padding: 10px 20px;
        }

        header .logo {
            margin-bottom:-4px;
            max-width:100%;

        }
        img {
            max-width:100%;
        }

        nav ul {
            list-style: none;
            display: flex;
            background: #3ba013;
            margin: 0;
        }

        nav ul li {
            position: relative;
            margin-left: 20px;
            z-index: 20000;
        }

        nav ul li a {
            text-decoration: none;
            padding: 10px;
            color: white;
            display: block;
            text-transform: uppercase;
            font-weight: bold;
        }

        /* Alasvetovalikko */
        nav ul li ul {
            display: none;
            position: absolute;
            background: #47b907;
            top: 100%;
            right: 0;
            //width: 150px;
            padding: 10px;
            z-index: 20000;
        }

       .hash-highlight {
          outline: 4px solid red;
          outline-offset: 3px;
          box-shadow: 0 0 0 6px rgba(255, 179, 0, 0.25);
          transition: box-shadow 200ms ease, outline 200ms ease;
        }

        #toastHost{
          position: fixed;
          right: 20px;
          bottom: 20px;
          display: flex;
          flex-direction: column;
          gap: 10px;
          z-index: 9999;
        }

        .toast{
          min-width: 260px;
          max-width: 380px;
          padding: 12px 14px;
          border-radius: 10px;
          box-shadow: 0 10px 30px rgba(0,0,0,.25);
          background: #2f3a45;
          color: #fff;
          font-size: 14px;
          line-height: 1.35;
          opacity: 0;
          transform: translateY(14px);
          transition: opacity .2s ease, transform .2s ease;
          display: flex;
          align-items: flex-start;
          gap: 10px;
        }

        .toast.show{
          opacity: 1;
          transform: translateY(0);
        }

        .toast .title{
          font-weight: 700;
          margin-bottom: 2px;
        }

        .toast .msg{
          word-break: break-word;
        }

        .toast .close{
          margin-left: auto;
          background: transparent;
          border: 0;
          color: inherit;
          font-size: 18px;
          line-height: 1;
          cursor: pointer;
          opacity: .8;
        }
        .toast .close:hover{ opacity: 1; }

        .toast.info { background: #2f3a45; }
        .toast.success { background: #1f6f3f; }
        .toast.warning { background: #8a5a00; }
        .toast.error { background: #8a1f1f; }

        /* Mobiili: alareunan sijaan ylös */
        @media (max-width: 640px){
          #toastHost{
            left: 12px;
            right: 12px;
            bottom: auto;
            top: 12px;
          }
          .toast{ max-width: none; width: 100%; }
        }

       
        nav a:link, 
        nav a:visited, 
        nav a:active {
            color: white !important;
        }

        nav a:hover {
            color: yellow; /* Vaihtoehtoinen väri hover-tilassa */
        }

        nav ul li:hover ul {
            display: block;
        }

        nav ul li ul li {
            margin: 0;
        }

        nav ul li ul li a {
            padding: 8px 10px;
        }

        /* Main sisältö */
        main {
            display: flex;
            flex: 1;
            margin: 20px;
            margin-top: 0;
        }

        .sidebar {
            width: 20%;
            background-color: white;
            padding-left: 10px;
            //margin-left:20px;
            margin-left:auto;
            margin-top:15px;
        }

        #sidebar-add {
            display:none
            }


        .content {
            flex: 1;
            background-color: #fff;
            //padding: 10px;
            //border: 1px solid #ddd;
            text-align:left;
            padding-bottom:5px;
            max-width: 1000px;
            margin-right: 20px;
            letter-spacing: 1px;
            width:70%;
        }

        /* Footer */
        footer {
            display:none;
            background-color: #333;
            color: #fff;
            text-align: center;
            padding: 10px 0;
        }
        
        #footer {
            display:none;
            text-align: center;
            position: fixed;
            left: 0px;
            bottom: 0px;
            width: 100%;
            padding: 8px;
            padding-top: 8px;
            color: #1d82a3;
            background-color: #add8e6;
            border-top: 1px solid #6cabbf;
            -moz-box-shadow: 0 0 15px grey;
            -webkit-box-shadow: 0 0 15px grey;
            box-shadow: 0 0 15px grey;
            font-size:smaller;
            height: 50px;
        }  
        
        #footer a {color:white;}      
        
        .otsikko {
        //background-color: #fff;
        //padding: 10px;
        //border-radius: 7px;
        //-moz-border-radius: 7px;
        padding-top:10px;
        padding-bottom:10px;
        color: #307b0c;
        text-align: center;
        font-size: clamp(20px, 1.5vw, 24px);
        border-top: 2px solid #c7c7c7;
        border-bottom: 2px solid #c7c7c7;
        }        
        
        .klikki {
        margin-bottom: 5px;
        padding: 10px;
        background: #468b1f;
        color: white;
        font-size: 14px;
        moz-border-radius: 6px;
        border-radius: 6px;
        cursor: pointer;
        text-align: center;
        //border: 3px solid #547a00;
        text-decoration: none;
        }
        
        .tavat {
        border: 1px solid lightgrey;
        float: left;
        padding: 10px;
        width: 100%;
        //height: 100px;
        margin-right: 5px;
        margin-bottom: 5px;
        border-radius: 5px;
        background: aliceblue;
        text-align: left;
        }
        
        .huomautus {
            background-color: oklch(0.86 0.05 219.67);
            padding-inline: 2px;
            padding-block: 3px;
            padding-right: 10px;
            padding-left: 10px;
            vertical-align: middle;
            font-size: 0.8em;
            font-weight: bold;
            letter-spacing: 0.2em;
            color: oklch(0.6 0.09 245.8);
            text-transform: uppercase;
            border-radius: 9999px;
            width: fit-content;           
        }
        
        .tuoteKuvaus {
        //height:200px;
        position: relative;
        height: auto; /* Määritä haluttu korkeus */
        overflow: hidden; /* Rajaa sisältö */
        font-size: 0.9rem; /* Mukautuva fonttikoko */
        line-height: 1.5; /* Varmistaa luettavuuden */
        margin: 0;
        
        display: -webkit-box; /* Tarvitaan moniriviseen rajoitukseen */
        -webkit-box-orient: vertical; /* Asettaa tekstin suuntaiseksi laatikoksi */
        -webkit-line-clamp: 4; /* Näyttää vain kolme riviä */
        overflow: hidden; /* Piilottaa ylimenevän tekstin */
        text-overflow: ellipsis; /* Lisää kolmen pisteen efektin */
        line-height: 1.5; /* Rivien välistys */
        max-height: calc(1.5em * 4); /* Rivien korkeus × rivimäärä */
        }
        
        a.pikkuotsikko:link, a.pikkuotsikko:visited, a.pikkuotsikko:hover, a.pikkuotsikko:active {
        color: white !important;
        text-decoration: none;
        }
        
        .pikkuotsikko {
        background: #daa520;
        border-radius: 5px;
        color: white;
        cursor: pointer;
        display: inline-block;
        padding: 10px;
        margin: 2px;
        font-family: monospace;
        letter-spacing: 1px;
        text-transform: uppercase;
        font-size: smaller;
        }
                
        h3.pikkuotsikko a:link,
        h3.pikkuotsikko a:visited,
        h3.pikkuotsikko a:hover,
        h3.pikkuotsikko a:active {
            color: white !important;
            text-decoration: none;
        }

          #iviesti {
          display:none;
          }

.siniPallo {
    outline: 2px dashed white;
    outline-offset: -5px;
    background-color: #add8e6;
    background-image: url(../site_images/free-delivery.png);
    background-repeat: no-repeat;
    background-size: 30%;
    background-position-x: -3%;
    background-position-y: 10px;    
    width: fit-content;
    top: 320px;
    left: 20px;
    position:fixed;
    padding: 15px;
    text-align: center;
    color: #275b67;
    margin: auto;
    transform: scale(1);
    animation: tada 2s 1;
}

.kampanja {
    text-align:center;
    clear: both;
    color: #ffffff;
    padding: 10px;
    padding-left: 25px;
    margin-bottom: 10px;
    background-color: #c45656;
    font-size: 14px;
    border-radius: 20px;
    background-image: url(../site_images/check-mark.png);
    background-size: 20px;
    background-repeat: no-repeat;
    background-position: 10px, 5px;
}


.posviesti {
    clear:both;
    border: 1px solid green;
    color:green;
    padding: 10px;
    margin-bottom: 10px;
    background-color: #cfddc6;
    font-size: 12px;
}

.negviesti {
    padding: 8px;
    padding-left: 40px;
    background-image: url('../site_images/huom.gif');
    color:#b34343;
    background-color:#FBD0D0;
    background-repeat: no-repeat;
    background-position: 7px center;
    margin-top: 10px;
    border: 1px red solid;
    -moz-border-radius:5px;
    border-radius:5px;
    }

.neutralviesti {
    padding: 8px;
    padding-left: 70px;
    background-image: url('../site_images/neutraali.gif');
    color:#BE8045;
    background-color:#FEF2A8;
    background-repeat: no-repeat;
    background-position: 9px bottom;
    margin-bottom: 10px;
    border: 1px #BE8045 solid;
    -moz-border-radius:5px;
    border-radius:5px;
    }

.custom_case_right {
    float: right;
    bottom: -30px;
    position: fixed;
    left: 50px;
    width: 15%;
    max-width: 200px;
    z-index:200;
}    

.paketti-ikoni {
    width: 50px; /* Aseta haluamasi koko */
    animation: pomppu-ja-kaanto 1.5s ease-in-out infinite;
    transform-origin: center bottom; /* Pyörimisakseli alareunaan */
    margin-bottom: -5px;
}

.fadeIn {
    animation: slideInFromLeft 1s ease-in-out 0s;
}

@keyframes slideInFromLeft {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

/* Yhdistetty animaatio */
@keyframes pomppu-ja-kaanto {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-7px) rotate(-5deg);
    }
    50% {
        transform: translateY(0) rotate(0deg);
    }
    75% {
        transform: translateY(-7px) rotate(5deg);
    }
}  

.oval {
    min-width: 150px;
    max-width: 300px;
    background: #f7f5e8;
    border-radius: 50%;
    padding: 20px;
    text-align: center;
    float: left;
    margin-left: -60px;
    color: #275b67;
    box-shadow: 5px 5px 9px #8888886e;

    /* Animaatio: lähtee pois 3s jälkeen */
    animation: hideZoom 0.7s ease 4s forwards;
}

@keyframes hideZoom {
    0% {
        opacity: 1;
        transform: scale(1);
        visibility: visible;
    }
    100% {
        opacity: 0;
        transform: scale(0);
        visibility: hidden; /* tekee myös klikattavaksi taustan */
    }
}

#tcw-floatingWrapper {
    display:none;
}

.haivytettavaKuva {
    transition: opacity 0.7s ease;
    position: sticky;
    z-index: 1000;
}

@keyframes slideDownFade {
    0% {
        opacity: 1;
        transform: translateY(0);
        visibility: visible;
    }
    100% {
        opacity: 0;
        transform: translateY(100px); /* siirtyy alas */
        visibility: hidden; /* häviää myös klikattavuudesta */
    }
}

.hidden {
    opacity: 0; /* Kuva piilotetaan himmentämällä */
}

#ostosBlokki {display:none;}

.price-tag {
    background-color: #3ba013;
    border-radius: 8px;
    border: 2px solid white;
    color: #FFFFFF;
    padding: 10px 15px;
    position: relative;
    width: fit-content;
    line-height: 0.8;
    box-shadow: inset 0 0 0 rgba(0, 0, 0, 0), 5px 5px 10px rgba(0, 0, 0, 0.3);
    //font-size: 20px;
}

.menunapit {
    margin-left: 3px;
    margin-right: 1px;
    margin-bottom: 5px;
    background-color: #468b1f;
    float: left;
    padding: 10px;
    padding-left: 23px;
    padding-right: 23px;
    text-align: center;
    font-weight: bold;
    color: white;
    border-radius: 10px;
    border: none;
}
        
* {box-sizing:border-box}

/* Slideshow container */
.slideshow-container {
  max-width: 100%;
  position: relative;
  margin: auto;
}

/* Hide the images by default */
.mySlides {
  display: none;
}

/* Next & previous buttons */
.prev, .next {
  cursor: pointer;
  position: absolute;
  //top: 50%;
  top:50px;
  width: auto;
  //margin-top: -22px;
  padding: 16px;
  //color: white;
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
}

/* Position the "next button" to the right */
.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

/* On hover, add a black background color with a little bit see-through */
.prev:hover, .next:hover {
  background-color: rgba(0,0,0,0.8);
}

/* Caption text */
.text {
  color: #f2f2f2;
  font-size: 15px;
  padding: 8px 12px;
  position: absolute;
  bottom: 8px;
  width: 100%;
  text-align: center;
}

/* Number text (1/3 etc) */
.numbertext {
  color: #f2f2f2;
  font-size: 12px;
  padding: 8px 12px;
  position: absolute;
  top: 0;
}

/* The dots/bullets/indicators */
.dot {
  cursor: pointer;
  height: 15px;
  width: 15px;
  margin: 0 2px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}

.active, .dot:hover {
  background-color: #717171;
}

/* Fading animation */
.fade {
  animation-name: fade;
  animation-duration: 1.5s;
}

input[type="text"],[type="email"] {
    background-color: aliceblue;
    border: 1px solid green;
    padding: 8px;
}

textarea, input[type="text"] {
    background-color: aliceblue;
    border: 1px solid green;
    padding: 8px;
    width: 100%;
    max-width: 400px;
}

#hintaBlokki {display:none;}
#ostosBlokki {
    display:block;}

.artotsikko {
    color: white;
    text-align: center;
    margin-bottom: -40px;
    z-index: 10000;
    position: relative;
    text-shadow: 2px 2px 7px rgba(0, 0, 0, 0.9);
    background-color: #ffb301;
    padding: 10px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    }
    
@keyframes fade {
  from {opacity: .4}
  to {opacity: 1}
}        
        

        /* Responsiivisuus */
        @media (max-width: 768px) {
        
            header .logo  {
                max-width:100%;
           }
           
           img {
           max-width:100%;
           }

          #hintaBlokki {display:block;}
          #ostosBlokki {display:none;}
          
          #selaimelle {
          display:none;
          }
          
          #vasenInfo {
          display:none;
          }
          
          .haivytettavaKuva {
              width:100%;
          }

          .custom_case_right {
          display:block;
          width: 35%;
          bottom: -60px;
          animation: slideDownFade 0.7s ease 5s forwards;
          }
          
          #ostoskoriOtsikko {
          display:none;
          }
                   
          #iviesti {
          display:block;
          }

          .content {
           width: 100%;
           padding-bottom: 50px;
          }
 
       .siniPallo {
        border-radius: unset;
        padding: 20px;
        top: unset;
        left: unset;       
        width:100%;
        position: relative;
        margin-bottom:10px;
        text-align: right;
        background-image: url(../site_images/free-delivery.png);
        background-repeat: no-repeat;
        background-size: 30%;
        background-position-x: -3%;
        background-position-y: 10px;
        }
                                 
            nav ul {
                //display:none;
            }
            
            main {
                flex-direction: column;
                margin-top:0;
            }

            .sidebar {
                display: block;
                width: 100%;
                //margin-bottom: 10px;
                margin-top:0;
                margin-left:0;
                padding-left:unset;
            }

            #sidebar-add {
            display:none;
            }
            
            
        }
