/* Nollaa oletustyylit */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.8;
    background-color: white;
    padding-bottom: 60px;
}

/*.homepage-buttons {
    text-align: center;
    margin: 30px 0;
}*/

/*.homepage-btn {
    display: inline-block;
    margin: 10px;
    padding: 12px 24px;
    background-color: #90A08D;
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
}*/
/*
.homepage-btn:hover {
    background-color: #748371;
}*/

/* Yläosan kuva */

.header {
    position: relative;
    width: 100%;
    height: auto;
    overflow: hidden;
    z-index: 1;
}

.header-image {
    width: 100%;
    height: 460px;
    display: block;
    object-fit: cover; /* Leikkaa reunoja tarvittaessa */
}

@media (max-width: 768px) {
    .header-image {
        height: 250px; /* täyttää headerin korkeuden */
        object-fit: cover;
    }
}

.fancy-heading {
    font-family: 'Dancing Script', cursive;
    font-size: 2.8rem;
    font-weight: 500;
    margin-bottom: 1px;
    text-align: center; /* jos haluat keskitetyn */
    color: #444; /* voit muuttaa väriä */
}

.fancy-heading-big {
    font-family: 'Dancing Script', cursive;
    font-size: 3.5rem;
    font-weight: 500;
    margin-bottom: 1px;
    text-align: center; /* jos haluat keskitetyn */
    color: #444; /* voit muuttaa väriä */
}

.fancy-heading-left {
    font-family: 'Dancing Script', cursive;
    font-size: 2.8rem;
    font-weight: 500;
    margin-bottom: 1px;
    text-align: left; /* jos haluat keskitetyn */
    color: #444; /* voit muuttaa väriä */
}

/* Tilaustyö otsikot kännykällä */
@media (max-width: 768px) {
    .fancy-heading-left {
        text-align: center;
    }
}

/* Logo */
.logo {
    max-width: 200px;  /* Aseta sopiva koko */
    margin-bottom: 20px;  /* Väli logon ja tekstin väliin */
}

.highlight-banner {
    background-color: #90A08D;
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    padding: 0.5rem 1rem 0.2rem 1rem; /* ylä, oikea, ala, vasen */
    text-align: center;
    margin: 0;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    transform: translateX(-50%);
}

/* Tekstiosa */
.text-section {
    padding: 20px;
    text-align: center;
}

.text-section h2 {
    color: #333333;
}

.intro-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
}

.aloitus {
    display: flex;
    justify-content: space-between;
    gap: 0;
    padding: 5px 20px;
    flex-wrap: wrap;
}

.text-content-aloitus,
.instagram-media-aloitus {
    flex: 1 1 0;
    max-width: 50%;
    min-width: 280px;
}

.text-content-aloitus {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 20px;
}

.instagram-media-aloitus {
    display: flex;
    align-items: center;
    margin-left: 40px;
}

@media (max-width: 800px) {
    .text-content-aloitus,
    .instagram-media-aloitus {
        max-width: 100%;
    }
}

/* Kuvagalleria */
.image-gallery {
    padding: 20px;
    text-align: center;
}

.gallery {
    display: flex;
    flex-wrap: wrap; /* Kuvien jakaminen useille riveille */
    justify-content: center; /* Keskittää kuvat */
    align-items: flex-start;
    gap: 15px; /* Väli kuvien välillä */
    padding: 20px;
}

.gallery img {
    /* width: calc(30% - 10px); /* Kolme kuvaa vierekkäin, miinus gap */
    width: 25%;
    max-width: 200px;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    -webkit-tap-highlight-color: transparent; /* Poistaa sinisen välähdyksen iOS/Android */
    touch-action: manipulation; /* Nopeampi vaste ja estää joitain oletustoimintoja */
    outline: none;
}

.gallery img:hover {
    transform: scale(1.5); /* Kasvata kokoa */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Responsiivisuus pienemmille näytöille */
@media (max-width: 768px) {
    .gallery img {
        width: calc(50% - 10px); /* Kaksi kuvaa vierekkäin pienellä näytöllä */
        max-width: none;
    }

    .gallery img:hover {
        transform: none;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }
}

.video-text {
    text-align: center;
}

.video-container {
    display: flex;
    justify-content: center;
    padding: 20px 0;
    align-items: center;
}
.video-container video {
    width: 100%;
    max-width: 350px;
    display: block;
}

@media (max-width: 768px) {
    .video-container video {
        max-width: 250px;
    }
}

/* Tekijätiedot */

.author-info {
    text-align: center;
    padding: 1rem;
    font-size: 1rem;
    color: #444;
    background-color: #f8f5f2;
    margin-top: 4rem;
}


/* Alapalkki */
.footer {
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px; /* Väli tekstielementtien välillä */
    padding: 8px 0; /* Pienempi korkeus */
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 1000;
    font-size: 0.9rem;
    height: 40px; /* Puolittaa korkeuden */
}

.footer a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    transition: color 0.3s ease;
    -webkit-tap-highlight-color: transparent; /* Poistaa välähdyksen mobiilissa */
    outline: none; /* Poistaa sinisen kehyksen klikkauksen jälkeen */
    touch-action: manipulation; /* Nopeampi vaste mobiilissa */
}

.footer a:hover {
    color: #748371;
}

.footer p {
    margin: 0;
    white-space: nowrap; /* Estää tekstin siirtymisen uudelle riville */
}

@media (max-width: 768px) {
    footer {
        position: relative;  /* Jos haluat, että footer pysyy paikoillaan */
        bottom: 0;  /* Pidetään footer näytön alareunassa */
        width: 100%;
    }
}

/* Hamburger-nappula */
.hamburger {
    font-size: 1.5rem;
    background-color: #A8B2A5;
    padding: 2px 6px;
    border: solid black;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    color: black;
    cursor: pointer;
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1002; /* Above navigation */
    display: block; /* Visible on mobile */
}

@media (max-width: 768px) {
    .footer {
        font-size: 0.6rem;
        gap: 5px;
    }
}

/* Navigointivalikko (Mobile-first) */
.navigation {
    display: none; /* Hidden by default on mobile */
    position: fixed;
    top: 0;
    right: 0; /* Align to right edge */
    width: 160px; /* Fixed sidebar width */
    height: 100%; /* Full viewport height */
    background-color: #A8B2A5;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
    padding-top: 4rem; /* Space for hamburger button */
    z-index: 1001; /* Above header */
    overflow-y: auto; /* Allow scrolling */
    transform: translateX(100%); /* Start off-screen */
    transition: transform 0.3s ease-in-out; /* Slide animation */
}

.navigation.show {
    display: block; /* Show when toggled */
    transform: translateX(0); /* Slide in */
}

.navigation ul {
    list-style: none;
    padding: 1rem;
    margin: 0;
    display: flex;
    flex-direction: column; /* Stack items vertically */
    gap: 1rem;
}

.navigation li {
    list-style: none;
}

.navigation a {
    text-decoration: none;
    color: #333;
    font-size: 1.0rem; /* Readable font */
    font-weight: 600;
    padding: 10px;
    display: block; /* Full-width clickable area */
    border-radius: 4px;
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent; /* Poistaa välähdyksen mobiilissa */
    outline: none; /* Poistaa sinisen kehyksen klikkauksen jälkeen */
    touch-action: manipulation; /* Nopeampi vaste mobiilissa */
}

.navigation a:hover {
    background-color: #90A08D;
    color: white;
}

.navigation a.active {
    background-color: #90A08D;
    color: white;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Desktop navigation */
@media (min-width: 769px) {
    .hamburger {
        display: none; /* Hide hamburger on desktop */
    }

    .navigation {
        display: block; /* Always visible */
        position: sticky;
        top: 0;
        width: 100%;
        height: auto;
        padding: 10px 0;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        transform: none; /* No animation */
        transition: none; /* No animation */
    }

    .navigation ul {
        flex-direction: row; /* Horizontal layout */
        justify-content: center;
        gap: 20px;
        padding: 0;
    }

    .navigation li {
        display: inline;
    }

    .navigation a {
        font-size: 1rem;
        padding: 10px 15px;
    }
}

/* Linkit */

a {
    color: #90A08D;
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s ease;
    -webkit-tap-highlight-color: transparent; /* Poistaa välähdyksen mobiilissa */
    outline: none; /* Poistaa sinisen kehyksen klikkauksen jälkeen */
    touch-action: manipulation; /* Nopeampi vaste mobiilissa */
}

a:hover {
    color: #3c3c3b;
}


/* Tilaustyöt */

#tilaustyot {
    background-color: #f8f5f2;
}

.text-section-other {
    margin-top: 30px;
    padding: 20px;
    background: white;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* Varjo tekstikentälle */
    margin-bottom: 30px; /* Väli seuraavalle osalle */
}


.house-section, .ultra-section, .pet-section, .sign-section {
    display: flex;
    background: white;
    align-items: center;
    justify-content: space-between; /* Jakaa tilan tasaisesti */
    gap: 20px;
    padding: 20px;
    flex-wrap: wrap; /* Estää tekstin siirtymisen alle */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* Hieno varjo */
    margin-bottom: 30px; /* Väli seuraavalle alueelle */
}

.house-section div, .ultra-section div, .pet-section div, .sign-section div {
    flex: 1; /* Tekstiosuus vie 50% tilasta */
    max-width: 60%;
}

.house-section img, .ultra-section img, .pet-section img, .sign-section img {
    width: 50%; /* Kuvien osuus */
    max-width: 400px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out; /* Pehmeä ja sulava kuvan suurennos */
    -webkit-tap-highlight-color: transparent; /* Poistaa sinisen välähdyksen iOS/Android */
    touch-action: manipulation; /* Nopeampi vaste ja estää joitain oletustoimintoja */
}

.house-section img:hover, .ultra-section img:hover, .pet-section img:hover, .sign-section img:hover {
    transform: scale(1.1); /* Suurentaa kuvaa 10% hiiren ollessa päällä */
}

/* Kännykällä tilaustyöt */

@media (max-width: 768px) {
    .house-section, .pet-section {
        flex-direction: column; /* Vaihtaa allekkain pienillä näytöillä */
        align-items: center;
        text-align: center;
    }

    .ultra-section, .sign-section {
        flex-direction: column-reverse; /* Ultra kuvat loppuun */
        align-items: center;
        text-align: center;
    }

    .house-section div, .ultra-section div, .pet-section div, .sign-section div {
        max-width: 100%;
    }

    .house-section img, .ultra-section img, .pet-section img, .sign-section img {
        width: 80%; /* Isommilla näytöillä kuva voi olla isompi */
        transition: none;
    }

    .house-section img:hover, .ultra-section img:hover, .pet-section img:hover, .sign-section img:hover {
        transform: none; /* Ei suurenna hiiren ollessa päällä */
    }
}


/* Myynnissä */

.categories-section {
    padding: 20px;
}

.category-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.category-button {
    padding: 10px 20px;
    background-color: #90A08D;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    color: white;
    transition: background-color 0.3s ease;
}

.category-button:hover {
    background-color: #748371;
}

.category-button.active {
    background-color: #748371;
}

.artworks-section {
    display: flex;
    justify-content: flex-start; /* Tasaa laatikot */
    flex-wrap: wrap; /* Tekee rivit, jos tila loppuu */
    gap: 20px; /* Väli laatikoiden välillä */
    padding: 20px;
}

.artwork-box {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* Varjo laatikoille */
    width: calc(20% - 20px); /* 5 laatikkoa per rivi */
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.artwork-box img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.artwork-box h3 {
    font-size: 1.2rem;
    color: #333;
    margin: 10px 0;
}

.artwork-box .price {
    font-size: 1rem;
    color: #333;
    font-weight: 600;
    margin-bottom: 15px;
}

.artwork-box:hover {
    transform: scale(1.05); /* Kevyt suurennos hover-efektillä */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* Isompi varjo hoverilla */
}


/* Kuvan suurennus */

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
    display: block;
    max-width: 100%;
    max-height: 100%;
    margin: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.close {
    position: absolute;
    top: 2rem;
    right: 3rem;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

@media (max-width: 768px) {
    .close {
        top: auto;
        bottom: 2rem;
        right: 1.5rem;
    }
}

.zoomable-img {
    cursor: pointer;
}


/* Kännykällä myynnissä */

@media (max-width: 1200px) {
    .artwork-box {
        width: calc(25% - 20px); /* 4 laatikkoa per rivi */
    }
}

@media (max-width: 992px) {
    .artwork-box {
        width: calc(33.33% - 20px); /* 3 laatikkoa per rivi */
    }
}

@media (max-width: 768px) {
    .artwork-box {
        width: calc(50% - 20px); /* Kaksi laatikkoa per rivi pienemmillä näytöillä */
    }
}

@media (max-width: 480px) {
    .artwork-box {
        width: 100%; /* Yksi laatikko per rivi pienimmillä näytöillä */
    }
}

@media (max-width: 480px) {
    .video-container {
        width: 90%;
    }
}

/* Tietoja sivu */

.yhteistiedot {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0;
    padding: 40px 20px;
    flex-wrap: wrap;
}

.text-content,
.instagram-media {
    flex: 1 1 0;
    max-width: 50%;
    min-width: 280px;
    box-sizing: border-box;
}

.text-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 20px;
}

.instagram-media {
    margin: 30px 0;
    display: flex;
}

@media (max-width: 800px) {
    .text-content,
    .instagram-media,
    .text-content-aloitus,
    .instagram-media-aloitus {
        max-width: 100%;
    }
}



