/*ALTER TABLE member AUTO_INCREMENT = 1;*/
/*error_reporting(E_ALL);
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);*/

* {
    font-family: 微軟正黑體;
}

h1 {
    margin: 30px;
    font-size: 36px;
    font-weight: bold;
}

a {
    color: #1f1e33;
    text-decoration: none;
}

a:hover {
    color: gray;
    background: none;
}

body {
    background-image: url(source/images/logo%20%E5%9C%96.jpg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 75%;
    text-align: center;
}

footer {
    color: #a3a3a3;
    font-size: 14px;
}

nav {
    display: flex;
    justify-content: space-between;
    width: 100%;
    height: 50px;
    background: #1f1e33;
    border: 0;
    border-radius: 15px;
}

input {
    padding: 5px;
    border: solid 1px #ccc;
    border-radius: 5px;
}

/* table */
table {
    margin: 0 auto;
    width: 95%;
    border-collapse: collapse;
    outline: 1px solid #bababa;
    white-space: nowrap;
}

th {
    text-align: center;
    padding: 8px;
    color: #1f1e33;
    border: 1px solid #ddd;
    background: rgba(92, 92, 92, 0.2);
    outline: 1px solid #bababa;
    font-size: 16px;
}

th:hover {
    background: #d2d5ff;
}

th:hover > * {
    background: #d2d5ff;
}

td {
    text-align: center;
    padding: 6px;
    outline: 1px solid #bababa;
    font-size: 16px;
}

td input {
    width: 95%;
    font-size: 16px;
    border: solid 1px #ccc;
    border-radius: 5px;
}

/* select */
select {
    width: 95%;
    padding: 6px 14px;
    border: 1px solid #bababa;
    border-radius: 4px;
    font-size: 14px;
    appearance: none;
}

select:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
    outline: none;
}

select[disabled] {
    z-index: 1; /* 設置一個較低的層次 */
}

/* class */

.login {
    width: 60%;
    box-sizing: border-box;
}

.signup {
    width: 60%;
    box-sizing: border-box;
}

.option {
    padding: 5px;
    border: solid 1px #ccc;
    border-radius: 5px;
    width: 25%;
    box-sizing: border-box;
}

.option_password {
    padding: 5px;
    border: solid 1px #ccc;
    border-radius: 5px;
    width: 25%;
    box-sizing: border-box;
}

.checkbox_selected {
    background: #f1fcc4;
}

.table_checkbox {
    width: 20px;
    height: 20px;
    border-radius: 4px;
}

.welcome_message {
    text-align: right;
    margin: 5px;
    color: #1f1e33;
    font-size: 20px;
    font-weight: bold;
}

.function_title {
    margin: 10px;
    color: #1f1e33;
    font-size: 48px;
    font-weight: bold;
}

.content_title {
    margin: 5px;
    color: #df5334;
    font-size: 32px;
    font-weight: bold;
}

.content {
    margin: 5px;
    color: #1f1e33;
    font-size: 20px;
    font-weight: bold;
}

.announcement {
    text-align: left;
    padding-left: 30%;
    color: #1f1e33;
    font-size: 24px;
    font-weight: bold;
}

.hint_title {
    margin: 5px;
    color: #df5334;
    font-size: 32px;
    font-weight: bold;
    color: rgba(100, 149, 237, 0.9);
    text-shadow: 1px 1px 0 orange;
}

.input_label {
    border:none;
    text-align: center;
    color: black;
    font-size: 20px;
    font-weight: bold;
    pointer-events:none
}

.system_message {
    margin: 20px;
    color: #df5334;
    font-size: 24px;
    font-weight: bold;
}

.switch {
    background: transparent;
    border: none;
    color: #a3a3a3;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
}

.switch:hover {
    color: black;
}

.menu_button {
    margin: 0 30px;
    width: 20%;
    height: 50px;
    background: #df5334;
    border: 0;
    color: white;
    font-size: 30px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.menu_button:hover {
    background: #f28a3b;
}

.small_button {
    margin: 10px;
    width: 60px;
    height: 30px;
    background: rgba(92, 92, 92, 0.2);
    border: 0;
    border-radius: 15px;
    color: gray;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s, color 0.4s;
}

.small_button:hover {
    background: #f28a3b;
    color: white;
}

.medium_button {
    margin: 10px;
    width: 200px;
    height: 30px;
    background: #df5334;
    border: 0;
    border-radius: 15px;
    color: white;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;

}

.medium_button:hover {
    background: #f28a3b;
}

.big_button {
    margin: 10px;
    width: 80%;
    height: 30px;
    background: #df5334;
    border: 0;
    border-radius: 15px;
    color: white;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
}

.big_button:hover {
    background: #f28a3b;
}

.admin_button {
    margin: 10px;
    width: 20%;
    height: 30px;
    background: rgba(100, 149, 237, 0.9);
    border: 0;
    border-radius: 15px;
    color: white;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s, color 0.4s;
}

.admin_button:hover {
    background: rgba(92, 92, 92, 0.8);
}

.admin_back_button {
    margin: 10px;
    width: 20%;
    height: 30px;
    background: rgba(50, 150, 100, 0.9);
    border: 0;
    border-radius: 15px;
    color: white;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s, color 0.4s;
}

.admin_back_button:hover {
    background: rgba(92, 92, 92, 0.8);
}

.a_button {
    margin: 10px;
    width: 140px;
    height: 30px;
    background: #1f1e33;
    border-radius: 15px;
    color: white;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    padding: 10px 300px;
    transition: background-color 0.2s;
    /* 過渡效果 */

}

.a_button:hover {
    background: #add8e6;
    border: 2px solid #87cefa;
}

.a_button_2 {
    margin: 10px;
    width: 60px;
    height: 30px;
    background: #1f1e33;
    color: white;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
    /* 過渡效果 */

}

.a_button_2:hover {
    background: #add8e6;
    border: 2px solid #87cefa;
}

.a_button_2:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
    padding-top: 60px;
    white-space: nowrap;
    z-index: 1000;
}

.modal_content {
    padding: 20px;
    background-color: #fff;
    max-width: 70%;
    margin: auto;
    max-height: 80vh;
    overflow: auto;
}

.modal_part_1 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    margin-bottom: 5px;
}

.modal_part_1 label {
    min-width: 300px;
    border: 1px solid #ccc;
    padding: 10px;
}

.modal_input_0, .modal_input_1 {
    min-width: 300px;
    text-align: center;
    font-size: 16px;
    background: #fefef1;
}

.modal_part_2 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr;
}

.modal_part_2 label {
    min-width: 350px;
    border: 1px solid #ccc;
    padding: 10px;
}

.modal_input_2_0, .modal_input_2_1 {
    min-width: 150px;
    text-align: center;
    font-size: 16px;
    background: #fefef1;
}

.modal_input_2_2 {
    min-width: 150px;
    text-align: center;
    font-size: 16px;
    background: rgba(192, 192, 192, 0.2);
}

.modal_button {
    min-width: 150px;
    text-align: center;
    font-size: 16px;
    background: rgba(92, 192, 192, 0.1);
    cursor: pointer;
}

.modal_extra {
    min-width: 100px;
    text-align: center;
    font-size: 14px;
    background: rgba(92, 192, 192, 0.1);
}

/* id */
#container1,
#container2,
#container3,
#container4,
#container5,
#container6,
#container12 {
    background: rgba(255, 255, 255, 0.9);
    border-top: 10px solid #df5334;
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 0 70px rgba(0, 0, 0, 0.5);
    color: #1f1e33;
    font-size: 16;
    font-weight: bold;
}

#container1 {
    display: block;
    position: relative;
    margin: auto;
    top: 100px;
    width: 25%;
    height: 380px;
}

#container2 {
    display: none;
    position: relative;
    margin: auto;
    top: 100px;
    width: 35%;
    height: 580px;
}

#container3 {
    position: relative;
    margin: auto;
    top: 5px;
    width: 95%;
    height: 65%;
    overflow: auto;
}

#container4,
#container5 {
    position: relative;
    margin: auto;
    top: 5px;
    width: 95%;
    height: 35%;
    overflow: auto;
}

#container6 {
    display: block;
    position: relative;
    margin: auto;
    top: 100px;
    width: 25%;
    height: 350px;
}

#container12 {
    display: none;
    position: relative;
    margin: auto;
    top: 100px;
    width: 25%;
    height: 280px;
}

/* analyze */
#fileList ul {
    padding: 0;
}

#fileList li {
    background-color: #f4f4f4;
    border: 1px solid #ddd;
    padding: 6px;
    margin-bottom: 4px;
    position: relative;
}

#fileList li:nth-child(odd) {
    background-color: #e9e9e9;
}

#analyzeButton:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.fileNumber {
    position: absolute;
    left: 10px;
}

.invalidFile {
    color: red;
}

/* 響應式設計 */
@media (max-width: 1200px) {

    #container1,
    #container2,
    #container3,
    #container4,
    #container5,
    #container6,
    #container12 {
        width: 90%;
    }

    .login,
    .signup {
        width: 80%;
    }

    .menu_button {
        width: 30%;
        font-size: 24px;
    }

    .small_button,
    .medium_button,
    .big_button,
    .admin_button,
    .admin_back_button,
    .a_button,
    .a_button_2 {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 28px;
    }

    #container1,
    #container2,
    #container3,
    #container4,
    #container5,
    #container6,
    #container12 {
        width: 100%;
        height: auto;
    }

    .login,
    .signup {
        width: 90%;
    }

    .menu_button {
        width: 40%;
        font-size: 20px;
    }

    .small_button,
    .medium_button,
    .big_button,
    .admin_button,
    .admin_back_button,
    .a_button,
    .a_button_2 {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 22px;
    }

    #container1,
    #container2,
    #container3,
    #container4,
    #container5,
    #container6,
    #container12 {
        width: 100%;
        height: auto;
    }

    .login,
    .signup {
        width: 100%;
    }

    .menu_button {
        width: 50%;
        font-size: 18px;
    }

    .small_button,
    .medium_button,
    .big_button,
    .admin_button,
    .admin_back_button,
    .a_button,
    .a_button_2 {
        font-size: 12px;
    }
}
