.header-text {
    width: 100%;
    height: 10vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: var(--background1);
    margin-bottom: 2rem;
}

.header-text h2 {
    margin-top: 0.2rem;
    font-size: 1.0rem;
    font-weight: 300;
    max-width: 80%;
    text-align: center;
    color: #a7a7a7;
    visibility: hidden;
    display: none;
}

#fcc {
    font-family: 'Roboto Mono', monospace;
    font-weight: 300;
}


.card-grid {
    margin: 0 auto;
    width: 95%;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
}

.card {
    width: 100%;
}

#card-front {
    font-size: 9rem !important; 
}

#larger-card-front {
    font-size: 11rem !important; 
}

footer {
    position: absolute;
    bottom: 0;
    width: 100%;
}

.sleeve-text {
    width: 90%;
}

#back-link {
    position: absolute;
    top: 1%;
    left: 1%;
}

#back-button {
    color: white;
    font-size: 1.7rem !important;
}

@media (max-width: 1000px) {
    .sleeve-text h1 {
        font-size: 1.5rem;
        width: 88%;
    }

    .sleeve-text h3 {
        font-size: 1.0rem;
        width: 90%;
    }

    .sleeve-text .icon {
        font-size: 1.2rem !important;
    }
}

@media (max-width: 900px) {
    .card-grid {
        grid-template-columns: 1fr;
    }

    footer {
        position: relative;
    }

    .sleeve-text h1 {
        font-size: 2.5rem;
        width: 100%;
    }

    .sleeve-text h3 {
        font-size: 1.2rem;
        max-width: 100%;
    }

    .sleeve-text .icon {
        font-size: 1.2rem !important;
    }
}

@media (max-width: 500px) {
    .header-text {
        height: 25vh;
    }

    .header-text h1 {
        font-size: 2.0rem;
    }

    .header-text h2 {
        display: block;
        visibility: visible;
    }

    #back-button {
        font-size: 2.2rem !important;
    }

    .sleeve-text h1 {
        font-size: 2.0rem;
        width: 100%;
    }

    .sleeve-text h3 {
        font-size: 1.1rem;
        max-width: 100%;
    }

    .sleeve-text .icon {
        font-size: 1.2rem !important;
    }
}