/* Add fade-in animation */

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

body {
    opacity: 0;
    animation: fadeIn 3s forwards ease-in;
}

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

html,
body {
    width: 100%;
    height: 100vh;
    /* Ensure full viewport height */
    font-family: "Circular Std", sans-serif;
    background: #ffffff;
    display: flex;
    /* Center content vertically and horizontally */
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s, color 0.3s;
    /* Smooth transition for dark mode */
}

nav,
footer {
    position: fixed;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 2em;
    font-size: 14px;
    font-weight: 500;
    color: #000;
}

nav {
    top: 0;
}

footer {
    bottom: 0;
}

#dark-mode-btn {
    position: fixed;
    top: 10px;
    right: 10px;
    padding: 5px 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    cursor: pointer;
    z-index: 10;
    /* Ensure button is on top */
    font-size: 18px;
    /* Increase font size for better visibility */
    display: flex;
    /* Center the icon within the button */
    align-items: center;
    justify-content: center;
    border-radius: 5px;
}

.container {
    width: 100%;
    height: 100%;
    overflow: hidden;
    perspective: 1500px;
    display: flex;
    /* Center content vertically and horizontally */
    align-items: center;
    justify-content: center;
}

.gallery {
    position: relative;
    transform-style: preserve-3d;
    transform: translateX(-50%) rotateX(55deg);
    top: -25%;
}

.item {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    /* Set a fixed width */
    height: 100px;
    /* Maintain aspect ratio */
    background: #000000;
    transform-style: preserve-3d;
    perspective: 1000px;
    /* Add perspective to the 3D items */
}

img {
    width: 100%;
    /* Set the width to 100% of the .item */
    height: 100%;
    /* Maintain aspect ratio */
    object-fit: cover;
    /* Ensure the image covers the item area */
    transform-style: preserve-3d;
}

.preview-img {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150px;
    /* Initial width set to half of 300px */
    height: auto;
    /* Maintain aspect ratio */
    overflow: hidden;
    z-index: 1;
    /* Ensure preview image container is below the button */
    transition: transform 0.3s;
    /* Smooth transition for scaling */
}

#expand-shrink-btn {
    position: absolute;
    /* Position inside the container */
    bottom: 10px;
    right: 10px;
    padding: 5px 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    cursor: pointer;
    z-index: 2;
    /* Ensure button is on top of the preview image */
    font-size: 18px;
    /* Increase font size for better visibility */
    display: flex;
    /* Center the icon within the button */
    align-items: center;
    justify-content: center;
}


/* Dark mode styles */

body.dark-mode {
    background-color: #121212;
    color: #ffffff;
}

body.dark-mode #dark-mode-btn {
    background-color: rgba(255, 255, 255, 0.7);
    color: black;
}