body{
  text-align: center;
  font-family: 'Kanit', sans-serif;
  margin: 7vw;
  margin: 1em 1em;
  padding: 3em;
}

html{
   background-image:
    
    url("https://projects.codecraftworks.com/web/cNccC2NavfXYOrh4awQB/assets/Portfolio background.jpg"); 
  
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

header {
	background-image: linear-gradient(to bottom, rgba(255,94,0,0.8), rgba(251, 255, 255,0.8));
  color: black;
  position: sticky;
  top: 0.1em;
  
  
  border: 0.5em solid midnightblue;
  border-style: outset;
  font-size: 1.15em;
  text-shadow: 2px 2px lightskyblue;
  
}

nav{
  overflow: hidden;
  color: rgba(0,0,0,1);
  font-family: Roboto sans-serif;
  font-size: 1.15em;
  
  background-color: rgba(255,255,255,0.8); 
  border: 0.25em solid midnightblue;
  border-style: outset;
  border-radius: 1rem;
  
  display: flex;
  flex-flow: row nowrap;
  width: 41vw;
  justify-content: center;
  margin-top: 1vh;
  margin-left: 25%;
}

nav a{
  padding: 1em;
}

main{
  overflow: wrap;
}

#projects{
  background-color: rgba(255, 94, 0, 0.8) ;
  color: black;
  position: static;
  
  font-size: 1rem;
  border: 0.45em solid midnightblue;
  border-radius: 0.45rem;
  box-shadow: 5px 5px 2em 0.25em white;
  border-style: outset;
  
  margin: auto;
  max-width: 45vw;
  margin-top: 2rem;
  margin-bottom: 2rem;
  
}

.resize{
  width: 100%;
  max-width: 25em;
  max-height: 25em;
}


.previews{
  width: 28vw;
  display: inline-block;
  text-align: center;
  font-family: "Roboto", sans-serif;
  font-size: 1.2em;
  
}

.previews img {
  border: .8em ridge #FBFFFF;
  box-shadow: 5px 5px 1em white;
  
}

footer{
  border: 0.25rem solid midnightblue;
  border-radius: 1rem;
  box-shadow: 5px 5px 15px lightblue;
  border-style: inset;
  background-color: rgba(255, 69, 0, 0.8);
}

.link:link{
  color: #000000;
  font-weight: bold;
  font-style: underline;
}

.link:visited{
  color: white;
  font-weight: bold;
  font-style: underline;
}

#footerCredits{
  margin: auto;
}


.footerFloat li{
  float: left;
  border: 0.3em dashed #FBFFFF;
  background: #DB3A00;
}

.footerFloat  {
  
  padding: 0.5em;
  text-decoration: inherit;
}

.footerFloat ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

@media screen and (max-width: 680px){
  header {
    position: static;
    width: 100%;
    font-size: 100%;
  }
  
  nav {
    flex-flow: column wrap;
    overflow: wrap;
    font-size: 100%;
    justify-content: flex-start;
  }
  
  nav a{
    float: none;
    width: 100%;
    padding: 5%;
  }
  
  #footerCredits{
    float: none;
    flex-flow: column wrap;
    width:100%;
    justify-content: center;
    align-items: center;
  }
  .footerfloat{
   float: none;
   flex-flow: column wrap;
  }
  
  footer a{
    float: none;
    width: 100%;
    padding: 5%;
  }
}