@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@300;400;500&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;500&display=swap');

*{
  max-width: 100vw;
}
html {
  scroll-behavior:smooth;
}
body{
  width: 100%;
  height: 100%;
  margin: 0;
  overflow-x: hidden;
  position: absolute;
  top: 0;
  left: 0;
}
li{
  text-align: left;
}
/* IMAGES */
.tech-img {
  max-height: 50px;
  max-width: 300px;
}
#profile-img{
  height: 200px;
  width: 200px;
  border-radius: 50%;
  padding: 10px;
}
.title-text  {
  text-shadow: 6px 6px 0px rgba(0,0,0,0.2);
}
h2 {
  text-shadow: 2px 2px 0px rgba(0,0,0,0.2);
}


/* FONTS */
.body-section {
  color: #5A6170;
  font-family: 'Raleway', sans-serif;
  max-width: 90vw;
  background-color:#FFFFFF;
  justify-self: center;

}
h1, h2, h3 {
  font-family: 'Open Sans', sans-serif;
}

/* GENERAL STYLES */
.grid-container {
  display: grid;
  grid-gap: 50px;
  background-color:#FFFFFF;
}

/* HEADER */
.header-section{
  display: flex;
  color: white;
  justify-content: space-between;
  background-image: linear-gradient(to right, #551138,#38A2D6 );
  padding: 5px;
  max-width: 100vw;
  max-height: 225px;
}
.page-title-logo{
  display: flex;
  flex-direction: row;
  align-content: flex-start;
}

.page-title{
  display:flex;
  flex-direction: column;
  align-content: flex-start;
}
.nav-container-full {
  visibility: visible;
}
.nav-container-side{
  overflow: hidden;
  visibility: hidden;
}

.nav-link {
  border-radius: 25px;
  margin: 5px;
  padding: 10px;
  text-decoration: none;
  font-weight: 500px;
  font-family: 'Open Sans', sans-serif;
  background-color: rgb(255, 255, 255,.2);
  color: white;
}
.nav-logo-links{
  display: flex;
  align-content:center;
  align-items: center;
  justify-items: center;
  justify-content: flex-end;
  margin-right: 15px;
}
.nav-logo-item{
  width: 32px;
  height: auto;
  margin: 20px;
}


/* LINKS */
a:hover {
  color: #551138;
}
.code-link {
  text-decoration: none;
}
.code-link:hover {
  color: #38A2D6
}
.logo-link {
  width: 64px;
  height: auto;
}



/* SECTION CONTAINERS GRID*/
.section-container {
  font-family: 'Open Sans', sans-serif;
  padding: 15px;
  border-radius: 25px;
  text-align: center;
}
.section-header {
  text-align: center;
}
/* KNOWLEDGE BASE SECTION */
.tech-img-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  justify-items: center;
  padding: 5px;
  align-items: center;
}




/* TECH IMAGE FLIP*/
.card-content {
  transform-style: preserve-3d;
  transition: transform 1s;
}
.flip-container:hover .card-content {
  transform: rotateY(360deg);

}








/* PROJECTS SECTION */
.projects-section {
  display: grid;
  grid-template-areas:
    "proj1"
    "proj2"
    "proj3"
    "proj4"
    "proj4"
    "proj5"
    "proj6";
}
#ecommerce-proj-article{
  grid-area: proj1;
}
#ratings-proj-article{
  grid-area: proj2;
}
#gw-proj-article {
  grid-area: proj3;
}
#weather-proj-article {
  grid-area: proj4;
}
#chat-proj-article {
  grid-area: proj5;
}
#task-proj-article {
  grid-area: proj6;
}
.project-section-article {
  display: grid;
  column-gap: 50px;
  grid-template-areas: "proj-text proj-image";
  grid-template-columns: auto 1fr;
}
.project-text-area {
  grid-area: proj-text;
}
.proj-img-area {
  grid-area: proj-image;
  height: auto;
  align-self: center;
  border-radius: 5px;
  min-width: 50vw;
}

/* RESIZE PROJECT PHOTO*/
button {
  border: none;
  background: none;
}
.button.image {
  cursor: pointer;
  z-index: 1;
}
.button.image:after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  border-radius: 5px;
  background: #016aba;
  opacity: 0;
  transition: opacity 0.25s ease-in-out;
}
.button.image:focus:after, .button.image:hover:after {
  opacity: 0.5;
}
.image img {
  max-width: 100%;
}
.image.large {
  transform: scale(1.75) translateX(-100px);
}
.image small {
  display: block;
  text-align: center;
  color: black;
  /* This is needed to fix a safari clipping issue */
  position: relative;
}
.image.large small {
  font-size: 110%;
}
.shadow {
  box-shadow: 0 8px 6px -6px black;
}

/* CONTACT SECTION */





/* SMALL SCREENS MEDIA QUERY*/
@media only screen and (max-width: 1080px) {

  .nav-container-side{
    visibility: visible;
  }
  .project-section-article {
    display: grid;
    grid-template-areas:
      "proj-text"
      "proj-image"
  }
  .project-text-area {
    grid-area: proj-text;
  }
  .proj-img-area {
    grid-area: proj-image;
    max-width: 80vw;
    height: auto;
    justify-self: center;
  }
  .nav-container-full {
    visibility: hidden;
  }
  .image.large {
    transform: scale(2);

  }
}

/*SMALL SCREEN SIDEBAR MENU*/
#sidebarMenu {
  height: fit-content;
  position: absolute;
  padding: 10px;
  right: 0;
  width: 250px;
  margin-top: 0px;
  transform: translateX(275px);
  transition: transform 250ms ease-in-out;
  background: linear-gradient(180deg, #38A2D6,#551138);
  color: white;
  border-radius: 12px;
}
.sidebarMenuInner{
  margin:0;
  padding:0;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  display: grid;
  grid-auto-flow: row;
}
.sidebarMenuInner li{
  list-style: none;
  color: #fff;
  text-transform: uppercase;
  font-weight: bold;
  padding: 20px;
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}
.sidebarMenuInner li span{
  display: block;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.50);
}
.sidebarMenuInner li a{
  color: #fff;
  text-transform: uppercase;
  font-weight: bold;
  cursor: pointer;
  text-decoration: none;
}
input[type="checkbox"]:checked ~ #sidebarMenu {
  transform: translateX(0);
}

input[type=checkbox] {
  transition: all 0.3s;
  box-sizing: border-box;
  display: none;
}
.sidebarIconToggle {
  transition: all 0.3s;
  box-sizing: border-box;
  cursor: pointer;
  position: absolute;
  z-index: 99;
  height: 100%;
  width: 100%;
  top: 30px;
  right: 20px;
  height: 30px;
  width: 30px;
}
.spinner {
  transition: all 0.3s;
  box-sizing: border-box;
  position: absolute;
  height: 3px;
  width: 100%;
  background-color: #fff;
}
.horizontal {
  transition: all 0.3s;
  box-sizing: border-box;
  position: relative;
  float: left;
  margin-top: 3px;
}
.diagonal.part-1 {
  position: relative;
  transition: all 0.3s;
  box-sizing: border-box;
  float: left;
}
.diagonal.part-2 {
  transition: all 0.3s;
  box-sizing: border-box;
  position: relative;
  float: left;
  margin-top: 3px;
}
input[type=checkbox]:checked ~ .sidebarIconToggle > .horizontal {
  transition: all 0.3s;
  box-sizing: border-box;
  opacity: 0;
}
input[type=checkbox]:checked ~ .sidebarIconToggle > .diagonal.part-1 {
  transition: all 0.3s;
  box-sizing: border-box;
  transform: rotate(135deg);
  margin-top: 8px;
}
input[type=checkbox]:checked ~ .sidebarIconToggle > .diagonal.part-2 {
  transition: all 0.3s;
  box-sizing: border-box;
  transform: rotate(-135deg);
  margin-top: -9px;
}
a:hover {
  color: #551138;
}
