:root {
    --main-bg-color: #172D29;
    --tile-bg-color: #304743;
    --text-color: #F8F9FA;
    --shadow-color: #2ECC71;
    /* Light green shadow color */
}


body {
    margin: 0;
    font-family: sans-serif;
    background-color: var(--main-bg-color);
    color: var(--text-color);
    font-family: Arial, sans-serif;
    /* Arial as primary, fallback to sans-serif */

}

.container {
    display: flex;
    flex-wrap: wrap;
    width: 80%;
    margin: 0 auto;
    padding: 20px;
}

.tile {
    text-decoration: none;
    color: var(--text-color);
    box-sizing: border-box;
    width: calc(25% - 30px);

    /* Account for margins */
    margin: 15px;
    padding: 5px;
    background-color: var(--tile-bg-color);
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: relative;
    cursor: pointer;
    transition: transform 0.1s ease-in-out, box-shadow 0.1s ease-in-out;
}

.tile h2 {
    padding: 10px;
    font-family: Georgia, serif;
    /* Georgia for headings, fallback to serif */
    margin: 0;
    font-size: 20px;
}

.tag {
    background-color: #009688;
    color: #fff;
    display: inline-block;
    padding-left: 8px;
    padding-right: 8px;
    font-size: .8em;
    text-align: center;
    border-radius: .2em;
}

.tile p {
    padding: 10px;
    margin: 0;
    height: 100px;
}

.tile img {
    width: 100%;
    height: 180px;
    border-radius: 0.25em;
    /* Adjust height as needed */
    object-fit: cover;
    /* Scales image to fit container */
    opacity: 0.7;
    top: 0;
    left: 0;
}

.tile:hover img {
    opacity: 1;
    /* Add border on hover */
}

.tile:hover {
    transform: scale(1.01);
    box-shadow: inset 0px 0px 0px 2px var(--shadow-color), 0px 0px 10px var(--shadow-color);
    /* Light green shadow on hover */
    /* Add border on hover */
}

/* Media Queries for Responsive Layout */
@media only screen and (max-width: 1024px) {
    .tile {
        width: calc(33% - 20px);
        /* Adjust width for smaller screens */
    }
}

@media only screen and (max-width: 768px) {
    .tile {
        width: calc(50% - 20px);
        /* Adjust width for smaller screens */
    }
}

@media only screen and (max-width: 480px) {
    .tile {
        width: 100%;
        /* One tile per row on very small screens */
    }
}