body {
    margin: 0;
    padding: 0;
    background-color: #161416;
    font-family: 'IBM Plex Mono', sans-serif;
}

#logo {
    position: fixed;
    top: 12%;
    left: 7%; 
    width: 15em; /* Adjust as needed */
    transition: width 0.3s, transform 0.3s ease-in-out; /* Add transform to the transition */
    z-index: 1; 
}

#logo:hover {
    transform: rotate(360deg); /* Rotate the logo */
}

.category-buttons {
    margin-top: 130px; /* Larger space from top */
	padding-bottom: 30px;
   
}

/* Style for secret tags buttons container */
.secret-tags-buttons {
    margin-top: 2px; /* Smaller space between category and secret tags buttons */

}

.button-container {
    display: flex;
    justify-content: left;
    flex-wrap: wrap;
    gap: 3px; /* Space between buttons */
    margin-left: 5%;
    margin-right: 5%;
    margin-left: 51%;
}

.button-container button {
    margin-bottom: 2px; 
    padding: 8px 20px;
    background-color: #161416;
    border: 1px solid white;
    color: white;
    font-family: "poppins", sans-serif;
    font-size: 0.8em;
    cursor: pointer;
    transition: opacity 0.3s;
    border-radius: 20px;
}

.button-container button:hover,
.button-container button.active {
    background-color: white;
    color: black;
    border: 1px solid black;  /* Optional: Add a black border for better visibility */
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(370px, 1fr));
    grid-row-gap: 5px;
    grid-column-gap: 5px; 
    margin-left: 5%;
    margin-right: 5%; 
    margin-top: 130px;
    margin-bottom: 100px; 
}

.card {
    background-color: var(--card-color);
    color: black;
    width: 360px;
    height: 460px;
    padding: 10px;
    border-radius: 10px;
    text-decoration: none; /* Add this line */
    display: block; /* Ensures the link takes up the full size of the card */
    transition: background-color 0.3s, border 0.3s, color 0.3s; /* Smooth transition for hover effect */
    position: relative; /* This makes it a positioning context for absolute children */
    padding-bottom: 30px; /* Adjust as needed, to ensure space for the tags */
    opacity: 1; /* Full opacity */
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out; 
}

.card:not(.active) {
    transform: scale(0.95); /* Slightly smaller when not active */
}

.card:active {
    transform: scale(1.05); /* Slightly larger when clicked */
}

.card:hover {
    background-color: #161416;
    border: 1px solid white;
    color: white;
}

.card-title {
    font-family: "Poppins", sans-serif;
    font-weight: normal;
    margin-left: 30px;
    margin-right: 60px; 
    font-size: 2.9em;
    line-height: 1.1em; 
    word-wrap: break-word; /* Ensure long words do not overflow */
    overflow-wrap: break-word; /* Alternative to word-wrap for better support */
}

.card-category {
    margin-left: 30px;
    margin-top: 40px;
    font-size: 1.4em; 
    line-height: 1.5em; 
}

.card-tags {
    margin-left: 30px;
    font-size: 1.4em; 
    line-height: 1.2em; 
    position: absolute;
    bottom: 50px; /* Distance from the bottom of the card */
}