:root {
	--text-default: #000;
    --secondary-text: #e2ece8;
	--background-default: #D0DDD7;
	--background-header: #594E36;
	--background-footer:  #2F2504;
    --card-background: #A5AE9E;
}

/* Mobile Styling */

* {
    box-sizing: border-box;
    margin: 0;
}

html {
    width: 100%;
	background-color: var(--background-default);
	color: var(--text-default);
	margin: 0 auto;
	font-family: Gill Sans, Gill Sans MT, Myriad Pro, DejaVu Sans Condensed, Helvetica, Arial, "sans-serif";
	font-size: 1em;
	line-height: 1.25em;
    /* Mobile */
	min-width: 320px;
}

h1 {
    /* Calibri is Added as the backup font in case Corsairpe doesn't load */
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;

    font-size: 2rem;
    line-height: 1.2;
    font-family: "corsairpe", sans-serif;
    font-weight: 400;
    font-style: normal;
}

h2 {
    margin-top: 1rem;
    margin-bottom: 1rem;
    font-size: 2rem;
    line-height: 1.3;

    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    
    font-size: 2rem;
    line-height: 1.2;
    font-family: "corsairpe", sans-serif;
    font-weight: 400;
    font-style: normal;
}

header {
    background-color: var(--background-header);
    position: sticky;
	top: 0;
    padding: 2rem;
    color: var(--secondary-text);
    display: flex;
    justify-content: center;
}

section {
    padding: 3em;
}
img {
    width: 100%;
    height: auto;
    margin-top: 10px;
}

.axolotl-cards {
    display: grid;
    grid-template-rows: 1fr 1fr 1fr 1fr 1fr 1fr;
}

.leucistic, .golden-albino, .wild-type, .melanoid, .copper, .mosaic {
    aspect-ratio: 2.5 / 3;
    background-color: var(--card-background);
    border-radius: 1em;
    margin: 1em;
    padding: 0.5em;
    display: grid;
    grid-template-rows: 0.8fr 2fr 0.8fr;

    justify-self: center;

    h3 {
        font-size: 2rem;
        grid-row: 1 / 2;
        justify-self: center;
        align-self: center;
    }

    img {
        width: 90%;
        border-radius: 1rem;
        height: auto;
        justify-self: center;
        align-self: center;
        
    }

    p {
        margin: 1em;
        justify-content: center;
        font-size: 1.2em;
        text-align: center;
    }
}

ul {
    padding: 1em;
    font-size: 1.1em;
}

footer {
    background-color: var(--background-footer);
    padding: 1rem;
    color: var(--secondary-text);
    
    a {
        color: #d1e492;
    }
    li {
        margin-bottom: 1.5rem;
    }
}

.habitat {
    figure {
        display: none;
    }
}

@media screen and (min-width:768px) {

    h1 {
        font-size: 2.5rem;
    }
    .habitat {
        figure {
            display: block;
        }
    }

    p, li {
        font-size: 1.15rem;
        line-height: 1.35;
    }

    .axolotl-cards {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr 1fr 1fr;

    }

    .leucistic, .golden-albino, .wild-type, .melanoid, .copper, .mosaic {
        aspect-ratio: 2.5 / 3;

        h3 {
            font-size: 2rem;
        }
        p {
            font-size: 1em;
            margin: 0;
        }
    }
    

}

@media screen and (min-width:1200px) and (max-width:1900px) {
    .axolotl-cards {
        grid-template-columns: 1fr 1fr 1fr;
        grid-template-rows: 1fr 1fr;

    }
    h1 {
        font-size: 3rem;
    }
    h2 {
        font-size: 2.5rem;
    }

    .introduction, .habitat, .facts, .help-the-axolotl {
        display: grid;
        grid-template-columns: 1fr 1fr;
        
        p, ul {
            grid-column: 1 / 2;
            margin-right: 50px;
        }
        img {
            grid-row: 2 / 3;
            grid-column: 2 / 3;
            margin: 10px;
            
        }
        figcaption {
            margin-left: 10px;
        }
    }
    p {
        line-height: 2;
        font-size: 1.3rem;
    }

    li {
        line-height: 1.8;
        font-size: 1.3rem;
    }
    
    
}