/*
* Variables and General setup
*/

:root {
    font-size: 16px;
    --mainCol: 104, 35, 63;
    /* --mainCol: #68233F; */
    --secondaryCol: 8, 54, 26;
    /* --secondaryCol: #08361A; */
    --accentCol1: 9, 23, 73;
    /* --accentCol1: #091749; */
    --accentCol2: 232, 240, 178;
    /* --accentCol2: #e8f0b2; */
    --backgroundCol: 240, 240, 255;

    --sectionOpacity: 1;
}

* {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: black;
}

/*
* Element and ID Rules
*/

body {
    overflow: hidden;
}

main {
    width: 100%;
}

section {
    background-position: center;
    background-size: cover;
}

section#home {
    background-image: 
        linear-gradient(
        rgba(255, 255, 255, 0.7), 
        rgba(255, 255, 255, 0.7)
        ),
        url(/pictures/sections/background-image.png);

}

section#home h1 {
    background-color: rgb(var(--mainCol));
}

section#about {
    background-image: 
        linear-gradient(
        rgba(255, 255, 255, 0.7), 
        rgba(255, 255, 255, 0.7)
        ),
        url(/pictures/sections/background-image1.jpg);
}

section#about h1 {
    background-color: rgb(var(--secondaryCol));
}

section#projects {
    background-image: 
        linear-gradient(
        rgba(255, 255, 255, 0.7), 
        rgba(255, 255, 255, 0.7)
        ),
        url(/pictures/sections/background-image2.jpg);
}

section#projects h1 {
    background-color: rgb(var(--accentCol1));
}

h1 {
    padding: 1rem;
    margin-bottom: 4rem;
    color: #fff;
    text-shadow: 2px 0 0 #000, 0 -2px 0 #000, 0 2px 0 #000, -2px 0 0 #000;
    font-size: 300%;
}

h2 {
    text-align: center;
    margin-bottom: 2rem;
}
img {
    width: 100%;
}

ul {
    margin-left: 1rem;
}

/*
* Grid definitions
*/

.grid {
    width: 100%;
    max-width: 1200px;
    height: 60%;
    margin: auto;
    display: grid;
}

.grid > .topLeft {
    grid-column-start: 1;
    grid-column-end: 2;
}

.g2-3 {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 1fr);
}

.g2-3 > .bottomRight {
    grid-column-start: 2;
    grid-column-end: 3;
    grid-row-start: 3;
    grid-row-end: 4;
}

.g3-2 {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
}

/*
* Card Rules
*/

.card {
    background: linear-gradient(black, white, white);
    border-radius: 7px;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    /* padding: .5rem; */
}

.card * {
    color: #fff;
}

.card > * {
    padding: .5rem;
}

.card > img {
    margin-top: auto;
    position: relative;
    padding: 0;
    bottom: 0;
    border-radius: 0 0 7px 7px;
}

/*
* Class Rules
*/

.boxShadow {
    border-radius: 4px;
    padding: .4rem;
}

.fullScreen {
    height: 100vh;
}

.centered {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.mainColBG:active {
    background-color: rgb(var(--mainCol));
}