:root {
  font-size: 16px;
  font-family: 'Helvetica';
  --text-1st: #9ece6a; /* green */
  --text-2nd: #ff9e64; /* orange */
  --text-3rd: #f7768e; /* red */
  --text-4th: #7aa2f7; /* blue */
  --bg-1st: #24283b; /* darkgrey */
  --bg-2nd: #000000; /* Background color */
  --bg-3rd: #414868; /* used for code */
  --transition-speed: 600ms;
}

/* unvisited link */
a:link, a:visited, a:active {
  color: var(--text-3rd);
}

/* mouse over link */
a:hover {
  color: var(--text-2nd);
}


body {
  color: #FFF;
  font-family:Helvetica;
  font-weight:300;
  background-color: var(--bg-2nd);
  width: clamp(400px, 50vw, 800px);
  margin: 0 auto !important;
  float: none !important;
}

body::-webkit-scrollbar {
  width: 0.25rem;
}

body::-webkit-scrollbar-track {
  background: var(--bg-2nd);
}

body::-webkit-scrollbar-thumb {
  background: var(--text-4th);
}

h1, h2, h3 {
  font-weight:500;
  color: var(--text-4th);
  margin-left:10px;
}

li {
  margin:8px;
}

b {
  font-weight:600;
  color: var(--text-1st);
}

hr {
border-bottom:2px solid var(--text-4th);
}

.socialmedia {
height:24px;
vertical-align:middle;
}

.logo {
padding-bottom:3px;
vertical-align:middle;
}

main {
  background-color: var(--bg-1st);
  border-radius: 20px;
  border:2px solid var(--text-4th);
  margin: 1rem;
  padding: 1rem;
}

code {
background-color:var(--bg-3rd);
padding:20px;
font-family:Courier New;
margin:1rem;
display: block;
}

.footer{
width:95%;
padding-top:7px;
margin-bottom:-5px;
border-top:2px solid var(--text-4th);
color: var(--text-2nd);
font-size:13px;
display: block;
overflow: hidden;
white-space: nowrap;
}


.navbar {
 /* position: fixed; */
  background-color: var(--bg-1st);
  vertical-align:top;
  transition: width 600ms ease;
}


.nav-link {
  align-items: center;
  height: 3rem;
  padding:4px;
  border-radius: 7px;
  border:1px solid var(--bg-1st);
  color: var(--text-1st);
  text-decoration: none;
/*  filter: grayscale(100%) opacity(0.5); */
  transition: var(--transition-speed);
}

.nav-link:hover {
  filter: grayscale(0%) opacity(1);
  background: var(--bg-2nd);
  color: var(--text-2nd);
  border-radius: 7px;
  border:1px solid var(--text-2nd);

}


/* Small screens */
@media only screen and (max-width: 700px) {
  .navbar {
    bottom: 0;
    width: 100vw;
    height: 3rem;
  }

  .logo {
    display: none;
  }

  .navbar-nav {
    flex-direction: row;
  }

  .nav-link {
    justify-content: center;
  }

  main {
    margin: 3px;
  }
}

/* Large screens */
@media only screen and (min-width: 700px) {
  .navbar {
    top: 150px;
  }

  .navbar:hover .link-text {
    display: inline;
  }

}

