@font-face {
  font-family: h1_font;
  src: url(../fonts/h1_font.ttf);
}

* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

html, body, main {
  min-height: 100vh;
}

body {
  font-size: .9vw;
  font-family: sans-serif;
  background-color: #52544f;
  color: #f9f7f2;
}

main {
  overflow: auto;
  display: -webkit-box;
  display: -ms-flexbox;
  grid-template-columns: 2fr 15fr;
  display: grid;
  -webkit-box-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  align-items: center
}

/*navigation bar*/
aside {
  background: #080808ab;
  width: 100%;
  height: 100%;
  overflow: none;
  z-index: 1;
  text-align: center;
  padding: 0;
  position: -webkit-sticky;
  /* Safari */
  position: sticky;
  top: 0;
}

nav {
  display: block;
}

.top_nav .icon {
  display: none;
}

aside nav img {
  width: 100%;
}

aside a {
  display: block;
  padding: 1.7vw 0 0 0;
  color: #fff;
  -webkit-transition: all 0.35s;
  transition: all 0.35s;
  text-transform: uppercase;
  font-size: .8vw;
  letter-spacing: .1vw;
}

aside a i {
  margin-bottom: 0.2vw;
  font-size: 1.8vw !important;
}

.news_container {
  width: 100%;
  height: 100%;
  display: -webkit-box;
  display: flex;
  flex-wrap: wrap;
  -webkit-box-pack: space-evenly;
  justify-content: space-evenly;
  -webkit-box-align: center;
  align-items: center;
}

.news_box {
  width: 20%;
  height: 420px;
  margin: 1% 3%;
  background-color: #eaeaea;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.large_news_box {
  width: 83%;
  height: 45%;
  margin: 1%;
  background-color: #eaeaea;
  display: flex;
  flex-direction: column;
}

.large_news_box h1 {
  color: black;
  text-align: center;
  font-size: 30px;
  margin: 3%;
}

.larg_box_text {
  width: 40%;
  color: black;
}

.larg_box_text p {
  margin: 5% 0;
}

.larg_news_content {
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
}

.news_img {
  height: 265px;
  width: 87%;
  background-repeat: no-repeat;
  background-size: cover;
}

.news_topic {
  font-size: 18px;
  color: black;
  text-align: center;
  margin: 3% 1%;
}

.see_more_button {
  background-color: transparent;
  border: none;
  color: #6d7560;
  font-size: 21px;
  cursor: pointer;
}

.img2 {
  background-image: url(../images/news_images/img2.jpg );
}

.img3 {
  background-image: url(../images/news_images/img3.jpg );
}

.img4 {
  background-image: url(../images/news_images/img4.jpg );
}

.img5 {
  background-image: url(../images/news_images/img5.jpg );
}

.img6 {
  background-image: url(../images/news_images/img6.jpg );
}

.img7 {
  background-image: url(../images/news_images/img7.jpg );
}

.img8 {
  background-image: url(../images/news_images/img8.jpg );
}

.img10 {
  background-image: url(../images/news_images/idex2023.jpg );
}

.img9 {
  background-image: url(../images/news_images/armhightech2022.jpg );
}

.slides {
  display: none
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

.video_container {
    width: 330px;
}
/* Slideshow container */
.slideshow-container {
  position: relative;
  width: 28%;
}

/* Next & previous buttons */
.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  margin-top: -22px;
  color: white;
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
}

/* Position the "next button" to the right */
.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

/* On hover, add a black background color with a little bit see-through */
.prev:hover, .next:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

/* Number text (1/3 etc) */
.numbertext {
  color: black;
  font-size: 25px;
  padding: 8px 12px;
  position: absolute;
  top: 0;
}

/* Fading animation */
.fade {
  -webkit-animation-name: fade;
  -webkit-animation-duration: 1.5s;
  animation-name: fade;
  animation-duration: 1.5s;
}

@-webkit-keyframes fade {
  from {
    opacity: .4
  }

  to {
    opacity: 1
  }
}

@keyframes fade {
  from {
    opacity: .4
  }

  to {
    opacity: 1
  }
}

/* On smaller screens, decrease text size */
@media only screen and (max-width: 300px) {
  .prev, .next, .text {
    font-size: 11px
  }
}

@media (max-width: 1400px) {
  aside a {
    padding: 3vw 0 0 0;
    font-size: 17px;
  }

  aside a i {
    font-size: 2.5vw !important;
  }
}

@media (max-width: 1100px) {
  main {
    grid-template-columns: 3fr 15fr;
  }

  aside a {
    padding: 4vw 0 0 0;
    font-size: 19px;
  }

  .news_box {
    width: 40%;
  }

  .larg_news_content {
    display: flex;
    flex-direction: unset;
    flex-wrap: wrap;
  }

  .slideshow-container {
    width: 45%;
  }

  .larg_box_text {
    width: 40%;
    font-size: 15px;
  }

  .large_news_box {
    height: 50%;
  }

  .video_container {
    margin: 10% 0 0 0;
    /* width: 46%; */
  }
}

@media screen and (max-width: 800px) {
  main {
    grid-template-columns: 5fr 15fr;
  }

  aside a i {
    font-size: 5vw !important;
  }

  .news_box {
    width: 48%;
    margin: 1% 1%;
  }

  aside a {
    font-size: 20px;
  }

  .slideshow-container {
    width: 90%;
  }

  .larg_box_text {
    width: 90%;
    font-size: 17px;
  }

  .video_container {
    margin: 10% 0 0 0;
    /* width: 90%; */
  }

  .large_news_box {
    height: 60%;
  }
}

@media screen and (max-width: 600px) {
  main {
    grid-template-columns: unset;
    height: auto;
  }

  aside {
    background: #080808d9;
  }

  aside a i {
    font-size: 8vw !important;
  }

  aside nav img {
    width: 100%;
    max-width: 120px;
    height: auto;
  }

  aside nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .top_nav a:not(:first-child) {
    display: none;
  }

  .top_nav a.icon {
    float: right;
    display: block;
  }

  .top_nav.responsive {
    position: relative;
  }

  .top_nav.responsive .icon {
    position: absolute;
    right: 0;
    top: 0;
  }

  .top_nav.responsive a {
    float: none;
    display: block;
    text-align: left;
  }

  .news_box {
    width: 85%;
  }

  .large_news_box {
    height: 49%;
  }
}

@media screen and (max-width: 400px) {
  .news_box {
    width: 95%;
  }

  .large_news_box {
    width: 95%;
    height: 43%;
  }
}

@media screen and (max-width: 340px) {
  .news_box {
    width: 100%;
  }

  .large_news_box {
    width: 100%;
    height: 40%;
  }

  .video_container {
    margin: 10% 0 0 0;
    /* width: 99%; */
  }
}
