/* Universal */

:root {
    --black: rgb(34, 34, 34);
    --white: rgb(247, 243, 243);
    --main-font: 'Roboto', sans-serif;
    --secondary-font: 'Roboto Mono', monospace;
}

/* width */
::-webkit-scrollbar {
    width: 5px;
  }
  
  /* Track */
  ::-webkit-scrollbar-track {
    background: #adadad;
  }
  
  /* Handle */
  ::-webkit-scrollbar-thumb {
    background: #888;
  }
  
  /* Handle on hover */
  ::-webkit-scrollbar-thumb:hover {
    background: #555;
  }

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    color: var(--black);
}

html { 
    font-size: calc(1em + 1vw);
    font-family: var(--main-font); 
}


body {
	background: linear-gradient(-45deg, #ffa787, #DE818E, #EA9AF5, #9D81DE, #7d9ffc);
	background-size: 400% 400%;
	animation: gradient 10s ease infinite;
}

@keyframes gradient {
	0% {
		background-position: 0% 50%;
	}
	50% {
		background-position: 100% 50%;
	}
	100% {
		background-position: 0% 50%;
	}
}

ul {
    list-style: none;
}

/* Content */

div.intro {
    height: 100vh;
    width: 75%;
    margin: 0 auto;
}

article.intro-text {
    padding-top: 25%;
    display: grid;
    grid-template-columns: repeat(2,1fr);
}

h1.greeting {
    font-size: 8em;
    justify-self: start;
    place-self: center;
}

p.blurb {
    justify-self: end;
    place-self: center;
}

span.language-tag {
    font-family: var(--secondary-font);
    background-color: rgba(204, 204, 204, .4);
    padding: 0 4px;
    border-radius: 5px;
}

div.project-gallery {
    padding: 0 50px;
    width: 90%;
    min-height: 100vh;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2,1fr);
    grid-template-rows: auto 1fr 1fr;
    gap: 10px;
}

.project-title {
    grid-column-start: span 2;
    
}

.subheading {
    text-align: center;
    font-size: 2rem;
    padding-bottom: 20px;
    text-decoration: underline;
}

div.project {
    place-self: center;
    position: relative;
}

div.project-overlay-text {
    position: absolute;
    top: 0;
    border-radius: 5px;
    height: 98%;
    width: 100%;
    background-color: var(--black);
    opacity: 0;
    transition: .6s ease;
    text-align: center;
}

div.project-overlay-text h6,
div.project-overlay-text p,
div.project-overlay-text em {
    color: var(--white);

}

div.project-overlay-text:hover {
    opacity: 1;
}

.project-takeaways {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 10px;
    width: 80%;
    margin: 0 auto;
}

.project-takeaways h6 {
    font-size: .62rem;
    padding: 5px 0;
    text-decoration: underline;
}

.project-takeaways p {
    font-size: .6rem;
}


div.project img {
    border-radius: 5px;
    width: 100%;
}

footer {
    height: 100vh;
}

.about {
    /* margin: 0 auto; */
    height: 100%;
    /* width: 75%; */
    position: relative;
}

.about-text {
    margin: 0;
    position: absolute;
    width: 70%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -60%);
    text-align: center;
}

.social {
    position: absolute;
    width: 70%;
    bottom: 0;
    left: 50%;
    transform: translate(-50%, -50%);
}

.social ul {
    display: flex;
    width: 25%;
    margin: 0 auto;
    background-color: rgba(247, 247, 243, 0.6);
    border-radius: .5rem;
    padding: 10px;
}

.social ul li img {
    max-width: 100%;
    padding: 10px;
}

@media screen and (max-width: 1440px) {
    div.intro {
        width: 90%;
    }

    div.project-gallery {
        padding: 0 10px;
        width: 100%;
        min-height: 100vh;
        /* margin: 0 auto; */
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto repeat(4, auto);
        /* gap: 10px; */
    }

    div.project-gallery a {
        width: 100%;
        margin: 0 auto;
        /* grid-column: 1/2; */
    }
    
    .project-title {
        grid-column: 1/3;
    }
}

@media screen and (max-width: 900px) {
    div.intro {
        width: 100%;
    }

    html {
        font-size: calc(1em + 1.5vw);
    }

    div.intro {
        width: 100%;
    }

    article.intro-text {
        padding: 0;
        height: 100%;
    }

    h1.greeting,
    p.blurb {
        width: 100%;
        text-align: center;
    }

    h1.greeting {
        font-size: 7rem;
    }

    div.project-gallery {
        padding: 0 10px;
        width: 100%;
        min-height: 100vh;
        /* margin: 0 auto; */
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: auto repeat(4, auto);
        gap: 20px;
    }

    div.project-gallery a {
        width: 90%;
        margin: 0 auto;
        /* grid-column: 1/2; */
    }
    
    .project-title {
        grid-column: 1/2;
    }
    
    footer {
        height: 100vh;
    }
    
    .about {
        /* margin: 0 auto; */
        height: 100%;
        /* width: 75%; */
        position: relative;
    }
    
    .about-text {
        margin: 0;
        position: absolute;
        width: 90%;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -60%);
        text-align: center;
    }
    
    .social {
        position: absolute;
        width: 100%;
        bottom: 0;
        left: 50%;
        transform: translate(-50%, -20%);
    }
    
    .social ul {
        display: flex;
        width: 30%;
        margin: 0 auto;
        background-color: rgba(247, 247, 243, 0.6);
        border-radius: .5rem;
        padding: 5px;
    }
    
    .social ul li img {
        max-width: 100%;
        padding: 10px;
    }

}

@media screen and (max-width: 550px) {
    html {
        font-size: calc(1em + 2vw);
    }

    div.intro {
        width: 100%;
    }

    article.intro-text {
        grid-template-columns: 1fr;
        grid-template-rows: 30% 40%;
    }

    h1.greeting,
    p.blurb {
        width: 100%;
        text-align: center;
    }

    h1.greeting {
        font-size: 7rem;
    }

    div.project-gallery {
        padding: 0 10px;
        width: 100%;
        min-height: 100vh;
        /* margin: 0 auto; */
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: auto repeat(4, 1fr);
        gap: 10px;
    }

    div.project-gallery a {
        width: 100%;
        grid-column: 1/2;
    }
    
    .project-title {
        grid-column-start: 1;
    }
    
    footer {
        height: 100vh;
    }
    
    .about {
        /* margin: 0 auto; */
        height: 100%;
        /* width: 75%; */
        position: relative;
    }
    
    .about-text {
        margin: 0;
        position: absolute;
        width: 90%;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -60%);
        text-align: center;
    }
    
    .social {
        position: absolute;
        width: 100%;
        bottom: 0;
        left: 50%;
        transform: translate(-50%, -20%);
    }
    
    .social ul {
        display: flex;
        width: 50%;
        margin: 0 auto;
        background-color: rgba(247, 247, 243, 0.6);
        border-radius: .5rem;
        padding: 5px;
    }
    
    .social ul li img {
        max-width: 100%;
        padding: 10px;
    }

}

/* MODAL TESTING SITE - Continue from 12:15 */

.modal-outer {
    display: grid;
    position: fixed;
    z-index: 2;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100vw;
    background-color: rgba(247, 247, 243, 0.6);
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s;
}

.modal-inner {
    background-color: var(--black);
    padding: 20px;
    height: 100%;
    width: 100%;
    /* border-radius: .5rem;     */
}

.inner-styling {
    display: grid;
    height: fit-content;
    margin: auto;
    grid-template-columns: 1fr;
    grid-template-rows: repeat(4, auto);
    gap: 10px;
}

.modal-outer.open {
    opacity: 1;
    pointer-events: all;
}

.modal-btn {
    justify-self: end;
    background-color: rgba(204, 204, 204, .0);
    color: var(--white);
    border-radius: 15px;
    border: 1px solid var(--white);
    width: 100px;
    height: 30px;
    padding: 3px;
    text-align: center;
    font-family: var(--secondary-font);
}

.modal-inner img {
    margin: 0 auto;
    max-width: 100%;
}

.modal-link {
    color: var(--white);
    text-align: center;
    font-size: .6rem;
    padding-bottom: 10px;
}

.modal-inner div.project-overlay-text {
    position: relative;
    margin: 0 auto;
    height: 100%;
    width: 80%;
    background-color: var(--black);
    opacity: 1;
    transition: .3s ease;
    text-align: center;
}


.modal-inner .project-takeaways h6 {
    font-size: .6rem;
    padding: 3px 0;
    text-decoration: underline;
}

.modal-inner .project-takeaways p {
    font-size: .5rem;
}

/* Length of the text is changing the width of the modal, need to do something */