h2 {
  vertical-align: center;
  text-align: center;
}
html,
body {
  margin: 0;
  height: 100%;
}
* {
  font-family: "Raleway";
  box-sizing: border-box;
}
.top-nav {
  margin: 1.5rem 9px;
  border-radius: 9px;
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: space-between;
  background-color: #f3990c;
  /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
  color: #000;
  font-weight: bold;
  height: 50px;
  padding: 1em;
  position: relative;
}
.menu {
  display: flex;
  flex-direction: row;
  list-style-type: none;
  margin: 0;
  padding: 0;
}
.menu > li {
  margin: 0 1rem;
  overflow: hidden;
  font-size: 1.2rem;
  transition: all 0.2s cubic-bezier(0.23, 1, 0.32, 1);
}
.menu-button-container {
  display: none;
  height: 100%;
  width: 30px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
#menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  z-index: 10;
  position: absolute;
  right: 9px;
}
.menu-button,
.menu-button::before,
.menu-button::after {
  display: block;
  background-color: #fff;
  position: absolute;
  height: 4px;
  width: 30px;
  transition: transform 400ms cubic-bezier(0.23, 1, 0.32, 1);
  border-radius: 2px;
}
.menu-button::before {
  content: "";
  margin-top: -8px;
}
.menu-button::after {
  content: "";
  margin-top: 8px;
}
#menu-toggle:checked + .menu-button-container .menu-button::before {
  margin-top: 0px;
  transform: rotate(405deg);
}
#menu-toggle:checked + .menu-button-container .menu-button {
  background: rgba(255, 255, 255, 0);
}
#menu-toggle:checked + .menu-button-container .menu-button::after {
  margin-top: 0px;
  transform: rotate(-405deg);
}
@media (max-width: 974px) {
  .menu-button-container {
    display: flex;
  }
  .menu {
    position: absolute;
    display: block;
    border-radius: 20px;
    overflow: hidden;
    top: 1px;
    margin-top: 50px;
    right: 14px;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
  }
  #menu-toggle ~ .menu li {
    font-weight: bold;
    height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    background-color: #f3990c;
  }
  #menu-toggle:checked ~ .menu li {
    position: relative;
    border-bottom: none;
    height: 2.5em;
    padding: 0.5em;
    z-index: 10;
  }
  .menu > li {
    display: flex;
    justify-content: center;
    margin: 0;
    padding: 0.5em 0;
    width: 100%;
    color: #000;
    background-color: #f3990c;
    width: 200px;
  }
  .menu > li:not(:last-child) {
    border-bottom: 1px solid #444;
  }
}

@import url("https://fonts.googleapis.com/css2?family=Caveat+Brush&display=swap");
@font-face {
  font-family: vazir;
  src: url("https://fnm.iums.ac.ir/uploads/schools/assets/fonts/Vazir-Regular-FD.woff");
  font-weight: normal;
  font-display: swap;
}

@font-face {
  font-family: vazir;
  src: url("https://fnm.iums.ac.ir/uploads/schools/assets/fonts/Vazir-Bold-FD.woff");
  font-weight: bold;
  font-display: swap;
}
* {
  font-family: inherit;
}

body {
  font-family: vazir, sans-serif;
  background-color: #f3f3f3;
  background-color: #f9f8fb;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 40' width='80' height='40'%3E%3Cpath fill='%2336a4cf' fill-opacity='0.41' d='M0 40a19.96 19.96 0 0 1 5.9-14.11 20.17 20.17 0 0 1 19.44-5.2A20 20 0 0 1 20.2 40H0zM65.32.75A20.02 20.02 0 0 1 40.8 25.26 20.02 20.02 0 0 1 65.32.76zM.07 0h20.1l-.08.07A20.02 20.02 0 0 1 .75 5.25 20.08 20.08 0 0 1 .07 0zm1.94 40h2.53l4.26-4.24v-9.78A17.96 17.96 0 0 0 2 40zm5.38 0h9.8a17.98 17.98 0 0 0 6.67-16.42L7.4 40zm3.43-15.42v9.17l11.62-11.59c-3.97-.5-8.08.3-11.62 2.42zm32.86-.78A18 18 0 0 0 63.85 3.63L43.68 23.8zm7.2-19.17v9.15L62.43 2.22c-3.96-.5-8.05.3-11.57 2.4zm-3.49 2.72c-4.1 4.1-5.81 9.69-5.13 15.03l6.61-6.6V6.02c-.51.41-1 .85-1.48 1.33zM17.18 0H7.42L3.64 3.78A18 18 0 0 0 17.18 0zM2.08 0c-.01.8.04 1.58.14 2.37L4.59 0H2.07z'%3E%3C/path%3E%3C/svg%3E");
}

.nav-item {
  cursor: pointer;
  -webkit-user-select: none; /* Safari */
  -ms-user-select: none; /* IE 10 and IE 11 */
  user-select: none; /* Standard syntax */
}

.nav-item:hover {
  background-color: #c07809;
  color: #fff;
}

.top-nav-item {
  height: 50px;
  vertical-align: middle;
  display: inline-block;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.1s;
  padding: 1rem;
  /* padding-bottom: 2rem; */
  /* margin-bottom: 4px; */
  overflow: hidden;
}

.top-nav-item.img-container {
  display: flex;
  justify-content: flex-start;
  padding-left: 0;
  align-items: center;
}

#video-list > li:hover {
  cursor: pointer;
  filter: brightness(85%);
}

#container {
  background-color: #fff;
  box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px;
}

#videoContainer {
  background-color: #fff;
  box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px;
}

#topNav {
  position: fixed;
  width: 90vw;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
}
