/*
Colors-
Main: #228be6
Tint:#339af0
Grey: #868e96
Dark Grey:#495057
*/

/*Home and layout*/

/* add https://simplecss.org/ maybe */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html{
  overflow-x: hidden;
}

body {
  font-family: 'Open Sans', sans-serif;
  color: #868e96;
  min-height: 100vh;
  position: relative;
  border-bottom: solid 10px #228be6;
  padding-bottom: 220px;
  overflow-x: hidden;
  /* background-color: #f2f2f2; */
}

.container{
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 10px;
}

.container-2{
  max-width: 1200px;
  margin: 0 auto;
  margin-top: 55px;
  padding: 0 10px;
}

.inner-container{
  padding: 10px;
  display: grid;
  grid-template-columns: 1fr 150px;
  margin-top: 55px;
  column-gap: 25px;
}

.inner-container-2{
  padding: 10px;
}

.inner-container-header{
  padding: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header{
  background-color: #228be6;
  width: 100%;
}

.header-container{
  margin: 0 auto;
  max-width: 1200px;
  padding: 0 10px;
  position: relative;
}

p {
  font-size: 22px;
  line-height: 1.7;
}

h1 a{
  color: white;
}

h2{
  color: #495057;
  font-size: 30px;
}

.name{
  margin: 25px 0px 25px 0px;
  line-height: 1.1;
  letter-spacing: 1px;
}

ul {
  list-style-type: none;
}

a:link, a:hover{
  text-decoration: none;
}

.nav-li{
  display: inline-block;
}

.nav-link:link, .nav-link:visited{
  padding: 5px 10px;
  text-decoration: none;
  color: white;
  font-size: 30px;
  letter-spacing: 1px;
  border-radius: 5%;
  margin-right: 20px;
  font-weight: 500;
  transition: all 0.2s;
}

.nav::last-child{
  margin-right: 0px;
}

.nav-link:hover, .nav-link:active{
  /* background-color: #339af0; */
  font-size: 36px;
  margin-right: 10px;
}

.opening-header{
  font-size: 50px;
  margin-bottom: 30px;
  color: #339af0;
}

.sub-header {
  font-size: 40px;
  margin-top: 70px;
  margin-bottom: 30px;
  color:#339af0;
}

aside{
  grid-column: 2/3;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-text{
  font-size: 20px;
  padding-bottom: 10px;
  position: absolute;
  bottom: 0;
  margin-top: 20px;
}

.info-box{
  /* background-color: #339af0; */
  margin-top: 10px;
}

.skills-box{
  margin-top: 30px;
  display: flex;
  justify-content: start;
  align-items: center;
  gap: 50%;
  margin-bottom: -30px;
  flex-wrap: wrap;
}

.skill-ul{
  list-style-type: disc;
  margin-left: 30px;
  margin-top: 15px;
}

.skill-li{
  font-size: 18px;
  line-height: 1.7;
}

.experience-ul{
  list-style-type: disc;
  line-height: 1.6;
  font-size: 22px;
  margin-left: 40px;
}

.experience-li{
  margin-bottom: 22px;
}

.experience-li-indent{
  margin-top: -20px;
  margin-left: 20px;
  margin-bottom: 15px;
  font-size: 20px;
  list-style-type: none;
}

.experience-li:last-child{
  margin-bottom: 0;
}

/* Projects Page */

.project-column{
  margin-top: 90px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-row-gap: 40px;
  grid-column-gap: 100px;
  align-items: center;
  justify-content: center;
}

.project{
  flex-shrink: 1;
  /* flex-basis: 500px; */
  /* width: 500px;
  height: 700px; */
  max-width: 600px;
  max-height: 600px;
  border-radius: 3%;
  position: relative;
}

.project-text-box{
  visibility: hidden;
  position: absolute;
  top: 0;
  right: 10px;
  bottom: 0;
  left: 0;
  opacity: 0;
  transition: opacity .2s, visibility .2s; 
}

.project-title{
  font-size: 36px;
  margin-left: 20px;
  margin-top: 15px;
  
}

.description{
  font-size: 24px;
  margin-left: 20px;
  margin-top: 10px;
}

.project:hover .project-text-box{
  visibility: visible;
  color: white;
  opacity: 1;
  background-color: #339bf06c;
  border-radius: 3%;
}

.project-img{
  border-radius: 3%;
  width: 100%;
  height: 100%;
  alt: 'picture of pong game';
  border: solid #228be6 15px;
}

.img {
  width: 20%; 
  height: 20%; 
  border: none;
}

/* Contact Page */

.contact{
  margin-top: 60px;
  border: border-collapse;
}

.contact-stuff{
  width: 100%;
}

.contact-label{
  font-size: 32px;
  font-weight: bold;
}

.contact-value{
  font-size: 32px;
  margin-bottom: 32px;
}

.hub:link, .hub:visited{
  text-decoration: underline;
}

.underline-link {
  text-decoration: underline !important;
}

.mt-10 {
  margin-top: 10px;
}

.resume{
  margin-top: 70px;
}

/* Mobile nav */

.name, .nav-header-ul{
  animation: none;
}

.btn-mobile-nav{
  border: none;
  background: none;
  display: none;
  cursor: pointer;
  z-index: 9999;
}

.nav-icon{
  height: 48px;
  width: 48px;
  color: #fff;
}

.close-icon{
  display: none;
}

/* @keyframes slideFromLeft {
  0% {
    transform: translate(-10%);
    opacity: 10%;
  }
  100%{
    transform: translate(0%);
    opacity: 1;
  }
}

h1, h2, h3, p, ul, .project, .skill-div, table, aside, .pdf{
  animation: 0.8s ease-out 0s 1 slideFromLeft;
} */




/* Media Queries */

@media only screen and (max-width: 1024px){
   nav{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    /* background-color: #fcfcfc; */
    background-color: #228be6;
    /* opacity: 1; */
    pointer-events: none;
    visibility: hidden;
    transition: all 0.4s;
    border-bottom: solid 4px #228be6;
    transform: translateX(100%);
    z-index: 2;
    /* transition: none; */
  }

  .nav-header-ul {
    background-color: #fcfcfc;
  }

  .nav-open nav{
    transition: all 0.4s;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0%);
    padding: 0;
  }

  /* .nav-open .inner-container-header {
    height: 100vh;
    transition: all 0.4s;
    opacity: 1;
    visibility: visible;
    transform: translateX(0%);
  } */

  .nav-close nav{
    transition: all 0.4s;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0%);
  }

  .nav-header-ul{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items:flex-end;
    margin-top: 100px;
    /* gap: 20px; */
  }

  .nav-li{
    display: block;
    width: 100%;
  }

  .nav-link:link, .nav-link:visited{
    color: #333;
    font-size: 60px !important;
    padding-bottom: 20px;
    border-top: solid 2px #228be6;
    display: block;
    border-radius: 0;
  }

  .btn-mobile-nav{
    display: block;
  }

  .nav-open .menu-icon{
    display: none;
  }

  .nav-open .close-icon{
    display: block;
  }

  .nav-open .nav-icon{
    color: #333;
  }

  .project-column{
    grid-template-columns: 1fr;
    place-items: center;
  }

  .project{
    /* flex-shrink: 1; */
    /* flex-basis: 500px; */
    /* width: 500px;
    height: 700px; */
    max-width: 100%;
    max-height: 100%;
    border-radius: 3%;
    width: auto;
    position: static;
    background-color: none;
    /* pointer-events: none; */
  }


  .project-text-box{
    position: static;
    color: #333;
    opacity: 1;
    visibility: visible;
  }


  .project-img{
    border-radius: 3%;
    width: 100%;
    height: 100%;
    border: solid #228be6 15px;
  }
}

/* mobile device media query */
@media only screen and (max-width: 620px){
  .container{
    column-gap: 0;
    grid-template-columns: 2fr 1fr;
    margin-left: auto - 20px;
  }
 
  .inner-container{
    display: block;
  }
  aside{
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: -70px;
  }
  .git{
    text-align: center;
    margin: 0 auto;
    margin-top: 20px;
    font-size: 28px;
  }
  h2{
    font-size: 20px;
    margin-left: -10px;
    align-self: start;
  }

  aside a img{
    width: 120px;
    height: 120px;
  }

  .nav-link:link, .nav-link:visited{
    font-size: 18px;
    margin-right: 0;
    
  }
  .nav-link:hover, .nav-link:active{
    font-size: 18px;
    margin-right: 0;
    display: block;
    
    
  }
  .nav-li{
    margin-bottom: 5px;
    display: block;

  }
  .experience{
    padding-bottom: 60px;
  }
  p{
    margin-left: 20px;
  }
  h1, h2, h3{
    margin-left: 20px;
  }
  .pdf{
    height: 400px;
    width: 200px;
  }

  .nav-header-ul{
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .skill-li{
    margin-left: 22px;
    font-size: 20px;
  }

  .skill-li:last-child{
    margin-bottom: 12px;
  }
  td{
    font-size: 14px;
  }
  .contact-value{
    font-size: 22px;
  }
  .resume{
    font-size: 18px;
  } 
}
