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

#header-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: min-content min-content min-content 2fr;
    @media (min-width: 600px) {
        grid-template-columns: 2fr 1fr;
        grid-template-rows: min-content min-content min-content 1fr;
    }
    @media (min-width: 1200px) {
        grid-template-columns: 1fr 2fr 1fr;
        grid-template-rows: min-content min-content 1fr min-content;
    }
    margin: 2%;
    column-gap: 0.2rem;
    row-gap: 0.2rem;
}

.head-image {
    margin-bottom: 0;
}

picture:has(.head-image) {
    width: 100%;
    grid-row: 1 / 1;
    grid-column: 1 / 1;

    @media (min-width: 600px) {
        grid-row: 1;
    }

    @media (min-width: 1200px) {
        grid-row: 2;
    }
}

#welcome {
    margin: 0;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    grid-column: 1 / span 2;
    grid-row: 4;
    @media (min-width: 1200px) {
        p {
            font-size: min(1.5rem,1.3cqi);
        }
        grid-column: 2;
        grid-row: 2 / span 2;
    }
}

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

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

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

    @media (min-width: 1200px) {
        padding-top: 10%;
    }
}

#side-wrapper{

    grid-row: 1 / span 2;
    grid-column: 2;
    position: relative;
    /*background: radial-gradient(var(--accent-light), transparent);*/
    border: 3px solid var(--text);
    z-index: -2;

    @media (min-width: 600px) {
        grid-row: 1 / span 2;
    }

    @media (min-width: 1200px) {
        grid-column: 3;
        grid-row: 2 / span 2;
    }


    &::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;
    }
}

#spotify {
    container-type: inline-size;
    position: relative;
    grid-column: 1;
    grid-row: 2;
    font-family: Punctata;
    background-color: var(--text);
    font-size: 5cqi;

    line-height: 6cqi;
    padding: 3px;

    white-space:nowrap;
    text-align: center;
    color: var(--background);

    @media (min-width: 1200px) {
        font-size: 1.8cqi;
        line-height: 3cqi;
        grid-row: 3;
    }
}

#marquee {
    grid-column: 1 / span 2;
    grid-row: 3;
    height: min-content;

    @media (min-width: 1200px) {
        grid-column: 1 / span 3;
        grid-row: 4;
    }
}


#marquee-back {
    grid-column: 1 / span 2;
    grid-row: 1;
    height: min-content;
    display: none;

    @media (min-width: 1200px) {
        grid-column: 1 / span 3;
        display: flex;
    }
}

@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(--secondary);
        font-family: Barlow;
        font-size: min(23cqi, 6.5rem);
        line-height: min(23cqi, 6.5rem);
    }

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