/* home.css */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: white; }
::-webkit-scrollbar-thumb { background: black; border-radius: 0; clip-path: polygon(0 0, 100% 50%, 100% 50%, 0 100%); }
::-webkit-scrollbar-button { display: none; }

.home{
    width: 100vw;
}
* {
    overflow-x: hidden;
}

a{
    color: black;
    text-decoration: none;
}

.start{
    margin: 0;
    padding: 0;
    width: 100vw;
    height: 94vh;
    position: relative;
    overflow: hidden;
}
.start img{
    position: absolute;
    top: 0;
    right: 12px;
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.examples{
    height: 100%;
    margin: 5vh 9vw 15vh;
    padding: 0 1vw;
}

.examples *{
    color: black;
    font-family: 'Orbitron', sans-serif;
}

.examples .product{
    width: 24vw;
    height: auto;
    margin: 3% 1%;
    display: inline-block;
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth hover/active effect */
    vertical-align: top;
    position: relative;
}

.examples .product:hover,
.examples .product:active {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.examples .product *{
    text-align: center;
}

.examples .product-display{
    width: 100%;
}
.examples .product-image{
    width: 100%;
}

.examples .product.soldOut:hover,
.examples .product.soldOut:active {
    transform: scale(1.05);
}

.examples .product .soldOutText {
    text-align: center;
    font-family: 'Orbitron', sans-serif;
    font-weight: bold;
}

.examples .product .buyText {
    text-align: center;
    font-family: 'Orbitron', sans-serif;
    font-weight: bold;
}

.examples .product .original-price {
    text-decoration: line-through;
    margin-right: 10px;
}

.examples .product .sale-price {
    color: #994444;
    font-weight: bold;
}

.about{
    height: auto;
    margin: 5vh 10vw 10vh;
}

.about *{
    color: black;
    font-family: 'Orbitron', sans-serif;
    overflow: hidden;
}

.about-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.about img{
    width: 30vw;
    margin: 0 5vw 0 0;
    transition: transform 0.3s ease; /* Optional hover/active for images */
}

.about img:hover,
.about img:active {
    transform: scale(1.05);
}

.about .text{
    width: 60vw;
}


.customize{
    height: auto;
    margin: 5vh 10vw;
}

.customize *{
    color: black;
    font-family: 'Orbitron', sans-serif;
}

.customize h1{
    color: black;
    font-family: 'Orbitron', sans-serif;
}

.customize-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: row-reverse;
}

.customize img{
    width: 30vw;
    margin: 0 0 0 5vw;
    transition: transform 0.3s ease; /* Optional hover/active for images */
}

.customize .text{
    width: 60vw;
    margin: 0;
}

.customize a{
    color: #001eff;
    cursor: pointer;
    transition: text-shadow 0.3s ease, transform 0.3s ease;
}
.customize a:hover,
.customize a:active {
    text-shadow: 0 2px 3px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {

    .start {
        height: min(60vh, calc(100vw * 0.5625));
    }

    .examples {
        margin: 3vh 5vw 8vh;
        text-align: center;
    }

    .examples .product {
        width: 90vw;
        display: block;
        margin: 20px auto;
    }

    /* For touch devices, prioritize :active over :hover */
    @media (hover: none) {
        .examples .product:hover {
            transform: none;
            box-shadow: none;
        }
        .examples .product:active {
            transform: scale(1.05);
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
        }

        .examples .product.soldOut:hover {
            background-color: transparent;
            transform: none;
        }
        .examples .product.soldOut:active {
            background-color: rgba(255, 0, 0, 0.3);
            transform: scale(1.05);
        }
    }

    .about {
        margin: 3vh 5vw 8vh;
    }

    .about-content {
        flex-direction: column;
    }

    .about img {
        width: 100%;
        margin: 0 0 10px 0;
    }

    .about .text {
        width: 100%;
        text-align: center;
    }

    .customize {
        margin: 3vh 5vw;
    }

    .customize-content {
        flex-direction: column;
    }

    .customize img {
        width: 100%;
        margin: 0 0 10px 0;
    }

    .customize .text {
        width: 100%;
        margin: 0;
        text-align: center;
    }

    /* For touch devices in customize and about */
    @media (hover: none) {
        .about img:hover,
        .customize img:hover,
        .customize a:hover {
            transform: none;
            text-shadow: none;
        }
        .about img:active,
        .customize img:active,
        .customize a:active {
            text-shadow: 0 2px 3px rgba(0, 0, 0, 0.5);
        }
    }
}

@media (max-width: 480px) and (orientation: portrait) {
    .start {
        height: min(50vh, calc(100vw * 0.5625));
    }

    .examples {
        margin: 2vh 2vw 5vh;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .examples .product {
        display: block;
        width: 90vw;
        margin: 20px auto;
    }

    .about, .customize {
        margin: 2vh 2vw;
    }

    .about .text, .customize .text {
        margin-top: 5px;
    }
}

@media (max-width: 768px) and (orientation: landscape) {
    .start {
        height: min(94vh, calc(100vw * 0.5625));
    }

    .about-content {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .about img {
        width: 40vw;
        margin: 0 2vw 0 0;
    }

    .about .text {
        width: 50vw;
        text-align: left;
    }

    .customize-content {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-direction: row-reverse;
    }

    .customize img {
        width: 40vw;
        margin: 0 0 0 2vw;
    }

    .customize .text {
        width: 50vw;
        text-align: left;
    }
}