body {
    overflow-x: hidden;
    padding: 0;
    margin: 0;
    min-height: 100vh;
    line-height: 1.15;
    font-family: 'Walter Turncoat', cursive;
    color: #000;
    background-color: #ECE5D7;
    box-sizing: border-box;
    font-size: 0.9rem;
}

@font-face {
    font-family: 'Amsterdam Two';
    src: url('fonts/amsterdam-two-ttf.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* HEADER */
header {
    background-image: url(images/Images/header5.1.webp);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    height: 44vw;
    width: 100%;
    position: relative;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    background-attachment: local;
}

.home-page header {
    background-image: url(images/Images/header1.webp);
}

.class-header {background-image: url(images/Images/header2.webp);}

.company-header {
    background-image: url(images/Images/header4.webp);
}

.runo-header {
    background-image: url(images/Images/header3.webp);
}

.header_content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 70%;
    text-align: center;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
    padding: 0 5%;
}

.header_content1 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 90%;
    text-align: center;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
    padding: 0 5%;
}

.header_content2 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 90%;
    text-align: center;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
    padding: 0 5%;
}

header h2 {
    font-size: 2.25vw;
    color: #000;
    font-weight: 400;
    letter-spacing: 0.5px;
    justify-content: center;
}

.contact-button {
    background-color: #e9d2c2;
    color: white;
    padding: 1rem 2.8rem;
    border: none;
    border-radius: 2px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1srem;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.header_content a {
    text-decoration: none;
    color: #000;
    font-size: 1.35vw;
    font-weight: 400;
    margin-top: 2vw;
    margin-bottom: 1vw;
    background-color: #e9d2c2;
    padding: 1.2vw 3vw;
    border-radius: 2px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

header a:hover {
    background-color: #d8ccc3;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    transform: translateY(-3px) scale(1.05);
}

.header-p {
    font-size: 1rem;
    line-height: 1.15;
    color: #ffffff;
    margin-bottom: 1.5rem;
    position: relative;
    padding: 0 0;
    font-weight: 100;
    text-decoration: none;
}

.product-page .main_content {
    padding-top: 0 !important;
    margin-top: 0 !important;

}

/* NAVIGATION */
.main_menu {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1.2rem 0;
    margin: 0 auto;
    max-width: 1200px;
    width: 90%;
    font-size: 1.2rem;
    background-color: #e9d2c2;
    border-radius: 2px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    margin-top: -25px;
    position: relative;
    z-index: 100;
    flex-wrap: wrap;
}

.main_menu a {
    text-decoration: none;
    padding: 0.8rem 1.5rem;
    display: block;
    color: #000;
    transition: all 0.3s ease;
    font-weight: 500;
}

.main_menu li {
    list-style: none;
    margin: 0 1rem;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border-radius: 2px;
}

.main_menu li:hover,
.main_menu li.active {
    background-color: rgb(216, 204, 195, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.mobile-menu .main_menu li.active {
    background-color: rgb(216, 204, 195, 0.6);
}

/* MOBILE MENU */
.mobile-menu-btn {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.9);
    border: none;
    border-radius: 16px;
    padding: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    cursor: pointer;
}

.mobile-menu-btn span {
    display: block;
    width: 12.5px;
    height: 1px;
    background: #000;
    margin: 4px 0;
    transition: 0.3s;
}

/* Contact form styles */
.content-section1 .contact-form {
    width: 100%;
    max-width: 100%;
    padding: 0;
    box-shadow: none;
    background: transparent;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.content-section1 .contact-form:hover {
    transform: none;
    box-shadow: none;
}

.content-section > *,
.content-section1 > * {
    max-width: 100%;
    overflow: hidden;
}

.contact-form h2 {
    color: #000000;
    font-family: 'Amsterdam Two', cursive;
    font-size: 1.2rem;
    font-weight: 100;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
}

/* Pääsisältö */
.luentomain {
    max-width: 700px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
    background-color: white;
    padding: 2vw 2vw;
    border-radius: 16px;
    margin-top: 4vw;
}

.cursive-title {
    font-family: 'Marck Script', cursive;
    font-size: 3rem;
    margin-bottom: 10px;
    color: #000;
}

.subheading {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 20px;
    color: #555;
}

.content-text p {
    text-align: left;
    margin-bottom: 15px;
    width: 60%;
    line-height: 1.15;
    color: #000;
    font-family: 'Walter Turncoat', cursive;
    margin: 0 auto;
    font-size: 1rem;
}

.content-text ul {
    width: 60%;
    margin: 0 auto;
    text-align: left;
}

/* Hintalista */
.price-list {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 60%;
    margin: 0 auto;
}

.price-list h2 {
    font-size: 0.9rem;
    font-family: 'Walter Turncoat', cursive;
    font-weight: normal;
    text-align: left;
    white-space: nowrap;
}

.price-list ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.15;
    color: #000;
    text-align: right;
}

.price-list1 {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 100%;
    margin: 0 auto;
    gap: 10px;
}

.logo-img {
    width: 200px;
    height: auto;
}

.price-list1 ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.15;
    color: #000;
    text-align: center;
}

.form-group {
    margin-bottom: 2rem;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.8rem;
    color: #000000;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea {
    width: 90%;
    padding: 1rem;
    border: 2px solid rgba(90, 114, 67, 0.2);
    border-radius: 12px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(255,255,255,0.9);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #e9d2c2;
    box-shadow: 0 4px 12px rgba(143, 173, 107, 0.15);
    background: white;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form button {
    background-color: #e9d2c2;
    color: white;
    padding: 1.2rem 3rem;
    border: none;
    border-radius: 2px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 98%;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.contact-form button:hover {
    background-color: rgb(233, 210, 194, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(143, 173, 107, 0.2);
}

/* MAIN CONTENT */
main {
    background-color: #f7f2ec;
    padding-bottom: 3rem;
}

.main_content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 3rem 0;
    margin: 0 auto;
    max-width: 1200px;
    width: 98%;
}

.main_content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 3rem 0;
    margin: 0 auto;
    max-width: 1200px;
    width: 98%;
}

.main_content4 {
    display: flex;
    flex-direction: row;
    position: relative;
    margin: 0 auto;
    gap: 2%;
    padding-left: 10rem;
    align-items: center;
}

.main_content2 {
    flex: 1; /* Teksti ottaa jäljellä olevan tilan tietokoneella */
    display: flex;
    flex-direction: column;
    align-items: center; /* Säilytetty vasemmalle tasaus sisällölle */
}

.main_content2_ul {
    padding-left: 0; /* Poistaa oletuspaddingin */
    width: 70%;
}



.main_content3 {
    flex: 0 0 auto; /* Kuva pitää luonnollisen leveytensä */
}

.main_content3_img {
    width: 100%;
    max-width: 400px;
    height: auto;
    object-fit: cover;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
    margin: 0 auto;
    border-radius: 2px;
}

.cursive-1 {
    font-family: 'Amsterdam Two', cursive;
    font-size: 1.8rem;
    font-weight: 100;
    color: #000;
    margin-top: 1.4rem;
    margin-bottom: 0.6rem;
    display: inline-block;
}

.cursive-2 {
    font-family: 'Amsterdam Two', cursive;
    font-size: 1.8rem;
    font-weight: 100;
    color: #ffffff;
    margin-top: 1.4rem;
    margin-bottom: 1.6rem;
    display: inline-block;
}

.header_logo {margin: 0 auto;
width: 200px; height: auto;padding-right: 3vw;}

.main_content1_h2 {
    margin-top: 2rem;
    font-size: 1.8rem;
    color: #000;
    letter-spacing: 0.5px;
    line-height: 1.15;
    text-align: center;
    font-family: 'Amsterdam Two', cursive;
    font-weight: 100;
}

.cursive-text {
    font-family: 'Amsterdam Two', cursive;
    font-weight: 100;
    font-size: 2rem !important;
}

.cursive-text1 {
    font-family: 'Amsterdam Two', cursive;
    font-weight: 100;
    font-size: 2.3rem;
    color: #ffffff;
    margin-bottom: 1vw;
}

.main_content p {
    text-align: center;
    font-size: 1rem;
    line-height: 1.15;
    max-width: 800px;
    margin: 1.5rem auto;
    padding: 0 2rem;
    color: #000;
}

.main_content1 {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    width: 50%;
}


.main_content li {
    margin: 0.5rem 0;
    font-size: 1rem;
    color: #000;
    line-height: 1.15;
}

.main_content1_img {
    width: 12vw;
    min-width: 150px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
    justify-content: center;
}

.main_content-logo {
    width: 3vw;
    min-width: 100px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
    justify-content: center;
}

.main_content a {
    text-decoration: underline;
    color: #000;
}

.main_content a:hover {
    color: #e9d2c2;
    transform: translateY(-2px);
    transition: all 0.3s ease;
    text-decoration: none;
}

.main_content,
.poukama_info,
.carousel-container {
    box-sizing: border-box;
    
}

.poukama_info {
    display: flex;
    flex-direction: row;
    align-items: center;
    max-width: 1000px;
    margin: 4rem auto;
    padding: 3rem;
    color: #000;
    gap: 4rem;
    background-color: #ffffff;
    border-radius: 2px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.02);
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
}

.text-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    min-width: 300px;
    max-width: 100%;
}

.poukama_info h2 {
    font-size: 2.0rem;
    margin-bottom: 1.5rem;
    text-align: center;
    color: #000;
}

.poukama_info p {
    font-size: 1rem;
    line-height: 1.15;
    margin: 0;
    text-align: center;
    color: #000;
}

.text-container_img {
    width: 14vw;
    min-width: 200px;
    margin-bottom: 2rem;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
    margin-left: 7.5vw;
    font-family: 'Amsterdam Two', cursive;
    font-weight: 100;
    font-size: 2.5rem !important;
}

.cursive {
    font-style: italic;
    color: #000;
    margin-top: 1.5rem;
}

/* CAROUSEL */
.carousel-container {
    position: relative;
    width: 45%;
    height: 400px;
    max-width: 800px;
    margin: 2rem auto;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    aspect-ratio: 16/9;
}



.carousel-slide {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    flex-shrink: 0;
}


/* Arrow styles - updated */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(100, 11, 11, 0);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 100000;

}

.carousel-arrow:hover {
    background: rgba(233, 210, 194, 0.26);
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
    left: 0px;
}

.carousel-next {
    right: 0px;
}

.carousel-arrow::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    border-top: 3px solid #ffffff;
    border-left: 3px solid #ffffff;
    top: 50%;
    left: 50%;
}

.carousel-prev::before {
    transform: translate(-40%, -50%) rotate(-45deg);
}

.carousel-next::before {
    transform: translate(-60%, -50%) rotate(135deg);
}

.store-list {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 2vw;
    width: 100%;
    margin: 0 auto;
    padding: 2rem 0;
}
.store-item2 {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: left;
    width: 25%;
    padding: 2rem;
}
.store-item1 {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 35%;
    padding: 2rem;
}

.store-item1 li, .store-item2 li {
    list-style: none;
    margin: 0.5rem 0;
    font-size: 1rem;
    color: #000;
    line-height: 1.15;
}

/* FOOTER */
footer {
    background-color: #e9d2c2;
    padding: 4rem 5%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    font-family: 'Montserrat', sans-serif;
    border-top: 1px solid rgba(0,0,0,0.1);
}

.footer_logo {
    width: 200px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
    margin-bottom: 1rem;
}

.footer-left,
.footer-center,
.footer-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1rem;
}

footer h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: #000;
    font-weight: 600;
    letter-spacing: 0.5px;
}

footer p {
    margin: 0.5rem 0;
    font-size: 1.0rem;
    color: #000;
    line-height: 1.15;
}

footer a {
    color: #000;
    text-decoration: none;
    margin: 0.5rem 0;
    font-size: 1.0rem;
    transition: all 0.3s ease;
    font-weight: 500;
}

.p-link a {
    color: #000;
    text-decoration: none;
    margin: 0.5rem 0;
    font-size: 1.0rem;
    transition: all 0.3s ease;
    font-weight: 100;
}

.p-link a:hover {
    color: #e9d2c2;
    text-decoration: underline;
    transform: translateX(3px);
}

footer a:hover {
    color: #000;
    text-decoration: underline;
    transform: translateX(3px);
}

.blog3-link {
    color: #000;
    text-decoration: none;
    font-size: 1.0rem;
    transition: all 0.3s ease;
    font-weight: 500;
}

.blog3-link:hover {
    color: #e9d2c2;
    text-decoration: underline;
    transform: translateX(3px);
}

/* TUOTE OSIO */
.product-page .section-heading {
    color: #000;
    font-family: 'Walter Turncoat', cursive;
    font-size: 1.8rem;
}

.product-page .review-text {
    color: #000;
    font-size: 1.4rem;
    line-height: 1.15;
}

.product-page .show-product {
    background-color: #ffffff;
    color: #000000;
    padding: 2vw 2vw;
    border-radius: 2px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03), 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.4);
    text-shadow: 0.5px 0.5px 1px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.product-page .show-product:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05), 0 8px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.product-page .product-info {
    font-size: 0.9rem;
}

.product-page .product-button {
    text-decoration: underline;
    font-size: 1.2rem;
}

.product-page .show-info {
    background-color: #ffffff;
    color: #000000;
    padding: 2vw 2vw;
    border-radius: 2px;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03), 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.4);
    text-shadow: 0.5px 0.5px 1px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.product-page .product-button:hover {
    text-decoration: none;
    color: white;
}

.show-info {
    display: flex;
    flex-direction: column;
    width: 80%;
    margin-top: 5vw;

}

.show-product {
    display: flex;
    flex-direction: row;
    width: 80%;
    gap:6rem;
    margin-top: 5vw;
    align-items: center;
    justify-content: center;
}

.show-product-text {
    padding: 5vw !important;
    width: 50%;
    padding: 2rem;
    color: #000;
    font-size: 1.1rem !important;
    line-height: 1.15;
}


.show-product-img {
    width: 40%;
    height: auto;
    /* Note: object-fit: contain is not applicable to divs, only to replaced elements like img, so it can be removed here */
}

.show-product-img .carousel-container {
    width: 300px;
    max-width: none;
    margin: 0 auto;
    height: auto; /* Changed from 300px to auto to adapt to image height */
    aspect-ratio: unset;
    overflow: hidden;
    position: relative;
}

.show-product-img .carousel-slide img {
    width: 300px;
    height: auto; /* Ensures images display at natural height */
    object-fit: contain; /* Preserves aspect ratio and centers the image within its space */
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
}

/* If .carousel-slide has a height set elsewhere, override it */
.show-product-img .carousel-slide {
    width: 100%;
    height: auto; /* Ensures the slide adapts to the image height */
}

.contact-link {
    text-decoration: underline;
    color: #000;
    font-size: 1.2rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.contact-link:hover {
    text-decoration: none;
    color: white;
}

/* KEYFRAMES */
@keyframes hyppiva {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Arvostelut -osio */
.reviews-section {
    width: 80%;
    max-width: 800px;
    margin: 1rem auto;
    padding: 0 2rem;
    overflow: hidden;
    height: 20vw;
}

.section-heading {
    font-size: 1.8rem;
    color: #000;
    text-align: center;
    margin-bottom: 2rem;
    font-family: 'Amsterdam Two', cursive;
    font-weight: 100;
}

.reviews-carousel {
    position: relative;
    width: 100%;
    height: auto;
}

.review-item {
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(30px);
    text-align: center;
    pointer-events: none;
    padding: 1rem 0;
}

.review-item.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.review-item.leaving {
    animation: slideOut 0.8s forwards;
}

.review-item.entering {
    animation: slideIn 0.8s forwards;
}



.start-button {
    border: solid 1.5px #e9d2c2;
    width: 90%;
    height: 200px;
    border-radius: 2px;
    background-color: #ffffff;
    display: flex;
    flex-direction: row;
    gap: 5vw;
    font-family: 'Walter Turncoat', cursive;
    margin-bottom: 3vw;
}

.blog-text1-image1 {
    width: auto;
    height: 100%;
    object-fit: cover;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
    margin: 0 auto;
    border-radius: 2px;
}

.button-description {
    display: flex;
    flex-direction: column;
    justify-content: left;
    align-items: left;
    text-align: left;
}

.start-button-h2 {
    text-decoration: none;
    font-size: 1.4rem;
    color: #000;
    letter-spacing: 0.5px;
    line-height: 1.15;
    text-align: left;
    font-weight: 100;
    font-family: 'Amsterdam Two', cursive;
    margin-bottom: 2rem;
    margin-top: 2rem;
}

.start-button-h2:hover {
    text-decoration: none;
    color: #e9d2c2;

}

.button-description-p {
    font-size: 1.0rem;
    line-height: 1.15;
    color: #000;
    font-family: 'Walter Turncoat', cursive;
    text-align: left;
    text-decoration: none;
}

@keyframes slideOut {
    0% { transform: translateX(0); opacity: 1; }
    30% { transform: translateX(20px); opacity: 0.8; }
    100% { transform: translateX(-100%); opacity: 0; }
}

@keyframes slideIn {
    0% { transform: translateX(100%); opacity: 0; }
    70% { transform: translateX(-10px); opacity: 0.8; }
    100% { transform: translateX(0); opacity: 1; }
}

.review-text {
    font-size: 1.1rem;
    line-height: 1.15;
    color: #000;
    margin-bottom: 1rem;
    font-style: italic;
    position: relative;
    padding: 0 1rem;
}

.review-author {
    font-size: 1.0rem;
    color: #000;
    font-weight: 500;
}


/* COMPANY PAGE DESKTOP MENU */
.company-page .main_menu {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1.2rem 0;
    margin: -25px auto 0 auto;
    width: 100%;
    font-size: 1.3rem;
    background-color: rgba(255,255,255,0.4);
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    position: relative;
    z-index: 100;
    flex-wrap: wrap;
}

/* MOBILE MENU BUTTON */
.company-page .mobile-menu-btn {
    display: none;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background: rgba(255,255,255,0.9);
    border: none;
    border-radius: 16px;
    padding: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    cursor: pointer;
}

.company-page .main_menu li.active {
    background-color: rgb(216, 204, 195, 0.6) !important;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.content-section0 {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    gap: 3rem;
    padding: 2rem 5%;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.content-section,
.content-section1 {
    flex: 1;
    min-width: 45%;
    max-width: 600px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    padding: 2.5rem;
    box-sizing: border-box;
    transition: all 0.3s ease;
    position: relative;
}

.content-section {
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05), 0 4px 12px rgba(0, 0, 0, 0.08), 0 8px 24px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-bottom: 2px solid rgba(0, 0, 0, 0.05);
    text-shadow: 0.5px 0.5px 1px rgba(0, 0, 0, 0.03);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.content-section:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1), 0 6px 16px rgba(0, 0, 0, 0.12), 0 10px 30px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
    background-color: rgba(255, 255, 255, 0.9);
}

.content-section > * {
    margin: 0;
    padding: 0;
    max-width: 100%;
}

.content-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(to right, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0.8) 100%);
    border-radius: 16px 16px 0 0;
}

.content-section h1 {
    text-align: center;
    color: #000;
    font-family: 'Amsterdam Two', cursive;
    margin-top: 2vw;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.content-section h2,
.content-section h3 {
    margin-top: 2vw;
    color: #000;
    font-family: 'Amsterdam Two', cursive;
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.content-section p {
    font-size: 1.0rem;
    line-height: 1.15;
    color: #000;
    font-family: 'Walter Turncoat', cursive;
    text-align: center;
}

.p-1 {
    width: 70%;
    margin: 0 auto;
}

.content-section h1.text-center {
    text-align: center;
    width: 100%;
    padding: 2vw 0;
    font-size: 1.4rem;
    font-weight: 100;
}

.highlight {
    background-color: #e9d2c231;
    padding: 1rem;
    margin: 1rem 0;
}

.delivery-info {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.delivery-h3 {
    text-align: center;
    width: 100%;
    margin: 0 auto;
    padding: 0 1rem;
    font-size: 1.2rem;
    font-weight: 100;
}

.company-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 0;
    width: 100%;
    margin: 0 auto;
    min-height: calc(100vh - 200px);
}

.info-box {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.info-box h2 {
    font-size: 1.2rem;
    font-weight: 100;
}

.rekisteriseloste {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    padding: 20px;
}
.rekisteriseloste h2 {
    font-size: 24px;
    margin-top: 30px;
    margin-bottom: 10px;
}
.rekisteriseloste h3 {
    font-size: 18px;
    margin-top: 20px;
    margin-bottom: 10px;
}
.rekisteriseloste p {
    margin-bottom: 15px;
}
.rekisteriseloste ul {
    list-style-type: disc;
    margin-left: 20px;
    margin-bottom: 15px;
}
.rekisteriseloste strong {
    font-weight: bold;
}

@media screen and (min-width: 1023px) {
    .main_menu {
        flex-wrap: nowrap;
    }
}

/* BLOG PAGE */
.blog {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 0;
    width: 100%;
    margin: 0 auto;
}

.start {
    display: flex;
    padding: 2rem 0;
    width: 90%;
    margin: 0 auto;
    gap: 2vw;
    text-align: center;
}

.start-1 {
    width: 40%;
    margin: 0 auto;
}

.start-h2 {
    font-size: 1.4rem;
    color: #000;
    letter-spacing: 0.5px;
    line-height: 1.15;
    text-align: center;
    font-weight: 100;
    font-family: 'Amsterdam Two', cursive;
}

.image1 {display: flex; flex-direction: row; align-items: center; margin: 0 auto; width: 65%;}

.blog-image {
    width: 30%;
    height: auto;
    object-fit: cover;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
    margin: 0 auto;
    border-radius: 2px;
}

.blog-image1 {
    height: 100%;
    width: auto;
}

.start-p {font-size: 1rem; line-height: 1.5; }

.blog-image-end {
    width: 30%;
    height: auto;
    object-fit: cover;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
    margin: 0 auto;
    margin-top: 3vw;
    border-radius: 2px;
}

.popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    z-index: 1000;
    text-align: center;
    border-radius: 16px;
}

.popup.show {
    display: block;
}

.writing {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 0;
    width: 100%;
    margin: 0 auto;
    background-color: #ffffff;
    width: 90%;
    height: auto;
    border-radius: 16px;
    margin-top: 5vw;
}


.writing h2, .writing h3 {
    font-size: 1.4rem;
    color: #000;
    letter-spacing: 0.5px;
    line-height: 1.15;
    text-align: center;
    text-decoration: solid;
    font-weight: 100;
    font-family: 'Amsterdam Two', cursive;
}

.writing p {
    text-align: left;
    font-size: 1.0rem;
    line-height: 1.15;
    max-width: 800px;
    margin: 1.5rem auto;
    padding: 0 2rem;
    color: #000;
}

/* INFO PAGE */
.info-main {
    background-color: #f7f2ec;

}

.intro {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    padding: 2rem;
    background-color: rgba(255, 255, 255);
    border-radius: 2px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.02);
    width: 75%;
    margin-top: 3svw !important;
    margin: 0 auto !important;
}

.intro-content {
    flex: 1;
    text-align: center;
    margin: 0 auto !important;
    justify-content: center !important;
}

.intro-image {
    width: 35%;
    height: auto;
    object-fit: cover;
    border-radius: 2px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.about-johanna, .poems, .store {
    display: flex; /* Add this */
    flex-direction: column; /* Add this */
    align-items: center; /* Add this */
    width: 75%;
    margin: 0 auto 3rem auto;
    padding: 2rem;
    background-color: rgba(255, 255, 255);
    border-radius: 2px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.02);
    margin-top: 2vw !important;
    justify-content: center;
}

.about-johanna-h2, .poems h2, .store h2 {
    font-size: 1.4rem;
    color: #000;
    margin-bottom: 1.3rem;
    line-height: 1.15;
    font-family: 'Amsterdam Two', cursive;
    font-weight: 100;
}

.about-johanna p, .poems p, .store p, .intro-content p {
    font-size: 1rem;
    line-height: 1.15;
    color: #000;
    text-align: center;
}

.intro-content p, .intro-content ul {
    margin: 0 auto;
}

.intro-content p {
    width: 60% !important;
}

.about-johanna-ul {
    padding: 0;
    margin: 1rem 0;
    width: 80% !important; 
    list-style: none;
}

.about-johanna-li {
    font-size: 1.0rem;
    margin: 0.5rem 0;
    line-height: 1.15;
}

.about-johanna-image {
    width: 30%;
    height: auto;
    object-fit: cover;
    border-radius: 2px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.store-image {
    width: 80%;
    height: auto;
    object-fit: cover;
    border-radius: 2px;
    margin-top: 1rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* MEDIA QUERIES */
@media screen and (max-width: 1200px) {
    header h2 { font-size: 2.3rem; }
    header a { font-size: 1.4rem; }
    .main_content h2 { font-size: 2.3rem; }
    .main_content p { font-size: 1rem; }
    .main_content1_img { width: 10vw; }
    .text-container_img { width: 20vw; }
    .poukama_info h2 { font-size: 2.3rem; }
    .show-product { gap: 5rem; }
    .show-product-text { font-size: 1.1rem; }
    .reviews-section { font-size: 1.1rem; height: 35vw; }
    .main_menu li { margin: 0 0.1rem; }
    .content-section0 { flex-wrap: wrap; justify-content: center; }
    .content-section, .content-section1 { min-width: 100%; max-width: 800px; margin: 1rem 0; }
}

@media screen and (max-width: 992px) {
    header h2 { font-size: 2.0rem; }
    header a { font-size: 1.1rem; }
    .poukama_info { padding: 2rem; gap: 2rem; }
    .text-container_img { width: 25%; margin-left: 0; }
    .show-product { width: 90%; gap: 3rem; }
    .product-page .section-heading { font-size: 2.0rem; }
    .product-page .product-button { font-size: 1.6vw; }
    .main_menu li { margin: 0 0.5rem; }
    .main_menu a { font-size: 1.1rem; }
    .reviews-section { font-size: 1.1rem; height: 65vw; }
}

@media screen and (max-width: 768px) {
    body { overflow-x: hidden; font-size: 0.8rem; }
    .contact-form { padding: 1.5rem; border-radius: 2px; }
    .contact-form h2 { font-size: 1.8rem; }
    .contact-form button { padding: 1rem 2rem; font-size: 1rem; }
    .main_content1_img { display: none; }
    .mobile-menu-btn { display: none; position: absolute; top: 20px; right: 15px; z-index: 1001; background: rgba(255,255,255, 0.7); border: none; padding: 10px; cursor: pointer; }
    .mobile-menu-btn span { display: block; width: 30px; height: 3px; background: #000; margin: 5px 0; transition: 0.3s; }
    .mobile-menu { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background: rgba(236, 229, 215, 0.98); z-index: 1000; display: flex; flex-direction: column; justify-content: center; align-items: center; transform: translateX(100%); transition: transform 0.3s ease; padding: 20px; box-sizing: border-box; }
    .mobile-menu.active { transform: translateX(0); }
    .mobile-menu .main_menu { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; padding: 0; margin: 0; }
    .mobile-menu .main_menu li { width: 100%; text-align: center; margin: 5px 0; padding: 0; }
    .mobile-menu .main_menu a { display: block; padding: 15px; font-size: 1.4rem; color: #000; text-decoration: none; transition: all 0.3s ease; width: 100%; }
    .mobile-menu .main_menu li:hover, .mobile-menu .main_menu li:focus { background-color: rgb(216, 204, 195, 0.6); }
    .mobile-menu-btn.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
    .mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
    .mobile-menu-btn.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }
    .mobile-menu-btn { display: block; }
    nav:not(.mobile-menu) .main_menu { display: none; }
    body.menu-open { overflow: hidden; }
    header { height: 60vh; padding-top: 20px; }
    header h2 { font-size: 1.4rem; padding: 0 10px; line-height: 1.15; }
    header a { font-size: 0.9rem; padding: 10px 20px; margin-top: 15px; }
    .main_content, .poukama_info, .carousel-container { width: 100% !important; max-width: 100% !important; margin: 0; padding: 0; }
    .main_content { padding: 1rem 0 !important; width: 100% !important; }
    .main_content1, .poukama_info { flex-direction: column; gap: 1rem; margin: 1rem 0; }
    .main_content1_img, .text-container_img { width: 70% !important; max-width: 250px !important; margin: 0 auto; }
    .carousel-container {
        width: 90% !important;
        height: 300px;
        aspect-ratio: 4/3;
    }

    .carousel-arrow {
        width: 35px;
        height: 35px;
        top: 50% !important;
    }

    .carousel-prev {
        left: 1px;
    }

    .carousel-next {
        right: 1px;
    }

    .carousel-arrow::before {
        width: 14px;
        height: 14px;
    }
    .carousel-slide img { width: 100% !important; height: auto; max-height: 50vh; object-fit: contain; padding: 0; }
    footer { grid-template-areas: "center" "left" "right"; grid-template-columns: 1fr; padding: 2rem 5%; gap: 1.5rem; }
    .footer-left, .footer-right { order: 1; margin: 0; padding: 1rem 0; border-top: none; }
    .footer-center { order: 0; padding-bottom: 0; }
    .reviews-section { width: 80%; height: 205vw; justify-content: center; margin: 1vw auto; margin-top: 30vw; }
    .review-author { font-size: 0.9rem; }
    .review-text { font-size: 0.9rem; line-height: 1.15; }
    .show-product { flex-direction: column; width: 84%; margin-top: 8vw; gap: 2rem; }
    .show-product-text { width: 90%; padding: 1rem; font-size: 1.0rem; line-height: 1.15; }
    .product-page .section-heading { font-size: 1.8rem; }
    .product-page .product-button { font-size: 1.1rem; padding: 12px 24px; margin-top: 20px; }
    .product-page .show-info { margin-top: 8vw; padding: 4vw; }
    .reviews-section { height: 55vw !important; padding: 20px 0 !important; }
    .review-text { font-size: 1.0rem !important; line-height: 1.15 !important; }
    .company-main .contact-form h2 { font-size: 1.6rem; }
    .company-main .contact-form button { width: auto; display: block; margin-left: auto; margin-right: auto; padding: 0.8rem 3rem; }
    .company-page .desktop-menu { display: none; }
    .company-page .mobile-menu-btn { display: block; position: fixed; top: 20px; right: 20px; }
    .company-page .mobile-menu.active { transform: translateX(0); }
    .start { flex-direction: column; align-items: center; padding: 1rem 0; }
    .start-1 { width: 100%; text-align: center; }
    .blog-image { width: 20%; max-width: 100%; margin: 1rem auto; }
    .writing { padding: 1rem; width: 80%; margin-top: 25vw;}
    .writing p { font-size: 0.9rem; padding: 0 1rem; line-height: 1.15; }
    .writing h2 { font-size: 1.2rem; line-height: 1.15; }
    .blog-image-end { width: 80%; max-width: 100%; margin-top: 2rem; height: auto; }
    .start-h2 { font-size: 1.5srem; line-height: 1.15; }
    .intro { flex-direction: column; padding: 1rem; }
    .intro-image { width: 100%; margin-top: 1rem; }
    .about-johanna, .poems, .store { padding: 1rem; }
    .about-johanna h2, .poems h2, .store h2 { font-size: 1.6rem; line-height: 1.15; }
    .about-johanna p, .poems p, .store p { font-size: 0.8rem; line-height: 1.15; }
    .about-johanna li { font-size: 0.9rem; line-height: 1.15; }
    .about-johanna, .poems, .store { padding: 1rem; width: 90%; }
    .main_content1_h2 { font-size: 1.8rem !important; line-height: 1.15 !important; }
    .content-section h1 { font-size: 1.6rem; }
    .content-section h2, .content-section h3 { font-size: 1.5rem; }
    .content-section0 { flex-direction: column; padding: 1rem; }
    .content-section p { font-size: 0.9rem; line-height: 1.15; padding: 0 1rem; }
    .contact-form { width: 100%; }
    .form-group input, .form-group textarea { width: 100%; }
    .show-product { display: flex; flex-direction: column; margin-top: 12vw; width: 75%; justify-content: center; }
    .show-product-text { width: 80%; padding: 1rem; font-size: 1.0rem; line-height: 1.15; }
    .show-product-img { width: 90%; height: auto; object-fit: contain; margin: 0 auto; }
    .show-product-img img { width: 100%; height: auto; object-fit: contain; filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1)); }
    .luentomain { margin-top: 25vw; max-width: 100%; padding: 10px; }
    .cursive-title { font-size: 2rem; }
    .subheading { font-size: 1rem; }
    .content-text p, .content-text ul { width: 90%; }
    .price-list { flex-direction: column; width: 90%; align-items: center; }
    .price-list h2, .price-list ul { text-align: center; width: 100%; }
    .price-list1 {
        flex-direction: column; /* Stack elements vertically */
        align-items: center; /* Center items horizontally */
        width: 90%; /* Wider for mobile */
        gap: 15px; /* Slightly larger gap for better spacing */
    }

    .price-list1 .logo-img,
    .price-list1 .about-johanna-image {
        width: 100%; /* Full width for images */
        max-width: 200px; /* Limit max size for consistency */
        height: auto; /* Maintain aspect ratio */
    }

    .price-list1 ul {
        text-align: center; /* Center the list text */
        width: 100%; /* Ensure list takes full width */
        padding: 0;
        margin: 0;
    }
    .logo-img { width: 70px; }
    .price-list1 ul { text-align: center; width: 100%; }
    .image1 {flex-direction: row;}
    .main_content4 {
        flex-direction: column;
        gap: 2rem;
        padding-left: 0;
    }
    .main_content2, .main_content3 {
        width: 90%; margin: 0 auto !important;
        justify-content: center !important;
        align-items: center !important;
    }
    .main_content1_li {
       font-size: 0.8rem !important;
    }


}

@media screen and (max-width: 480px) {
    body { font-size: 0.8rem; }
    header { height: 50vh; }
    header h2 { font-size: 1.5rem; margin-top: 10vw; margin-bottom: 4vw; line-height: 1.15; }
    .main_content h2 { font-size: 1.5rem; line-height: 1.15; }
    .main_content { padding: 2vw 0; margin-top: 100vw;}
    .text-container { padding: 2vw 0; }
    .main_content p, .poukama_info p { font-size: 0.8rem; line-height: 1.15;}
    .main_content1 {width: 80%;}
    .main_content1_img, .text-container_img { width: 10% !important; margin-left: 12vw; }
    .carousel-container { aspect-ratio: 1/1; box-shadow: none; margin-bottom: -100vw; max-height: 50%; }
    .carousel-slide { height: 100%; }
    .footer-center h3 { font-size: 1.3rem; line-height: 1.15; }
    footer { justify-content: center; }
    .main_content1_img { display: none; }
    .reviews-section { width: 100%; height: 100vw !important; justify-content: center; margin: 1vw auto; margin-top: 100vw !important; }
    .review-author { font-size: 0.8rem; }
    .review-text { font-size: 0.8rem; line-height: 1.15; }
    .show-product { display: flex; flex-direction: column; margin-top: 12vw; width: 75%; justify-content: center; }
    .show-product-text { width: 80%; padding: 1rem; font-size: 0.8rem!important; line-height: 1.15; }
    .show-product-img { width: 90%; height: auto; object-fit: contain; margin: 0 auto; }
    .show-product-img img { width: 100%; height: auto; object-fit: contain; filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1)); }
    .section-heading { font-size: 1.3rem !important; }
    .product-page .product-button { width: 100%; text-align: center; font-size: 1.3rem; }
    .product-page .show-info { width: 71%; }
    .main_content1_h2 { font-size: 1.3rem !important; line-height: 1.15 !important; }
    .product-page .review-text { font-size: 0.8rem !important; line-height: 1.15 !important; }
    .company-main .contact-form h2 { font-size: 1.5rem; }
    .intro-content h1 { font-size: 1.3rem; line-height: 1.15; }
    .intro { margin-top: 15vw !important; }
    .intro-content p { font-size: 0.8rem; line-height: 1.15; }
    .about-johanna-h2, .poems h2, .store h2 { font-size: 1.5rem; line-height: 1.15; }
    .about-johanna-image { width: 100%; height: auto; object-fit: cover; border-radius: 2px; box-shadow: 0 4px 8px rgba(0,0,0,0.1); }
    .about-johanna-li { font-size: 0.8rem; line-height: 1.15; }
    .store-image { margin-top: 0.5rem; }
    .content-section0 { padding: 0.5rem; margin-top: 25vw;}
    .content-section, .content-section1 { padding: 0.5rem; width: 90%; }
    .content-section h1 { font-size: 1.3rem; line-height: 1.15; padding: 5.5vw 0 !important; }
    .content-section h2, .content-section h3 { font-size: 1.5rem; line-height: 1.15; padding: 5.5vw 0 !important; }
    .content-section p { font-size: 0.8rem; line-height: 1.15; }
    .form-group label { font-size: 0.8rem; }
    .form-group input, .form-group textarea { padding: 0.5rem; width: 92%; }
    .contact-form button { padding: 0.5rem 1rem; font-size: 0.8rem; border-radius: 2px; }
    .contact-form { width: 90% !important; margin: 0 auto; }
    .contact-form h2 { font-size: 1.5rem; line-height: 1.15; }
    .cursive-text1 { font-size: 1.3rem; line-height: 1.15; padding-top: 1vw; }
    .header-p {font-size: 0.8rem;}
    .cursive-1 { font-size: 1.2rem; line-height: 1.15; padding-top: 1vw; }
    .cursive-2 { font-size: 1.2rem; line-height: 1.15; padding-top: 1vw; }
    .footer_logo { width: 50%; max-width: 200px; margin: 0 auto; }
    .product-info { font-size: 0.8rem !important; }
    .store-list {flex-direction: column; gap: 0; padding: 0;}
    .store-item1, .store-item2 { width: 80%; text-align: center; padding: 0;}
    .image1 {flex-direction: column;}
    .blog-image { width: 100%; max-width: 100%; margin: 1rem auto; }
    .blog-image-end { width: 100%; max-width: 100%; margin-top: 2rem; height: auto; }
    .start-button { width: 90%; height: auto; flex-direction: column; }
    .blog-text1-image1 { width: 60%; max-width: 90%; height: auto; object-fit: cover; filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1)); margin: 0 auto; border-radius: 2px; }
    .start-button-p { font-size: 0.8rem; line-height: 1.15;}
    .start {width: 98%;}
    .start-p { font-size: 0.9rem; line-height: 1.15; }
    .blog-image1 {
    height: auto;
    width: 100%;
    }

    .header_content a {
    text-decoration: none;
    color: #000;
    font-size: 3vw;
    font-weight: 400;
    margin-top: 5vw;
    margin-bottom: 1vw;
    background-color: #e9d2c2;
    padding: 4vw 8vw;
    border-radius: 2px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}
.header_logo {
    width: 70%;
    max-width: 300px;
    margin: 0 auto;}

    .company-header {
    background-image: url(images/Images/header4.4.webp);
}

.cursive-text {
    font-family: 'Amsterdam Two', cursive;
    font-weight: 100;
    font-size: 1.4rem !important;
}

}   