* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  width: 100%;
  margin: 0;
  padding: 0;
  background: url("images/handbook-background.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  font-family: Arial;
}

#main-menu {
  margin: 0 auto;
}
.main-title {
  width: 40%;
}
.main-title-sm {
  width: 27%;
}

#main-menu ul {
  list-style: none;
  margin: 2em;
  padding: 0;
  width: 20%;
}
#main-menu a {
  text-decoration: none;
  text-align: center;
}

#main-menu li {
  width: 100%;
  margin: 1em;
  border: 2px solid #000;
  border-radius: 10px;
  background-color: #000;
  padding: 30px;
  text-decoration: none;
  color: #fff;
  font-size: 16px;
  font-weight: bold;
}

/*Handbook Page Layout*/
.main-title img,
.main-title-sm img {
  width: 100%;
}
.title {
  width: max-content;
  margin: 0;
  text-transform: lowercase;
}

.section ul li a {
  text-transform: lowercase;
  font-weight: bold;
}
.container-sm {
  margin-top: 1em;
  width: 100%;
  height: auto;
  display: flex;
  flex-direction: row;
  flex-grow: 1;
  flex-wrap: wrap;
  flex-basis: 100%;
}
container-sm > * {
  flex: 1 1 360px;
}

.tab-title,
.title {
  color: #bf98cb;
}
.tab-title {
  text-align: center;
}
.tab-panel {
  width: 350px;
  height: auto;
  margin: 15px;
  padding: 1em;
  background-color: #000;
  color: #fff;
  position: relative;
  border-radius: 30px;
}

.section ul {
  list-style: none;
  margin: 0;
}
.section ul li {
  margin: 0.8em auto;
}
.section ul li a {
  color: #fff;
  text-decoration: none;
}
.legacy {
  /*Legacy button position*/
  position: absolute;
  bottom: 0;
  right: 0;
}
.legacy .sm ul li a {
  color: #201f20;
}
.legacy ul li:hover a {
  /*legacy button text color change*/
  color: #fff;
}

.nav-container {
  margin-left: 5px;
  max-width: 1130px;
  display: flex;
  justify-content: space-between;
}
.nav-container-sm {
  margin-left: 5px;
  display: flex;
}
.return {
  display: flex;
}
.button ul {
  list-style-type: none;
  float: left;
  padding: 10px;
}

.button ul li,
.button ul li a {
  float: left;
  background: rgb(0, 0, 0);
  padding: 10px;
  color: #fff;
  border-radius: 8%;
  font-weight: bold;
}

.button ul li:hover {
  background: #750099;
}

.button ul li a {
  text-decoration: none;
}
.not_working {
  text-decoration: line-through;
}
/*Credits Button*/
.sm ul li {
  margin: 0;
  padding: 0;
  background: none;
  border: none;
}
.sm ul li a {
  color: #fff;
  font-weight: 100;
}

/*Media Queries*/

/*Very Large Screens*/
@media screen and (min-width: 1500px) {
  .container-sm {
    width: 90%;
  }
}
/*Medium sized screens and below*/
@media screen and (max-width: 1139px) {
  .tab-panel {
    width: 100%;
  }
  .main-title,
  .title {
    width: 70%;
  }
  #main-menu {
    max-width: 60%;
  }

  #main-menu ul {
    width: 100%;
    margin: 2em auto;
  }
  #main-menu li {
    margin: 1em auto;
    padding: 20px;
  }
}

@media screen and (max-width: 600px) {
  #main-menu ul li {
    display: block;
    margin-top: 10px;
  }
}

@media screen and (min-width: 500px) and (max-width: 1139px) {
  .container-sm {
    width: 95%;
    margin: 0 auto;
  }

  .center {
    margin: 0 auto;
    width: max-content;
    overflow-wrap: break-word;
  }
}

/*Very Small Screens*/
@media screen and (max-width: 340px) {
  .tab-panel {
    margin: 10px;
  }
}
