/* LOGO 和選擇機型連結 */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0px 40px;
    background: #669bbb;
    height: 14vh;
}

body {
    font-family: 'Fredoka', sans-serif;
    background-color: #f3faff;
}

.page-border {
    margin: 0px;
    padding: 0px;
    border: 1vh solid white;
    border-radius: 20px;
    box-shadow: 0 0 0 10px #fff, 0 4px 20px rgba(0, 0, 0, 0.1);
    background-color: #f3faff;
}

.logo {
    height: 70px;
    /* LOGO 大小 */
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: rotate(-5deg) scale(1.1);
}

/* 在header內顯示四個按鈕 */
.button-section {
    display: flex;
    justify-content: flex-end;
    /* 讓按鈕靠右 */
    align-items: center;
    width: 50%;
    margin-right: 0;
    /* 使元素靠右 */
    position: relative;
    gap: 20px 20px;
    /* 按鈕間距縮小 */
}

/* 按鈕樣式 */
.button-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 5vw;
    height: 5vw;
    border: 4px dashed #ffd0d0;
    border-radius: 20px;
    background-color: #ffb6b6;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.button-box:hover {
    background-color: #ffe6e6;
    transform: rotate(2deg) scale(1.05);
}

.icon {
    width: 80%;
    height: 80%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.text {
    font-family: 'Luckiest Guy', cursive;
    font-size: 1rem;
    color: #669bbb;
    opacity: 0;
    position: absolute;
    transition: opacity 0.3s ease;
}


/* 滑鼠懸停時的動畫效果 */
.button-box:hover .icon {
    opacity: 0;
}

.button-box:hover .text {
    opacity: 1;
}

.form-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 84vh;
    /* 讓表單置中整個視窗 */
    background-color: #669bbb;
    /* 背景底色（淡色） */
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    /* 調整格子大小 */
}

iframe {
    width: 80vh;
    max-width: 740px;
    height: 75vh;
    border-radius: 10px;
    /* 如果想讓表單有圓角 */
    background: white;
    /* 確保表單有白色背景 */
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    /* 增加陰影讓表單更突出 */
}

@media (max-width: 768px) {

    iframe {
        width: 90%;
        height: 60vh;
        margin-top: -30%;
    }

    header {
        display: flex;
        flex-direction: column;
        /* 讓 LOGO 和按鈕垂直排列 */
        align-items: center;
        /* 讓內容置中 */
        text-align: center;
        padding: 5px 0;
        /* 增加內邊距 */
        height: auto;
    }

    .logo {
        max-width: 150px;
        /* 控制 LOGO 大小，防止太大 */
        height: auto;
        padding: auto;
    }

    .button-section {
        display: flex;
        justify-content: space-evenly;
        position: fixed;
        bottom: 20px;
        left: 0;
        width: 100%;
        z-index: 10;
    }

    .button-box {
        width: 60px;
        height: 60px;
    }

    .icon {
        object-fit: contain;
    }

    .form-container {
        background-color: #5588aa;
        /* 手機版用不同的藍色 */
        height: 88vh;
    }
}