* {
  margin: 0px;
  padding: 0px;
  box-sizing: border-box;
  background-color: #172238;
}

nav {
  display: flex;
  justify-content: space-around;
  align-items: center;
  min-height: 8vh;
  background-color: #172238;
  color: white;
}

.body{
  overflow: scroll;
}
.logo {
  width: 100vw;
  height: 15vh;
  position: fixed;
  z-index: 1;
}

.logo img {
  width: 27vh;
  position: fixed;
  background-color: transparent;
  top: 0;
  margin-top: 10px;
}

.container {
  width: 100vw;
  overflow: hidden;
  height: 600px;
  padding-top: 23px;
}

.school-container {
  background-color: transparent;
}

#video {
  opacity: 0.2;
  /* margin-top: -70px; */
  /* width: 102vw; */
  /* transform: translateX(-10px); */
  position: fixed;
  right: 0;
  bottom: 0;
  min-width: 100%;
  min-height: 100%;
}

.school-one {
  height: 21vw;
  width: 21vw;
  background-color: #bbb;
  border-radius: 50%;
  margin-top: 40px;
  background-image: url("/images/regent_mansoura.jpg");
  background-size: cover;
  box-shadow: rgba(0, 0, 0, 0.06) 0px 2px 4px 0px inset;
}

.school-two {
  height: 21vw;
  width: 21vw;
  background-color: #bbb;
  border-radius: 50%;
  margin-top: 40px;
  background-image: url("/images/regent_west.jpg");
  background-size: cover;
  background-position-x: -158px;
  box-shadow: rgba(0, 0, 0, 0.06) 0px 2px 4px 0px inset;
}

.school-three {
  height: 21vw;
  width: 21vw;
  background-color: #bbb;
  border-radius: 50%;
  margin-top: 40px;
  background-image: url("/images/regent_east.jpg");
  background-size: cover;
  background-position-x: -158px;
  box-shadow: rgba(0, 0, 0, 0.06) 0px 2px 4px 0px inset;
}

.school-four {
  height: 300px;
  width: 300px;
  background-color: rgb(224, 224, 224);
  border-radius: 50%;
  margin-top: 40px;
  background-image: url("/images/regent_icon.png");
  background-size: cover;
  background-position-x: 50px;
}

.school-one:hover {
  transform: translateY(-15px);
  background-position-y: -70px;
  transition: background-position-y 10s;
}

.school-two:hover {
  transform: translateY(-15px);
  background-position-x: -200px;
  transition: background-position-x 10s;
}

.school-three:hover {
  transform: translateY(-15px);
  background-position-x: -100px;
  transition: background-position-x 10s;
}

.school-four:hover {
  transform: translateY(-15px);
  background-position-x: 200px;
  transition: background-position-x 10s;
}

h1,
a {
  color: white;
  background-color: transparent;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.9rem;
  text-decoration: none;
}

.wrapper {
  display: grid;
  grid-template-columns: 21vw 21vw;
  grid-gap: 20px 20px;
  transform: translateY(-550px);
  background-color: transparent;
  justify-content: space-evenly;
  align-content: center;
}

.single-school {
  justify-content: center;
  display: flex;
}

.breaker{
  margin-top: 25px;
  width: 80%;
  margin-left: 10%;
  transform: translateY(-550px);
  background-color: #c21d28;
}
.breaker p{
  background-color: #c21d28;
  color: transparent; /* make the text invisible */
  max-height: 5px;
}

.second-title{
  margin-top: 25px;
}

.section-title {
  color: #fff;
  background-color: transparent;
  text-align: center;
  transform: translateY(-550px);
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.9rem;
  text-decoration: none;
}
.section-title h2 {
  background-color: transparent;
}

.hover {
  --c: #c21d28; /* the color */

  color: #fff;
  background: linear-gradient(90deg, #fff 50%, var(--c) 0)
      calc(100% - var(--_p, 0%)) / 200% 100%,
    linear-gradient(var(--c) 0 0) 0% 100% / var(--_p, 0%) 100% no-repeat;
  -webkit-background-clip: text, padding-box;
  background-clip: text, padding-box;
  transition: 0.5s;
}
.hover:hover {
  padding: 0.2rem 0.4rem 0.2rem 0.4rem;

  --_p: 100%;
}

.hover2 {
  --s: 0.1em; /* the thickness of the line */
  --c: #c21d28; /* the color */

  color: #fff;
  padding-bottom: var(--s);
  background: linear-gradient(90deg, var(--c) 50%, #000 0)
      calc(100% - var(--_p, 0%)) / 200% 100%,
    linear-gradient(var(--c) 0 0) 0% 100% / var(--_p, 0%) var(--s) no-repeat;
  -webkit-background-clip: text, padding-box;
  background-clip: text, padding-box;
  transition: 0.5s;
}
.hover2:hover {
  --_p: 100%;
}

.mt-50 {
  margin-top: 50px;
}

.section-title h5 {
  color: white;
  position: relative;
  padding-bottom: 12px;
}
@media screen and (max-width: 768px) {
  * {
    overflow-y: scroll;
  }

  .section-title {
    transform: translateY(50px);
  }

  .breaker{
    transform: translateY(50px);
  }

  .wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateY(50px);
    padding-bottom: 70px;
  }

  .logo img {
    width: 28vh;
    margin-bottom: 15px;
  }

  .school-one,
  .school-two,
  .school-three,
  .school-four {
    width: 70vw;
    height: 70vw;
  }

  .school-two {
    background-position-x: center;
  }

  .container {
    overflow: hidden;
    height: 150vh;
    padding-top: 20px;
    object-fit: fill;
    position: fixed;
  }

  #video {
    opacity: 0.2;
    width: 190vh;
    transform: translateX(-400px);
  }
}

@media screen and (min-width: 768px) {


  .schooltext-one {
    order: 5;
  }

  .schooltext-two {
    order: 6;
  }

  .schooltext-three {
    order: 7;
  }

  .schooltext-four {
    order: 8;
  }
}

@media screen and (min-width: 768px) and (max-width: 1295px) and (orientation: portrait) {
  .wrapper {
    display: grid;
    grid-template-columns: 300px 300px;
    grid-row: auto auto;
    transform: translateY(90px);
    padding-bottom: 200px;
  }

  .school-one {
    order: 0;
  }

  .school-two {
    order: 3;
  }

  .school-three {
    order: 6;
  }

  .school-four {
    order: 6;
  }

  h1,
  a {
    font-size: 2.2rem;
  }

  .container {
    overflow: hidden;
    height: 150vh;
    padding-top: 20px;
    object-fit: fill;
    position: fixed;
  }

  #video {
    opacity: 0.2;
    width: 155vh;
    transform: translateY(-90px);
    transform: translateX(-400px);
    object-fit: cover;
  }

  .logo img {
    height: 10%;
    width: auto;
    padding-top: 15px;
  }
}
