body {
    font-family: Arial, sans-serif;
    font-size: 0.8em;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
    color: grey;
}

.container {
    max-width: 1552px;
    margin: 10px auto;
    padding: 5px;
    box-sizing: border-box;
}

.header {
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    max-width: 1552px;
    margin: 0 auto;
    flex-wrap: wrap; /* Ensures proper wrapping */
}

.header a.logo {
    font-size: 2em;
    text-decoration: none;
    color: #e00083;
}

.search-box {
    display: flex;
    align-items: center;
    margin-top: 10px;
}

.search-box input[type="text"] {
    padding: 10px;
    font-size: 1em;
    border: 1px solid #ccc;
    border-radius: 4px 0 0 4px;
    outline: none;
}

.search-box button {
    padding: 10px 20px;
    font-size: 1em;
    border: none;
    background-color: #e00083;
    color: white;
    cursor: pointer;
    border-radius: 0 4px 4px 0;
}

.search-box button:hover {
    background-color: #F045AA;
}

.navbar-container {
    background-color: #333;
    padding: 0 20px;
}

.navbar {
    max-width: 1552px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-left,
.navbar-right {
    display: flex;
    align-items: center;
}

.navbar a {
    color: #f2f2f2;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    position: relative; /* Add relative positioning */
}

.navbar a:hover {
    background-color: #ddd;
    color: black;
}

.navbar a:hover::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #e00083;
}

.dropdown {
    position: relative;
}

.dropdown .dropbtn {
    border: none;
    outline: none;
    color: white;
    padding: 14px 16px;
    background-color: inherit;
    font-family: inherit;
    margin: 0;
    position: relative;
    padding-left: 30px; /* 左边间隙 */
    padding-right: 30px; /* 右边间隙 */
}

.dropdown .dropbtn:hover::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #e00083;
}

.dropdown-content {
    display: none; /* Hide by default */
    position: absolute;
    background-color: #f9f9f9;
    min-width: 300px; /* Adjust width to fit 5 items per row */
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1000;
   
    grid-template-columns: repeat(1, 1fr); /* 5 items per row */
    gap: 10px; /* Add gap between items */
}

/* Display dropdown content on hover */
.dropdown:hover .dropdown-content {
    display: grid; /* Show on hover */
}

.dropdown-content a {
    float: none;
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
}

.dropdown-content a:hover {
    background-color: #ddd;
}

.navbar .random-button {
    
    color: white;
    padding: 14px 16px;
    text-align: center;
    text-decoration: none;
}



.image-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Adjusted for 6 items per row */
    gap: 10px;
}

.image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 5px;
    cursor: pointer;
    aspect-ratio: 16 / 9; /* Adjusted for 1:1.5 aspect ratio */
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease-in-out;
}

.image-wrapper a {
    text-decoration: none; /* Remove underline from link */
}

.image-wrapper:hover img {
    transform: scale(1.05);
}

.catalog {
    position: absolute;
    top: 5px;
    left: 5px;
    display: flex;
    flex-wrap: wrap; /* Ensure the catalog items wrap */
    gap: 2px; /* Add gap between catalog links */
    z-index: 990;
}

.catalog a {
    color: #e00083;
    text-decoration: none;
    padding: 4px 7px; /* Adjust padding for better visual */
    background-color: rgba(255, 255, 255, 0.75); /* Transparent white background */
    border: 1px solid #e00083; /* Pink border */
    border-radius: 3px;
    transition: background-color 0.3s, color 0.3s; /* Smooth transition for background and text color */
}

.catalog a:hover {
    background-color: #e00083; /* Pink background on hover */
    color: #fff; /* White text on hover */
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.6);
    color: #fff;
    text-align: center;
    font-size: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.image-wrapper:hover .overlay {
    opacity: 1;
}

.footer {
    margin-top: 20px;
    padding: 20px;
    background-color: #333;
    text-align: center;
}

.footer a {
    color: #aaa;
    margin-right: .5em;
}

.pagination {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    margin-bottom: 1px;
}

.pagination a {
    margin: 0 5px;
    padding: 5px 10px;
    border: 1px solid #e00083; /* Pink border */
    text-decoration: none;
    color: #e00083; /* Pink text */
    background-color: transparent; /* Transparent background */
    border-radius: 3px;
    transition: background-color 0.3s, color 0.3s; /* Smooth transition for background and text color */
}

.pagination a:hover {
    background-color: #e00083; /* Pink background on hover */
    color: #fff; /* White text on hover */
}

.pagination a.active {
    background-color: #e00083;
    color: white;
    border: 1px solid #e00083;
}

@media (max-width: 1500px) {
    .image-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1200px) {
    .image-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 800px) {
    .image-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .image-container {
        grid-template-columns: repeat(1, 1fr);
    }
}
 .lang-container {
            position: relative;
            display: inline-block;
			    z-index: 1000;
        }

        .lang-container .dropdown__trigger {
            display: inline-block;
            cursor: pointer;
            padding: 14px 16px;

        }

        .lang-container .dropdown__block {
            display: none;
            position: absolute;
            background-color: #f9f9f9;
            box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
            z-index: 1;
            min-width: 110px;
            text-align: left; /* Ensure left alignment */
        }

        .lang-container:hover .dropdown__block {
            display: block;
        }

        .lang-container a {
            color: black;
            padding: 12px 16px;
            text-decoration: none;
            display: flex; /* Use flexbox for alignment */
            align-items: center; /* Center items vertically */
        }

        .lang-container a:hover {
            background-color: #ddd;
        }

        .flag-icon {
            margin-right: 8px;
            width: 20px; /* Adjust the size of the flag icons */
            height: 15px; /* Adjust the size of the flag icons */
        }
		 .navbar-right {
            margin-right: 60px; /* Leave 50px space on the right */
        }
