/* CSS is how you can add style to your website, such as colors, fonts, and positioning of your
   HTML content. To learn how to do something, just try searching Google for questions like
   "how to change link color." */

body{
 margin: 0px;
 background-color: lightgray;
}
 
main{
 margin-left: 20px;
 margin-right: 20px;
}
 
h1{
 text-align:center;
}
/* Basic styling */
.dropup {
  position: fixed;
  bottom:0;
  left: 0;
  display: inline-block;
  display:flex; /* better for controlling layout of children! */
}

.menu-wrapper .dropup-btn {
  background-color: #4CAF50;
  color: white;
  padding: 10px 20px;
  border: none;
  cursor: pointer;
  display:inline-block;
}

.dropup-btn:hover {
  background-color: #45a049;
}

/* Dropup content */
.dropup-content {
  display: none;
  position: absolute;
  bottom: 100%; /* Opens upwards */
  left: 0;
  background-color: #f9f9f9;
  min-width: 160px;
  box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
  z-index: 1;
}

.dropup-content a {
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
}

.dropup-content a:hover {
  background-color: #f1f1f1;
}

/* Show dropup on hover 
.dropup:hover .dropup-content {
  display: block;
} */

/* Submenu styling */
.submenu {
  position: relative;
}

.submenu-content {
  display: none;
  position: absolute;
  bottom: 0;
  left: 100%; /* Opens to the right */
  background-color: #f9f9f9;
  min-width: 160px;
  box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
  z-index: 1;
}

.submenu-content:hover .submenu-content {
  display:block;
}

.submenu:hover>.submenu-content {
  display:block;
} 

#level3content:hover #level3content{
  display:block;
  background-color: #df0909;
}

#btn1:hover #menu1 {
  display:block;
}

#btn2:hover #menu2 {
  display:block;
}

#btn2 {
  position: relative;
}

#btn3:hover #menu3 {
  display:block;
}

#btn3 {
  position: relative;
}

h1 {
  text-align: center;
}

p {
  text-align: center;
}
