@import url('https://fonts.googleapis.com/css2?family=Exo+2:ital,wght@0,100..900;1,100..900&family=Noto+Sans+TC:wght@100..900&family=Press+Start+2P&family=Rubik:ital,wght@0,300..900;1,300..900&display=swap');

@font-face {
    font-family: 'PixelMinecraft';
    src: url('../font/minecraft_font.woff') format('woff');
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    padding: 0;
    margin: 0;
    background-color: var(--bg-color);
    position: relative;
    overflow-x: hidden;
}

.f-mcp {
    font-family: "PixelMinecraft", sans-serif;
    font-style: normal;
}

.section {
    height: 100vh;
    width: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

#section-1 {
    background-image: url('../image/bg-1.png');
}
#section-2 {
    background-image: url('../image/bg-2.png');
}
#section-3 {
    background-image: url('../image/bg-3.png');
}
#section-4 {
    background-image: url('../image/section-4-bg.png');
}

.brandname {
    font-family: "Rubik", serif;
    font-optical-sizing: auto;
    font-weight: 600;
    font-style: normal;
    background: linear-gradient(to right, #113fd8, #4cdbff 32%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

#nav-zone {
    position: fixed;
    display: flex;
    width: clamp(18rem, 42vw, 32rem);
    height: auto;
    top: auto;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(0);
    flex-direction: row;
    align-items: end;
    gap: 1rem;
}

#nav-main {
    position: relative;
}

#openmenu {
    aspect-ratio: 20 / 18;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 7.4rem;
    transform: translateY(-0.4rem);
    background-image: url('../image/menu-button.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

#openmenu:hover {
    background-image: url('../image/menu-button-hover.png');
    cursor: pointer;
}

#openmenu img {
    aspect-ratio: 8 / 7;
    height: 50%;
    width: auto;
}

#nav-media {
    gap: 3rem;
    width: 100%;
    display: flex;
    margin-bottom: 0.5rem;
}

.nav-i1 img {
    aspect-ratio: 405 / 38;
    height: 100%;
    width: 100%;
}

#nav-hotbar {
    width: 100%;
    position: relative;
}

#nav-hotbar img {
    aspect-ratio: 182 / 22;
    height: 100%;
    width: 100%;
}

#selcon {
    position: absolute;
    top: 0;
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: row;
    padding: 0 2px 2px 2px;
}

.selects {
    width: 100%;
    height: 100%;
    position: relative;
}

.selected-bar.active {
    display: block;
}

.selected-bar {
    display: none;
}

/**#switch-buttons {
    display: flex;
    justify-content: center;
}

.switch-button {
    transition: border-color 0.3s ease;
    background-color: rgba(255, 255, 255, 0.6);
    border: 4px solid #fff;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.switch-button:hover {
    transition: border-color 0.3s ease;
    border: 4px solid #434ff1;
}
.switch-button.active {
    transition: border-color 0.3s ease;
    border: 4px solid #841fc7;
}**/

/**@media (min-width: 0px) {
    #nav-zone {
        bottom: auto;
        top: 50%;
        left: 20px;
        transform: translateX(0) translateY(-50%);
        flex-direction: column;
    }
    #nav-media {
        display: none;
    }
    #switch-buttons {
        flex-direction: column;
        gap: 14px
    }
    .switch-button {
        width: 16px;
        height: 16px;
    } 
}
@media (min-width: 920px) {
    #nav-zone {
        top: auto;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%) translateY(0);
        flex-direction: column;
    }
    #nav-media {
        display: flex;
    }
    #switch-buttons {
        flex-direction: row;
        gap: 2rem;
    }
    .switch-button {
        width: 2rem;
        height: 2rem;
    }
    
}**/

#menu-container.active {
    top: 0;
    left: 0;
    position: fixed;
    height: 100vh;
    width: 100%;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 999;
    display: flex;
    justify-content: center;
    align-items: center;
}

#menu-container.hidden {
    display: none;
}

#button-container {
    width: clamp(320px, 60vw, 500px);
    height: auto;
    display: flex;
    color: white;
    flex-direction: column;
    gap: 1rem;
}

.b-full {
    font-family: "Noto Sans TC", sans-serif;
    font-optical-sizing: auto;
    font-size: 1.2rem;
    height: 50px;
    width: 100%;
    background-image: url('../image/button-nb.png');
    display: flex;
    justify-content: center;
    align-items: center;
    border: #000 solid 3px;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    border: #000 solid 3px;
}

.b-full:hover {
    border: #fff solid 3px;
    cursor: pointer;
}

.b-full span:hover {
    cursor: pointer;
}

.b-hc {
    display: flex;
    gap: 1.5rem;
}



#section-1 {
    display: flex;
    justify-content: center;
}

#s1_title-zone {
    display: flex;
    flex-direction: column;
    width: clamp(95%, 650px, 80%);
    max-width: 1000px;
    align-items: start;
    text-align: start;
    justify-content: center;
}

#s1_title {
    font-size: clamp(2rem, 8vw, 4rem);
}

#s1_subtitle {
    color: white;
    font-size: clamp(1.7rem, 6.3vw, 3rem);
    font-family: "Noto Sans TC", sans-serif;
    font-optical-sizing: auto;
}

#s1_title-zone span {
    color: rgb(180, 180, 180);
    font-family: "Noto Sans TC", sans-serif;
    font-optical-sizing: auto;
    font-size: clamp(1rem, 3vw, 1.3rem);
}
