@import url("https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap");

@import url("./reest.css");

:root {
  /* sizes */
  --size-tin: 1rem;
  --size-sml: 2rem;
  --size-mid: 3rem;
  --size-big: 6rem;
  --size-lrg: 12rem;
  --size-con: 15vw;

  /* colors */
  --color-text: #282a29;
  --color-background: #f7f6f6;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 3pt;
  scroll-behavior: smooth;
}

body {
  font-family: "Open Sans", sans-serif;
  font-size: 4rem;
  background: var(--color-background);
  color: var(--color-text);
}

/* general */
/* main footer */
.main-footer {
  padding: calc(var(--size-lrg) * 3) var(--size-con);
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-areas:
    "a a m i"
    "a a m i"
    "a a m i"
    "a a m i"
    ". . l i"
    "s s l i";
  gap: var(--size-big);
}

.main-footer-address {
  grid-area: a;
}
.main-footer-social-links {
  grid-area: s;
}
.main-footer-map {
  grid-area: m;
}
.main-footer-logo {
  grid-area: l;
}
.main-footer-image {
  grid-area: i;
}

.main-footer-address {
  display: flex;
  flex-flow: column nowrap;
  gap: var(--size-mid);
  font-size: 5.5rem;
}

.main-footer-address .title {
  font-weight: 600;
}

.main-footer-address a,
.main-footer-address a:link,
.main-footer-address a:visited {
  color: var(--color-text);
  text-decoration: none;
  display: block;
}

.main-footer-address a.email-address {
  text-decoration: underline;
}

.main-footer-social-links {
  display: flex;
  flex-flow: row wrap;
  align-items: center;
  gap: var(--size-mid);
}

.main-footer-social-links .text {
  font-size: 6rem;
  font-weight: 600;
  text-transform: uppercase;
}

.main-footer-social-links a img {
  height: 50px;
  width: 50px;
}

.main-footer-map iframe {
  height: 100%;
  width: 100%;
}

.main-footer-logo {
  display: flex;
  align-items: flex-end;
}

.main-footer-logo img {
  width: 100%;
}

.main-footer-image img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: center;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(100px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in:not(.delay) {
  animation: fadeIn 2s;
}

.fade-in.delay:not(.active-viewport) {
  opacity: 0;
}

.fade-in.active-viewport {
  animation: fadeIn 2s;
}

/* home page */
/* section hero */
.home-hero {
  padding: 0 var(--size-con);
  position: relative;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-flow: column nowrap;
  justify-content: space-between;
  align-items: center;
  z-index: 0;
  overflow: hidden;
}

.home-hero > video {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: center;
  z-index: -1;
}

.main-header {
  padding: var(--size-big) 0;
  min-height: 20vh;
  min-height: 20dvh;
  width: 100%;
  display: flex;
  flex-flow: column nowrap;
  justify-content: center;
  overflow: hidden;
}

.main-header-nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  justify-content: space-between;
  gap: var(--size-big);
}

.main-header-nav-link-container {
  text-align: center;
}

.main-header-nav a,
.main-header-nav a:link,
.main-header-nav a:visited {
  font-size: 5rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  text-align: center;
  color: #e7dfd8;
  text-shadow: rgb(116, 108, 101) 2px 0px 0px,
    rgb(116, 108, 101) 1.75517px 0.958851px 0px,
    rgb(116, 108, 101) 1.0806px 1.68294px 0px,
    rgb(116, 108, 101) 0.141474px 1.99499px 0px,
    rgb(116, 108, 101) -0.832294px 1.81859px 0px,
    rgb(116, 108, 101) -1.60229px 1.19694px 0px,
    rgb(116, 108, 101) -1.97999px 0.28224px 0px,
    rgb(116, 108, 101) -1.87291px -0.701566px 0px,
    rgb(116, 108, 101) -1.30729px -1.51361px 0px,
    rgb(116, 108, 101) -0.421592px -1.95506px 0px,
    rgb(116, 108, 101) 0.567324px -1.91785px 0px,
    rgb(116, 108, 101) 1.41734px -1.41108px 0px,
    rgb(116, 108, 101) 1.92034px -0.558831px 0px;
}

.home-hero h1 {
  padding-bottom: 10px;
}

img.home-hero-logo {
  height: 100%;
  width: 100%;
  max-height: 30vh;
  max-height: 30dvh;
}

/* section our school */
.home-section-our-school {
  padding: var(--size-lrg) var(--size-con);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  gap: var(--size-lrg);
  background: var(--color-background);
}

.home-section-our-school > div {
  flex: 1;
}

.home-section-our-school-title {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 8rem;
  font-weight: 600;
}

.home-section-our-school-image img {
  width: 100%;
  max-width: 600px;
}

.home-section-our-school-text {
  font-size: 5rem;
  display: flex;
  flex-flow: column nowrap;
  gap: var(--size-mid);
  font-weight: 500;
  text-align: justify;
}

/* section professors */
.home-section-professors {
  padding: var(--size-lrg) calc(var(--size-con) + var(--size-lrg));
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-flow: column nowrap;
  justify-content: center;
  gap: var(--size-lrg);
  background-color: rgb(255, 250, 160);
}

.home-section-professors-title {
  font-size: 8rem;
  font-weight: 600;
  text-align: center;
}

.home-section-professors-list {
  display: flex;
  flex-flow: column nowrap;
  gap: var(--size-lrg);
}

.home-section-professors-list-item {
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
  align-items: center;
  gap: var(--size-lrg);
}

.home-section-professors-list-item-image img {
  height: 275px;
  width: 275px;
  border-radius: 50%;
}

.home-section-professors-list-item-text {
  flex: 1;
  display: flex;
  flex-flow: column nowrap;
  gap: var(--size-big);
  min-width: 400px;
}

.home-section-professors-list-item-text .name,
.home-section-professors-list-item-text .name:link,
.home-section-professors-list-item-text .name:visited {
  font-size: 6rem;
  font-weight: 600;
  text-decoration: underline;
}

.home-section-professors-list-item-text span {
  font-size: 5rem;
  text-align: justify;
}

/* section images grid */
.home-section-images {
  padding: var(--size-lrg) var(--size-con);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-flow: column nowrap;
  gap: var(--size-mid);
  background-color: rgb(129, 19, 49);
}

/* section videos */
.home-section-videos {
  padding: var(--size-lrg) var(--size-con);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-flow: row wrap;
  gap: var(--size-mid);
  background-color: rgb(129, 19, 49);
}

.home-section-videos video {
  flex: 1;
  min-width: 270px;
  background: #000000;
}

@media only screen and (min-width: 600px) {
  /* section images grid */
  .home-section-images-grid {
    height: 80vh;
    height: 80dvh;
    display: grid;
    gap: var(--size-mid);
    grid-template-columns: repeat(11, 1fr);
    grid-template-rows: repeat(12, 1fr);
  }

  .home-section-images-grid-item img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: top;
  }

  .home-section-images-grid-item:nth-child(1) {
    grid-column: span 4;
    grid-row: span 4;
  }
  .home-section-images-grid-item:nth-child(2) {
    grid-column: span 3;
    grid-row: span 4;
  }
  .home-section-images-grid-item:nth-child(3) {
    grid-column: span 4;
    grid-row: span 4;
  }

  .home-section-images-grid-item:nth-child(4) {
    grid-column: span 3;
    grid-row: span 6;
  }
  .home-section-images-grid-item:nth-child(5) {
    grid-column: span 3;
    grid-row: span 4;
  }
  .home-section-images-grid-item:nth-child(6) {
    grid-column: span 3;
    grid-row: span 5;
  }
  .home-section-images-grid-item:nth-child(7) {
    grid-column: span 2;
    grid-row: span 6;
  }

  .home-section-images-grid-item:nth-child(8) {
    grid-column: span 3;
    grid-row: span 4;
  }
  .home-section-images-grid-item:nth-child(9) {
    grid-column: span 3;
    grid-row: span 3;
  }
  .home-section-images-grid-item:nth-child(10) {
    grid-column: span 3;
    grid-row: span 2;
  }
  .home-section-images-grid-item:nth-child(11) {
    grid-column: span 2;
    grid-row: span 2;
  }
}

@media only screen and (max-width: 1600px) {
  :root {
    /* sizes */
    --size-con: 12vw;
  }
}

@media only screen and (max-width: 1200px) {
  :root {
    /* sizes */
    --size-con: 8vw;
  }

  .home-section-our-school {
    flex-direction: column;
  }
}

@media only screen and (max-width: 900px) {
  :root {
    /* sizes */
    --size-con: 5vw;
  }

  /* general */
  /* main footer */
  .main-footer {
    grid-template-areas:
      "a a m"
      "s s s"
      "l l l"
      "i i i";
  }

  .main-footer-social-links {
    min-height: 200px;
    justify-content: center;
    align-items: center;
  }

  /* homepage */
  /* section hero */
  .main-header-nav {
    grid-template-columns: repeat(2, 1fr);
  }

  .home-section-professors-list-item-text {
    min-width: unset;
  }
}

@media only screen and (max-width: 600px) {
  :root {
    /* sizes */
    --size-con: 3rem;
  }

  /* general */
  /* main footer */
  .main-footer {
    padding-top: var(--size-lrg);
    padding-bottom: var(--size-mid);
    grid-template-areas:
      "a"
      "m"
      "s"
      "l"
      "i";
  }

  /* homepage */
  /* section hero */
  .main-header-nav {
    grid-template-columns: repeat(1, 1fr);
  }

  /* section our school */
  .home-section-our-school-text {
    text-align: left;
  }

  /* section professors */
  .home-section-professors-list-item {
    flex-direction: column;
  }

  .home-section-professors-list-item-text span {
    text-align: left;
  }

  /* section images grid */
  .home-section-images-grid {
    display: flex;
    flex-flow: column nowrap;
    gap: var(--size-mid);
  }

  .home-section-images-grid-item,
  .home-section-images-grid-item img {
    width: 100%;
  }

  * {
    text-align: center !important;
  }
}
