body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 15px;

    /* background-image: url('image/family.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center center; */
    min-height: 70vh;
    position: relative;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
    grid-gap: 10px;
    width: 95%;
    padding: 10px;
    background-color: #ffffff;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);

    margin-top: -20px; /* Move the button grid up by 10 pixels */

}

.grid-item {
    position: relative;
    background-color: #007bff;
    color: white;
    font-weight: bold;
    text-align: center;
    padding: 0;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease-in-out;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.grid-item-red {
    background-color: #ff0000;
}

.grid-item-label {
    padding: 8px;
    white-space: normal;
    word-wrap: break-word;
    font-size: 16px;
}


.grid-item::before {
    content: "";
    display: block;
    padding-top: 70%;
    /* 1:1 aspect ratio */
}

.grid-item>span {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.grid-item:active {
    transform: translateY(4px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.grid-item:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.1);
}

.grid-item:focus {
    outline: none;
}

.outer-slideshow-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding-top: 100%;/* 1:1 Aspect Ratio */
    margin-top: 10px;
}

.slideshow-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 80%;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 1s;
}


.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Scale the image to fill the container */
  }
  

.active-slide {
    opacity: 1;
    z-index: 1;
}

.overlay-text {
    position: absolute;
    top: calc(90% + 50px);
    /* bottom: 10px; */
    left: -100%;
    color: #f7f5f5;
    /* Dark text color */
    font-size: 20px;
    font-weight: 600;
    /* -webkit-text-stroke: 0.8px #fbfaf4; */
    /* Sharper gold edge */
    text-align: center;
    z-index: 1;
    /* Set the z-index property */
}
  
.active-slide .overlay-text {
    animation: fly-in 2s ease-out forwards;
}

.active-slide .overlay-text {
    /* opacity: 1; */
    animation-delay: 1.0s;
}

@keyframes fly-in {
    0% {
        left: -100%;
    }

    100% {
        left: 10px;
    }
}


footer {
    padding: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
}

.footer-content {
    text-align: center;
    font-size: 12px;
}

.paused::after {
    content: "";
    position: absolute;
    width: 0;
    height: 0;
    border-top: 60px solid transparent;
    border-bottom: 60px solid transparent;
    border-left: 120px solid #000;
    opacity: 0.3;
    z-index: 2;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
