/* 
Colour Palette
https://coolors.co/333333-5c5c5c-e5e5e5-25aae2-a1c6d7-ffde24-fff4a6
--black: #04212fff;
--grey-dark: #5c5c5cff;
--grey-light: #e5e5e5ff;
--blue-dark: #235970ff;
--blue: #25aae2ff;
--blue-light: #a1c6d7ff;
--yellow: #ffde24ff;
--yellow-light: #fff4a6ff;
--yellow-extra: #ffeb56ff;          
--yellow-header: #ffef86ff;
--green: #4ee2ad;
--red: #f07c7c;
*/

/* Global Styles */
/* Background set in html so that gallery doesn't interfere; from css-tricks "Perfect Full Page Background Image" */
html {
box-sizing: border-box;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
background: #5c5c5cff;
background: url(../img/Portfol.png) no-repeat center center fixed; 
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
}

*, *:before, *:after {
box-sizing: inherit;
}

body{
    color: #e5e5e5ff;
    margin: 0;
    padding: 0;
    font-family: 'Reem Kufi', sans-serif;
    text-rendering: optimizeLegibility;
    font-size: 15px;
    line-height: 1.5;
}

a{
    color: #25aae2ff;
    text-decoration: none;
}

a:hover{
    text-decoration: none;
}

h1{
    font-size: 36px;
    line-height: 1;
    text-transform: uppercase;
}

h1, h2, h4{
    margin: 0;
}

h3{
    text-align: center;
    margin-bottom: 0;
}

p{
    margin-top: 0;
}

.wrap_home{
    display: grid;
    max-width: 400px;
    grid-template-columns: minmax(auto, 4em) minmax(auto, auto) minmax(auto, 4em);
    margin: 0 auto;
    align-content: center;
    align-items: center;
    justify-items: center;
}

.wrap_home img{
    max-width: 2.5em;
}

.wrap{
    display: grid;
    grid-template-columns: repeat(3,1fr);
    margin: 0 auto;
    align-items: center;
    align-self: center;
}

.wrap img{
    max-width: 4em;
}

.wrap img:hover{
    max-width: 4em;
    transform: scale(1.05);
}

header{
    background: #FFEF86;
    color: #25aae2ff;
    width: 100%;
    padding-top: 20px;
	padding-bottom: 10px;
    text-align: center;
}

/* Resume */
.resume{
    text-align: center;
    margin: 0 auto;
    padding: 30px 0px 5px 0;
}

.btn {
    text-transform: uppercase;
    color: #25aae2ff;
    background: #fff4a6ff;
    text-decoration: none;
    padding: 6px;
    border: 2.5px solid #25aae2ff;
    border-radius: 30px;
    display: inline-block;
    position: relative;
    bottom: 20%;
}

.btn img{
    text-align: center;
    width: 15px;
    vertical-align: -1.5px;
}

.btn:hover {
    background: rgb(255, 235, 86);
}

.btn:focus {
    background: rgb(255, 235, 86);  
    transform: scale(1.01);
    box-shadow: 0 8px 15px rgba(0,0,0,0.3);
}

/* Project Links, thanks to Jhey! https://codepen.io/jh3y/pen/LYGaNby */

@media screen and (min-width: 719px){
    .home_contain {
    margin: 0 auto;
    margin-top: 15px;
    padding: 0 5px 0 5px;
    display: flex;
    align-self: center;
    align-items: center;
    justify-content: center;
    }

    .circle_container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    width: 920px;
    grid-gap: 7.5rem;
    }

    .circle_container .image {
    position: relative;
    padding-bottom: 100%;
    }

    .circle_container .image img {
    height: 100%;
    width: 100%;
    border-radius: 50%;
    object-fit: cover;
    left: 0;
    position: absolute;
    top: 0;
    }

    /* nth-of-type(2) applies to sample image */
    .circle_container .image img:nth-of-type(2) {
        filter: grayscale(1) brightness(80%);
    }

    /* Brighten image once it's clicked */
    .circle_container .image:active img:nth-of-type(2) {
        filter: brightness(100%);
    }

    /* Animation for showing sample */
    .circle_container .image img:nth-of-type(2) {
        clip-path: var(--clip-start);
        transition: clip-path 0.3s;
    }

    .circle_container .image:hover img:nth-of-type(2) {
        clip-path: var(--clip-end);
    }
}

@media screen and (max-width: 420px){
    h1{
        font-size: 10vw;
    }

    .illo{
        font-size: 8vw;
    }
}

@media screen and (max-width: 719px){
    .home_contain {
    margin: 0 auto;
    margin-top: 15px;
    padding: 0 2em 0 2em;
    display: flex;
    align-self: center;
    align-items: center;
    justify-content: center;
    }

    .circle_container {
    display: grid;
    width: 420px;
    grid-gap: 1.5rem;
    }
    
    .circle_container .image {
    position: relative;
    padding-bottom: 100%;
    }
    
    .circle_container .image img {
    height: 100%;
    width: 100%;
    border-radius: 50%;
    object-fit: cover;
    left: 0;
    position: absolute;
    top: 0;
    }

    /* nth-of-type(2) applies to sample image */
    .circle_container .image img:nth-of-type(2) {
        filter: grayscale(1) brightness(80%);
    }

    /* Brighten image once it's clicked */
    .circle_container .image:active img:nth-of-type(2) {
        filter: brightness(100%);
    }

    /* Animation for showing sample */
    .circle_container .image img:nth-of-type(2) {
        clip-path: var(--clip-start);
        transition: clip-path 0.3s;
    }

    .circle_container .image:hover img:nth-of-type(2) {
        clip-path: var(--clip-end);
    }
}

.circle_container .green_text{
    color: #4ee2ad;
    font-size: 24px;
    background: rgba(255,255,255, 90%);
    text-decoration: none;
    padding: 6px;
    border-radius: 10px;
    text-decoration: none;
    padding: 6px;
    border-radius: 10px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate( -50%, -50% );
    text-align: center;
}

.circle_container .red_text{
    color: #f07c7c;
    font-size: 24px;
    background: rgba(255,255,255, 90%);
    text-decoration: none;
    padding: 6px;
    border-radius: 10px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate( -50%, -50% );
    text-align: center;
}

/* Contact */
footer{
    color: #e5e5e5ff;
    display: flex;
    position: relative;
    max-width: 100%;
    z-index: 1;
    align-items: center;
    justify-content: center;
}

#circle{
    text-align: center;
    line-height: 25px; 
    /*line-height makes it so the text element is centered*/
    width: 25px;
    height: 25px;
    object-fit: cover;
    -moz-border-radius: 50%;
    -webkit-border-radius: 50%;
    border-radius: 50%;
}

.contact-list{
    list-style-type: none;
    padding: 0;
    display: flex;
    justify-content: center;
    text-align: center;
}

.contact-list a{
    padding: 15px;
    display: inline-block;
    display: flex;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
}

.contact-list img:hover, .contact-list a:focus, .contact-list a:active{
    box-shadow: 0 8px 8px rgba(0,0,0,0.3);
}

/* Case Studies */
.study{
    font-family: 'DM Sans', sans-serif;
    display: flex;
    justify-self: center;
    background: rgb(255, 253, 240);
    border: 3px solid #04212fff;
    border-radius: 30px;
    max-width: 800px;
    text-align: center;
    color: #235970;
    width: 85%;
    margin: 0 auto;
    margin-top: 0.3em;
    padding: 0 2em;
}

.study_body{
    display: inline-block;
}

.study_body img{
    border-radius: 5px;
    max-width: 80%;
}

.design_list{
    max-width: 250px;
    font-size: .8em;
    list-style-type: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3,1fr);
    column-gap: .2em;
    align-items: center;
    text-align: center;
}

.design_list a{
    display: inline-block;
    justify-items: center;
    margin-left: auto;
    margin-right: auto;
}

.design_list li:nth-of-type(2){
    background: rgba(255,255,255,.95);
    border: 2px solid #f07c7c;
    border-radius: 30px;
}

.design_list li:nth-of-type(2):hover{
    background: rgba(255,255,255);
}

.design_list img{
    max-width: 1em;
    max-height: 1em;
}

.design_list li{
    background: #fff4a6ff;
    border: 2px solid #25aae2ff;
    border-radius: 30px;
}
.design_list li:hover{
    background: rgb(255, 235, 86);
}

.design_list li:focus, .design_list li:active {
    transform: scale(1.01);
    box-shadow: 0 8px 15px rgba(0,0,0,0.3);
}