/* * {
  outline: 2px solid red;
} */

main > * {
  max-width: 100%;
}

main {
  display: grid;
  justify-items: stretch;
  align-items: stretch;
}

main > :first-child {
  padding-top: 1em;
}

main > :last-child {
  padding-bottom: 2em;
}

.motto-block {
  position: relative;

  display: flex;
  flex-flow: column nowrap;
  align-items: center;

  text-align: center;

  padding-right: 2em;
  padding-bottom: 2em;
  padding-left: 2em;

  margin-top: 3em;
}

.motto-block * {
  display: inline;
}

.motto-block h1 {
  font-size: 1em;
}

.motto-block h3,
.motto-block p {
  display: inline;
  
}

.motto-block span {
  padding: 0 2em 3em 2em;
}

.motto-block span h3 {
  padding-right: .75em;
}

.motto-block h3{
  text-align: left;
  max-width: 80%;

  margin-top: 2em;
}

@media screen and (min-width: 675px) {
  .motto-block {
    margin-top: 3em;

    padding-bottom: 5em;
  }  


  .motto-block h1{
    font-size: 2em;
  }

  .motto-block .school-title > * {
    display: inline;
  }

  .motto-block span {
    padding: 0 10em 3em 10em;
  }
}



.info-nav-block {
  display: flex;
  flex-flow: row wrap;
  justify-content: space-evenly;
  row-gap: 2em;
  column-gap: 4em;
  padding: 0 2em 4em 2em;

  transition: margin 2s;
}

.info-tile {
  width: 200px;
  height: 200px;
  text-align: center;


  position: relative;

  border-radius: 10px;
  box-shadow: .1em .2em .5em .1em rgba(0, 0, 0, 0.1);
  overflow: hidden;

  transition: width 2s, height 2s;
}

.info-tile img{
  width: 100%;
  height: 100%;

  -webkit-filter: blur(1.25px);
  filter: blur(1.25px);
  
  -webkit-transition: -webkit-filter .5s;
  transition: filter .5s;
}

.info-tile h3{
  position: absolute; 
  z-index: 4;
  left: 0; 
  right: 0; 
  top: 30%;
  margin-inline: auto; 
  width: fit-content;

  transition: opacity .5s;

  opacity: 1;

  color: white;
}

@media screen and (min-width: 800px) {
  .info-tile {
    width: 11em;
    height: 11em;
  }

  .info-tile h3 {
    font-size: 1.5em;
  }
}

@media screen and (min-width: 1300px) {
  .info-tile {
    width: 15em;
    height: 15em;
  }

  .info-tile h3 {
    font-size: 1.25em;
  }
}

.slides-block {
  position: relative;

  padding: 0 2em 2em 2em;

  background-color: var(--kpalette-green);
}

.slides-block .slide {
  display: none;
  /*script will toggle display grid/flex depending on page size*/
  grid-template-columns: 2fr 1fr;
  flex-flow: column nowrap;

  border-radius: 10px;
  border: 4px solid var(--kpalette-dpink);
  box-shadow: .1em .2em .5em .1em rgba(0, 0, 0, 0.1);

  margin: 4em 0 1em 0;

  overflow: hidden;

  background-color: var(--kpalette-lpink);
}

.slides-block .slide img {
  width: 100%;
}

.slides-block .slide p {
  padding: .5em;
}

.slides-block .slide-button-left {
  position: absolute;

  left: 1.5%;
  top: 15em;
}

.slides-block .slide-button-right {
  position: absolute;

  right: 1.5%;
  top: 15em;
}

@media screen and (min-width: 550px) {
  .slides-block {
    padding: 0 10% 4em 10%;
  }

  .slides-block .slide-button-left {
    left: 5%;
    top: 42.5%;
  }
  
  .slides-block .slide-button-right {
    right: 5%;
    top: 42.5%;
  }

  .slides-block .slide p {
    padding: 1em;
  }
}

.head-teacher-block {
  padding: 5em 0;

  background-color: var(--kpalette-pink);
}

.head-teacher-frame {
  display: flex;
  flex-flow: column nowrap;
  align-items: center;
  justify-content: space-around;
  gap: 2em;
  padding: 2em;
  margin: 0 10% 0 10%;
  max-width: 80%;

  border: 10px solid var(--kpalette-dpink);
  border-radius: 20px;
  background-color: var(--kpalette-lpink);
  box-shadow: .1em .2em .5em .1em rgba(0, 0, 0, 0.1);

  font-size: .8em;
}

.head-teacher-block img{
  align-self: center;

  border-radius: 10px;
  box-shadow: .1em .2em .5em .1em rgba(0, 0, 0, 0.1);

  width: 200px;
  height: 200px;
}

.hidden-text {
  display: none;
}

.show-more {
  text-decoration: underline;
  color: blue;
  cursor: pointer;
}

.show-more:hover {
  color: purple;
}

.show-less {
  display: none;
  text-decoration: underline;
  color: blue;
  cursor: pointer;
}

.show-less:hover {
  color: purple;
}

.ellipses {
  display: inline; 
}

@media all and (max-width: 400px) {

  .info-tile {
    width: 125px;
    height: 125px;

    font-size: 75%;
  }

    /* .head-teacher-block img{
      width: 150px;
      height: 150px;
    } */

}

@media all and (min-width: 390px) {
  .head-teacher-block {
    font-size: .9em;
  }
}

@media all and (min-width: 420px) {

  .head-teacher-block {
    font-size: 1em;
  }
}

@media all and (min-width: 600px) {
  .head-teacher-block img {
    width: 300px;
    height: 300px;
  }
}

@media all and (min-width: 700px) {
  .show-more {
    display: none;
  }

  .hidden-text {
    display: inline;
  }
}

@media all and (min-width: 1027px) { /*543px*/
  .head-teacher-block {
    flex-flow: row nowrap;
  }
}