.card>a {
    text-decoration: none;
}

#header-grid {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    margin: 2%;
    column-gap: 1rem;
    row-gap: 1rem;
    max-width: 1400px;

    @media (min-width: 900px) {
        grid-template-columns: 2fr 1fr;
        justify-items: end;
    }
}

#welcome {
    order: -1;

    h1 {
        font-family: Isenheim;
        font-weight: 800;
        font-size: 3rem;
        @media (min-width: 800px) {
            font-size: 5rem;
        }
    }
    p {
        font-family: Abordage;
        font-size: 1rem;
        @media (min-width: 800px) {
            font-size: 1.5rem;
        }
    }
}

#side{
    span {
        font-family: SupernotoriousDot;
        font-size: 3.5rem;
        @media (min-width: 1200px) {
            font-size: 5.5rem;
        }
        font-weight: 800;
        text-align: center;
        color: var(--background);
        text-shadow: 5px 5px 0px black;
    }

    .smaller {
        font-size: 2rem;
        @media (min-width: 1200px) {
            font-size: 4rem;
        }
    }

    display: grid;
    grid-template-columns: subgrid;
    grid-template-rows: 1fr 2fr 1fr 2fr;
    justify-items: center;
    align-items: center;
    height: 80%;
    padding-top: 10%;
}

#side-wrapper{
    position: relative;
    border: 3px solid var(--text);
    z-index: -2;
    min-height: 300px;

    @media (min-width: 700px) {
        min-height: 400px;
    }

    &::before{
        background-image: url('/resources/leaf.svg');
        background-position: center;
        background-repeat: no-repeat;
        background-size:contain;
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        margin-bottom: 0;
        opacity: 1;
        z-index:-1;
        pointer-events: none;
    }
}

#marquee-back {
    height: min-content;
}

@keyframes marquee-content {
	/* Element one fully ON screen at left-edge of container. */
	from {
		transform: translateX( 0% );
	}
	/* Element one fully OFF screen (at left-edge of container). */
	to {
		transform: translateX( calc(-100% - 0.5rem) );
	}
}

@keyframes marquee-content-reverse {
	/* Element one fully ON screen at left-edge of container. */
	from {
		transform: translateX( -100% );
	}
	/* Element one fully OFF screen (at left-edge of container). */
	to {
		transform: translateX( calc(0.5rem) );
	}
}

.marquee {
	border-color: var(--text) ;
	border-width: 2px 0px;
	border-style: solid;
	display: flex ;
	overflow: hidden ;
	white-space: nowrap ;
	width: 100% ;
	gap: 0.5rem;
}

.marquee_item {
	animation-duration: 24s ;
	animation-iteration-count: infinite ;
	animation-name: marquee-content ;
	animation-timing-function: linear ;
	font-family: CormorantGaramond;
	font-weight: 300;
	font-size: 1.8rem;
	height: min-content;
	line-height: 1.8rem;

	&.reverse {
		animation-name: marquee-content-reverse ;
	}
}

.marquee:hover .marquee_item {
	animation-play-state: paused ;
}

#home-links {
    margin: 5%;
    width: 90%;
}

.home-card {
    text-align: center;
    gap: 0rem;
    padding: 1rem;
    width: 100%;
    min-width: min-content;


    @media (min-width: 900px) {
        width: 45%;
    }

    @media (min-width: 1800px) {
        width: 22.5%;
    }

    .card-title::before {
        border-color: var(--secondary-light);
    }

    .card-title {
        color: var(--black);
        font-family: Barlow;
        font-size: min(23cqi, 6.5rem);
        line-height: min(23cqi, 6.5rem);
    }

    p {
        font-family: Barlow;
        color: var(--black);
        width: 100%;
        border-bottom: 2px solid var(--secondary-light);
    }
}
