body {
    background-color: #f6f6f6;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100vh;
    margin: 0;
}

#error-popup, #download-popup {
    display: none;
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    background: #fff;
    padding: 48px 68px;
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border: 1px solid #bfbfbf;
    text-align: center;
    transition: transform 0.3s ease-out;
}

#error-popup.show, #download-popup.show {
    display: block;
    animation: fadeIn 0.3s;
}

#error-popup-content p, #download-popup-content p {
    font-size: 18px;
    margin-bottom: 20px;
    color: #333;
}

#error-popup button, #download-popup button {
    padding: 10px 20px;
    font-size: 16px;
    color: #fff;
    background-color: #ff0026;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#download-popup button {
    background-color: #0062b3;
}

#error-popup button:hover{
    background-color: #b3000f;
}

#download-popup button:hover{
    background-color: #0062b3;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -40%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

#title {
    margin-top: 30vh;
    font-size: 48px;
    margin-bottom: 52px;
}

#logo{
    margin-top: 24vh;
    margin-bottom: 60px;
    width: 480px;
}

#container{
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 60%;
}

#suggest_text{
    width: 100%;
    margin-bottom: 12px;
    font-size: 20px;
    /* margin-left: 48px; */
    font-family: sans-serif;
    max-width: 1200px;
}

#search-form {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    width: 100%;
    max-width: 1200px;
}
#search-form input {
    margin: 5px 5px 5px 0;
    padding: 16px;
    flex: 1;
    border: 1px solid #ccc;
    font-size: 20px;
    box-sizing: border-box;
    outline: none;
}
#search-form button {
    padding: 16px 20px;
    border: 1px solid #ccc;
    background-color: #f0f0f0;
    cursor: pointer;
    font-size: 20px;
    flex: 0 0 15%;
    box-sizing: border-box;
    transition: background-color 0.2s;
}

#search-form input:hover,
#search-form button:hover {
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.5);
}

#search-form button:active {
    background-color: #dddddd;
}


#search-form button:disabled {
    background-color: #e0e0e0;
    cursor: not-allowed;
    box-shadow: none;
}

#search-form button:disabled:hover {
    box-shadow: none;
}

#search-form button:disabled:active {
    background-color: #e0e0e0;
}

#search-message{
    margin-top: 20px;
    font-size: 20px;
    color: #636363;
}

#item-list {
    list-style-type: none;
    padding: 0 0 100px 0;
    margin: 0;
    width: 100%;
    max-width: 1200px;
}
#item-list li {
    display: flex;
    justify-content: space-between;
    padding: 16px;
    border: 1px solid #ccc;
    margin-bottom: 5px;
    border-radius: 4px;
    background-color: #f9f9f9;
    font-size: 18px;
}

.download-btn {
    height: 36px;
    padding: 0 20px;
    border: 2px solid #2c66a4;
    background-color: #2c66a4;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.download-btn:hover {
    background-color: #0056b3;
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.5);
}

.download-btn:active {
    background-color: #003d80;
}

.download-btn:disabled {
    background-color: #cccccc;
    border-color: #aaaaaa;
    cursor: not-allowed;
}

.download-btn:disabled:hover {
    background-color: #ccc;
    box-shadow: none;
}

.pagination {
    display: flex;
    justify-content: flex-end;
    width: 100%;
    margin-top: 20px;
    max-width: 1200px;
}

.pagination button {
    border: 1px solid #ccc;
    padding: 0 15px;
    border: 2px solid #2c66a4;
    background-color: #2c66a4;
    color: white;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s, border-color 0.3s;
}

.pagination button:hover {
    background-color: #0056b3;
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.5);
}

.pagination button:disabled {
    background-color: #e0e0e0;
    border-color: #e0e0e0;
    cursor: not-allowed;
    color: #999;
}

.pagination span {
    padding: 0 15px;
    font-size: 16px;
    line-height: 36px;
    border: 1px solid #ccc;
}

.hidden {
    display: none;
}


@media (max-width: 1200px) {
    #container {
        width: 80%;
    }
}

@media (max-width: 992px) {
    #title {
        margin-top: 20vh;
        font-size: 36px;
        margin-bottom: 44px;
    }
    #logo {
        margin-top: 12vh;
    }
    #container {
        width: 90%;
    }
    #search-form {
        flex-direction: column;
        align-items: flex-start;
    }
    #suggest_text{
        font-size: 18px;
    }
    #search-form input {
        width: 100%;
        padding: 10px;
        font-size: 18px;
    }

    #search-form button {
        padding: 10px 20px;
        margin-top: 5px;
        cursor: pointer;
        font-size: 18px;
        flex: 0 0 15%;
        width: 30%;
    }
}

@media (max-width: 768px) {
    .download-btn{
        padding: 0 8px;
    }
}