body {
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #2a2b31;
}

a {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 60vw;
    min-width: 250px;
    max-width: 1200px;
    height: 100vh;
    padding: 30px 0 150px 0;
}

.logo-container {
    animation: fadeInLogo 3s forwards;
}

.logo {
    width: 100%;
    min-width: 250px;
    max-width: 950px;
    max-height: 450px;
    height: auto;
}

.table-container {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    width: 100%;
    justify-items: center;
    align-content: start;
}

.tile {
    box-sizing: border-box;
    position: relative;
    width: 230px;
    height: 230px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 10px;
    border: 1px solid #000;
    border-radius: 15px;
    transition: box-shadow 0.1s;
    opacity: 0;
    animation: fadeInTile 1s forwards;
    background-color: #404043;
    overflow: hidden;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.tile:hover {
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 1);
}

.tileimage {
    width: 127px;
    height: auto;
    object-fit: contain;
    padding-top: 25px;
}

.tdtext {
    width: 100%;
    font-family: 'Catamaran', sans-serif;
    text-align: center;
    font-size: 20px;
    color: #c3c3c3;
    text-shadow:
    0px 0px 4px #000,
    0px 0px 4px #000,
    0px 0px 4px #000,
    0px 0px 4px #000;
    position: relative;
    top: -7px;
    z-index: 1;
    pointer-events: none;
}


@keyframes fadeInLogo {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes fadeInTile {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@media (max-width: 1400px) {
    .table-container {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    }
    .tile {
        width: 110px;
        height: 110px;
    }
    .tileimage {
        width: 60px;
    }
    .tdtext {
        font-size: 14px;
    }
}

@media (max-width: 950px) {
    .table-container {
        grid-template-columns: repeat(auto-fill, minmax(75px, 1fr)); /* updated minmax value to match tile size */
    }
    .tile {
        width: 75px;
        height: 75px;
        padding: 5px;
    }
    .tileimage {
        width: 40px;
    }
    .tdtext {
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .table-container {
        grid-template-columns: repeat(auto-fill, minmax(75px, 1fr)); /* keep same minmax value as above */
    }
    .tile {
        width: 75px;
        height: 75px;
        padding: 2px;
    }
    .tileimage {
        width: 40px;
    }
    .tdtext {
        font-size: 10px;
    }
}

@media (max-width: 350px) {
    .table-container {
        grid-template-columns: repeat(auto-fill, minmax(75px, 1fr)); /* keep same minmax value as above */
    }
    .tile {
        width: 75px;
        height: 75px;
        padding: 1px;
    }
    .tileimage {
        width: 40px;
    }
    .tdtext {
        font-size: 10px;
    }
}
