@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@400;700&display=swap');

body {
    font-family: 'Noto Sans TC', 'JhengHei UI', sans-serif;
    background-color: #f5f5f5;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    animation: fadeIn 1s ease-in-out;
}

.container {
    background-color: white;
    border-radius: 16px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    max-width: 400px;
    width: 100%;
    text-align: center;
    transition: box-shadow 0.3s ease-in-out;
}

.container:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

h1 {
    color: #333;
    font-size: 24px;
    margin-bottom: 20px;
}

label {
    display: block;
    margin: 10px 0 5px;
    color: #555;
}

input, select, button {
    width: calc(100% - 20px);
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-sizing: border-box;
    transition: all 0.3s ease;
    font-family: 'Noto Sans TC', 'JhengHei UI', sans-serif;
}

input:focus, select:focus, button:focus {
    outline: none;
    border-color: #a8a8a8;
}

button {
    background-color: #007bff;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

button:hover {
    background-color: #0056b3;
    transform: scale(1.05);
}

h2 {
    color: #333;
    font-size: 20px;
    margin-top: 20px;
}

pre {
    text-align: left;
    background-color: #f0f0f0;
    padding: 10px;
    border-radius: 8px;
    transition: opacity 1s ease-in-out;
    font-family: 'Noto Sans TC', 'JhengHei UI', sans-serif;
    font-size: 16px;
    color: #333;
    line-height: 1.5;
}

.hidden {
    opacity: 0;
}

select {
    appearance: none;
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 140 140" xmlns="http://www.w3.org/2000/svg"><polygon points="70,105 10,35 130,35" style="fill:%23666;"/></svg>') no-repeat right center;
    background-size: 16px;
    padding-right: 30px;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

select:hover {
    border-color: #007bff;
    background-color: #f0f0f0;
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}
