:root {
  --yellow: #ffbb00;
  --wine: #8d0523;
  font: 20px "Raleway", sans-serif;
}

html,
body {
  height: 100%;
  box-sizing: border-box;
}

.pageWrapper {
  position: relative;
  height: 100%;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: 15% auto 5%;
  grid-template-areas:
    "h h h h h h h h h h h h"
    "c c c c c c c c c c c c"
    "f f f f f f f f f f f f";
}

.header {
  grid-area: h;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 20px -5px var(--wine);
}

.header a {
  text-decoration: none;
}

.header .header__navbar {
  /* position: sticky; */
  width: 100%;
  height: 85%;
  display: flex;
  flex: 1;
  justify-content: space-between;
  align-items: center;
}

.header__navbar .brand {
  height: 100%;
  width: 10%;
  display: flex;
  justify-content: center;
}

.header__navbar .brand img {
  display: block;
  height: 100%;
  border-radius: 50%;
}

.header__navbar .navlinks {
  width: 60%;
  height: 40%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style-type: none;
}

.navlinks .navlinks__navlink {
  width: 13%;
  color: var(--wine);
  margin-right: 20px;
  font-size: 0.8rem;
  text-align: center;
}

.navlinks__navlink:hover {
  font-weight: 600;
}

.navlinks__navlink select {
  background: none;
  border: 0;
  color: var(--wine);
  cursor: pointer;
  /*Adds a cursor: pointer to the select tag*/
}

.navlinks__navlink select:focus {
  outline: none;
}

.navlinks .navlinks__navlink:last-child {
  padding: 5px;
  border-radius: 16px;
  color: #fff;
  background: var(--wine);
}

.navlinks .navlinks__navlink:last-child:hover {
  border: 1px solid var(--wine);
  color: var(--wine);
  background: #fff;
}

.toggleIcon {
  display: none;
}

.content {
  grid-area: c;
  position: relative;
}

.section-title {
  color: var(--wine);
  font-size: 1.4rem;
  box-shadow: inset 0 -4px 0 0 var(--yellow);
}

/*
    HOME PAGE
*/

.mySlides {
  position: relative;
  display: none;
  height: 100%;
}

.mySlides img {
  display: block;
  max-width: 100%;
  height: 100%;
}

/* Slideshow container */
.slideshow-container {
  max-width: 80vw;
  height: 75vh;
  margin: 0 auto;
  position: relative;
}

/* Caption text */
.mySlides .text {
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--yellow);
  font-size: 2rem;
  font-weight: 600;
  position: absolute;
  background: hsla(0, 0%, 15%, 0.4);
  height: 100%;
  z-index: 10;
  top: 0%;
  width: 100%;
  text-align: center;
}

div.text p {
  width: 70%;
}

/* The dots/bullets/indicators */
.dot {
  height: 10px;
  width: 10px;
  margin: 0 2px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}

.active {
  background-color: var(--wine);
}

/* Fading animation */
.fade {
  -webkit-animation-name: fade;
  -webkit-animation-duration: 1.5s;
  animation-name: fade;
  animation-duration: 1.5s;
  border-radius: 9px;
}

@-webkit-keyframes fade {
  from {
    opacity: 0.4;
  }

  to {
    opacity: 1;
  }
}

@keyframes fade {
  from {
    opacity: 0.4;
  }

  to {
    opacity: 1;
  }
}

/*
    Vision Mission Statement
*/

.legacies {
  position: relative;
  width: 90%;
  margin: 10px auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  box-sizing: border-box;
  padding: 10px;
}

.legacies .legacies_legacy {
  border: 1px solid var(--wine);
  border-radius: 9px;
  text-align: justify;
  text-justify: inter-word;
  padding: 10px;
  width: 300px;
  margin: 10px;
  box-shadow: 0 5px 10px 0 var(--yellow);
}

.legacies_legacy i {
  font-size: 2rem;
  color: var(--wine);
}

.legacy_title {
  color: var(--wine);
  font-size: 1.3rem;
  margin: 5px 0;
}

/*
    News Section
*/
.news {
  margin-top: 50px;
  width: 85%;
  margin: auto;
  margin-top: 3rem;
}

.news .news_row {
  box-sizing: border-box;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 10px;
}

.news_row .news_row_item {
  box-sizing: border-box;
  width: 45%;
  display: flex;
  border: 1px solid var(--yellow);
  /* align-items: center; */
  justify-content: center;
}

.news_row_item img {
  align-self: center;
  display: block;
  width: 200px;
  height: 200px;
}

.news_row_item .shortpiece {
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
  width: 68%;
  padding: 10px;
  font-size: 1.1rem;
  font-weight: 600;
  text-align: left;
}

.shortpiece .newsDate {
  text-align: left;
  font-size: 0.5rem;
  font-weight: 600;
  font-style: italic;
  color: #757575;
}

.shortpiece a {
  font-size: 0.7rem;
  text-decoration: none;
  color: var(--wine);
}

.shortpiece ul {
  display: flex;
  flex-wrap: wrap;
  font-size: 0.7rem;
  font-weight: normal;
}
.shortpiece ul li {
  display: block;
  width: 45%;
  margin-bottom: 5px;
}

.shortpiece a:hover {
  color: var(--yellow);
}

/*
    ABOUT PAGE
*/

.flex-vertical {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/*
    PHILOSOPHY, VISSION/MISSION 
*/
.content > .philosophy {
  position: relative;
  width: 100%;
  background: url("/images/professions.jpeg");
  background-repeat: no-repeat;
  background-size: cover;
  justify-content: space-between;
  color: #fff;
}

.philosophy::before {
  content: "";
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  left: 0;
  top: 0;
  background: rgba(39, 39, 39, 0.9);
  z-index: 2;
  width: 100%;
  height: 100%;
}

.philosophy > * {
  width: 60%;
  z-index: 3;
}

.philosophy h3 {
  display: inline;
  font-size: 1.5rem;
  font-weight: 600;
  box-shadow: inset 0 -4px 0 0 var(--yellow);
}

.bag-white {
  background: #fff;
}

.pad10 {
  padding: 10px;
}

.philosophy__watchword {
  justify-content: center;
  font-size: 1.6rem;
  padding: 20px;
  text-align: center;
}

.philosophy__watchword div {
  width: 100px;
  height: 100px;
}

.philosophy__watchword div img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.philosophy__vissionMission {
  width: 80%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  font-size: 1rem;
  line-height: 40px;
}

.philosophy__vissionMission > * {
  width: 400px;
  text-align: justify;
  margin: 20px;
}

.philosophy__whoWeAre {
  text-align: justify;
  font-size: 1rem;
  line-height: 40px;
}

/*
  SCHOOL CATEGORIES
*/

.content > .categories {
  position: relative;
  width: 100%;
  height: 60vh;
  justify-content: center;
  margin-bottom: 1.5rem;
  background: #fff;
  color: #fff;
}

.categories .categories__wrapper {
  width: 100%;
  height: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

#prebasic {
  background-image: url("/images/sections/prebasic/childcare-1.jpg");
  background-size: cover;
}

#primary {
  background-image: url("/images/sections/basic/primary.jpeg");
  background-size: cover;
}

#secondary {
  background-image: url("/images/sections/secondary/2.jpg");
  background-size: cover;
}

.categories__wrapper__category {
  position: relative;
  width: 300px;
  height: 100%;
  margin: 20px;
  border-radius: 9px;
  background: var(--wine);
  color: #fff;
  box-shadow: 0 5px 10px 0 rgba(141, 5, 35, 0.5);
  transition: 0.3s;
}

.categories__wrapper__category:hover {
  box-shadow: 0 10px 20px 0 rgba(141, 5, 35, 0.5);
}

.category__info {
  position: absolute;
  height: 100%;
  width: 100%;
  background: rgba(39, 39, 39, 0.8);
  border-radius: 9px;
  margin: 0;
  justify-content: center;
}

.category__info:hover {
  background: rgba(39, 39, 39, 0.3);
}

.category__info .category__info__type {
  font-size: 1.5rem;
  font-weight: 600;
}

.category__info .category__info__age {
  font-size: 0.8rem;
}

.category__info a {
  text-decoration: none;
  background: #fff;
  transition: 0.5s;
  font-size: 0.8rem;
  padding: 10px 20px;
  border-radius: 16px;
  color: var(--wine);
}

.category__info a:hover {
  border: 1px solid var(--yellow);
  background: none;
  color: #fff;
}

/*
    FACILITIES SECTION
*/

.facilities {
  width: 100%;
  position: relative;
  align-items: center;
  justify-content: center;
  height: 40%;
}

.facilities__container {
  position: relative;
  width: 60%;
  display: grid;
  grid-gap: 10px;
  grid-template-columns: repeat(autofit, 300px);
  grid-auto-rows: 200px;
  grid-auto-flow: dense;
  grid-template-areas:
    "a b c"
    "d e f";
}

.a {
  grid-area: a;
}

.b {
  grid-area: b;
}

.c {
  grid-area: c;
}

.d {
  grid-area: d;
}

.e {
  grid-area: e;
}

.f {
  grid-area: f;
}

.facilities__container .facility {
  background: var(--wine);
  border-radius: 9px;
}

/*
    ADMIN SECTION
*/

.content > .admins {
  width: 100%;
  margin-top: 2rem;
  background: #fff;
}

.admins .admins__wrapper {
  width: 100%;
  height: 60%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.admins__admin {
  width: 300px;
  height: 45%;
  margin: 20px;
  border: 1px solid var(--yellow);
  border-radius: 9px;
}

.admin__image {
  width: 100%;
  height: 60%;
}

.admins__admin img {
  display: block;
  width: 100%;
  height: 100%;
  border-top-right-radius: 9px;
  border-top-left-radius: 9px;
  margin-bottom: 0px;
}

.admin__bio {
  width: 100%;
  height: 40%;
  margin-top: 0px;
  text-align: center;
  background: #fff;
  border-bottom-right-radius: 9px;
  border-bottom-left-radius: 9px;
  line-height: 10px;
}

.admin__bio p:first-child {
  font-weight: 600;
  margin-bottom: 10px;
}

.admin__bio p:nth-child(2) {
  font-size: 14px;
}

.location {
  background: var(--wine);
  color: #fff;
}

.loc {
  color: white;
}

.location__wrapper {
  width: 60%;
  height: 60%;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  border: 1px solid var(--wine);
}

.location__wrapper .address {
  width: 50%;
  height: 100%;
  font-size: 0.8rem;
}

.address > * {
  display: block;
  margin-bottom: 20px;
}

.address a {
  text-decoration: none;
  color: #fff;
}

.location__wrapper .googlemap {
  width: 50%;
}

.googlemap img {
  max-width: 100%;
  height: 70%;
}

/*
    GALLERY PAGE
*/
.content > .galleryWrapper {
  width: 100%;
  border: 1px solid var(--yellow);
  padding: 20px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.galleryIntro {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  color: #fff;
  background: #8d0523;
  height: 20vh;
  margin-bottom: 2rem;
}

.container {
  width: 60%;
  margin: 20px auto;
  display: grid;
  grid-gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  grid-auto-rows: 150px;
  grid-auto-flow: dense;
}

.container > .container_item {
  position: relative;
  background: var(--wine);
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 5px;
}

.container > .container_item::before {
  content: "";
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  left: 0;
  top: 0;
  background: rgba(39, 39, 39, 0.7);
  transition: 0.5s;
  z-index: 999999;
  width: 100%;
  height: 100%;
  border-radius: 5px;
}

.container > .container_item:hover:before {
  background: none;
  content: "";
}

.container_item > img,
.facility > img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  border-radius: 5px;
}

.big {
  grid-column: span 2;
  grid-row: span 2;
}

.horizontal {
  grid-column: span 2;
}

.vertical {
  grid-row: span 2;
}

/*
 CONTACT PAGE
*/

.mg1auto {
  margin: 1rem auto;
}

.feedback {
  width: 60%;
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
}

.feedback span {
  box-shadow: inset 0 -4px 0 0 var(--yellow);
}

.contact-container {
  display: flex;
  justify-content: space-around;
  align-items: center;
  width: 100%;
}

.form-container {
  display: flex;
  justify-content: center;
  width: 30%;
  padding: 2rem 0;
  box-shadow: 0 0px 10px 0 #adadad;
  border-radius: 6px;
}
.map {
  width: 50%;
}

.form-container form {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.9rem;
}

.contact-means {
  width: 60%;
  display: flex;
  justify-content: space-between;
  margin-top: 1rem;
  font-size: 0.7rem;
}

.form-container input {
  display: block;
  width: 60%;
  margin: 20px 0;
  border: none;
  border-bottom: 1px solid #c7c4c4;
}

input::-webkit-input-placeholder {
  color: var(--yellow);
  font-size: 0.7rem;
}

input::-moz-placeholder {
  /* Firefox 19+ */
  color: var(--yellow);
  font-size: 0.7rem;
}

input:-ms-input-placeholder {
  /* IE 10+ */
  color: var(--yellow);
  font-size: 0.7rem;
}

input:-moz-placeholder {
  /* Firefox 18- */
  color: var(--yellow);
  font-size: 0.7rem;
}

.form-container input:focus {
  outline: none;
}

form textarea {
  width: 60%;
  height: 10vh;
}

textarea::-webkit-input-placeholder {
  font-size: 0.7rem;
  color: var(--yellow);
}

textarea:focus {
  outline: none;
}

input[type="submit"] {
  color: #fff;
  padding: 0.5rem 1rem;
  background: #8d0523;
  width: 40%;
  border-radius: 25px;
  cursor: pointer;
}

input[type="submit"]:hover {
  font-weight: 600;
}

/*
    FOOTER
*/
.footer {
  grid-area: f;
  background: var(--wine);
  font-size: 0.5rem;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer > * {
  width: 20%;
  height: 70%;
  display: flex;
  align-items: center;
  opacity: 0.8;
}

.footer__social {
  font-size: 1.2rem;
  justify-content: center;
}

.footer__social > * {
  display: block;
  margin: 0 10px;
  color: inherit;
}

.footer__developer {
  justify-content: flex-end;
  margin-right: 20px;
}

.footer__developer a {
  text-decoration: none;
  color: inherit;
}

/* @media screen and (max-width: 1024px) {
    
} */

@media screen and (max-width: 768px) {
  .header__navbar .navlinks {
    display: none;
  }

  .header__navbar a.toggleIcon {
    display: block;
    margin-left: auto;
    margin-right: 10px;
    font-size: 1.5rem;
    color: var(--wine);
  }

  .galleryIntro {
    font-size: 1rem;
  }

  .footer__copyright,
  .footer__developer {
    width: 40%;
  }
}

@media screen and (max-width: 768px) {
  .header__navbar.responsive {
    position: relative;
  }

  .header__navbar.responsive .navlinks {
    position: relative;
    top: 10vh;
    float: none;
    display: block;
    text-align: left;
  }
}
