.gallery {
    background: rgba(255, 255, 255, 0);
    padding: 1em;
}

.rounded {
    border-radius: 15px;
}

.gallery img {
    margin-right: 0.2em;
    width: 150px;
}

table, th, td {
    border: 1px solid black;
}

.grid-container {
    grid-gap: 1px;
    display: grid;
    grid-template-columns: 60px 60px 60px 60px 60px 60px 60px 60px 60px;
    background-color: rgb(20, 40, 60);
    padding: 2px;
    margin: auto;
    position: absolute;
    left: 28%;
}

.grid-item {
    background-color: rgb(255, 255, 255);
    border: 0px solid rgba(0, 0, 0, 0.8);
    padding: 0px;
    font-family: "Times New Roman", Times, serif;
    font-size: 30px;
    aspect-ratio: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.grid-item:hover {
    background-color: rgb(147, 227, 219);
  }

.grid-item.active {
    background-color: rgb(147, 227, 219); /* color when clicked */
}

body {
    position: relative;
    height: 100vh;
}

#reset {
    float: inline-end;
    height: 10vh;
    background-color: rgb(255, 255, 255);
    aspect-ratio: 1;
}

#submit {
    float: inline-end;
    height: 10vh;
    background-color: rgb(255, 255, 255);
    aspect-ratio: 1;
}
#generate {
    float: inline-end;
    height: 10vh;
    background-color: rgb(255, 255, 255);
    aspect-ratio: 1;
}
#delete {
    float: inline-end;
    height: 10vh;
    background-color: rgb(255, 255, 255);
    aspect-ratio: 1;
}

.grid-container::before {
    content: '';
    position: absolute;
    top: calc(33.33%);
    left: 0;
    width: 100%;
    border-top: 3px solid black;
    z-index: 1;
}

.grid-container::after {
    content: '';
    position: absolute;
    top: calc(66.66%);
    left: 0;
    width: 100%;
    border-top: 3px solid black;
    z-index: 1;
}

.grid-container div:nth-child(3n) {
    border-right: 3px solid black;
}

.grid-container div:nth-child(3n) {
    border-bottom: 3px solid rgb(255, 255, 255);
}

.grid-container div:nth-child(6n) {
    border-right: 3px solid black;
} /*error*/

.grid-container2 {
    display: grid;
    left: 50%;  /* Center horizontally using left */
    grid-template-columns: repeat(3, 1fr); /* 3 columns */
    grid-template-rows: repeat(3, 1fr);    /* 3 rows */
    width: 200px; /* Set the width of the container */
    height: 200px; /* Set the height of the container */
}

.grid-item2 {
    font-family: "Times New Roman", Times, serif;
    padding: 20px;
    font-size: 25px;
    background-color: rgb(255, 255, 255);
    border: 1px solid #000;
    cursor: pointer;
}

.grid-item2:hover {
    background-color: rgb(151, 227, 147);
}

#generate:hover {
background-color: rgb(219, 147, 227);
}

#submit:hover {
    background-color: rgb(88, 175, 11);
}

#reset:hover {
    background-color: rgb(232, 189, 138);
}

#delete:hover {
    background-color: rgb(232, 189, 138);
}


.button-grid {
    display: grid;
    text-align: center;
    position: absolute;
    left: 85%;
    grid-template-columns: repeat(2, 1fr); 
    grid-template-rows: repeat(2, 2fr); 
    grid-gap: 5px; /* Spacing between buttons */
    width: 100px; 
    height: 100px;
}
