@font-face{
    font-family:"PlayWrite-400";
    src: url('../fonts/PlaywriteAUQLD-Regular.ttf');
}
@font-face{
    font-family:"Bitcount";
    src:url('../fonts/BitcountPropSingle-Regular.ttf');
}
@font-face {
    font-family: "Exo2";
    src: url('../fonts/Exo2-Medium.ttf');
}

html{
    background: rgb(153, 204, 245);
}
/* --------------------Nav Bar----------------------- */
nav{
    z-index: 2;
    position:sticky;
    top: 0;
    overflow: hidden;
    display: flex;
    border: solid black 2px;
    border-radius: 10px;
    font-family:"Exo2";
    text-align: center;
    background-color: white;
    & a{
        font-size: 30px;
        flex: 1;
        display: block;
        padding-right: 5%;
        color: black;
        padding: 5px 5px 10px 10px;
        text-decoration: none;
    }
    & a:hover{
        transition: ease 0.7s;
        flex: 3;

        &:nth-child(1){background-color: black;color: white;}
        &:nth-child(2){background-color: rgb(38, 122, 190);color: white;}
        &:nth-child(3){background-color: rgb(104, 31, 230);color: white;}
        &:nth-child(4){background-color: rgb(20, 93, 53);color: white;}
    }
    & a:not(:hover){
        transition: ease-in-out 0.5s ;
    }
}

/* --------------------Body Elements----------------------- */

h1{
    padding-top: 15%;
    font-family: "Bitcount";
    font-size: 70px;
    text-align: center;
}
#content {
    skill{
    margin-left: auto ;
    /* background-color: aliceblue; */
    margin-right: auto;
    display: block;
    }
    h2{
    text-align: center;
    font-family:"Exo2";
    }

}

/* Slideshow for projects section */
.projects {
    display: grid;
    margin:0% 5% 5% 5% ;
    border-radius: 10px;
    place-items: center;
    user-select: none;
}
.projects box {
    display: none;
    padding:50px 40px 50px 40px;
    max-width:80%;
    overflow:hidden;
    text-align: center;
    font-family: "Exo2";
    font-size: 24px;
    background-color: white;
    border: 2px solid gray;
    border-radius: 10px;
    a{
      text-decoration: none;
      text-align: center;
      color: purple;
    }
    p{
      font-size:15px;
    }
}
.projects box.active {
    display: block;
    animation: fadeEffect 1s linear;
}
/* Navigation buttons */
.slideshow-nav {
    cursor: pointer;
    margin-top:10%;
    position:absolute;
    padding: 15px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    background-color: rgba(0,0,0,0.5);
    border-radius: 50%;
    user-select: none;
    z-index: 2;
}

.slideshow-nav:hover {
    background-color: rgba(0,0,0,0.8);
}
.prev { left: 5%;}
.next { right:5%;}

/* Skills Section */
.skill{
  display: flex;                        
  justify-content: center;
  align-items: center;   
  margin: 0 auto;  
  flex-wrap: wrap;
  padding-left: 1%;
  width: 90%;
  user-select: none;
  .Stack{
    margin-left:20px;
    margin-bottom:1%;
    img{
      width:50px;
      height:50px;
      border: 1px solid black;
      margin-bottom: 20px;
      border-radius:10%;
      filter: brightness(0.3);
      transition:linear 0.3s;
        }
    a{
      opacity: 0;
      color: rgb(2, 64, 9);
      font-family:"Exo2";font-weight: 700;
      position: absolute;left: 47%;
      margin-top:5.5%;
      font-size: 18px;
      transition:opacity 0.3s linear;
    }
    img:hover{
      transform: scale3d(1.2,1.2,1.2);
      box-shadow: 5px 5px 1px 1px;
      filter: brightness(1.0);
    }
  }
  .Stack:hover a{
    opacity: 1;
  }

}


@keyframes fadeEffect {
    from { opacity: 0 }
    to {
        opacity: 1 ;
    }
}

@media screen and (max-width: 600px){

    nav a {
        font-size: x-large;
        &:nth-child(2){
        display: none;
        }
    }
    .projects box{
        width: 50%;
        height: 2eh;
    }
    .slideshow-nav{
      margin-top: 35%;
    }
    .skill .Stack img{filter: brightness(1.0);}
}
