div.related {
  /* background-color: #2c295a; */
  background-color:#343A40;
  line-height: 32px;
  /* color: #fff; */
  color: #CCC8B5;
  text-shadow: 0px 1px 0 #444;
  font-size: 0.9em;
}

div.related a {
  /* color: #fff; */
  color: #CCC8B5;
}

.document .documentwrapper .bodywrapper .body table.docutils,
.document .documentwrapper .bodywrapper .body table.align-default {
  width: 100%;
}

#at-milan-doc div.bodywrapper div.body section h1, #at-milan-doc div.bodywrapper div.body section h2 {
  background-color:#343A40;
  color: #CCC8B5;
  text-shadow: 0 0 0 transparent !important;
  /* text-shadow: unset !important; */
}


body {
  margin: 0;
  font-family: 'Roboto', sans-serif;
}

h1, h2, h3 {
  font-family: 'Lato', sans-serif;
}



.page-header {
  background-color: #E7DECC;
  height: 150px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.horizontal-bg {
  /* background-image: url('_static/header-background.png'); */
  /* background-image: url('header-background.png');  */
  background-repeat: repeat-x; /* Repeat the background image only horizontally */
  background-size: auto; /* Use the original size of the background image */
}

main.content {
  margin: 20px;
  padding: 20px;
  /* background-color: #f5f5dc; */
}



.topnav-container ul {
  list-style: none;
  display: flex;
  gap: 25px;
  margin: 0;
  padding: 0;
  margin-right: 20px;
}

.topnav-container ul li a {
  color: #2B2414;
  text-decoration: none;
  font-size: 1.1em;
  font-weight: 400;
}

.topnav-container ul li a:hover {
  color: #343A40;
  border-bottom: 2px solid #343A40;
}

.hamburger-menu {
  display: none;
  color: #343A40;
  font-size: 30px;
  cursor: pointer;
  margin-right: 10px;
}


.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%; 
  width: 80%;
  height: 100%;
  background-color: #CCC8B5;
  color: #343A40;
  z-index: 999;
  transition: right 0.3s ease;
  /* padding: 20px; */
  padding: 10px;
  border-left: 1px solid #2B2414;
}

.mobile-menu header {
  display: flex;
  justify-content: flex-end;
}

.mobile-menu ul {
  list-style: none;
  padding: 0;
}

.mobile-menu ul li {
  /* margin-bottom: 20px; */
  margin-bottom: 10px;
}

.mobile-menu ul li a {
  display: block;
  color: #343A40;
  text-decoration: none;
  /* padding: 4px 0; */
  padding: 4px;
}

.mobile-menu ul li a:hover {
  background-color: #343A40;
  color: #CCC8B5;
}

.close-menu {
  font-size: 30px;
  cursor: pointer;
}


@media (max-width: 768px) {
  .topnav-container {
      display: none;
  }
  
  .hamburger-menu {
      display: block;
  }
}


@media (max-width: 620px) {
  #at-milan-doc div.bodywrapper {
    margin: 0 0 0 0;
  }
  
  #at-milan-doc .sphinxsidebar {
    display: none
  }  
}

@media (max-width: 400px) {
  
  #at-milan-doc div.body {
    padding: 4px;
    min-width: auto;
  }
}

