@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@100..900&display=swap');

:root {
    --blue: #66BCB4;
    --yellow: #EDC55B;
    --orange: #EC802B;
    --brown: #E8CCAD;
}

body {
    font-family: "Noto Sans TC", Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--brown);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0;
    padding: 0;
}

* {
    box-sizing: border-box;
}

.test,
.test * {
    border: 1px solid #000;
}

.container {
    background: var(--blue);
    padding: 30px 25px;
    border-radius: 20px;
    width: 400px;
    text-align: center;
    color: white;
    letter-spacing: 5px;
    position: relative;
    top: 20vh;
}

input,
button,
textarea {
    margin: 10px 0;
    padding: 10px;
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 10px;
    font-size: 1rem;
}

input {
    font-size: 1.2rem;
}

textarea {
    margin-top: 25px;
    resize: vertical;
    font-weight: 600;
    display: flex;
    border: 2px solid #aaa;
    scrollbar-width: none;

    &.focus-visible {
        background-color: #ccc;
        outline: none;

    }
}

button {
    background-color: var(--orange);
    letter-spacing: 2px;
    font-size: 1.2rem;
    color: white;
    cursor: pointer;
    transition: 0.3s;
    font-weight: 900;
    border-radius: 50px;
    border: none;

    &:hover {
        background-color: #f28c54;
        /* Slightly lighter shade of var(--orange) */
    }

    &:active {
        transition: 0s;
        background-color: #b3541d;
        /* Darker shade of var(--orange) */
    }
}

.group {
    margin-top: 20px;

}

.hidden {
    height: 0px;
}

.group div {
    margin: 5px 0;
    padding: 5px;
    background-color: var(--yellow);
    color: #4b5563;
    font-weight: 700;
    border-radius: 30px;
    font-size: 1.2rem;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: 0.3s;
    scale: 0.8;


    &:hover {
        /* background-color: var(--orange);
        color: white; */
        font-size: 1.5rem;
    }
}

.group div.expand {
    max-height: 100px;
    opacity: 1;
    scale: 1;
}

.group h3 {
    margin-top: 25px;
    margin-bottom: 5px;
}

.input-group {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.input-group i {
    cursor: pointer;
    font-size: 1.5rem;
    color: #333;
}

.input-group input {
    width: 60px;
    text-align: center;
}

.groupCount {
    font-size: 1.5rem;
    font-weight: 700;
}

/* 分享按鈕樣式 */
#share-button {
    margin-top: 15px;
    background-color: #4267B2;
    color: white;
    border: none;
    border-radius: 50px;
    padding: 5px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background-color 0.2s;
}

#share-button:hover {
    background-color: #365899;
}

#share-button i {
    font-size: 16px;
}

/* 讓結果容器看起來更適合截圖 */
#result-container {
    background-color: var(--blue);
    border-radius: 8px;
    padding: 15px 0;
    /* margin-top: 20px; */
}

@media (max-width: 768px) {
    .container {
        position: fixed;
        overflow-y: auto;
        width: 100%;
        border-radius: 0;
        top: 0;
        height: 100dvh;
        padding: 30px 20px;
    }
}