/*** COMMON ELEMENTS ***/
html {
  scroll-behavior: smooth;
}

body {
  /* font-size: 1.5em; */
  font-family: 'Open Sans', sans-serif;
  margin: 0;
  padding: 0;
  color:black;
  background-color: white;
  text-align: center;
  display: flex;
  flex-direction: column;
}

p {
  font-size: 1.3em;
}

nav a {
  font-family: 'Montserrat', sans-serif;  
  font-size: 24px;
  font-weight: bold;
  color: #F5BDAA;
  display: block;
  float: right;
  margin: 0 auto;
  padding: 10px 25px;
}

.fixed {
  position:fixed;
  width: 100%;
}

/* unvisited link */
nav a:link {
  color: white;
}

/* visited link */
nav a:visited {
  color: white;
}

/* mouse over link */
nav a:hover {
  /* color: rgb(61,191,242); */
  color: #F6800E;
}

a {
  display: inline-block;
  padding: 10px;
  text-decoration: none;
  text-transform: uppercase;
}



h2 {
  font-size: 2em;
  font-weight: bold;
  font-family: 'Montserrat','Domine', serif;
  display: block;
}

.image {
  background: url('https://res.cloudinary.com/dcagc4c0j/image/upload/v1572747969/cosmos_tkawbd.jpg') no-repeat center fixed;
  padding-top: 0;
  padding-bottom: 25px;
  margin: 0 auto;
  height: 100vh;
  /* height: 100%; */
  background-size: cover;
  /* overflow: hidden; */
}

.image img {
  height: 40%;
  width: 100%;
}


/*** ABOUT SECTION ***/

li {
  font-size: 26px;
}

#about {

  display: grid;
  grid-template-columns: 30% 70%;
}

#about h2 {
  margin-bottom: 20px;
}

#about p {
  margin: 12vh 15vh 5vh 0;
  text-align: start;
}

#about-img-div {
  height: 25vh;
  background-image: url('./MyEmoji1.gif');
  background-repeat: no-repeat;
  background-size: contain;
  background-position:center;

}
/*** SKILLS SECTION ***/
#skills {
  display: block;
  margin: 0 auto;
  padding: 20px;
  text-align: center;
}
#skills h2 {
  margin-top: 0;
  padding-top: 0;
}

.skill-icons {
  display:flex;
  justify-content: center;
  flex-wrap: wrap;
}

.skill-icons img {
  height: 150px;
  width: 150px;
  margin: 1em;
}

/*** PROJECTS SECTION ***/
#projects {
  text-align: center;
  /* margin-top: 15px;
  padding-top: 10px; */
  padding-bottom: 20px;
  min-height: 100vh;
  /* display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center; */
  display: grid;
  grid-template-columns: 1fr 1fr;
}

#projects-header {
  /* padding: 10px; */
  margin-top: 10vw;
  margin-bottom: 2vw;
}

.project-div {
  display: flex;
  flex-direction: column;
  align-items: center;
  
}


.project-div h3 {
  margin-top: 0;
}



.aboutpic {
  max-height: 200px;
  max-width: 200px;
}
.projpic {
  position: relative;
  display: inline-block;
  width: 420px;
  height: 290px;
  margin: 30px;
  padding: 0;
  border: 3px solid black;
  /* opacity: .8; */
/*GrayScale*/
  -webkit-filter: grayscale(100%);
	filter: grayscale(100%);
	-webkit-transition: .3s ease-in-out;
	transition: .3s ease-in-out;
}


.project-div p {
  display: inline-block;
  margin-bottom: 0;
  font-size: 1.3em;
}


.projpic:hover {
  transform: scale(1.15); /* (115% zoom - Note: if the zoom is too large, it will go outside of the viewport) */
  /* opacity: 1; */

  /*GrayScale*/

	-webkit-filter: grayscale(0);
	filter: grayscale(0);
}

/* 3D Transform */
.tdimension, .tdimension2, .tdimension3, .tdimension4, .tdimension5, .tdimension6 {
  width: 450px;
  height: 420px;
	margin: 0 auto;
	perspective: 1000px;
}

.tdimension a {
	display: block;
	width: 100%;
	height: 100%;
	background: url("cocktail-preview.png");
	background-size: cover;
	transform-style: preserve-3d;
	transform: rotateX(70deg);
  transition: all 0.8s;	

}

.tdimension2 a {
	display: block;
	width: 100%;
	height: 100%;
	background: url("photo-preview.png");
	background-size: cover;
	transform-style: preserve-3d;
	transform: rotateX(70deg);
  transition: all 0.8s;	
}

.tdimension3 a {
	display: block;
	width: 100%;
	height: 100%;
	background: url("QCSC.png");
	background-size: cover;
	transform-style: preserve-3d;
	transform: rotateX(70deg);
  transition: all 0.8s;	
}

.tdimension4 a {
	display: block;
	width: 100%;
	height: 100%;
	background: url("travelseeker.png");
	background-size: cover;
	transform-style: preserve-3d;
	transform: rotateX(70deg);
  transition: all 0.8s;	
}

.tdimension5 a {
	display: block;
	width: 100%;
	height: 100%;
	background: url("tartine.png");
	background-size: cover;
	transform-style: preserve-3d;
	transform: rotateX(70deg);
  transition: all 0.8s;	
}

.tdimension6 a {
	display: block;
	width: 100%;
	height: 100%;
	background: url("gifthorse.png");
	background-size: cover;
	transform-style: preserve-3d;
	transform: rotateX(70deg);
  transition: all 0.8s;	
}

.tdimension a p, .tdimension2 a p, .tdimension3 a p, .tdimension4 a p, .tdimension5 a p, .tdimension6 a p{
  opacity: 0;
}

.tdimension:hover a p, .tdimension2:hover a p, .tdimension3:hover a p, .tdimension4:hover a p, .tdimension5:hover a p, .tdimension6:hover a p{
  opacity: 1;
  margin-top: 260px;
  font-style: italic;
}

.tdimension:hover a,.tdimension2:hover a, .tdimension3:hover a,.tdimension4:hover a, .tdimension5:hover a, .tdimension6:hover a {
	transform: rotateX(20deg); 	
}	


.tdimension a:after, .tdimension2 a:after, .tdimension3 a:after, .tdimension4 a:after, .tdimension5 a:after, .tdimension6 a:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 40px;
    background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.1));    
   	transform: rotateX(90deg);
    transform-origin: bottom;
}


/*** CONTACT SECTION ***/
form {
  background-color:lightgrey;
  margin: 0 auto 0 50%;
}

form h2 {
  margin: 10px;
}
#contact-div {
  background: url('./contact1.jpeg') no-repeat center fixed;
  background-size: cover;
  
  display:flex;
  flex-direction: column;
  justify-content: center;
  
  height: 90vh;
}

#inputs-div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 0 auto;
  width: 40vw;
}


/* Style inputs with type="text", select elements and textareas */
input {
  width: 100%; /* Full width */
  height: 35px;
  padding: 10px; /* Some padding */ 
  margin: 10px;
  border-radius: 4px; /* Rounded borders */
  box-sizing: border-box; /* Make sure that padding and width stays in place */
  opacity: 0.6;
  cursor: pointer;
} 

textarea {
  width: 100%;
  height: 140px;
  padding: 10px 20px;
  margin: 10px;
  box-sizing: border-box;
  resize: none;
  border-radius: 4px;
  opacity: 0.6;
  cursor: pointer;
}

/* Style the submit button with a specific background color etc */
input[type=submit] {
  background-color: #818BA6;
  color: black;
  /* padding: 19px 20px; */
  border: none;
  border-radius: 4px;
  cursor: pointer;
  margin: 10px;
  width: 30%;
  height: 10%;
  margin: 10px auto;
  opacity: 0.6;
  transition: 0.3s;
  font-size: .5em;
}

/* When moving the mouse over the submit button, add a darker green color */
input:hover, textarea:hover {
  opacity: 1;
}

footer {
  text-align: center;
  padding: 0;
  margin: 0;
  height: 10vh;
  background-color: white;
}

#footerdivs {
  display: inline;
  margin: 0 auto;
  vertical-align: 0%;
}

footer img {
  padding: 10px;
  max-width: 50px;
  max-height: 50px;
}


/* MEDIA QUERY FOR SMARTPHONES */
@media only screen 
  and (max-width: 560px){
    html {
      font-size: 12px;
    }
    h1 {
      font-size: 1.5em;
      padding: 0;
    }
    p {
      font-size: 16px;
    }

    nav a {
      font-size: 16px;
    }

    .image {
      background: url('https://res.cloudinary.com/dcagc4c0j/image/upload/v1572748103/cosmos-phone_s6x3dk.jpg') no-repeat center fixed;
      padding-bottom: 15px;
    }

    #about {
      display: block;
      margin: 0 auto;
      padding-top: 0;
      padding-bottom: 15px;
      text-align: center;
    }

    #about p {
      margin: 5vh;
    }

    #skills {
      padding: 0;
    }

    .skill-icons img {
      height: 90px;
      width: 90px;
    }

    #projects {
      text-align: center;
      margin-top:10px;
      padding-top: 10px;
      padding-bottom: 10px;
      /* background-color: #C6E5FF; */
      height: 100%;
    }

    .projpic{
      width: 80%;
      margin: 0 auto;
    }
    .tdimension, .tdimension2, .tdimension3, .tdimension4, .tdimension5, .tdimension6 {
      width: 300px;
      height: 300px;
      margin: 0 auto 20px auto;
      perspective: 1000px;
    }
    .tdimension a, .tdimension2 a, .tdimension3 a, .tdimension4 a, .tdimension5 a, .tdimension6 a {
      transform-style: flat;
      transform: rotateX(0deg);
    }
    
    
    .tdimension a p, .tdimension2 a p, .tdimension3 a p, .tdimension4 a p, .tdimension5 a p, .tdimension6 a p{
      opacity: 0;
    }
    
    .tdimension:hover a p, .tdimension2:hover a p, .tdimension3:hover a p, .tdimension4:hover a p, .tdimension5:hover a p, .tdimension6:hover a p {
      opacity: 1;
      margin-top: 210px;
      font-style: italic;
    }

    #inputs-div {
      width: 70vw;
    }

    form {
      margin: 0 auto;
    }

    footer img {
      padding: 5px;
      max-width: 40px;
      max-height: 40px;
    }

  }

/* MEDIA QUERY FOR TABLETS */
  @media only screen and (min-width: 560px)
  and (max-width: 768px) {
    html {
      font-size: 12px;
    }

    .image {
      background: url('https://res.cloudinary.com/dcagc4c0j/image/upload/v1572748040/cosmos-media_shqxr9.jpg') no-repeat center fixed;
      padding-bottom: 15px;
    }

   p {
      font-size: 20px;
    }

    h1 {
      font-size: 1.5em;
      padding: 0;
    }

    li {
      font-size: 20px;
    }

    nav a {
      font-size: 20px;
      padding: 6px 15px;
    }

    #about {
      display: block;
      margin: 0 auto;
      padding-top: 0;
      padding-bottom: 15px;
      text-align: center;
    }

    #about p {
      margin: 5vw;
    }

    .skill-icons img {
      height: 110px;
      width: 110px;
    }

    #projects {
      text-align: center;
      margin-top:10px;
      padding-top: 10px;
      padding-bottom: 10px;
    }

    .project-div p {
      font-size: 20px;
      margin-bottom: 20px;
    }

    .projpic{
      margin: 0;
    }

    .tdimension a, .tdimension2 a,  .tdimension3 a, .tdimension4 a,  .tdimension5 a, .tdimension6 a {
      transform-style: flat;
      transform: rotateX(0deg);
    }

    #inputs-div {
      width: 60vw;
    }

    form {

      margin: 0 auto 0 30%;
    }
  }

  /* MEDIA QUERY FOR SMALL DESKTOP WIDTH */
  @media only screen and (max-width: 1096px) {
    #projects {
      display: flex;
      flex-direction: column;
    }
  }