* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    height: 100%;
    width: 100%;
}

body {
    height: 100dvh;
    width: 100dvw;
    overflow: hidden;
    position: relative;
    background-color: rgb(24, 24, 24);
    color: #ffffff;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
}

.background {
    position: fixed;
    inset: 0;
    background-color: rgb(24, 24, 24);
    background-image: url("../media/background-stars.jpg");
    background-image: image-set(
        url("../media/background-stars.avif") type("image/avif"),
        url("../media/background-stars.jpg") type("image/jpeg")
    );
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.content-wrapper {
    position: relative;
    z-index: 1;
    color: #ffffff;
    backdrop-filter: blur(0.3px);
    background-color: rgba(0, 0, 0, 0.55);
    height: 100dvh;
    width: 100dvw;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.back {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 100;
    text-decoration: none;
    padding: 0.4rem;
    display: inline-flex;
    transition: transform 0.25s ease;
}

.back svg {
    transform: scale(1.5);
}

.back:hover {
    transform: scale(1.1);
}

.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) {
    .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;
    overflow: hidden;
    position: relative;
    text-decoration: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    border-radius: 8px;
}

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

.card img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.5s ease;
}

.card:hover img {
    transform: scale(1.05);
}

.card p {
    color: #ffffff;
    padding: 0.85em 0.6em;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-size: 1.02em;
    line-height: 1.3;
    width: 100%;
    backdrop-filter: blur(5px) brightness(40%);
    background-color: rgba(0, 0, 0, 0.28);
    margin: 0;
    position: absolute;
    bottom: 0;
    font-weight: 500;
    letter-spacing: 0.3px;
}
