::-webkit-scrollbar {
    width: 0;
}

body {
    font-family: 'Arial', sans-serif;
    background-image: url(Images/Background.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    margin: 0;
    overflow: hidden;
}

h2 {
    color: #FAFAF8;
    text-align: center;
}

p {
    color: #FAFAF8;
}

.center {
    text-align: center;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(6px);
    padding: 2rem;
    border-style: solid;
    border-radius: 10px;
    border-color: rgba(255, 255, 255, 0.1);
    border-width: 2px;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30%;
    height: 30%;
    transition:
        width 0.5s ease,
        height 0.5s ease;
}

.center.active{
    width: 100%;
    height: 100%;
}

.center button {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(2px);
    padding: 1rem;
    border-style: solid;
    border-radius: 8px;
    border-color: rgba(255, 255, 255, 0.1);
    border-width: 2px;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20%;
    z-index: 10;
}

.center button:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

.gallery {
    position: relative;
    margin-top: 100vh;
    padding: 4rem;

    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;

    opacity: 0;
    transform: translateY(80px);

    transition:
        transform 0.8s cubic-bezier(.2,.8,.2,1),
        opacity 0.6s ease;
    
    height: 100vh;
    overflow-y: scroll;
}

/* When active */
body.active .gallery {
    opacity: 1;
    transform: translateY(0);
    margin-top: 70vh;
}

/* Images styling */
.gallery img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 12px;

    opacity: 1;
    transform: translateY(40px);

    transition:
        transform 0.6s cubic-bezier(.2,.8,.2,1),
        opacity 0.6s ease;
}

/* Stagger effect */
body.active .gallery img {
    opacity: 1;
    transform: translateY(0);
}

/*body.active .gallery img:nth-child(2) { transition-delay: 0.1s; }
body.active .gallery img:nth-child(3) { transition-delay: 0.2s; }
body.active .gallery img:nth-child(4) { transition-delay: 0.3s; }
body.active .gallery img:nth-child(5) { transition-delay: 0.4s; }
body.active .gallery img:nth-child(6) { transition-delay: 0.5s; }*/

/* Button movement when gallery is active */
.center button.move-up {
    transform: translate(-50%, -250px); /* adjust -250px to stop under title */
    transition: transform 1s ease;
    z-index: 10;
}

.gallery img.fade-out {
  opacity: 0;
}

body.active .gallery img.fade-out {
  opacity: 1;
}

body:not(.active) .gallery img.fade-out {
  opacity: 0;
}