/* General Page Styling */
html, body {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    font-family: Arial, sans-serif;
    background-color: #f0f0f0;
    padding: 0;
}

body {
    margin: 0;
}

/* Header Styling */
.header {
    background-color: #4CAF50;
    color: white;
    padding: 15px;
    text-align: center;
    font-size: 1.5em;
    margin-bottom: 66px;
}

/* Main Content Styling */
.main-content {
    flex: 1;
}

.container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.content {
    margin-bottom: 100px;
}

/* Main Visual Styling */
.main-visual {
    background-image: url('../images/mainVisual.png');
    background-size: cover;
    background-position: center;
    height: 10px;
    color: white;
    text-align: center;
    padding-top: 150px;
}

/* General Page Styling */
html, body {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    font-family: Arial, sans-serif;
    background-color: #f0f0f0;
    padding: 0;
}

body {
    margin: 0;
}

/* Main Content Styling */
.main-content {
    flex: 1;
}

.container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 30px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  
}

/* Tool Categories and Items Styling */
.tool-category {
    margin-bottom: 10px;
}

.tool-category h2 {
    font-size: 1.4em;
    border-bottom: 2px solid #4CAF50;
    padding-bottom: 10px;
}

.tool-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1px; /* 設置工具項目之間的水平和垂直間距 */
    justify-content: flex-start; /* 保持按鈕靠左排列 */
}

.tool-item {
    margin: 2px; /* 為每個按鈕添加間隔 */
    text-align: center;
}

.tool-item:hover {
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

.tool-item a {
    text-decoration: none;
    color: #333;
    display: flex;
    align-items: center; /* 垂直居中對齊圖示和文字 */
    justify-content: flex-start; /* 圖示和文字水平對齊 */
}

.tool-item i {
    font-size: 2em;
    margin-right: 10px; /* 圖示和文字之間的間距 */
    color: #4CAF50;
}


/* Footer Styling */
.footer-iframe {
    width: 100%;
    height: 60px;
    border: none;
    position: relative;
    margin-top: 20px;
}

/* Iframe Styling */
iframe {
    width: 100%;
    border: none;
}

.main-visual {
   
    margin-bottom: 40px;
    background-color: #f9f9f9;
    border-radius: 10px;
}




.btn-tool {
    display: flex;
    align-items: center;  /* 垂直居中對齊 */
    justify-content: center;  /* 水平居中對齊 */
    text-decoration: none;
    color: #333;
    padding: 10px 20px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    transition: 0.3s;
}

.btn-tool:hover {
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

.btn-tool {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #333;
    padding: 20px 30px; /* 控制按鈕內的間距 */
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    transition: 0.3s;
    width: 100%; /* 讓按鈕占滿容器寬度 */
}

.btn-tool:hover {
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

.btn-tool i {
    font-size: 2em;
    margin-right: 10px;
    color: #4CAF50;
}

.tool-item span {
    display: flex;
    align-items: center;
}

.navbarCss {
    height: 50px;
}



#draw-container {
    text-align: center;
}

#draw-button {
    padding: 15px 30px;
    font-size: 1.5rem;
    cursor: pointer;
}

#result {
    margin-top: 20px;
}

#result img {
    width: 300px;
    height: auto;
}

#result .meaning {
    margin-top: 10px;
    font-size: 1.2rem;
    color: #333;
}