html {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    font-size: 20px;
}

/* 導覽列樣式 */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
}

.title {
    flex: none;
    font-weight: bold;
    width: 200px;
}

.menu {
    flex: auto;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 40px;
}

/* 漢堡選單 */
.hamburger-icon {
    display: none;
    flex: none;
    width: 32px;
    height: 32px;
    text-align: end;
    cursor: pointer; /* 可點擊 */
}

.hamburger-icon img {
    width: 100%;
    object-fit: cover;
}

.popup-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 250px;
    height: 100vh;
    background-color: #fff;
    box-shadow: -5px 0 5px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: right 0.3s ease;
}

.popup-menu.show {
    right: 0;
}

.close-icon {
    width: 32px;
    height: 32px;
    padding: 20px;
    position: absolute;
    top: 0;
    right: 0;
    cursor: pointer; /* 可點擊 */
}

.close-icon img {
    width: 100%;
    object-fit: cover;
}

.popup-menu-list {
    width: 100%;
    margin-top: 72px;
}

.popup-menu-item {
    text-align: center;
    width: 100%;
    padding: 15px 0;
}

/* 大標題 */
.welcome-container {
    width: 100%;
    height: 250px;
    background-color: #d6e7ef;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2em;
    font-weight: bold;
}

.welcome-container p {
    text-align: center;
}

.main-content {
    padding: 50px 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

/* bar */
.bar {
    display: flex;
    align-items: center;
    justify-content: center;
}

.bar-img {
    flex: none;
    width: 80px;
    height: 50px;
    overflow: hidden;
}

.bar-img img {
    width: 100%;
    object-fit: cover;
}

.bar-text {
    flex: auto;
    height: 100%;
    background-color: #c1dbe7;
    padding-left: 20px;
    display: flex;
    align-items: center;
}


/* block */
.block {
    background-image: url("./img/quokka.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    height: 200px;
    width: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.block-star {
    position: absolute;
    top: 10px;
    right: 10px;
    opacity: 0.8;
}

.block-text {
    background-color: rgba(232, 251, 215, 0.7);
    text-align: center;
    padding: 10px;
}


/* RWD */
/* desktop 1200px up*/
.content-container {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    width: 1200px;
    gap: 20px;
}

.lg-12 {
    grid-column: span 12;
}

.lg-8 {
    grid-column: span 8;
}

.lg-4 {
    grid-column: span 4;
}

.lg-2 {
    grid-column: span 2;
}

/* Tablet 600px-1200px */
@media (max-width: 1200px) {
    .content-container {
        width: 90%;
    }

    .md-12 {
        grid-column: span 12;
    }

    .md-6 {
        grid-column: span 6;
    }

    .md-3 {
        grid-column: span 3;
    }
}

/* mobile 600px down */
@media (max-width: 600px) {
    .menu {
        display: none;
    }

    .hamburger-icon {
        display: block;
    }

    .welcome-container {
        font-size: 1.5em;
    }

    .main-content {
        padding: 30px 0;
    }

    .sm-12 {
        grid-column: span 12;
    }
}

