* {
    box-sizing: border-box;
    margin: 0;
  }
h1, h2 {
  letter-spacing: 0.125rem;
  margin-top: 20px;
  margin-bottom: 10px;
  font-family: 'Bebas Neue', sans-serif;
}

html {
  scroll-behavior: smooth;
}

nav {
    top: 0;
    padding: 0 0.5rem;
    width: 100%;
    height: 60px;
    background-color: rgba(10, 10, 10, 0);
    color: rgb(210, 210, 210);
    z-index: 999;
    letter-spacing: 0.125rem;
    font-family: 'Bebas Neue', sans-serif;
}

a{
  text-decoration: none;
  color: rgb(210, 210, 210);
  transition: color 0.5s;
}
a:hover{
  color: rgb(77, 146, 109);
}

#bar {
    position: fixed;
    padding: 0.67rem 3rem;
    font-size: 1.25rem;
    display: grid;
    grid-template-columns: 6fr repeat(3, min-content);
    text-align: left;
    gap: 1.44rem;
    letter-spacing: 0.125rem;
    font-family: 'Bebas Neue', sans-serif;
}

body {
    background-color: rgb(27, 27, 27);
    background-image: url("../img/bg_black.jpg");
    background-repeat: repeat;
}

ion-icon {
  color: rgb(210, 210, 210);
  transition: color 0.5s;
}

ion-icon:hover {
  color: rgb(77, 146, 109);
}

/* sketch Box 
Had some difficulty with it's placement (among other things and found it easier to add it among the tabs section)

#sketch article{
  position: relative;
  color:rgb(62, 62, 62)
}

#sketch article section{
  position: absolute;
  top: 2.44em;
  width: 700px;
  left: -700px;
  padding: 0 1em 0.5em 0.5em;
  background-color: rgba(193, 193, 193, 0.95);
  transition: transform 0.5s;
}

#sketch article section nav{
  width: 110%;
  text-align: right;
  background-color: rgba(193, 193, 193, 0.95);
  padding: 0.5em;
}

.open{
  transform: translateX(690px);
} */

/*----- Tabs ------*/
/* Taken from https://www.w3schools.com/howto/howto_js_tabs.asp */
/* Style the tab */
#tab {
  background-color: rgb(73, 73, 73);
}

.tab {
  margin-top: 1rem;
  overflow: hidden;
  color: rgb(210, 210, 210);  
  background-color: rgb(27, 27, 27);
  background-image: url("../img/bg_black.jpg");
  background-repeat: repeat;
}

/* Style the Buttons */
.tab button {
  background-color: inherit;
  float: left;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 14px 16px;
  transition: 0.3s;
  font-size: 11px;
  background-color: rgb(10, 10, 10);
  margin-left: 0.44rem;
  color: rgb(210, 210, 210);
  letter-spacing: 0rem;
  font-family: 'Bebas Neue', sans-serif;
}

/* When you hover over the Button */
.tab button:hover {
  background-color: rgb(45, 45, 45);
  color: rgb(210, 210, 210);
}

/* When the Button is Active */
.tab button.active {
  background-color: rgb(73, 73, 73);
  color: rgb(210, 210, 210);
}

.tabcontent {
  animation: fadeEffect 1s;
  display: none;
  padding: 6px 12px;
  border-top: none;
  color: rgb(210, 210, 210);
  background-color: rgb(73, 73, 73);
  left: 20px;
  /* Now apply the gradient */
  background-image: 
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0) 0%,    /* Transparent at top */
      rgba(35, 35, 35, 0.7) 100% /* Darker at bottom */
    )
}

#sketches img {
  border: solid;
  overflow:hidden;
  max-width: 7rem;
  margin-left: 1rem;
  margin-top:25px;
  margin-bottom: 20px;
}
#prevCode p {
  max-width: 80%;
}
pre {
  grid-template-columns: 1fr;
  margin-top: 25px;
  margin-bottom: 25px;
  top: 0px;
  display: inline-block;
  background-color: rgb(27, 27, 27);
  padding: 1rem;
  height: 200px;
  border-radius: 5px;
  overflow-y: scroll;
  width: 90%;
}
pre h3 {
  background-color: rgb(210, 210, 210);
  color: rgb(27, 27, 27);
  text-align: center;
}

#thoughts p{
max-width: 40rem;
margin-bottom: 20px;
}
#thoughts img {
max-width: 90%;
}

@keyframes fadeEffect {
  from {opacity: 0;}
  to {opacity: 1;}
}

@media screen and (min-width: 60rem) {
#bar {
  font-size: 2rem;
}
.tab button {
  font-size: 18px;
}
#sketches img {
  max-width: 20rem;
  margin-left: 2rem;
}
pre {
  width: 40%;
}
#nowCode pre {
  height: 400px;
  width: 47.5%;
}
#thoughts img {
  max-width: 60%;
  }
}