/*--------------* BACKGROUND EFFECT *--------------*/

/* Container for the grid of tiles */
.tile-grid-container {
    position: fixed; /* Fixes the grid to the viewport, so it stays in place */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: grid; /* Enables CSS Grid for arranging tiles */
    /* grid-template-columns and grid-template-rows will be set by JavaScript */
    background-color: #1a1a1a; /* Dark base color for the grid itself */
    z-index: -1; /* Places the grid behind all other content */
}

/* Styling for each individual tile */
.tile {
    /* Using a placeholder image that resembles the provided tree silhouette */
    /* Replace 'https://placehold.co/80x80/4CAF50/000000?text=🌲' with your actual image URL */
    background-image: url('/public/logo.jpg');
    background-size: cover; /* Ensures the image covers the entire tile */
    background-position: center; /* Centers the image within the tile */
    background-repeat: no-repeat; /* Prevents the image from repeating */

    /* Initial filter for the image (slightly darker) */
    filter: brightness(0);
    /* Smooth transition for filter changes over 3 seconds */
    transition: filter 4.5s ease-in-out;
    /* No border for a seamless look */
    box-sizing: border-box;
    /* No rounded corners for a sharp, tiled look */
}

/* Class added by JavaScript when a tile is "illuminated" */
.tile.illuminated {
    /* Brighter filter when illuminated */
    filter: brightness(1.0);
}

/* Styling for the content that sits on top of the background */
.main {
    position: relative; /* Ensures content respects z-index */
    z-index: 1; /* Places content above the tile background */
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.6); /* Semi-transparent background for readability */
    border-radius: 8px; /* Rounded corners for the content box */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); /* Subtle shadow for depth */
    max-width: 90%; /* Responsive max-width */
}

div#loading-background {
    width: 100vw;
    height: 100vh;
    text-align: center;
    line-height: 100vh;
    color: 76d82a;
    font-size: 100px;
}


/*-------------------------*/

#main {
    /* margin-top: 38px; */
    width: 50vw;
    height: 50vh;
    border: solid 5px #8df245;
    margin: auto;
    top: 25vh;
    position: relative;
    background: black;
    max-height: 300px;
    min-height: 234px;
    font-family: sans-serif;
}

.login {
    color: #8df145;
    text-align: center;
    margin-top: 10%;
}

.email-input {
    width: 100%;
    display: grid;
    grid-template-columns: 50px auto 50px;
    margin-top: 2%;
}

input[type="text"] {
    text-align: center;
    outline: none;
    border-radius: 0;
    border: 0;
    background: #fffffff2;
    line-height: 27px;
}

.submit {
    display: grid;
    align-items: center;
    justify-items: center;
}

a.login-button {
    background: #8df145;
    font-size: .9em;
    line-height: 27px;
    padding: 0 7px;
    margin-top: 12px;
    cursor: pointer;
}