/*Global setting*/
/*Web font*/
@font-face {
    font-family: "Caveat";
    src: url("Caveat/Caveat-VariableFont_wght.ttf") format("truetype"),
    url("Caveat/Caveat-VariableFont_wght.woff") format("woff"),
    url("Caveat/Caveat-VariableFont_wght.woff2") format("woff2");
}

@font-face {
    font-family: "Vilanders Sans";
    src: url("vilanders-sans-cdnfonts/VilanderssansStamp-BWDPn.otf") format("opentype"),
    url("vilanders-sans-cdnfonts/VilanderssansStamp-BWDPn.woff") format("woff"),
    url("vilanders-sans-cdnfonts/VilanderssansStamp-BWDPn.woff2") format("woff2");
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
}

body {
    min-width: 100vw;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-image: url("resources/Nav_bg.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow-x: hidden;
}

/*header setting*/
header {
    background-image: url("resources/intro_background2.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-bottom: solid 0.1rem black;
    position: sticky;
    top: 0;
    right: 0;
    left: 0;
    min-width: 100%;
    z-index: 10;
    text-align: center;
    font-family: 'Vilanders Sans', sans-serif;
}
/*navigation setting*/
/*desktop condition*/
nav.desktop ul {
    display: flex;
    justify-content: space-evenly;
}

nav.desktop li {
    list-style: none;
    font-weight: lighter;
    transition: background-color 0.5s, border-radius 0.5s;
}

nav.desktop ul a {
    text-decoration: none;
    color: rgb(255, 255, 255);
}

.Web-name span {
    color: rgb(102, 255, 6);
    letter-spacing: 0.1rem;
    font-weight: bold;
    -webkit-text-stroke: 0.1rem rgb(0, 0, 0);
}

.Web-name span.h1 {
    font-size: 4rem;
}

.Web-name span.p {
    font-size: 2rem;
}
/*nav bar hover effect*/
nav.desktop ul li:hover {
    background-color: rgba(255, 228, 196, 0.678);
    border-radius: 50%;
}

/*condition for only mobile*/
nav.mobile ul {
    display: none;
}

/*Main setting*/
main {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: "Caveat", sans-serif, monospace;
}
/*intro section setting*/
section.intro {
    background-color: aliceblue;
    border-radius: 1rem;
    width: 50%;
    margin: 0.5rem auto 1rem 0;
    padding: 1rem 3rem 1rem 6rem;
    line-height: 1.5;
    position: relative;
    left: -1rem;
    z-index: 0;
}

section.intro h2 {
    margin-bottom: 1rem;
    font-weight: bolder;
    font-size: 2.5rem;
}

section.intro p {
    font-size: 1.5rem;
}

/*button section setting*/
section.selected-button {
    text-align: center;
    margin: 1.5rem 0 2rem 0;
    display: flex;
    justify-content: space-evenly;
}

section.selected-button a {
    background-color: aquamarine;
    padding: 2rem;
    border-radius: 50%;
    text-decoration: none;
    color: black;
    box-shadow: 0 0.5rem rgb(72, 188, 184);
    font-weight: bolder;
    font-size: 1.5rem;
    transition: background-image 0.5s, color 0.5s;
}
/*selected sky-button effect*/
section.selected-button a.sky-button:hover {
    background-image: url("resources/sky_button bg.jpg");
    background-size: cover;
    color: transparent;
}

section.selected-button a.sky-button:active {
    background-image: url("resources/sky_button bg.jpg");
    background-size: cover;
    box-shadow: 0 0.1rem rgb(57, 115, 113);
    transform: translateY(0.3rem);
    color: transparent;
}
/*selected wild-button effect*/
section.selected-button a.wild-button:hover {
    background-image: url("resources/wild_button bg.jpg");
    background-size: cover;
    color: transparent;
}

section.selected-button a.wild-button:active {
    background-image: url("resources/wild_button bg.jpg");
    background-size: cover;
    box-shadow: 0 0.1rem rgb(57, 115, 113);
    transform: translateY(0.3rem);
    color: transparent;
}

/*content section setting*/
section#content {
    width: 80%;
    color: white;
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
}

section#content article {
    background-color: black;
    border: solid 0.1rem white;
    width: 50%;
}

section#content h3 {
    height: 4%;
    text-align: center;
    font-size: 2rem;
    font-weight: bold;
    margin-top: 1rem;
}

section#content .photo-description {
    width: 100%;
    height: 95%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 0;
}

.photo-description figure {
    display: flex;
    justify-content: center;
    width: 100%;
    height: 35%;
    padding-top: 1rem;
}

section#content img {
    width: 80%;
    height: 100%;
}

section#content p {
    width: 80%;
    height: 15%;
    font-size: 1.5rem;
    padding-bottom: 1rem;
}

/*member section setting*/
section#member {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: rgb(0, 0, 0);
    background-color:rgb(255, 255, 255);
    margin-bottom: 2rem;
    width: 100%;
}

section#member h3 {
    margin: 1.5rem 0;
    font-size: 2rem;
    font-weight: bold;
}

section#member .member-description {
    width: 100%;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-evenly;
    flex-wrap: wrap;
}

section#member figure {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 80%;
    height: 80%;
    margin-bottom: 1rem;
}

section#member img {
    width: 100%;
    max-width: 400px;
    height: 90%;
    border-radius: 20%;
    margin-bottom: 1rem;
}

section#member figcaption {
    text-align: center;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: bold;
}

.member-no1, .member-no2 {
    display: flex;
    flex-direction: column;
    align-items: center;
}

section#member p {
    width: 80%;
    font-size: 1rem;
}

/*contact section setting*/
footer {
    color: white;
    padding: 1rem;
}

/*media queries*/
@media all and (max-width: 430px) {
    /*for nav bar section*/
    nav.desktop {
        display: none;
    }

    nav.mobile ul {
        display: flex;
        justify-content: space-evenly;
        margin-top: 0.5rem;
    }

    nav.mobile img {
        min-width: 2.5rem;
        min-height: 2.5rem;
        transition: background-color 0.5s, border-radius 0.5s;
    }

    nav.mobile img:hover {
        background-color: rgba(255, 228, 196, 0.678);
        border-radius: 50%;
    }

    /*for intro section*/
    section.intro {
        width: 80%;
        margin: 0.5rem auto 1rem 0;
        padding: 1rem 3rem 1rem 6rem;
    }

    /*content section*/
    section#content {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        min-width: 100%;
    }
}
