body {
    background-color: #373e98;
    color: rgb(255, 255, 255);
}

h1 {
    margin-top: -50px;
    font-weight: 600;
    font-size: 100px;
}

.container {
    margin: 20px auto;
    width: 1400px;
}

button {
    background-color: #fee36e;
    padding: 30px 20px;
    border: none;
    border-radius: 30%;
    font-size: 30px;
}

#modal img {
    transition: transform 0.2s ease;
    transform-origin: center;
    cursor: zoom-out;
}

#modal img.zoomed {
    cursor: grab;
}

.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 200px;
    background-color: #4B5563;
    color: white;
    text-align: center;
    border-radius: 6px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -100px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 14px;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

.theme-toggle {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
}

.theme-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

#clear-search {
    transition: opacity 0.2s ease;
}

#clear-search:hover {
    opacity: 0.7;
}

#clear-search:focus {
    outline: none;
}

.theme-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #4F46E5;
    transition: .4s;
    border-radius: 34px;
}

.theme-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.theme-slider {
    background-color: #1E293B;
}

input:checked+.theme-slider:before {
    transform: translateX(30px);
}

.theme-icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    color: white;
}

.sun-icon {
    left: 8px;
    display: none;
}

.moon-icon {
    right: 8px;
}

.dark .sun-icon {
    display: block;
}

.dark .moon-icon {
    display: none;
}

.animate-spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.nav-btn {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 20px 15px;
    cursor: pointer;
    z-index: 60;
    transition: background 0.3s;
    font-size: 24px;
}

.nav-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

.nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.counter {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    z-index: 60;
    font-size: 14px;
}