@font-face {
    font-family: 'FontAwesome';
    /*a name to be used later*/
    src: url('../fonts/fontawesome-webfont.ttf');
    /*URL to font*/
}

body {
    background-color: #222;
    /* font-family: 'FontAwesome'; */
    font-family: 'Open Sans', sans-serif;
}

#mainLayout {
    display: grid;
    grid-template-columns: auto;
    grid-template-columns: 10% 40% 40% 10%;
    justify-items: center;
    align-items: center;
    grid-template-rows: 1rem 15rem 1rem auto;
    grid-template-areas: ". . . ." ". company company ." ". . . ." ". projects projects .";
}

#company {
    grid-area: company;
    position: relative;
    display: grid;
    grid-template-areas: "companyLogo" "companyName" "companyDescription";
    grid-template-rows: 50% 30% 20%;
    justify-items: center;
    align-items: center;
    width: 100%;
    height: 100%;
    background-color: rgb(236, 236, 236)
}

#companyLogo {
    grid-area: companyLogo;
    height: 100%;
}

#companyLogo img {
    position: relative;
    height: 100%;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

#companyName h1 {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    margin-top: 0;
    margin-bottom: 0;
    font-size: 2rem;
    color: #689f47;
    font-weight: 800;
}

@media only screen and (max-width: 450px) {
    #companyName h1 {
        font-size: 2rem;
    }
}

@media only screen and (min-width: 451px) and (max-width: 600px) {
    #companyName h1 {
        font-size: 2.5rem;
    }
}

@media only screen and (min-width: 601px) and (max-width: 1200px) {
    #companyName h1 {
        font-size: 3rem;
    }
}

@media only screen and (min-width: 1201px) {
    #companyName h1 {
        font-size: 3.5rem;
    }
}

#companyName {
    grid-area: companyName;
    position: relative;
    width: 100%;
    height: 100%;
}

#companyDescription {
    grid-area: companyDescription;
    position: relative;
    width: 100%;
    height: 100%;
    color: black;
}

#companyDescription h2 {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    margin-top: 0;
    margin-bottom: 0;
    font-size: .75rem;
    font-weight: 800;
}

@media only screen and (max-width: 450px) {
    #companyDescription h2 {
        font-size: .8rem;
    }
}

@media only screen and (min-width: 451px) and (max-width: 600px) {
    #companyDescription h2 {
        font-size: 1.2rem;
    }
}

@media only screen and (min-width: 601px) and (max-width: 1200px) {
    #companyDescription h2 {
        font-size: 1.5rem;
    }
}

@media only screen and (min-width: 1201px) {
    #companyDescription h2 {
        font-size: 1.8rem;
    }
}

#navBar {
    grid-area: navBar;
    position: relative;
}

#projects {
    grid-area: projects;
    justify-items: center;
    align-items: center;
    position: relative;
    display: grid;
    /* grid-auto-flow: row; */
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    /* grid-template-rows: repeat(auto-fill, minmax(1200px,1fr)); */
}

/* @media only screen and (max-width: 800px) {
    #projects{
        grid-template-columns: 1fr;
    }
}

@media only screen and (min-width: 801px) and (max-width: 1200px) {
    #projects{
        grid-template-columns: 1fr 1fr;

    }
}

@media only screen and (min-width: 1201px) {
    #projects{
        grid-template-columns: 1fr 1fr 1fr;
    }
} */

.project {
    display: grid;
    width: 100%;
    height: 100%;
    justify-content: center;
    justify-items: center;
    grid-template-areas: ". projectName ." ". projectTimeline ." ". projectImage ." ". projectDescription ." ". . .";
    /* ". projectLinks ." */
    grid-template-columns: 5% 90% 5%;
    grid-template-rows: 15% 10% 50% 10% 10% 5%;
}

.projectName {
    grid-area: projectName;
    text-align: center;
    color: #689f47;
    font-size: 1.75rem;
}

.projectTimeline {
    grid-area: projectTimeline;
    text-align: center;
    margin: 0;
}

.projectImage {
    grid-area: projectImage;
    position: relative;
    cursor: pointer;
}

.projectImage img {
    position: relative;
    width: 100%;
    height: 100%;
}

.projectDescription {
    grid-area: projectDescription;
    position: relative;
    font-size: 1.5em;
}

@media only screen and (max-width: 800px) {
    .projectDescription {
        font-size: 1rem;
    }
}

@media only screen and (min-width: 801px) and (max-width: 1200px) {
    .projectDescription {
        font-size: 1.25rem;
    }
}

@media only screen and (min-width: 1201px) {
    .projectDescription {
        font-size: 1.5rem;
    }
}

.projectLinks {
    grid-area: projectLinks;
    justify-items: center;
    align-items: center;
    position: relative;
    display: grid;
    grid-auto-flow: row;
}

.box {
    background-color: #444;
    color: #fff;
    border-radius: 15px;
}

@keyframes fadein {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

