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

html,
body {
    
    background: white;
    overflow-y: hidden;
}

body {
    overflow-y: hidden;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
    display: inline-block;
}

/* Main CSS */
.imageContainer .imageDiv {
    display: flex;
    justify-content: center;
    align-items: center;
}

.imageContainer .imageDiv>img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 1vw;
}

.imageContainer {
    display: grid;
    grid-gap: 1vw;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-auto-rows: 200px;
    grid-auto-flow: dense;
    padding: 1vw;
    padding-bottom: 15vw;
  
    margin-top: 1vw;
    overflow-y: scroll; /* Enable vertical scrolling */
    /*height: 300px;*/ /* Set a fixed height to enable scrolling */
    height: 100vh;
    /*min-height: 100vh;*/
  border: 0.25vw solid black;
    background-color: black;
}

.imageContainer .wide {
    grid-column: span 2;
}

.imageContainer .tall {
    grid-row: span 2;
}

.imageContainer .big {
    grid-column: span 2;
    grid-row: span 2;
}

.buttons {
    display: flex;
    width: fit-content;
    justify-content: center;
    /* Center buttons horizontally */
    gap: 1vw;
    box-sizing: border-box;
    margin-left: auto;
    margin-right: auto;

    /*margin-bottom: 1vw;*/
    padding: 1vw;
    border: 0.25vw solid black;
    /*background-color: lightcoral;*/
}

.button {
    width : 10vw;
    box-sizing: border-box;
    padding: 1vw;
    text-align: center;
    border-radius: 5vw;
    font-size: 2vw;
    cursor: pointer;
    border: 0.25vw solid black;
    background-color: aqua;
}

.button:hover {
    animation-name: pulse;
    animation-duration: 0.8s;
    animation-iteration-count: 1;
}

.button:active:not(.disabled) {
    background-color: yellow;
}

/* Gray background for disabled state */
.button.disabled {
    background-color: lightgray;
    pointer-events: none; /* Prevents any mouse events on this element */
}

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

    50% {
        transform: scale(1.1);
    }

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

.pulsing {
    animation: pulse 0.6s ease-in-out;
}

.footer2 {
  width: 100%;
  height: 100px;
    
  position: relative;
  top: 1000px; /* Y coordinate */
  left: 0; /* X coordinate */
    
  background-color: #333; /* Dark grey background */
}

.modal {
  display: none;
  position: fixed;
  z-index: 1;
  
  left: 0;
  right: 0;
  bottom: 0;
  top: 0;
  
  margin-left: auto;
  margin-right: auto;
  
  margin-top: 8.5vw;
  margin-bottom: 4vw;
  padding: 1vw; /* Adjusted to add padding around the content */
  
  width: 80%;
  text-align: center;

  box-sizing: border-box; /* This ensures padding is included in the element's total width and height */
  overflow: auto; 
    border-bottom: 2px solid black; /* Example */
  background-color: green;
}

.modal-content {
  margin: 1vw auto; /* Top and bottom margins are 1vw, and horizontally it auto centers */
  display: block;
  max-width: 80%;
  box-sizing: border-box; /* Ensures padding is included */
  /* Optional: if you know the height of your content or want to set a max height */
  /*max-height: calc(100vh - 10vw); *//* 100vh is full screen height, subtracting top and bottom margins from .modal */
  /*overflow: auto;*/ /* Ensures that if content is too long, it will be scrollable */
    
}

.close {
  color: #aaa;
  position: absolute;
  top: 0;
  right: 2VW;
  font-size: 9VW;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

modal-info {
    text-align: center; /* Center the text */
    /*margin: 5px 0;*/ /* Add some vertical spacing between paragraphs */
}

.buyButton {
    width: 7vw;
    height: 5vw;
    
    top: 30vw;
    margin-right: 0.5vw;

    
    background-color: aqua;
    cursor: pointer;
}

.buyButton:hover {
  background-color: blue; /* Darker green background on hover */
}
/* -------------------------------------------------------------------------- */