body {
  margin: 70px auto;
  max-width: 1088px;
  font-family: "Sniglet";
}

#content-container {
  margin: 20px;
}

/* carousel */

.carousel-container {
  overflow: hidden;
  position: relative;
  max-width: 1000px;
  width: 100%;
}

.carousel {
  display: flex;
  flex-direction: row;
  overflow: auto hidden;
  scroll-behavior: smooth;
  scrollbar-width: none;
  width: 100%;
}

.carousel::-webkit-scrollbar {
  display: none;
}

.carousel-container .button {
  border-radius: 30px;
  height: 30px;
  width: 30px;
  position: absolute;
  z-index: 2;
  cursor: pointer;
  box-shadow: 0 2px 3px -2px rgba(0, 20, 30, 0.4);
  color: #ffffff;
  background-color: #00141E80;
  text-align: center;
  line-height: 30px;
  font-size: 20px;
  font-weight: bold;
  border: 2px solid #ffffff;
}

.carousel-container .left-button {
  left: 16px;
  top: 40%;
}

.carousel-container .right-button {
  right: 16px;
  top: 40%;
}

/* section styles */
.section {
  font-size: 25px;
  border-bottom: 1px solid black;
  font-weight: 800;
  padding-bottom: 10px;
  margin: 20px 0px;
  text-align: center;

}

.card-section {
  margin: 10px;
}

.article-container {
  width: 300px;
  height: 280px;
  border: 1px solid gray;
  border-radius: 5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  float: left;
  margin: 0px 10px 10px 0px;
  box-shadow: 0px 5px 5px #cccccc;
}

.article-container:hover img {
  width: 320px;
  height: 180px;
  transition: all 0.2s ease-in-out;
  left: -10px;
  top: -5px;
}

.article-container:hover .title {
  font-size: 18px;
  transition: all 0.2s ease-in-out;
}

.vertical {
  width: 46%;
  height: 100px;
  border: 1px solid gray;
  display: flex;
  flex-direction: row;
  margin: 0px 10px 10px 0px;
  float: left;
  box-shadow: 0px 10px 10px #cccccc;
  transition: all 0.2s ease-in-out;
  border-radius: 5px;
}

.vertical:hover {
  box-shadow: none;
  transition: all 0.2s ease-in-out;
}

.image {
  border-radius: 5px 5px 0px 0px;
  border-bottom: 3px solid gray;
  width: 300px;
  height: 170px;
  transition: all 0.2s ease-in-out;
  position: absolute;
  left: 0px;
  top: 0px;
}

.vertical-image {
  border-radius: 5px 0px 0px 5px;
  border-bottom: 1px solid gray;
  box-shadow: 0px 5px 5px #cccccc;
  height: 100px;
  transition: all 0.2s ease-in-out;
  position: absolute;
  left: 0px;
  top: 0px;
}

.title {
  font-size: 16px;
  font-weight: 600;
  padding: 10px;
  text-transform: uppercase;
  transition: all 0.2s ease-in-out;
}

a {
  text-decoration: none;
  color: black;
}

.image-container {
  overflow: hidden;
  width: 300px;
  height: 170px;
  position: relative;
}

.vertical-image-container {
  overflow: hidden;
  height: 100px;
  width: 160px;
  position: relative;
}

/* top menu */
.topnav {
  background-color: #574747;
  overflow: hidden;
  position: fixed;
  width: 100%;
  max-width: 1088px;
  box-shadow: 0px 5px 5px #cccccc;
  top: 0;
  z-index: 10;
}

.topnav a {
  float: left;
  display: block;
  color: #f2f2f2;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
  font-size: 17px;
}

.topnav a:hover {
  background-color: #ddd;
  color: #574747;
}

.topnav a.active {
  background-color: #5252b8;
  color: white;
}

.topnav .fa-home {
  vertical-align: top;
  line-height: 45px;
  padding: 0px 10px;
  font-size: 25px;
}

.topnav .site-name {
  color: white;
  display: none;
  line-height: 47px;
  padding: 0px 20px;
  font-size: 20px;
}

.topnav .icon {
  display: none;
}

/* article */
#content-container .article {
  width: 70%;
  margin: 30px auto 100px auto;
  font-size: 18px;
}

#content-container .article img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0px 10px 10px #cccccc;
  margin-bottom: 30px;
}

@media screen and (max-width: 800px) {
  .vertical {
    width: 100%;
  }

  .vertical-image-container {
    width: 120px;
  }

  #content-container {
    margin: 20px 5px 50px 5px;
  }

  #content-container .article {
    width: 95%;
  }

  .topnav a:not(:first-child) {
    display: none;
  }

  .topnav .site-name {
    display: inline;
  }

  .topnav a.icon {
    float: right;
    display: block;
  }

  .topnav.responsive a.icon {
    position: absolute;
    right: 0;
    top: 0;
  }

  .topnav.responsive a {
    float: none;
    display: block;
    text-align: left;
  }
}