body {
    margin: 0;
    color: white;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

#content {
    flex: 1;
}

.bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background: url('src/muri_poster.jpg') top/cover no-repeat;

    transition: opacity 0.5s ease;
    z-index: 0;
}

.content.nobackground .bg {
    opacity: 0;
}

/* 遮罩 */
.main {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 100%;

    background: rgb(0, 0, 0, 0.7);
    z-index: 1;
}

/* header */
header {
    position: relative;
    width: 100%;
    height: 80px;
    top: 0;
    left: 0;

    display: flex;
    justify-content: space-between;
    align-items: center;

    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.9),
        rgba(0,0,0,0)
    );

    z-index: 1;
}

/* header 內容 */
.header-content {
    margin: 0 auto;
    display: flex;
    gap: 40px;
    font-size: 16px;
}

.header-content h3 {
    cursor: pointer;
    margin: 0;
}

.header-content h3:hover, 
.header-content h3.selected {
    text-shadow: 0px 10px 12px rgb(249, 179, 229) ;
}

.header-menu{
    display: none;
    position: absolute;
    right:20px;
    top:50px;
    transform: translateY(-50%);
    z-index: 2;
}

.menu-button{
    background-color: transparent;
    color: white;
    padding: 10px 15px;
    font-size: 30px;
    border-radius: 25px;
}

.page-menu {
    position: fixed;
    top: 0;
    left: 0;

    width: 100vw;
    height: 100vh;

    display: flex;
    z-index: 999;

    background: rgba(0, 0, 0, 0.6);

    transform: translateY(-100%);
    opacity: 0;

    transition: all 0.4s ease;
}

/* 打開狀態 */
.page-menu.active {
    transform: translateY(0);
    opacity: 1;
}

.page-menu h3 {
    transform: translateY(-20px);
    opacity: 0;
    transition: 0.3s;
    position: relative;
}

.page-menu.active h3 {
    transform: translateY(0);
    opacity: 1;
}

.page-menu div h3.selected {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;

    width: 0;
    height: 2px;
    background: #ffc8f0;

    transition: 0.3s;
}

.page-menu.active h3::after{
    width: 100%;
}

.page-menu.active h3:nth-child(1) { transition-delay: 0.1s; }
.page-menu.active h3:nth-child(2) { transition-delay: 0.2s; }
.page-menu.active h3:nth-child(3) { transition-delay: 0.3s; }
.page-menu.active h3:nth-child(4) { transition-delay: 0.4s; }


.page-menu > div{
    margin: auto;
    font-size: 60px;
    text-align: center;
}

.page {
    display: none;
}

.page.active {
    display: block;
    margin: 80px 0;
    padding: 0 20%;
}

.art-commission {
    display: none;
}

.art-commission.active{
    display:block
}

.intro{
    display:flex;
    gap:20px;
}

.intro .slider,
.intro .text-content {
    flex: 1;
}

/* 圖片容器 */
.img-container {
    width: 300px;
    max-width: 300px;
    margin: 20px auto;

    border: 2px white solid;
    border-radius: 20px;

    overflow: hidden;
    padding: 10px;
}

.img-container img {
    width: 100%;
    height: auto;
}

.slider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.img-track {
    display: flex;
    transition: transform 0.5s ease;
}

.img-track img {
    width: 100%;
    max-width: 300px;
    height: auto;
    object-fit: cover;
}

.nav {
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
}

/*繪圖委託*/
.card {
    display: flex;
    align-items: center;
    gap: 20px;

    background: rgba(255,255,255,0.1);
    padding: 15px;
    border-radius: 12px;

    max-width: 1000px;
    margin:10px;
}

.card-img {
    position: relative;
    width: 300px;
    height: 300px;
    overflow: hidden;
}

/* 裁切版 */
.cover {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;

    transition: opacity 0.4s ease;
}

/* 原圖版 */
.full {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: contain;

    opacity: 0;
    transform: scale(0.9);

    transition: opacity 0.4s ease, transform 0.4s ease;
}

/* hover 切換 */
.card-img:hover .cover {
    opacity: 0;
}

.card-img:hover .full {
    opacity: 1;
    transform: scale(1.1);
}

/* 右邊文字 */
.card-text h3 {
    margin: 0 0 5px;
}

.card-text p {
    margin: 0;
    font-size: 14px;
    opacity: 0.8;
}

#art-commission{
    width: 70%;
    height:200px;
    resize: none; 
}

.btn-wrap {
    display: flex;
    justify-content: flex-end;
}

.cute-btn {
    background: linear-gradient(135deg, #f9b3e5, #ffc8f0);
    color: #fff;

    border: none;
    border-radius: 20px;

    padding: 10px 20px;
    font-size: 14px;
    margin-right: 10%;

    cursor: pointer;

    box-shadow: 0 4px 10px rgba(249, 179, 229, 0.5);

    transition: all 0.25s ease;
}

.cute-btn:hover {
    transform: translateY(-2px) scale(1.05);

    box-shadow: 0 6px 15px rgba(249, 179, 229, 0.7);

    background: linear-gradient(135deg, #ffc8f0, #f9b3e5);
}

.cute-btn:active {
    transform: scale(0.95);
    box-shadow: 0 2px 5px rgba(249, 179, 229, 0.5);
}

footer {
    position: fixed;
    width: 100%;
    padding: 20px 0;
    bottom: 0;
    z-index: 2;

    text-align: center;
    color: white;

    background: rgba(0, 0, 0, 0.6);
    border-top: 1px solid rgba(255,255,255,0.2);

    font-size: 14px;
    backdrop-filter: blur(5px);
}

footer a{
    color: white;
    transition: 0.3s;
}

footer a:hover {
    color: rgb(249, 179, 229);
    text-shadow: 0 0 10px rgba(249,179,229,0.5);
}

/*手機*/
@media (max-width: 1000px) {

    header {
        height: 100px;
    }

    .header-content {
        gap: 10px;
        font-size: 45px;
    }

    .header-content h3 {
        display: none;
    }

    .header-content h3.selected{
        display: block;
        text-shadow: none;
        margin-top: 10%;
    }

    .header-menu{
        display: block;
    }

    .page.active {
        margin-top: 10%;
        padding: 0 10%;
        font-size: large;
    }

    .img-container {
        max-width: 100%;
        width: 100%;
    }

    .intro{
        flex-direction: column;
    }

    .nav {
        font-size: 18px;
        padding: 6px;
        width: 10%;
    }

    .card {
        flex-direction: column;
        text-align: center;
    }

    .card-img {
        width: 60%;
        height: 60%;
    }

    .cover{
        opacity: 0;
    }

    .full{
        opacity: 1;
        position: relative;
    }

    .cute-btn {
        width: 100%;
        border-radius: 15px;
        margin:0;
    }
}