/*--------------------Global------------------------*/

:root {
  --clr-sais: rgba(204, 51, 51, 1);
  --clr-dark-highlight: darkred;
  --fade-white: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 1) 70%,
    rgba(225, 255, 255, 0.5) 85%,
    rgba(255, 255, 255, 0) 100%
  );
  --fade-black: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 1) 70%,
    rgba(0, 0, 0, 0.5) 85%,
    rgba(0, 0, 0, 0) 100%
  );
}

*,
*::before,
*::after {
  margin: 0px;
  padding: 0px;
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
  font-family: Helvetica, sans-serif;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

/*------------------------Layout--------------------------*/

body {
  position: relative;
  overflow-y: hidden;
}

header {
  display: flex;
  /* flex-direction: column; */
  padding: 1.5rem;
}

section {
  /* padding: 8rem 2rem 2.5rem; */
  padding: 3rem 2rem;
  margin: 0 0 0 0;
  scroll-margin-top: 4rem;
  /* padding: 2rem; */
  /* border: 0.5rem solid var(--clr-sais); */
  /* background-color: var(--clr-sais); */
  /* overflow-x: hidden; */
}

section:nth-child(even) {
  background-color: var(--clr-sais);
}

section h3,
h4 {
  padding: 1.5rem 0 1rem 1.5rem;
  font-size: 3rem;
  font-family: Helvetica, sans-serif;
}

.staffName {
  padding-bottom: 0;
}

h4 {
  font-size: 2.25rem;
}

p {
  font-family: "Lucida Sans", "Lucida Sans Regular", "Lucida Grande",
    "Lucida Sans Unicode", Geneva, Verdana, sans-serif;
  padding: 1.5rem;
  font-size: 1.75rem;
  margin-bottom: 2rem;
}

.rules {
  font-weight: 600;
  padding-top: 0;
}

.elpUl {
  margin-bottom: 0;
}

section:nth-child(even) {
  color: white;
}

#intro {
  position: relative;
}

.elp1,
.elp2,
.contactTop,
.contactMiddle,
.contactBottom {
  display: flex;
}

.elpLayout1,
.elpLayout4 {
  background-color: var(--clr-dark-highlight);
  border-radius: 2rem;
}

#attendance {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#attendance h3 {
  align-self: flex-start;
}

.contact,
.elp {
  display: flex;
  flex-direction: column;
}

#contact p {
  text-align: center;
}

/* #exams {
  display: flex;
flex-direction: column;
} */

/* #exams p {
  float: left;
} */

/*--------------------image/video-----------------------*/
video {
  width: 65%;
  border-radius: 1.5rem;
}

.youTube {
  display: flex;
  justify-content: center;
}

iframe {
  border-radius: 1.5rem;
  margin: 3rem;
}

#introImage {
  position: absolute;
  z-index: -1;
  width: 100%;
  inset: 0 0 0 0;
  opacity: 50%;
}

.jonathan,
.gavin,
.seanghai,
.soonhoon,
.sophanna,
.elpLayout {
  flex: 50%;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.profilePic {
  padding: 2rem;
  height: 35rem;
  width: 25rem;
  margin-left: 1rem;
}

.examImage,
.palsImage {
  width: 60%;
  object-fit: scale-down;
  /* align-self: flex-end; */
  float: right;
  padding: 2rem;
  margin: 2rem 0;
}

.palsImage {
  width: 50%;
}

@media screen and (max-width: 768px) {
  .examImage,
  .palsImage {
    width: 100%;
  }
  .elp1,
  .elp2,
  .contactTop,
  .contactMiddle,
  .contactBottom {
    flex-direction: column;
  }
  .elpLayout1,
  .elpLayout3 {
    background-color: var(--clr-dark-highlight);
    border-radius: 2rem;
  }
  .elpLayout4 {
    background-color: var(--clr-sais);
  }
  video {
    width: 100%;
  }
}

/*----------------------------buttons-------------------------*/

.button {
  display: block;
  width: fit-content;
  margin: 0 0 2rem 2rem;
  padding: 1.5rem 3rem;
  font-size: 2.25rem;
  background-color: var(--clr-dark-highlight);
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 900;
  color: white;
  border-radius: 1.5rem;
  border: none;
  border: 0.5rem solid rgba(255, 255, 255, 0);
  text-decoration: none;
}

.button:hover {
  color: var(--clr-dark-highlight);
  background-color: white;
  border: 0.5rem solid var(--clr-dark-highlight);
}

section:nth-child(even) .button {
  /* margin: 0 0 2rem 2rem; */
  /*padding: 1.5rem 3rem;
  font-size: 2.25rem; */
  background-color: var(--clr-dark-highlight);
  /* cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 900; */
  color: white;
  /* border-radius: 1.5rem; */
  /* border: none; */
}

section:nth-child(even) .button:hover {
  color: var(--clr-dark-highlight);
  background-color: white;
}

#downloads {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

/*----------------------Navigation-----------------------*/

nav {
  position: sticky;
  top: 0;
  /* background: var(--fade-white); */
  /* padding: 0 0 1.75rem; */
  /* margin-bottom: -1.75rem; */
  display: flex;
  background-color: var(--clr-sais);
  height: 6.5rem;
  z-index: 50;
}

.navbar {
  display: flex;
  position: relative;
  list-style: none;
  font-size: 2rem;
  font-weight: 800;
  padding: 2rem;
  background-color: var(--clr-sais);
  width: 100%;
  z-index: 40;
}

.navbar li a {
  color: white;
  padding: 2rem;
  transition: all 0.5s ease 0s;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.navbar li a:hover {
  background-color: var(--clr-dark-highlight);
  border-radius: 0.5rem;
  /* padding: 2rem; */
}

.mob-nav {
  display: none;
  cursor: pointer;
  position: absolute;
  top: 1.8rem;
  right: 0.5rem;
}

.mob-nav div {
  width: 2.5rem;
  height: 0.25rem;
  background-color: white;
  margin: 0.5rem;
  transition: all 0.5s ease;
}

@media screen and (max-width: 768px) {
  .mob-nav {
    display: block;
  }

  .navbar {
    position: absolute;
    right: 0;
    top: 6.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--clr-sais);
    transform: translateX(100%);
    transition: transform 0.5s ease-in;
    /* z-index: 100; */
    opacity: 0.95;
    width: fit-content;
  }

  .navbar li {
    padding: 1.5rem;
  }

  .backToTop {
    margin-top: -8rem;
  }
}

.nav-active {
  transform: translateX(0%);
}

.toggle .line1 {
  transform: rotate(-45deg) translate(-5px, 6px);
}
.toggle .line2 {
  opacity: 0;
}
.toggle .line3 {
  transform: rotate(45deg) translate(-5px, -6px);
}

.sticky {
  position: fixed;
  top: 0;
  width: 100%;
}

.backToTop {
  /* border: black solid 0.3rem; */
  position: absolute;
  right: 3rem;
  top: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

/* ------------------Title---------------- */

.logoCont {
  display: flex;
  align-items: center;
}

.logo {
  height: 14rem;
}

.heading {
  font-size: 8rem;
  font-family: Helvetica, sans-serif;
  color: var(--clr-sais);
  padding: 1rem 0 0 1rem;
}

.subheading {
  font-size: 3rem;
  font-family: "Lucida Sans", "Lucida Sans Regular", "Lucida Grande", sans-serif;
  color: var(--clr-dark-highlight);
  margin-top: -2rem;
}

.elpReq {
  padding: 0 0 0 3.5rem;
  font-size: 1.5rem;
}
