/* ALERTS */
.swal2-popup {
    background-color: rgb(17, 17, 17);
    border: 2px solid rgb(214, 214, 214);
    color: rgb(240, 240, 240);
}
.swal2-title {
    color: rgb(240, 240 240);
}
.swal2-confirm {
    background-color: rgb(9, 80, 68);
    color: rgb(240, 240, 240);
}


/* WHITELIST SECTION */
.form-field {
    margin: 0;
    margin-top: 10px;
    font-size: 16px;
}
.form-input {
    width: 400px;
    height: 25px;
    background: rgb(240, 240, 240);
    border: 2px solid rgb(10, 10, 10);
    border-radius: 5px;
    font-size: 16px;
}

.toggleVisibility {
    color: rgb(240, 240, 240);
    padding: 5px;
    background: rgb(87, 87, 87);
    border: 1px solid rgb(10, 10, 10);
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
}

.submit-button {
    color: rgb(240, 240, 240);
    padding: 10px;
    background: rgb(87, 87, 87);
    border: 1px solid rgb(10, 10, 10);
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
    margin: 0;
}
    .submit-button:hover {
        background: rgb(2, 95, 13);
    }
.creeper_img {
    position: relative;
    right: 10vh;
    z-index: -1;
}


/* HOW-TO SECTION */
.howto-grid-container {
    display: grid;
    grid-template-columns: repeat(6, 1fr); /* 6 equal columns */
    gap: 10px; /* Space between grid items */
    margin: auto; /* Center the grid horizontally on the page */
}
.howto-grid-item {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    height: auto;
    color: white;
    text-decoration: none; /* Remove underline from links */
    border: none;
}

.pdf-gallery {
    display: flex;
    gap: 20px; /* Space between buttons */
    justify-content: center; /* Center the gallery */
}
    .pdf-gallery a img {
        width: 100px; /* Smaller version of the PDFs */
        height: auto; /* Maintain aspect ratio */
        border: 2px solid #000;
        cursor: pointer;
        transition: transform 0.3s; /* Optional: Add hover effect */
    }
    .pdf-gallery a img:hover {
        transform: scale(1.1); /* Slight zoom effect on hover */
    }


/* DESCRIPTION SECTION */
.desc-grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 equal columns */
    gap: 10px; /* Space between grid items */
    margin: auto; /* Center the grid horizontally on the page */
}
.desc-grid-item {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    height: auto;
    color: white;
    text-decoration: none; /* Remove underline from links */
    border: 2px solid rgb(204, 204, 204);
    background: rgb(33, 25, 38);
    border-radius: 10px;
}


/* GALLERY SECTION */
.gal-grid-container {
    display: grid;
    /* grid-template-columns: 1fr 1fr 1fr; /* Three equal columns */
    grid-template-columns: repeat(3, 1fr); /* Three equal columns */
    gap: 20px; /* Space between grid items */
    padding: 10px;
    margin: auto; /* Center the grid horizontally on the page */
}
.gal-grid-item {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 15vh;
    color: white;
    font-size: 36px;
    text-decoration: none; /* Remove underline from links */
    border: 2px solid black;
    border-radius: 20px;
    padding: 25px;
    background-size: cover; /* Ensure the image covers the entire grid entry */
    background-position: center; /* Center the image */
    position: relative; /* Enable layering */
    overflow: hidden; /* Prevent overlapping elements */
}
    .gal-grid-item:hover {
        filter: brightness(100%); /* Brighten the background on hover */
        transform: scale(1.02); /* Slight zoom effect on hover */
    }
    .gal-grid-item::before {
        content: ""; /* Create an overlay pseudo-element */
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: inherit; /* Use the same background image */
        filter: brightness(40%); /* Apply the darkening effect here */
        z-index: 0; /* Place the overlay below the text */
    }
    .gal-grid-item:hover::before {
        filter: brightness(80%); /* Brighten the overlay on hover */
        transition: filter 0.1s ease; /* Smooth transition effect */
    }
    .gal-grid-item b {
        position: relative; /* Place the text above the background layer */
        z-index: 1; /* Ensure text stays on top of the background */
    }


/* MEDIA QUERIES */
@media only screen and (max-width:1700px) {
    .howto-grid-container {
        display: grid;
        grid-template-columns: repeat(3, 1fr); /* 3 equal columns */
        gap: 10px; /* Space between grid items */
        margin: auto; /* Center the grid horizontally on the page */
    }
}

@media only screen and (max-width:1250px) {
    .desc-grid-container {
        display: grid;
        grid-template-columns: repeat(2, 1fr); /* 2 equal columns */
        gap: 10px; /* Space between grid items */
        margin: auto; /* Center the grid horizontally on the page */
    }
    .gal-grid-container {
        display: grid;
        grid-template-columns: repeat(2, 1fr); /* 2 equal columns */
        gap: 20px; /* Space between grid items */
        padding: 10px;
        margin: auto; /* Center the grid horizontally on the page */
    }
}

@media only screen and (max-width:1100px) {
    .creeper_img {
        position: relative;
        right: 3vh;
        z-index: -1;
    }
}

@media only screen and (max-width:1000px) {
    .creeper_img {
        position: relative;
        right: 1vh;
        z-index: -1;
    }
}

@media only screen and (max-width:900px) {
    .howto-grid-container {
        display: grid;
        grid-template-columns: repeat(2, 1fr); /* 2 equal columns */
        gap: 10px; /* Space between grid items */
        margin: auto; /* Center the grid horizontally on the page */
    }
}

@media only screen and (max-width:700px) {
    .desc-grid-container {
        display: grid;
        grid-template-columns: repeat(1, 1fr); /* 1 column */
        gap: 10px; /* Space between grid items */
        margin: auto; /* Center the grid horizontally on the page */
    }
    .gal-grid-container {
        display: grid;
        grid-template-columns: repeat(1, 1fr); /* 1 column */
        gap: 20px; /* Space between grid items */
        padding: 10px;
        margin: auto; /* Center the grid horizontally on the page */
    }
}

@media only screen and (max-width:550px) {
    .howto-grid-container {
        display: grid;
        grid-template-columns: repeat(1, 1fr); /* 1 column */
        gap: 10px; /* Space between grid items */
        margin: auto; /* Center the grid horizontally on the page */
    }
}
