/* general */
:root {
  font-size: 16px;
  font-family: "Open Sans";
  --text-primary: #c5c6c7;
  --text-secondary: #ececec;
  --bg-primary: #1f2833;
  --bg-secondary: #141418;
  --transition-speed: 600ms;
}

body {
  color: #c5cbe3;
  background-color: #0b0c10;
  margin: 0;
  padding: 0;
}

img {
  border-radius: 8px;
  width: 100%;
}

.logo {
  margin-bottom: 100%;
}

a {
  /* -webkit-transition: .3s all;
  -o-transition: .3s all;
  transition: .3s all; */
  color: #c5cbe3;
}
a:hover,
a:focus,
a:active {
  color: #66fcf1;
  text-decoration: none;
}
body::-webkit-scrollbar {
  width: 0.25rem;
}

body::-webkit-scrollbar-track {
  background: #1e1e24;
}

body::-webkit-scrollbar-thumb {
  background: #45a29e;
}

.main {
  margin-left: 6rem;
  padding: 1rem;
}

.text-area {
  line-height: 22px;
  font-size: 20px;
  font-family: "PT Sans", sans-serif;
  font-weight: 400;
  padding-right: 10%;
  padding-left: 10%;
}

.text-area-ab {
  line-height: 22px;
  font-family: "PT Sans", sans-serif;
  font-weight: 400;
  font-size: 20px;
  padding-right: 20%;
  padding-left: 20%;
  margin-top: 2%;
  justify-content: center;
}

.margin-it {
  margin-bottom: 20%;
}

/* navbar */

.navbar {
  position: fixed;
  background-color: var(--bg-primary);
  width: 6rem;
  height: 100vh;
  transition: width 600ms ease;
  opacity: 0.8;
  display: flex;
  flex-direction: column;
}

.navbar-nav {
  font-size: 20px;
  color: #909096;
  margin-bottom: 15px;
  display: block;
  line-height: 51px;
  height: 50%;
  position: relative;
  text-decoration: none;
  flex-direction: column;
}

.nav-item {
  width: 100%;
}

.nav-icon {
  display: none;
}
.link-text {
  font-weight: 200;
}
.link-text:hover {
  text-shadow: #66fcf1;
  -webkit-filter: drop-shadow(0 0.5rem 0.75rem #def7f5);
  filter: drop-shadow(0 0.5rem 0.75rem #def7f5);
}

.logo-text {
  text-shadow: #66fcf1;
  -webkit-filter: drop-shadow(4px 1px 4px #def7f5);
  filter: drop-shadow(4px 1px 4px #def7f5);
}

/* home */

.text-box {
  text-align: center;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.site-hero,
.site-hero .row {
  height: 100vh;
}
.background-image {
  overflow: hidden;
  background-image: url("/images/logo5.png");
  background-position: 50% 50%;
  width: 100%;
  background-size: cover;
}

.wrapper {
  padding: 10px;
}

.site-hero h1 {
  font-weight: 200;
  margin-bottom: 20px;
  display: block;
}
.site-hero h1 strong {
  font-weight: 800;
}
@media (min-width: 768px) {
  .site-hero h1 {
    font-size: 70px;
  }
}
.site-hero h1,
.site-hero .lead {
  font-weight: 200;
}
.site-hero .lead {
  line-height: 2;
}
.site-hero .site-subheading {
  max-width: 640px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.5);
}

.heading {
  text-align: center;
  font-family: "PT Sans", sans-serif;
  font-weight: 700;
  line-height: 50px;
  margin-top: 0;
}

/* about */
.grid-ab {
  display: grid;
  height: 100vh;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 2fr 1fr;
}

.grid1-ab {
  grid-area: 1 / 1 / 2 / 4;
}

.grid2-ab {
  grid-area: 2/ 2 / 3 / 3;
}

.img-icon-ab {
  width: 100%;
  margin-bottom: 6rem;
}

/* skills */
.img-icon {
  margin-right: 2em;
  -webkit-filter: drop-shadow(1px 1px 2px #222);
  filter: drop-shadow(1px 1px 2px #222);
  border-radius: 2px;
  z-index: 10;
  transition: all 0.3s;
  position: absolute;
  justify-content: center;
}

#m,
#e,
#r,
#n {
  margin-top: 6em;
}
#d,
#js,
#cpp {
  margin-top: 2em;
}

.img-icon:hover {
  transform: scale(1.1) translateY(0.2rem);
  -webkit-filter: drop-shadow(1.5px 1.5px 4px #66fcf1);
  filter: drop-shadow(1.5px 1.5px 4px #66fcf1);
  z-index: 25;
}

.grid-container {
  display: grid;
  height: 100vh;
  /* grid-template-columns: repeat(auto-fit, minmax(19rem, 2fr)); */
  grid-template-columns: 1.5fr 2fr;
  grid-template-rows: 1fr 1fr;
}

.grid1 {
  grid-area: 1 / 1 / 2 / 2; /* grid-area: grid-row-start/grid-col-start */
}
.grid2 {
  grid-area: 1 / 2 / 2 / 3;
}

.grid3 {
  grid-area: 2 / 2 / 3 / 3;
}

#p1 {
  margin-top: 8%;
}
#p2 {
  margin-top: 15%;
}

/* project */
.grid-container-pr {
  display: grid;
  height: 100vh;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
}
.grid1-pr {
  grid-area: 1 / 1 / 2 / 2;
  margin-bottom: 5%; /* grid-area: grid-row-start/grid-col-start   yaxis / xaxis / y / x */
}
.grid2-pr {
  grid-area: 1 / 2 / 2 / 3;
  margin-bottom: 5%;
}
.grid3-pr {
  grid-area: 2 / 1 / 3 / 2;
  margin-bottom: 5%;
}
.grid4-pr {
  grid-area: 2 / 2 / 3 / 3;
  margin-bottom: 50%;
}
.grid5-pr {
  grid-area: 1 / 3 / 2 / 4;
  margin-bottom: 10%;
}
.grid6-pr {
  grid-area: 2 / 3 / 3 / 4;
  margin-bottom: 50%;
}

.wrapper {
  width: 397px;
  padding: 2px;
}

.view-btn {
  margin-right: 5%;
  margin-left: 25%;
}

.code-btn {
  margin-left: 40%;
}

.text-area-pr {
  font-family: "PT Sans", sans-serif;
  margin-top: 5%;
  margin-bottom: 5%;
  line-height: 18px;
  font-weight: 400;
  padding-right: 7%;
  padding-left: 7%;
}
.spacing {
  margin-top: 6%;
}

#link-color {
  color: #66fcf1;
}

.button-pr {
  color: #def7f5 !important;
  text-decoration: none;
  background-color: #1e1e24;
  padding-left: 5%;
  padding-right: 5%;
  padding-top: 2%;
  padding-bottom: 2%;
  border-radius: 20px;
  display: inline-block;
  border: none;
  transition: all 0.3s ease 0s;
}

.button-pr:hover {
  text-shadow: 0px 0px 6px #def7f5;
  -webkit-box-shadow: 0px 5px 25px -10px rgba(241, 238, 238, 0.57);
  -moz-box-shadow: 0px 5px 25px -10px rgba(241, 238, 238, 0.57);
  transition: all 0.3s ease 0s;
}

/* contact */

.grid-container-con {
  display: grid;
  height: 100vh;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
}
.grid1-con {
  grid-area: 1 / 1 / 2 / 2;
  height: 250px;
  width: 250px;
  margin-left: 20%;
  margin-top: 10%;
  /* grid-area: grid-row-start/grid-col-start   yaxis / xaxis / y / x */
}
.grid2-con {
  grid-area: 2 / 2 / 3 / 3;
  height: 250px;
  width: 250px;
  margin-top: 10%;
}
.grid3-con {
  grid-area: 1 / 3 / 2 / 4;
  height: 250px;
  width: 250px;
  margin-top: 10%;
}

.img-con {
  -webkit-filter: drop-shadow(1px 1px 2px #222);
  filter: drop-shadow(1px 1px 2px #222);
  border-radius: 2px;
  z-index: 10;
  transition: all 0.3s;
}
.img-con:hover {
  transform: scale(1.1) translateY(0.2rem);
  -webkit-filter: drop-shadow(1.5px 1.5px 4px #66fcf1);
  filter: drop-shadow(1.5px 1.5px 4px #66fcf1);
  z-index: 25;
}

@media only screen and (max-width: 600px) {
  /* general */

  .html {
    overflow-x: hidden;
  }

  .main {
    margin: 0;
  }

  .wrapper {
    width: 99%;
  }

  /* navbar */

  .navbar {
    bottom: 0;
    width: 100vw;
    height: 4.5rem;
    opacity: 0.8;
    z-index: 9;
  }

  .logo {
    display: none;
  }

  .navbar-nav {
    display: flex;
    flex-direction: row;
    width: 100%;
  }

  .nav-link {
    justify-content: center;
    padding: 1px;

    width: 50%;
  }

  .nav-item {
    width: 70%;
  }

  .link-text {
    font-family: "PT Sans", sans-serif;
    font-size: 17px;
  }

  .link-text-spacing {
    margin-left: -5px;
  }

  /* home */

  .heading {
    font-family: "PT Sans", sans-serif;
    text-align: center;
    font-weight: 700;
    line-height: 50px;
    margin-top: 0;
  }
  /* about */

  .text-area-ab {
    font-family: "PT Sans", sans-serif;
    line-height: 22px;
    font-weight: 400;
    font-size: 20px;
    padding-right: 10%;
    padding-left: 10%;
    margin-top: 8%;
    justify-content: center;
  }

  .img-icon-ab {
    width: 175%;
    position: relative;
    right: 35%;
    bottom: 40%;
  }

  /* skills */
  .grid-container {
    display: grid;
    height: 75%;
    grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr));
    z-index: -1;
    /* grid-template-columns: 1fr;
    grid-template-rows: 0.5fr 2fr 2fr; */
  }
  .grid1 {
    grid-area: 1 / 1 / 2 / 2; /* grid-area: grid-row-start/grid-col-start */
  }
  .grid2 {
    grid-area: 2 / 1 / 3 / 2;
    height: 200px;
    margin-top: -15%;
  }

  .grid3 {
    grid-area: 3 / 1 / 4 / 2;
    height: 200px;
    margin-top: -25%;
  }

  .icon-wrap {
    width: 20%;
    height: 100%;
    margin-left: 2%;
  }

  .text-area {
    font-family: "PT Sans", sans-serif;
    line-height: 22px;
    font-size: 20px;
    font-weight: 400;
    padding-right: 10%;
    padding-left: 10%;
  }

  /* project */
  .grid-container-pr {
    display: grid;
    height: 100vh;
    grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr));
  }
  .grid1-pr {
    grid-area: 2 / 1 / 3 / 2;
  }
  .grid2-pr {
    grid-area: 3 / 1 / 4 / 2;
  }
  .grid3-pr {
    grid-area: 4 / 1 / 5 / 2;
  }
  .grid4-pr {
    grid-area: 5 / 1 / 6 / 2;
    margin-bottom: 0;
  }
  .grid5-pr {
    grid-area: 1 / 1 / 2 / 2;
  }
  .grid6-pr {
    grid-area: 6 / 1 / 7 / 2;
  }
  /* contact */

  .grid-container-con {
    display: grid;
    height: 100vh;
    grid-template-columns: repeat(auto-fit, minmax(19rem, 0.5fr));
  }
  .grid1-con {
    grid-area: 1 / 1 / 2 / 2;
    height: 150px;
    width: 150px;
    margin-left: 35%;
  }
  .grid2-con {
    grid-area: 2 / 1 / 3 / 2;
    position: relative;
    bottom: 20%;
    left: 35%;
    height: 150px;
    width: 150px;
  }
  .grid3-con {
    grid-area: 3 / 1 / 4 / 2;
    position: relative;
    bottom: 70%;
    left: 35%;
    height: 150px;
    width: 150px;
  }
  #email {
    display: none;
  }
}
