@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400&display=swap');

/* position: relative = 要子屬性跟除上層屬性的area做基準 */
/* position absolute = 絕對位置 */
/*  
圖像置中
    top:50%;
    left:50%;
    transform: translate (-50%, -50%);
*/

/* CSS初始化 */
* {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
}

/* 設定clip圖片，及去clip-path-maker製做clip-path */
.clip-bg {
    background-image: url("./images/bg2.jpg");
    height: 100vh;
    clip-path: polygon(100% 0, 100% 50%, 0 100%, 0 50%);
    position: relative;
    display: grid;
    place-items: center;
}

/* after = 二次要素 */
.clip-bg::after {
    content: "";
    width: 100%;
    height: 100%;
    background:black;
    position: absolute;
    opacity: 0.3;
}

.clip-bg h1 {
    font-size: 600%;
    color: white;
    /* z-index = 數未愈大愈在項目的上層 */
    z-index: 1;
    transition: all 0.5s ease;
}

.clip-bg button {
    position: absolute;
    top: 65%;
    left: 20%;
    padding: 1rem 3.6rem;
    background-color: transparent;
    border: 1px solid white;
    color: white;
    font-size: 1.4rem;
    z-index: 1;
    cursor: pointer;
    transition: all 0.5s ease;

}

.clip-header {
    display: flex;
    flex-direction: row;
    margin: 20px;
    position:absolute;
    align-items: center;
    
}

.clip-header img {
    width:50px;
    height: 50px;
}

.clip-header h1{
    color:white;
    margin-top: 5px;
    margin-left:10px;
    font-size: 25px;
}

/* 設定主背景，去graden css製做漸變色背景*/
body {
    background: rgb(37,230,164);
    background: linear-gradient(90deg, rgba(37,230,164,1) 7%, rgba(124,215,193,0.7378190255220418) 47%, rgba(0,212,255,1) 100%);
}

@media only screen and (max-width: 1235px) {
    .clip-bg h1 {
        font-size: 400%;
        display: block;
        text-align: center;
    }

}

@media only screen and (max-width: 820px) {
    .clip-bg h1 {
        font-size: 300%;
    }

}

@media only screen and (max-width: 600px) {
    .clip-bg h1 {
        font-size: 200%;
    }

    .clip-bg button {
        padding: 0.5rem 2.4rem;
        left:10%;
    }
}
