* {box-sizing: border-box;}

html {
  scroll-behavior: smooth;
}

body {font-family: sans-serif;}

/* nav styling */
nav {
  position: fixed;
  left: 0;
  top: 0px;
  height: 3em;
  width: 100%;
  color: #fff;
  background-color: #000; /*rgba(0,0,0,0.8);*/
  margin: 0;
  margin-top: -5px;
  padding: 0 0 10px 0;
  z-index: 100;
}
nav a {
  text-decoration: none;
  color: white;
}
nav a:hover {color:red}
nav ul {list-style-type: none}
nav ul li {
  display: inline;
  margin-top: 0;
  padding-top: 0;
  padding-left: 15px;
  padding-right: 15px;
  border-right: 1px solid #999;
}
nav ul li a img {vertical-align: text-bottom;}
nav ul li:last-child {border-right:none}

/* layout */
#main{
  margin: 2em 5% 0 5%;
  padding:20px;
  border: 1px solid #999;
}
img {
  margin-top: 15px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

section {
  margin-top: 2em;
}

/* Creating a CSS Dropdown Menu */

/* The container <div> - needed to position the dropdown content */
.dropdown {
    cursor: pointer;
    position: relative;
    display: inline-block;
}

/* Dropdown Content (Hidden by Default) */
.dropdown-content {
    display: none;
    position: absolute;
    min-width: 10em;
    background-color: #f9f9f9;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 110;
}

/* Links inside the dropdown */
.dropdown-content a {
    background-color: rgba(0,0,0,0.8);
    color: white;
    padding: .5em 2em .5em 1em;
    text-decoration: none;
    border-bottom: 1px solid gray;
    display: block;
}

/* Show the dropdown menu on hover */
.dropdown:hover .dropdown-content {
    display: block;
}

/* jQuery menu */
#menu { margin-bottom: 4em; z-index: 100;}
#menu a{
 text-decoration: none;
 color: #333;
 font-family: sans-serif;
 padding: 5px;
}
#menu ul li{
 display: inline;
}
.dropdown-menu{
 display: none;
}

#menu ul li ul {
  display:none;
  position:absolute;
}

#menu ul li ul li {
  border-top:1px solid #444;
  display:block;
}

/* Sprite Animation */
#run {
  height: 300px;
  width: 300px;
  background: url('img/mayanRunSprite.jpg') 0px 0px;
}

/* Adding tooltips on hover
https://www.w3schools.com/howto/howto_css_tooltip.asp
*/
.tooltip {
  position: relative;
  display: inline-block;
  border-bottom: 1px dotted black;
}

.tooltip .tooltiptext {
  visibility: hidden;
  width: 150px;
  background-color: #555;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 5px 0;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 40%;
  margin-left: -65px;
  opacity: 0;
  transition: opacity 0.3s;
}

.tooltip .tooltiptext::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #555 transparent transparent transparent;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}

/* p5js container */
#p5jsSketch {
  display: flex;
  justify-content: center;
  align-items: center;
}
