@font-face {
    font-family: 'league_spartanbold';
    src: url('../assets/polices/leaguespartan-bold-webfont.eot');
    src: url('../assets/polices/leaguespartan-bold-webfont.eot?#iefix') format('embedded-opentype'),
         url('../assets/polices/leaguespartan-bold-webfont.woff2') format('woff2'),
         url('../assets/polices/leaguespartan-bold-webfont.woff') format('woff'),
         url('../assets/polices/leaguespartan-bold-webfont.ttf') format('truetype'),
         url('../assets/polices/leaguespartan-bold-webfont.svg#league_spartanbold') format('svg');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../assets/polices/Montserrat-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
}

:root{
    --primary-color: #0070d1;
    --secondary-color: #d10070;
    --tertiary-color: #fff;
    --text-dark: #0070d1;
    --text-light: #fff;

    font-size: 16px;
}

*,
::before,
::after{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body{
    font-family: 'Montserrat', sans-serif;
    background-color: var(--primary-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

section{
    flex: 1;
}

canvas{
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1;
}

header{
    max-width: 1200px;
    margin: auto;
    padding: 1rem;
    display: flex;
    align-items: center;
    width: 100%;
}

h1{
    font-size: 2rem;
    color: var(--text-light);
    font-family: 'league_spartanbold', sans-serif;
    text-shadow: 1px 2px var(--secondary-color);
}

header img{
    width: 100px;
    margin-right: 1rem;
}

.card-container{
    max-width: 1200px;
    margin: auto;
    display: grid;
    padding: 1rem;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.project-card{
    display: flex;
    align-items: center;
    background-color: var(--tertiary-color);
    border-radius: 0.5rem;

    text-decoration: none;
    padding: 0.5rem;
    transition: all 400ms;
}

.project-card:hover{
    transform: scale(1.05);
}

.project-card img{
    height: 2rem;
    margin-right: 0.5rem;
}

.project-card h3{
    font-size: 1.2rem;
    color: var(--text-dark);
}

footer{
    padding: 1.5rem;
    color: var(--text-light);
    font-size: 1.2rem;
    font-weight: bold;
}

footer p{
    display: flex;
    justify-content: center;
    align-items: center;
}

footer a{
    display: flex;
    align-items: center;
    margin-right: 0.5rem;
    color: var(--text-light);
    text-decoration: none;    
}

footer a:hover{
    text-shadow: 1px 2px var(--secondary-color);
}

footer img{
    height: 1.6rem;    
    transition: transform 400ms;
}

footer img:hover{
    transform: scale(1.2);
}


@media screen and (min-width:1024px){
    h1{
        font-size: 4rem;
        text-shadow: 2px 4px var(--secondary-color);
    }

    header img{
        width: 200px;
    }

    .project-card{
        min-height: 100px;
    }

    .project-card img{
        height: 4rem;
    }
        
    .project-card h3{
        font-size: 1.6rem;
    }
}