/*
  Theme Name:   - NEW - Central College Homepage
  Theme URI:    https://www.central.edu
  Description:  - NEW - Central College Homepage Child Theme, 2020 revision
  Author:       Jordan Bohr
  Template:     central-college-parent-new
  Version:      2.0.1
*/
#header-main,
#header-pre,
#header-mobile,
footer,
main * {
  position: relative;
  z-index: 1;
}

/* Not sure why this needs to be here, but without it the sitewide search positioning gets messed up */
#menu-pre form {
	padding:5px;
}

/* Apply transform/filter on image zoom - from https://w3bits.com */
@media (min-width:768px) {

  /* Colorize-zoom Container */
  .img-hover-zoom--colorize img {
    transition: transform .35s, filter .35s ease-in-out;
    filter: grayscale(60%);
  }

  /* The Transformation */
  .img-hover-zoom--colorize:hover img {
    filter: grayscale(0);
    transform: scale(1.05);
  }
}

@media (max-width:767px) {
  #news .one-third.column {
    padding-bottom: 1rem;
    margin: 1rem 0;
    border-bottom: 2px solid #ccc;
  }
}

#news img {
  text-align: center;
  margin: .5rem 0 1rem 0;
  margin-right: auto;
  margin-left: auto;
  display: block;
  clear: both;
  padding: 0;
  max-width: 100%;
  border: 1px solid #efefef;
  object-fit: cover;
  width: 100%;
  height: 225px;
}

#news h1 {
  margin-bottom: 1rem;
}

#news h1:hover {
  color: #900;
}

#news h2 {
  color: #cb2026;
  margin: 0;
  padding: 0 0 .5rem 0;
  text-transform: none;
  font-weight: 500;
  font-size: 1.4rem;
  line-height: 1.45rem;
  border: 0;
  background-color: transparent;
}

#news p {
  margin: .5rem 0;
  width: 100%;
  font-size: .9rem;
}

#news a,
#news a:visited {
  text-decoration: none;
}

#news a.redButton {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width:991px) {
  #news img {
    width: 175px;
    height: 225px;
  }

  #news h2 {
    font-size: 1.2rem;
    line-height: 1.2rem;
  }
}

@media (max-width:776px) {
  #news img {
    width: 100%;
  }
}

/* Introduced in response to COVID-19 */
.alertSection {
  z-index: 9989;
  position: relative;
  border-bottom: 2px solid #cb2026;
  background-color: #f9d8d9;
  color: #cb2026;
  padding: 0;
  vertical-align: top;
  box-shadow: 0 10px 15px rgba(0, 0, 0, .25);
}

.alertSection h1 {
	display: none;
  color: #333;
	height: 100%;
  /* margin-top: auto;
  margin-bottom: auto; */
	font-size: 1.75rem;
	line-height: 1.85rem;
}

@media(max-width:991px) {
  .alertSection h1 {
    font-size: 1.2rem;
    line-height: 1.3rem;
  }
}

.alertSection h1 a,
.alertSection h1 a:visited {
  color: #cb2026;
}

.alertSection h1 a:hover {
  color: #990000;
  text-decoration: none;
}

.alertSection p {
  color: #333;
  height: 100%;
  /* margin-top: auto;
  margin-bottom: auto; */
}

/* ------ */
#homepagePresentation {
  position: relative;
  height: 100vh;
  margin-top: -125px;
  padding-top: 125px;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

video {
  position: fixed;
  top: 125px;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  z-index: 1;
  transform: translateX(-50%) translateY(-125px);
  background: #cb2026 no-repeat;
  background-size: cover;
}

button#pause {
  z-index: 500;
  position: absolute;
  top: 125px;
  right: 0;
  display: block;
  padding: .5rem;
  margin: .5rem;
  font-size: 1.3rem;
  background: rgba(0, 0, 0, 0);
  color: rgba(255, 255, 255, 0.5);
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: 0;
  cursor: pointer;
  transition: .5s color, .5s background;
}

button#pause:hover {
  color: rgba(255, 255, 255, 1);
  /* border: 1px solid rgba(255, 255, 255, 1); */
  background: rgba(0, 0, 0, 0.5);
}

a.bounce i {
  position: relative;
  z-index: 1;
  top: .5rem;
  font-size: 3rem;
  color: rgba(255, 255, 255, .5);
  transition: .5s color;
}

a.bounce i:hover {
  color: rgba(255, 255, 255, 1);
}

.bounce {
  position: absolute;
  z-index: 1;
  bottom: 5px;
  left: 50%;
  width: 60px;
  height: 60px;
  margin-left: -30px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, .5);
  -webkit-border-radius: 50%;
  -moz-border-radius: 50%;
  -ms-border-radius: 50%;
  border-radius: 50%;
  animation: bounce 2.5s infinite;
  -webkit-animation: bounce 2.5s infinite;
  -moz-animation: bounce 2.5s infinite;
  -o-animation: bounce 2.5s infinite;
  transition: .25s border, .25s background;
}

.bounce:hover {
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid rgba(255, 255, 255, 1);
}

#homepagePresentation button i,
#homepagePresentation a i {
  width: 100%;
  text-align: center;
  margin: auto;
}

.stopfade {
  opacity: .5;
  transition: .5s opacity;
}

.videoOverlay {
  z-index: 1;
  position: absolute;
  background-color: rgba(0, 0, 0, 0.35);
  background-image: url("img/subtle-dots.png");
  box-shadow: 0px 5px 15px rgba(0, 0, 0, 1);
  width: 100%;
  height: 90vh;
}

#videoOverlay-content {
  position: relative;
  z-index: 3;
  top: 20%;
  text-align: center;
  margin: auto;
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(10, 10, 10, 0.25);
  border-radius: 25px;
  box-shadow: 0px 5px 15px rgba(0, 0, 0, 1);
  color: white;
  padding: .5rem 2rem;
  width: auto;
  max-width: 750px;
  float: none;
}

#videoOverlay-content h1,
#videoOverlay-content p {
  text-align: center;
  color: #fff;
  margin-left: auto;
  margin-right: auto;
}

#videoOverlay-content h1 {
  text-shadow: 0px 0px 6px rgba(0, 0, 0, 1);
  font-size: 2.75rem;
  line-height: 3.05rem;
  letter-spacing: 3px;
}

#videoOverlay-content p {
  max-width: 90%;
	font-size: 1.35rem;
  line-height: 1.75rem;
}

#videoOverlay-content a,
#videoOverlay-content a:visited {
  display: inline-block;
  width: 45%;
  color: #fff;
  text-decoration: none;
  border: 2px solid rgb(203, 32, 38, 0);
  background: rgb(203, 32, 38, 0.6);
  padding: 1rem;
  margin: 1rem .5rem;
  -webkit-transition: background .5s;
  transition: background .5s, border .5s;
  font-family: nobel, arial, sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.25rem;
  text-transform: uppercase;
}

#videoOverlay-content a:hover {
  background: #cb2026;
  border: 2px solid rgb(255, 255, 255, 1) !important;
}

.background .Content h1,
.background .Content p {
  margin: 1rem 1rem 0 1rem;
  text-align: left;
}

#landingHero {
  margin-top: 0;
}

#landingHero img {
  width: auto;
}

@media (max-width:768px) {
  #landingHero img {
    margin: 1rem 0;
  }

  .landingHeroContent {
    margin: 1rem;
  }

  .landingHeroContent a.button {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
  }
}

.landingHeroContent a.button {
  display: block;
  margin: 0 .5rem;
  margin-bottom: 1rem;
  float: left;
}

.landingCTA {
  margin: 0;
}

.landingCTA .container {
  padding: 2rem;
}

.landingCTA a.button,
.landingCTA a.button:visited {
  font-size: 1.5rem;
  line-height: 1.6rem;
  padding: 1rem;
  font-weight: 500;
  height: auto;
  text-decoration: none;
  border: 2px solid #333;
}

.landingCTA a.button:hover {
  font-size: 1.5rem;
  line-height: 1.6rem;
  height: auto;
  text-decoration: none;
  border: 2px solid #333;
}

#profiles h1 {
  font-size: 3rem;
  line-height: 3rem;
  color: #cb2026
}

#profiles h1 span.redText {
  font-size: 3rem;
  line-height: 3rem;
  text-shadow: -1px -1px 0px #000,
    2px 2px 0px #000;
}
}

#profiles h2 a,
#profiles h2 a:visited {
  color: #cb2026;
}

#profiles p {
  color: #000;
  padding: 0 .25rem;
}

#profiles p.profiles {
  color: #000;
  font-size: 1.2rem;
  line-height: 1.2rem;
}

@media (max-width: 800px) {
  html {
    background: transparent no-repeat center center fixed;
  }

  .videoOverlay {
    background-color: rgba(0, 0, 0, 0.7);
  }

  #videoOverlay-content {
    top: 10vh;
    border-radius: 0;
    padding: .5rem;
    max-width: none;
    width: 90%;
    height: auto;
    float: none;
    font-size: 1rem;
    margin: auto;
    border: 0;
    background: none;
    box-shadow: none;
  }

  #videoOverlay-content h1 {
    font-size: 2.1rem;
		font-size: 6vw;
    line-height: 2.2rem;
		line-height: 6.5vw;
  }

  #videoOverlay-content p {
    font-size: 1.2rem;
    line-height: 1.5rem;
  }

  #videoOverlay-content a {
    display: inline-block;
    width: auto;
		min-width: 40%;
    margin: 5px;
  }

  #videoOverlay-content hr {
    width: 30%;
    margin-left: auto;
    margin-right: auto;
  }

  .bounce {
    position: absolute;
    top: calc(100% - 100px);
  }
}

@media (max-width: 425px) {
  #videoOverlay-content a {
    display: block;
    width: auto;
    margin: 5px;
  }
}

.mobileOnly {
  display: none;
}

@media (max-width:768px) and (min-width: 426px) {
	.alertSection {
		margin-top: -10px;
    padding-top: 5px;
	}
}

@media (max-width:425px) {
  button#pause, .bounce {
    display: none;
  }
  .alertMessage p {
    display: none;
  }
  .mobileOnly {
    display: inline;
  }
	.alertSection {
    padding: .25rem 0;
  }
	.alertSection h1 {
		display: contents;
		font-size: 1.25rem;
		line-height: 1.5rem;
	}
	.alertSection i {
    font-size: .85rem;
		vertical-align: 3px;
  }
}

@media (max-width: 370px) {
  .videoOverlay button {
    width: 100%;
    margin-bottom: 2px;
  }

  #videoOverlay-content {
    top: 5%;
  }

  #videoOverlay-content h1 {
    font-size: 1.45rem;
		line-height: 1.5rem;
  }
}

@media (max-height: 665px) {
  .videoOverlay {
    top: 50px;
  }

  .bounce,
  .bounce:hover {
    bottom: 0;
    top: 85%;
    left: 50%;
    background: none;
    border: 0;
    margin-left: -30px;
  }

  #videoOverlay .hr-white.rotate {
    visibility: hidden;
  }

  #homepagePresentation {
    height: 540px;
  }
}

@-webkit-keyframes bounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    -webkit-transform: translateY(0);
  }

  40% {
    -webkit-transform: translateY(-25px);
  }

  60% {
    -webkit-transform: translateY(-15px);
  }
}

@-moz-keyframes bounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    -moz-transform: translateY(0);
  }

  40% {
    -moz-transform: translateY(-25px);
  }

  60% {
    -moz-transform: translateY(-15px);
  }
}

@-o-keyframes bounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    -o-transform: translateY(0);
  }

  40% {
    -o-transform: translateY(-25px);
  }

  60% {
    -o-transform: translateY(-15px);
  }
}

@keyframes bounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }

  40% {
    transform: translateY(-25px);
  }

  60% {
    transform: translateY(-15px);
  }
}
