* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    background-color: #95DDD7;
    overflow-x: hidden;
    overflow-y: auto;
    cursor: url('cursor.png'), auto;
}

#banner {
    position: relative !important;
}

@font-face {
    font-family: 'VonwaonBitmap';
    src: url('./assets/font/VonwaonBitmap-12px.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

.main {
    padding: 20px;
    display: grid;
    grid-template-rows: auto auto auto auto auto;
    gap: 10px;
}

.tittle {
    text-align: center;
    font-family: 'VonwaonBitmap', sans-serif;
    font-size: 1.6rem;
    color: #4F9A4D;
    font-weight: bold;
}

.warn {
    background-color: rgba(255, 0, 0, 0.4);
    padding: 5px;
    border: red 3px solid;
    border-radius: 10px;
    text-align: left;
    left: 10%;
    box-sizing: border-box;
}

.image-container {
    position: relative;
    width: calc(20% - 10px);
    margin: 0;
    overflow: hidden;
    aspect-ratio: 1/1;
}

.tips {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
    box-sizing: border-box;
    gap: 10px;
}

@media (max-width: 1200px) {
    #tips .image-container {
        width: calc(25% - 10px);
    }
}

@media (max-width: 768px) {
    #tips .image-container {
        width: calc(33.33% - 10px);
    }
}

@media (max-width: 480px) {
    #tips .image-container {
        width: calc(50% - 10px);
    }
}

.history {
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    padding: 15px;
    margin-top: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.history h3 {
    color: #4F9A4D;
    font-family: 'VonwaonBitmap', sans-serif;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.history-list {
    list-style: none;
    height: auto;
    max-height: 150px;
    overflow-y: scroll;
    overflow-x: hidden;
    padding: 0;
    margin: 0;
    scrollbar-width: thin;
    scrollbar-color: #4F9A4D rgba(255, 255, 255, 0.3);
}

/* 为WebKit浏览器添加滚动条样式 */
.history-list::-webkit-scrollbar {
    width: 8px;
}

.history-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

.history-list::-webkit-scrollbar-thumb {
    background-color: #4F9A4D;
    border-radius: 4px;
}

.history-list::-webkit-scrollbar-thumb:hover {
    background-color: #3e7a3d;
}

.history-item {
    padding: 8px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60px;
    text-align: center;
}

.history-item:last-child {
    border-bottom: none;
}

.history-time {
    font-weight: bold;
    color: #a4d341;
    font-size: 1.1rem;
}

.history-date {
    color: #74a7a6;
    font-size: 0.9rem;
}

.clear-history-btn {
    background-color: #4F9A4D;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
    font-family: 'VonwaonBitmap', sans-serif;
}

.clear-history-btn:hover {
    background-color: #3e7a3d;
}

.no-history {
    text-align: center;
    color: #999;
    padding: 20px;
    font-style: italic;
}

.base-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.overlay-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: auto;
    opacity: 1;
}

footer {
    text-align: center;
    padding-bottom: 10px;
}

footer p {
    font-family: 'VonwaonBitmap', sans-serif;
    color: white;
}

footer a {
    color: #4F9A4D;
    text-decoration: none;
    transition: transform 0.2s ease;
    display: inline-block;
}

footer a:hover {
    transform: scale(1.1) !important;
}
