.home {
    height: 94vh;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 25px 15px;
    color: var(--title);
}

/* Hero section: vertically centered with reverse column direction for mobile */
.hero {
    display: flex;
    flex-direction: column;
}

.hero img {
    align-self: center;
    width: 225px;
    margin-bottom: 50px;
}

.hero div p {
    line-height: 1.5;
    word-spacing: 2px;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Call-to-action (CTA) button styling */
.cta-container a {
    background-color: var(--default);
    padding: 10px;
    color: white;
    border-radius: 8px;
    transition: transform ease-in-out 0.2s;
}

.cta-container a:hover {
    transform: translateY(-5px);
}

.cta-container a span{
    display: flex;
    align-items: center;
    gap: 5px;
}

.cta-container a:hover {
    color: white;
}

/* CTA container layout */
.cta-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    margin-bottom: 50px;
}

/* Highlighted home title */
.home-title {
    color: var(--default);
    font-size: 3rem;
    margin-bottom: 1rem;
    text-align: center;
}

/* Cheatsheets grid container */
.cheatsheets-container {
    display: grid;
    margin-top: 2rem;
    grid-template-columns: repeat(auto-fill, minmax(125px, 1fr));
    gap: 2rem;
}

/* Individual cheatsheet card */
.cheatsheets-container a {
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    border: solid 1px var(--accent);
    border-radius: 15px;
    transition: transform ease-in-out 0.2s;
}

.cheatsheets-container a img{
    transition: transform ease-in-out 0.2s;
}

.cheatsheets-container a:hover {
    border: solid 1px var(--default);
    color: var(--title);
    transform: translateY(-5px);
    transition: transform ease-in-out 0.2s;
}

.cheatsheets-container a:hover img{
    transform: rotate(10deg) scale(1.1);
    transition: transform ease-in-out 0.2s;
}

/* Footer spacing */
footer {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

hr {
    margin-top: 2rem;
}

/* Responsive styles */
@media (min-width: 768px) {
    .home {
        padding-left: 50px;
        padding-right: 50px;
        height: 93vh;
    }

    .hero img {
        margin-bottom: 50px;
    }
}

@media (min-width: 1024px) {
    .home {
        height: 91vh;
    }

    /* Switch hero section to row layout for desktops */
    .hero {
        flex-direction: row;
        align-items: center;
        justify-content: space-evenly;
        height: 91vh;
    }

    .hero div p{
        text-align: left;
    }

    .home-title{
        text-align: left
    }

    .hero div{
        width: 50%;
    }

    .cta-container{
        flex-direction: inherit;
        align-items: inherit;
    }

    .cheatsheets-container{
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

@media (min-width: 1440px) {
    .home, .hero {
        height: 93vh;
    }

    .hero div p {
        font-size: larger;
    }

    .cheatsheets-container{
        grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
    }

    .cta-container{
        gap: 10px;
    }

    .cta-container a{
        padding: 15px;
        font-size: larger;
    }
}
