html {
  scroll-behavior: smooth;
}

h1 {
  font-family: 'Permanent Marker', cursive;
  text-align: center;
  font-size: 40px;
  color: #404040;
}

#sketch {
  width: 350px;
  margin: 10px auto;
  display: block;
}

.topNav {
  border-bottom: 1px solid #712D2E;
  padding-bottom: 30px;
  border-top: 1px solid #712D2E;
  padding-top: 30px;
/*  background: #cccccc;*/
  padding: 20px 0px;
  overflow: hidden;
  text-align: center;
  margin-top: 15px;
/*  position: fixed;
  top: 0;
  width: 100%;*/
}

.topNav a {
  text-decoration: none;
  color: #404040;
  display: inline-block;
  font-size: 18px;
  margin-left: 30px;
  margin-right: 30px;
}

.topNav a:hover {
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-decoration-color: #712D2E;
/*  background-color: grey;
  color: whitesmoke;*/
/*  background: linear-gradient(120deg, #84fab0 0%, #8fd3f4 100%);
  background-size: 100% 0.2em;
  background-position: 0 88%;
*/
}

.topNav .icon {
  display: none;
}

#aboutText {
  margin: 0px;
  text-align: left;
}

h2 {
  color: #010203;
  margin: 0px;
  text-align: center;
  margin-top: 20px;
/*  border-bottom: 1.5px solid #b6b6ab;*/
  }
  
a {
  color: inherit;
  text-decoration: none;
  }

.highlight {
  color: #828282;
  text-decoration: underline;
  transition: transform 0.1s ease; 
}

.code:hover {
  color: #d3d3d3; 
}

img {
  width: 100%;
}

.icons {
  width: 25px;
  height: 25px;
}

.box {
  border: 1.2px solid #b6b6ab;
  box-shadow: 0px 1px #b6b6ab;
  box-sizing: border-box;
  padding: 10px;
  object-fit: cover;
  transition: transform 0.2s ease; 
}

.box:hover {
  transform: scale(1.05); 
}

.box img {
  height: 220px; 
  object-fit: cover;
}

/*
.boxWriting {
  border: 1.5px solid #b6b6ab;
  box-shadow: 0px 1px #b6b6ab;
  height: 350px;
  box-sizing: border-box;
  padding: 10px;
}*/

#contact {
  border-top: 1px solid #712D2E;
  padding-top: 5px;
  border-bottom: 1px solid #712D2E;
  padding-bottom: 5px;
  text-align: center;
}

.fa {
  text-decoration: none;
  color: black;
  margin: 0px 2px;
}


.tool {
  font-size: 11px;
  font-weight: 400;
  color: white;
  border-radius: 3px;
  padding: 1.75px;
  padding-left: 5.2px;
  padding-right: 5.2px;
  margin-right: 0.7%;
  line-height: 100%;
  vertical-align: middle;
}

.pandas {
  background-color: #4281B1;
}

.r {
  background-color: #70A5D4;
}

.mapbox {
  background-color: #4164FB;
}

.datawrapper {
  background-color: #1E81A2;
}

.spreadsheet {
  background-color: #04AB46;
}

.scrollytelling {
  background-color: #D1758D;
}

.flourish {
  background-color: #C01F1E;
}

.illustrator {
  background-color: #FF9A01;
}

.d3 {
  background-color: #8C4FB5;
}

/*.tech {
  color: darkgrey;
  font-size: 15px;
  margin-top: 0px;
}*/

.publish {
  font-style: italic;
}

footer {
  text-align: center;
  font-size: 13px;
  margin-top: 10px;
}

@media screen and (max-width: 600px) {
  h1 {
    font-size: 35px;
  }
}

@media screen and (max-width: 600px) {
  .topNav {
    text-align: left;
  }
  .topNav a:nth-child(2) {display: none;}
  .topNav a:nth-child(3) {display: none;}
  .topNav a:nth-child(4) {display: none;}
  .topNav a.icon {
    float: right;
    display: block;
  }
}

@media screen and (max-width: 600px) {
  .topNav.responsive {position: relative;}
  .topNav.responsive .icon {
    position: absolute;
    right: 0;
    top: 0;
  }
  .topNav.responsive a {
    float: none;
    display: block;
    margin-bottom: 5px;
  }
  .topNav a {
    margin-left: 13px;
    margin-right: 13px;
  }
}