/* @import url('https://fonts.googleapis.com/css2?family=Syne:wght@400..800&display=swap'); */

@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Spectral:ital,wght@0,200;0,300;0,400;0,500;0,600;0,700;0,800;1,200;1,300;1,400;1,500;1,600;1,700;1,800&display=swap');

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap');


:root {
    color-scheme: light dark;
    --body-f : "Inter", sans-serif;
    --head-f : "Spectral", serif;
    --border-c : light-dark(#ddd, #333);
    --bg-c : light-dark(#333, #ddd);
}

body {
    font-family: var(--body-f);
    background: var(--border-c);
    color: var(--border-c)
}

h1, h2, h3, h4 {
    font-family: var(--head-f);
}

.container {
    --gap: 20px;
    min-height: 100dvh;
    /* grid-template-rows: 1fr calc(1fr - calc(var(--gap)/2)); */
    grid-template-columns: 1fr;
    display: grid;
    width: 100%;
    border: var(--gap) var(--border-c) solid;
}

.flex_links {
    display: grid;
    counter-reset: listStyle;
    width: 100%;
    grid-template-columns: 1fr;
    grid-template-rows: repeat(6, 1fr);
    gap: var(--gap);
    background: var(--border-c);
    padding-top: var(--gap);
}

.row {
    padding: 20px;
    border-radius: 20px;
    background: white;
    color: black;
    padding-bottom: 50px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    h1 {
        font-size: 18vw;
        font-style: italic;
        font-weight: 300;
        display: inline-flex;
        flex-direction: column;
        line-height: 1;
        color: tomato;
        margin-bottom: 10px;
        &:before {
            content: "DMD: Interaction Design & Development";
            font-size: .8rem;
            font-style: normal;
            font-family: var(--body-f);
		font-weight: 500;
text-transform: uppercase;
            color: black;
            border: 2px solid currentColor;
            padding: 6px 12px;
            border-radius: 400px;
            display: inline;
            width: fit-content;
            margin: 0 auto 50px;
        }
    }
    h2 {
        line-height: 1;
        font-family: var(--body-f);
        margin-bottom: 50px;
        letter-spacing: 1px;
        font-size: 2rem;
        font-weight: 300;
    }

    p {
        max-width: 550px;
    }

    h1, h2, p {
        position: relative;
        z-index: 999;
    }
}

.flex_links > div:nth-child(1) {
    --text-1: #FD5A46;
    --text-2: white;
    --bg-c: #2B4593;
}

.flex_links > div:nth-child(2) {
    --text-1: #BADD7F;
    --text-2: #F6F6EA;
    --bg-c: #402F1D;
}

.flex_links > div:nth-child(3) {
    --text-1: #fffdbc;
    --text-2 : #F6DCBA;
    --bg-c: #A86B3E;
}

.flex_links > div:nth-child(4) {
    --text-1: #FDBB22;
    --text-2 : #D5DBDD;
    --bg-c: #0A0F65;
}

.flex_links > div:nth-child(5) {
    --text-1: #FC0189;
    --text-2: #5642BB;
    --bg-c: white;
}

.flex_links > div:nth-child(6) {
    --text-1: #0051FF;
    --text-2: white;
    --bg-c: black;
}

.flex_links:hover > div {
    opacity: .5;
    transition: all linear .25s;
}

.flex_links:hover > div:hover {
    opacity: 1;
    transform: scale(1.025);
    transform-origin: center;
}

.flex_links > div {
	border-radius: 20px;
    background: white;
    background: var(--bg-c);
    padding: 10px 20px;
    counter-increment: listStyle;
    display: flex;
    gap: 20px;
align-items: center;
    &:before {        
        content: counter(listStyle);
        counter-increment: section; 
        font-size: 1.5rem;
        width: 55px;
        text-align: center;
        height: 50px;
        padding: 5px;
        border: 1px solid currentColor;
        color: var(--text-1);
        border-radius: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    a {
        display: flex;
        flex-direction: column;
        text-decoration: none;
        width: 100%;
        .network {
            font-family: var(--head-f);
            font-style: italic;
            font-size: 3rem;
	margin-top: 10px;
	line-height:1;
            font-weight: 300;
            color: var(--text-1)
        }
        .by {
            display: none;
        }
        .devs {
            color: var(--text-2);
        }
    }
}

@media screen and (max-width: 768px) {
    br {
        display: none;
    }
}

@media screen and (min-width: 825px) {
    .container {
        grid-template-columns: auto 1fr;
        h1 {
            font-size: 8rem;
            &:before {
                margin: 0 0 50px 0;
            }
        }

        .row {
            align-items: flex-start;
            text-align: left;
        }
        .flex_links {
            padding-left: var(--gap);
            padding-top: 0;
        }
    }
}

@media screen and (min-width: 900px) {
    .container {
        grid-template-columns: 1fr 1fr;
    }
}

@media screen and (min-width: 1200px) {
    br {
        display: none;;
    }
    .container {
        grid-template-columns: 1fr 1fr;
    }
}