/* Reset default styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

#preload-images {
    display: none;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
    background-color: transparent;
    animation: backgroundFade 70s infinite linear;
    opacity: 1;
}

body.loaded {
    opacity: 1;
}

@keyframes backgroundFade {

    0%,
    4.5% {
        background-image: url("../season_02/images/gandrisar.jpg");
    }

    9.5%,
    14% {
        background-image: url("../season_02/images/space_port.jpg");
    }

    19%,
    23.5% {
        background-image: url("../season_02/images/science_dome.jpg");
    }

    28.5%,
    33% {
        background-image: url("../season_02/images/construction_yard.jpg");
    }

    38%,
    42.5% {
        background-image: url("../season_02/images/university.jpg");
    }

    47.5%,
    52% {
        background-image: url("../season_02/images/art_gallery.jpg");
    }

    57%,
    61.5% {
        background-image: url("../season_02/images/dock_house.jpg");
    }

    66.5%,
    71% {
        background-image: url("../season_02/images/debate_hall.jpg");
    }

    76%,
    80.5% {
        background-image: url("../season_02/images/library.jpg");
    }

    85.5%,
    90% {
        background-image: url("../season_02/images/rejuvenation_ward.jpg");
    }

    95%,
    100% {
        background-image: url("../season_02/images/gandrisar.jpg");
    }
}





/* Style the foreground image and text container */
#container {
    position: relative;
    margin: 100px auto;
    width: 90%;
    max-width: 900px;
    padding: 30px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    text-align: center;
}

#container p a {
    color: #666;
}

#container p a:hover {
    color: #00b0b9;
}

#foreground {
    margin-bottom: 30px;
}

#foreground img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}

h1 {
    font-size: 32px;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
}

p {
    font-size: 18px;
    color: #666;
    line-height: 1.6;
    text-align: left;
    margin-bottom: 0px;
}

/* Style the image grid */
.image-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 0px;
}

.image-grid img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    padding: 5px;
    padding-top: 30px;
    padding-bottom: 0px;
}

/* Style the Square Buy now button */
.button-container {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.button-wrapper {
    flex: 1;
    padding: 20px;
    display: flex;
    justify-content: center;
}

.button {
    display: inline-block;
    font-size: 18px;
    line-height: 48px;
    height: 48px;
    color: #ffffff;
    min-width: 212px;
    background-color: #000000;
    text-align: center;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1) inset;
    border-radius: 6px;

    /* Remove underline */
    text-decoration: none;

    /* Animation */
    animation-name: pulsate;
    animation-duration: 2s;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
}

@keyframes pulsate {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

/* Media query for small screen sizes */
@media (max-width: 800px) {
    .button-container {
        flex-direction: column;
        align-items: center;
    }

    .button {
        margin-bottom: 10px;
        margin-left: 10px;
        margin-right: 10px;
        /* Add desired padding value */
    }
}

/* Grid Selection Buttons */
.grid-buttons {
    text-align: center; /* Center the button horizontally */
    margin-top: 25px;
    margin-bottom: 20px;
  }
  
  .grid-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #333;
    border: 1px solid #fff;
    color: white;
    letter-spacing: 0.1em;
    text-decoration: none;
    font-size: large;
    border-radius: 5px;
    font-size: 16px;
    transition: background-color 0.3s;
  }
  
  .grid-button:hover {
    background-color: #00b0b9;
  }
  
  #container {
    padding: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
  }

  .image-text {
    font-size: 15px;
    color: white;
    background-color: rgba(0, 0, 0, 0.7); /* semi-transparent black background */
    padding: 5px;
    border-radius: 5px;
    text-align: center;
    margin: 8px auto 0; /* auto for left and right margins to center the text block */
    display: block;
    width: 80%;
    box-sizing: border-box; /* ensures padding is included in the width */
}