* { margin: 0; box-sizing: border-box; }

body { height: 400vh; }

.edu-sa-hand-400 {
    font-family: "Edu SA Hand", cursive;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}

header {
    background-color: #040404;
    color: #f0f0f0;
    height: 100vh;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

header > h1{ font-size: 65px; }

#navBar {
    position: absolute;
    top: 0;
    left:0;
    margin: 10px;
}

#navBar > ul {
    list-style: "\25BA";
    list-style-position: outside;
    margin-left: 5px;
}

.pages::marker { color: #f0f0f0; }

.pages > a, .pages > a:visited {
    display: block;
    padding: 0px 10px;
    text-decoration: none;
    color: #f0f0f0;
    transition: all 0.5s cubic-bezier(.95,.11,.56,1.06);
}

.pages {
    max-width: fit-content;
    padding-left: 5px;
    margin: 5px 0px;
}

.pages > a:hover, .pages > a.actve {
    background-color: #b57edc;
    color: #060606;
    border-radius: 25px;
}

.img-parent {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-column-gap: 30px;
    grid-row-gap: 60px; 
    padding: 30vh 12vw 0vh;
}

.img-parent img {
  opacity: 0;
  width: 100%;
  transition: transform 0.5s cubic-bezier(.95,.11,.56,1.06), opacity 0.3s linear;
}

.img-parent div { overflow: hidden; }

img:hover:not(#modalImg), img:focus:not(#modalImg) 
{ transform: scale(150%); cursor: pointer;}

#modalPopup {
  display: none;
  position: fixed; 
  z-index: 1; 
  padding-top: 100px; 
  left: 0;
  top: 0;
  width: 100%; 
  height: 100%; 
  overflow: auto; 
  background-color: rgb(0,0,0); 
  background-color: rgba(0,0,0,0.9); 
}
/* Modal Content (image) */
#modalImg {
  margin: auto;
  display: block;
}

/* Caption of Modal Image */
#modalText {
  margin: auto;
  display: block;
  width: 80%;
  text-align: center;
  color: #ccc;
  padding-top: 10px;
  height: 150px;
}


#modalImg, #modalText {  
  animation-name: zoom;
  animation-duration: 0.6s;
}

@keyframes zoom {
  from { transform: scale(0.1) } 
  to { transform: scale(1) rotate(360deg); }
}


#modalX {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
}

#modalX:hover,
#modalX:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}