@font-face {
  font-family: "Open Sans";
  src: url(../fonts/OpenSans-Regular.ttf);
}
html {
  height: 100%;
  width: 100%;
  scroll-behavior: smooth;
}

body {
  display: grid;
  grid-template-columns: 100%;
  grid-template-rows: 100% 170% 100% 100%;
  height: 100%;
  background-image: url(../images/repeatingbackground.png);
  margin: 0;
}

canvas {
  display: block;
}

/*Nav*/
#menuIcon {
  position: fixed;
  margin: 20px;
  width: 50px;
  height: 50px;
  z-index: 100;
}

#sideNav {
  display: flex;
  flex-direction: column;

  background-color: rgba(102, 137, 177, 0.322);
  text-align: center;
  position: fixed;
  margin: 0;
  top: 0;
  left: 0;
  float: left;
  height: 100%;
  width: 0;
  z-index: 99;
  transition: width 800ms ease-in-out;
}

#sideNav b {
  font-size: 45px;
  color: #66fcf1;
}

#sideNav a {
  margin: 30px;
  color: rgb(255, 255, 255);
  text-decoration: none;
  font-size: 30px;
}

.navItem {
  visibility: hidden;
}

/*Social Links*/

.headContent {
  margin: 0px;
  position: fixed;
  width: 100%;
  height: 50px;
}

.siteLinksContainer {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
}

.siteLink img {
  margin: 20px;
  opacity: 0.3;
  width: 40px;
  height: 40px;
  transition: all 0.4s ease-in-out;
}

.siteLink img:hover {
  transform: scale(1.2);

  cursor: pointer;
}

/*Front Page*/
#mainContent {
  display: grid;
  grid-template-columns: 100%;
  grid-template-rows: repeat(3, 33.3%);

  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url(../images/background.webp);
  background-size: cover;
  background-repeat: no-repeat;
  

  z-index: -1;
}

#centerContent {
  align-self: center;
  grid-row-start: 2;
  grid-row-end: 3;
}

#centerContent p {
  color: white;
  font-family: "Open Sans", sans-serif;
  text-align: center;
  margin: 0;
}

#centerContent h1 {
  color: #66fcf1;
  text-align: center;
  font-family: "Open Sans", sans-serif;
  font-size: 160px;
  margin: 0;
  background: -webkit-linear-gradient(left, #66fcf1, #7cf3eb, #ffffff);

  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

#particles-js {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: -1;
}

/*project section*/
#projects {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  align-content: flex-start;
  height: 100%;
  width: 100%;
}

#projects h2 {
  font-size: 70px;
  margin: 0;
  font-weight: bolder;
  color: white;
  width: 100%;
  text-align: center;
  background: -webkit-linear-gradient(left, #66fcf1, #7cf3eb, #ffffff);

  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.projectwidget {
  width: 40%;
  height: 340px;
  margin: 25px;
  text-align: center;
  position: relative;
  z-index: 1;
}
.projectwidget :hover{
  
  transition: ease-in-out 0.3s;
  transform: translate(0,-30px);

}
.projectwidget p {
  color: white;
  position: absolute;
  text-align: center;
  top: 45%;
  left: 50%;
  font-size: 25px;
  transform: translate(-50%, -50%);
}

.projectwidget b {
  color: white;
  position: absolute;
  text-align: center;
  font-size: 45px;
  top: 25%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.projectwidget img {
  width: 100%;
  height: 100%;
}

/*experience section*/
#experience {
  height: 100%;
  width: 100%;
}

#experience h2 {
  color: white;
}

/*about section*/
#about {
  height: 100%;
  width: 100%;
}

#about h2 {
  color: white;
}

/* Responsive down sizing*/

@media (max-width: 730px) {
  #centerContent h1 {
    font-size: 120px;
  }

  #centerContent p {
    font-size: 20px;
  }
}

@media (max-width: 550px) {
  #centerContent h1 {
    font-size: 90px;
  }

  #centerContent p {
    font-size: 12px;
  }
}

@media (max-width: 460px) {
  #sideNav b {
    font-size: 35px;
  }

  #sideNav a {
    font-size: 20px;
  }
}
