body{
	background-color: #e5e5e5;
    font-family: "Noto+Sans+TC", sans-serif;
    margin: 0;
    padding: 0;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
}

#background_div{
	display: flex;
    width: 100vw;
    height: 100vh;
    position: relative;
    overflow: hidden;
}

#bgimg{
    position: fixed;
    display: flex;
    width: 100vw;
    height: 100vh;
    top: 0;
    left: 0;
    z-index: 100;
    object-fit: cover;
}

#bgimg_sunshine{
    position: fixed;
    display: flex;
    width: 100vw;
    height: auto;
    top: 0;
    left: 0;
    mask-image: linear-gradient(to bottom,
        rgba(0, 0, 0, 0),   /* 最上方透明 */
        rgba(0, 0, 0, 1) 10%,  /* 10%開始不透明 */
        rgba(0, 0, 0, 1) 80%,  /* 80%維持不透明 */
        rgba(0, 0, 0, 0)       /* 底部漸變透明 */
    );
    -webkit-mask-image: linear-gradient(to bottom,
        rgba(0, 0, 0, 0),
        rgba(0, 0, 0, 1) 20%,
        rgba(0, 0, 0, 1) 80%,
        rgba(0, 0, 0, 0)
    );
    z-index: 110;
    object-fit: contain;
}

#bgimg_sun{
    position: fixed;
    display: flex;
    width: 100vw;
    height: auto;
    top: 0;
    left: 0;
    z-index: 115;
    object-fit: contain;
}

#bgimg_wave{
    position: fixed;
    display: flex;
    width: 100vw;
    height: auto;
    top: 12%;
    left: 0;
    z-index: 110;
    object-fit: contain;
}

#bgimg_bird{
    position: fixed;
    display: flex;
    width: 100vw;
    height: auto;
    top: 12%;
    left: 5%;
    z-index: 110;
    object-fit: contain;
}

#bgimg_cloud{
    position: fixed;
    display: flex;
    width: 100vw;
    height: auto;
    bottom: 0;
    left: 0;
    z-index: 110;
    object-fit: contain;
}

#bgimg_stairs{
    position: fixed;
    display: flex;
    width: 80vw;
    height: auto;
    bottom: 0;
    right: 3%;
    z-index: 110;
    object-fit: contain;
}

#school_div{
	z-index: 120;
    position: flex;
    top: 15%;
    left: 0;
    display: flex;
    flex-direction: column;
    width: 100%;
}

#title{
    display: flex;
    position: relative;
    top: 0;
    left: 5%;
    padding: 0 0 30% 0;
    width: 95%;
    height: auto;
}

#school_name, #graduation_name{
    display: flex;
    position: absolute;
    top: 0;
    left: 0;
    margin: 5% 0 2% 0;
    width: 80%;
    height: auto;
}

#graduation_time{
	display: flex;
    padding: 0% 12.8%;
    font-family: "Noto+Sans+TC", sans-serif;
    color: #4d394d;
    font-size: 24px;
    letter-spacing: 3px;
    font-weight: 500;
}

#school_div #button_div {
    display: flex;
    flex-direction: row;
    padding: 1% 0% 0% 12.5%;
    width: 35%;
    height: auto;
}

#button_div a {
    display: flex;
    width: 35%;
    text-decoration: none;
    margin-right: 50px;
}

#button_div a button{
	background-color: #FFFFFF;
    padding: 8% 12%;
    border: none;
    cursor: pointer;
    border-radius: 20px;
    width: 100%;
    filter: drop-shadow(0px 3px 2px #A2A2A2);
    color: #000000;
    font-weight: 600;
    font-size: 24px;
    font-family: "Noto+Sans+TC", sans-serif;
}

#url_div {
    position: absolute;
    display: flex;
    flex-direction: column;
    bottom: 20px;
    right: 0;
    margin: 0% 1% 2% 0%;
    z-index: 120;
    /*border: 1px solid black;*/
}

#url_div img{
	width: 70px;
    cursor: pointer;
}

#bottom_text{
	position: absolute;
    display: flex;
    bottom: 0;
    right: 0;
    padding-right: 1%;
    z-index: 120;
    font-size: 12px;
    color: #5E5E5E;
    font-weight: 400;
    font-family: "Noto+Sans+TC", sans-serif;
    text-align: right;
}

/* 行動端響應式設計 */
@media screen and (max-width: 768px) {
    #bgimg_sunshine, #bgimg_sun {
        position: absolute;
        top: 0;
        left: 0;
        width: 100vw;
        height: 40vh;
        max-height: 40vh;
        object-fit: cover;
        z-index: 110;
    }
    #bgimg_wave, #bgimg_bird {
        position: absolute;
        top: 30vh;
        left: 50%;
        transform: translateX(-50%);
        width: 90vw;
        height: auto;
        z-index: 115;
    }
    #school_div {
        position: relative;
        width: 100vw;
        height: 100vh;
    }
    #title {
        position: fixed;
        bottom: 50vh;
        left: 0;
        width: 100vw;
        height: auto;
        z-index: 120;
        display: block;
        margin: 0;
        padding: 0;
        transform: translateY(50%);
    }
    #school_name, #graduation_name {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        max-width: 100%;
        height: auto;
        margin: 0;
        z-index: 1;
        transform: scale(1.5) translateX(20%);
        transform-origin: center center;
    }
    #graduation_name {
        z-index: 2;
    }
    #graduation_time {
        position: fixed;
        top: 52vh;
        left: 0;
        width: 100vw;
        font-size: 18px;
        text-align: center;
        display: block;
        margin: 0;
        padding: 0;
    }
    #button_div {
        position: fixed;
        top: 62vh;
        left: 0;
        width: 100vw;
        display: flex;
        flex-direction: row;
        justify-content: center;
        margin: 0;
        padding: 0;
        gap: 20px;
        z-index: 200;
    }
    #button_div a {
        width: auto;
        min-width: 120px;
        margin-right: 0;
    }
    #button_div a button {
        width: 100%;
        white-space: nowrap;
        padding: 8px 16px;
    }
    #url_div {
        position: fixed;
        display: flex;
        flex-direction: row;
        bottom: 50px;
        right: 20px;
        margin: 0;
        z-index: 120;
        gap: 10px;
    }
    #url_div img {
        width: 40px;
        height: 40px;
        cursor: pointer;
    }
    #bottom_text {
        position: fixed;
        bottom: 10px;
        right: 20px;
        padding: 0;
        z-index: 120;
        font-size: 10px;
        text-align: right;
    }
}

/* 小型行動裝置的額外優化 */
@media screen and (max-width: 480px) {
    #title {
        padding: 0 0 15% 0;
    }

    #graduation_time {
        font-size: 16px;
    }

    #button_div {
        width: 90%;
        gap: 10px;
    }

    #button_div a {
        min-width: 100px;
    }

    #button_div a button {
        font-size: 16px;
        padding: 6px 12px;
    }

    #url_div {
        bottom: 38px;
        right: 15px;
    }
    #url_div img {
        width: 35px;
        height: 35px;
    }
    #bottom_text {
        bottom: 8px;
        right: 15px;
        font-size: 9px;
    }
}