/* Layout */
body {
    font-family: 'Arial', sans-serif;
    background-color: #f0f4f8;
    text-align: center;
    padding: 20px;
    transition: background-color 0.3s, color 0.3s;
}

body.dark-mode {
    background-color: #2c3e50;
    color: #ecf0f1;
}

/* Tiêu đề */
h1 {
    color: #333;
    font-size: 2rem;
    margin-bottom: 20px;
}

body.dark-mode h1 {
    color: #F29F58;
}

/* GIF góc */
#smallGif {
    position: fixed;
    top: 10px;
    left: 10px;
    width: 50px;
    height: auto;
    z-index: 999;
}

/* Container anime */
#animeContainer {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

/* Ảnh anime */
.animeImage {
    max-width: 100%;
    max-height: 300px;
    border: 5px solid #ccc;
    border-radius: 10px;
    padding: 5px;
    transition: transform 0.3s ease-in-out;
    cursor: pointer;
    object-fit: contain;
}

.animeImage:hover {
    transform: scale(1.05);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

/* Ảnh trong modal */
.modal-content {
    display: block;
    margin: auto;
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
}

/* Nút đóng */
.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #f1f1f1;
}

/* Button & Link Styling */
.button-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

button, .link-btn {
    background-color: #ff5c8d;
    border: none;
    color: white;
    padding: 12px 25px;
    font-size: 1rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    display: inline-block;
}

button:hover, .link-btn:hover {
    background-color: #ff4081;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    transform: translateY(-3px);
}

button:focus, .link-btn:focus {
    outline: none;
    box-shadow: 0 0 10px rgba(255, 92, 141, 0.8);
}

/* Hiệu ứng ripple */
button:active, .link-btn:active {
    position: relative;
    overflow: hidden;
}

button:active::after, .link-btn:active::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    animation: ripple 0.6s linear;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Menu */
.menu-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    cursor: pointer;
    z-index: 100;
    transition: color 0.3s;
}

body.dark-mode .menu-btn {
    color: #F29F58;
}
