/* the styles for the elements */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  background-color: #fffded;
}
#nav_menu ul {
  list-style-type: none;
  position: relative;
  margin: 0;
  padding: 0;
  gap: 0;
  display: flex;
}

#nav_menu ul li {
  float: left;
  list-style-type: none;
  margin: 0;
}

#nav_menu ul li a {
  display: block;
  width: 160px;
  text-align: center;
  padding: 1em 0 1em 0;
  border-right: white solid 1px;
  text-decoration: none;
  background-color: #800000;
  color: white;
  font-weight: bold;
}

#nav_menu .last {
  border-right: none;
}
#nav_menu a.active {
  color: yellow;
}
#nav_menu ul ul {
  display: none;
  position: absolute;
  top: 100%;
}
#nav_menu ul ul li {
  float: none;
}
#nav_menu ul li:hover > ul {
  display: block;
}
#nav_menu > ul::after {
  content: "";
  clear: both;
  display: block;
}
#nav_menu ul li a:hover {
  color: rgba(0, 255, 140, 0.9);
  font-style: italic;
}

.dropdown-content a {
  border-right: none !important;
  max-width: 159px;
}
.last {
  border-right: none !important;
}

body {
  background-color: #ffffff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 100%;
  width: 800px;
  margin: 0 auto;
}
a:focus,
a:hover {
  font-style: italic;
}

header {
  margin: 0;
  text-align: center;
}
header img {
  width: 800px;
  display: block;
  margin: 0 auto;
}

main {
  max-width: 900px;
  margin: 10px;
  background: white;
  padding: 15px;
  column-count: 3;
}

main div {
  overflow: hidden;
  padding-bottom: 20px;
  margin-bottom: 20px;
}

main div img {
  margin-right: 30px;
  width: 230px;
  height: 200px;
  padding: 0 10px;
  border-top-left-radius: 15%;
  border-top-right-radius: 15%;
}

img[alt="Nutrition Label Project"] {
  height: 200px;
}
h2 {
  color: black;
  margin-top: 0;
  margin-left: 10px;
}
div:hover {
  text-decoration: none;
  font-style: italic;
}
p {
  margin-left: 10px;
}

.nutrition-link {
  text-decoration: none;
  color: black;
  display: block;
}
.cybersecurity-link {
  text-decoration: none;
  color: black;
  display: block;
}
.southernstudies-link {
  text-decoration: none;
  color: black;
}

footer {
  text-align: center;
  background-color: #931420;
  padding: 1em;
  color: white;
}

.slicknav_menu {
  display: none;
}

@media (max-width: 430px) {
  #nav_menu {
    display: none;
  }

  .slicknav_menu ul li a.active {
    color: yellow;
  }
  .slicknav_menu {
    display: block;
    background-color: #931420 !important;
  }

  body {
    max-width: 100%;
    width: 100%;
  }

  header img {
    width: 100%;
  }

  main {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: repeat(3, auto);
    gap: 10px;
  }

  main > a {
    display: block;
  }

  main div img {
    width: 100%;
    height: 250px;
    border-radius: 10% 10% 0 0;
  }

  img[alt="Nutrition Label Project"] {
    width: 100%;
    height: 250px;
  }

  nav,
  .menu-box,
  nav a {
    font-style: normal !important;
  }
}
