html {
    background-image: url("./background-stars.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    background-color: rgb(24, 24, 24);
}

.back {
    position: fixed;
    top: 0;
    left: 0;
    padding: 1em;
    margin: 0.1em;
}

.back svg {
    scale: 1.5;
}
body {
    color: white;
    backdrop-filter: blur(0.3px);
    margin: 0;
    padding: 0;
    background-color: rgba(0, 0, 0, 0.551);
    height: 100dvh;
    width: 100dvw;   
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.back {
    position: fixed;
    top: 20px;
    left: 20px;
    text-decoration: none;
    z-index: 10;
}

.cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
    padding: 20px;
    gap: 2em;
    overflow-y: auto;
}

@media screen and (min-width: 1024px) {
    body {
        overflow: hidden;
    }
    
    .cards {
        overflow: hidden;
    }
}

.card {
    width: min(300px, 90vw);
    height: fit-content;
    background-color: rgba(0, 0, 0, 0.3);
    border: 0.15em solid rgba(255, 255, 255, 0.3);
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-sizing: border-box;
    overflow: hidden;
    position: relative;
    text-decoration: none;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    border-radius: 8px;
}

.card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.card img{
    width: 100%;
    height: 100%;
    max-width: fit-content;
    max-height: fit-content;
    transition-duration: 0.5s;
}

.card:hover img{
    scale: 1.05;
}

.card p {
    color: white;
    padding: 1em 0.5em;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-size: 1.2em;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    width: 100%;
    backdrop-filter: blur(5px) brightness(40%);
    margin: 0;
    position: absolute;
    bottom: 0;
    font-weight: 500;
    letter-spacing: 0.5px;
}

a {
    text-decoration: none !important;
}
