body{
  background-color: #f8f5ec;
  margin: 0 auto;
}

main {
  max-width: 1300px;
  margin: 0 auto;
}

header {
  background-color: #3c2473;
}

header h1 {
  color: white;
  display: inline-block;
  margin-left: 1rem;
  margin-top: 0;
  margin-bottom: 0;
  bottom: 20px;
  position: relative;
}

/* .site-header {
  background-color: #3c2473;
  padding: 10px 20px 10px 40px;
  position: sticky;
  top: 0;
  z-index: 100;
} */

/* .Logo {
  display: flex;
  justify-content: flex-start;
  align-items: center;
} */

.logo {
  display: inline-block;
}

.img__logo {
  padding: 20px;
  width: 160px;
}
/* .img__logo {
  border: solid white 3px;
  border-radius: 0.75rem;
  padding: 8px;
  height: auto;
  width: 160px;
} */

/* .logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
  font-family: sans-serif;
} */

/* .logo .college-name {
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: #111;
}

.logo .main-title {
  font-size: 1.6rem;
  font-weight: 900;
  text-transform: uppercase;
  color: #111;
  line-height: 1.05;
}

.logo .year {
  font-size: 0.65rem;
  font-weight: 400;
  color: #111;
  margin-top: 2px;
}

.logo .underline {
  width: 100%;
  height: 3px;
  background-color: #4caf50;
  margin-top: 4px;
} */

h1, h2 {
  color: #3c2473;
  font-weight: 700;
}

.graduates {
  font-size: 50px;
  height: 400px;
  display: grid;
  align-items: center;
  color: white;
  border-radius: 1.5rem;
  background-image: url(./images/cameraBackground.jpg);
}

/* card */

.container {
  place-items: center;
  margin-inline: 1.5rem;
  padding-block: 1rem;
}

.card__container {
  display: grid;
  row-gap: 2rem;
}

.card__article {
  /* margin: 0 25px; */
  margin: 0;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.card__img, .graduates {
  width: 100%;
  max-width: 400px;
  height: 400px;
  object-fit: cover;
  border-radius: 1.5rem;
}
.lightbox-trigger.card__img.class_photo {
  object-fit: contain;
  background-color: #3c2473;
}
.card__data {
  max-width: 150px;
  background-color: white;
  padding: 1.5rem 2rem;
  box-shadow: 0 8px 24px hsla(0, 0%, 0%, .15);
  border-radius: 1rem;
  position: absolute;
  bottom: -9rem;
  left: 0;
  right: 0;
  margin-inline: auto;
  opacity: 0;
  transition: opacity 1s 1s;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.card__title {
  font-size: 22px;
  font-weight: 900;
  color: rgb(28, 28, 28);
  margin-bottom: .75rem;
}

.card__button {
  text-decoration: none;
  font-size: 16px;
  border: 2px opacity 0;
  border-radius: 1.5rem;
  padding: 12px 16px;
  color: white;
  background-color: #3c2473;
  cursor: pointer;
}

.card__article:hover .card__data {
  animation: show-data 1s forwards;
  opacity: 1;
  transition: opacity .3s;
}

.card__article:hover{
  animation: remove-overflow 2s forwards;
}

.card__article:not(:hover){
  animation: show-overflow 2s forwards;
}

.card__article:not(:hover) .card__data{
  animation: remove-data 1s forwards;
}

.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.lightbox.active {
  display: flex;
}

.lightbox__img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 1rem;
}

.lightbox__close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  color: white;
  background-color: #3c2473;
}


.reception__container{
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.dates, .location{
  padding: 12px;
  margin: 12px;
  text-align: center;
}

#map {
  overflow: hidden;
}

.parking{
  text-align: center;
  width: 80%;
  margin: auto;
  margin-top: 12px;
  margin-bottom: 24px;
  border: #3c2473 solid 3px;
  border-radius: 1.5rem;
  padding: 20px;
}

strong {
  font-weight: 900;
  color: #3c2473;
}

.parking h3 {
  font-weight: bold;
}

.parking p {
  font-size: 1.25rem;
}

/* .times-dates {
  text-align: center;
  display: flex;
  justify-content: center;
  font-size: 1.5rem;
} */


.thanks__container {
  /* height: 325px; */
  width: 80%;
  max-width: 1100px;
  margin: 32px auto;
  border: #3c2473 solid 4px;
  border-radius: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.thanks {
  padding: 20px;
}

/* .thanks h2 {
  font-weight: 900;
  padding: 2px;
  margin: 24px 12px 0;
  border-bottom: #3c2473 solid 2px;
  margin: auto;
  width: fit-content;
  font-size: 30px;
} */

.thanks p {
  font-weight: 500;
  width: 670px;
  padding: 8px;
  margin: 24px auto;
  margin-top: 8px;
  font-size: 28px;
}

#teachers{
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding: 0;
}

#teachers li {
  list-style: none;
  padding: 10px;
  text-align: center;
}

#teachers a {
  border: solid #3c2473 2px;
  border-radius: 1.5rem;
  background-color: #3c2473;
  padding: 5px 20px;
  text-decoration: none;
  color: white;
}

#teachers a:hover {
  border: solid #3c2473 2px;
  border-radius: 1.5rem;
  background-color: white;
  color:#3c2473;
}

footer {
  background-color: #3c2473;
  position: absolute;
  color: white;
  text-align: center; 
  width: 100%; 
}

.footer__container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1100px;
  margin: auto;
  margin-top: 16px;
  margin-bottom: 16px;

}

.social__container{
  top: 30px;
}

footer a{
  color: white;
  padding: 0 4px;
  font-weight: 600;
  text-decoration: none;
  font-size: 18px;
  margin: 0px 6px;
}

footer h2 {
  width: fit-content;
  color: white;
  font-size: 1.5rem;
}

.location a {
  text-decoration: none;
}

.i__container {
  display: flex;
  justify-content: center;
}


h1 {

font-family: "Sekuya", system-ui;
  font-weight: 400;
  font-style: normal;

}

h2 {

font-family: "Sekuya", system-ui;
  font-weight: 300;
  font-style: normal;
  font-size: 2rem;

}


.card__title {

  font-family: "Nunito", sans-serif;
  font-optical-sizing: auto;
  font-weight: 500;
  font-size: 20px;
  text-align: center;

}

.card__button {

  font-family: "Nunito", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-size: 15px;


}


p, h3, a {
  font-family: "Nunito", sans-serif;
  font-optical-sizing: auto;
  font-weight: 300;
  font-size: 1.5rem;
}

.teacher-list{
  font-size: 1.5rem;
  font-family: "Nunito", sans-serif;
}

.btn__container a {
  color: black;
}

.btn-links {

background-color: #e0e0e0;
  border-radius: 50px;
  box-shadow: inset 4px 4px 10px #bcbcbc, inset -4px -4px 10px #ffffff;
  color: #4d4d4d;
  cursor: pointer;
  font-size: 18px;
  padding: 5px 5px;
  transition: all 0.2s ease-in-out;
  border: 2px solid rgb(206, 206, 206);
  margin: 0 8px;
}

.btn-links:hover {

box-shadow: inset 2px 2px 5px #bcbcbc, inset -2px -2px 5px #ffffff, 2px 2px 5px #bcbcbc, -2px -2px 5px #ffffff;

}

.btn-links:focus {

  outline: none;
  box-shadow: inset 2px 2px 5px #bcbcbc, inset -2px -2px 5px #ffffff, 2px 2px 5px #bcbcbc, -2px -2px 5px #ffffff;


}
.map-full {

  width: 100vw;
  position: relative;
  left: 50%;
  transform: translateX(-50%);

}

#copyright {
  font-size: 1rem;
  margin-top: 50px;
}

@keyframes show-data{
  50% {
    transform: translateY(-10rem);
  }
  100% {
    transform: translateY(-7rem);
  }
}

@keyframes remove-overflow{
  to{
    overflow: initial;
  }
}

@keyframes remove-data{
  0%{
    transform: translateY(-7rem);
  }
  50%{
    transform: translateY(-10rem);
    
  }
  100%{
    transform: translateY(.5rem);
    
  }
}

@keyframes show-overflow{
  0%{
    overflow: initial;
    pointer-events: none;
  }
  50%{
    overflow: hidden;
  }
}

@media screen and (max-width: 766px)  {
  

  .container {
    margin-inline: 1rem;
    padding-bottom: 25px;
  }

  .teach-link {
    display: flex;
  }

  .img__logo {
    width: 270px;
  }

  .Logo {
    margin: 1rem auto 2rem;
    height: auto;
  }

  .logo .main-title {
    font-size: 1.2rem;
  }

 header {
  text-align: center;
}
header h1 {
  margin-left: 0;
  padding: 10px;
  font-size: 1.75rem;
}

  .card__data {
    margin-top: -20px;
  }
  .h1__grad {
    font-size: 27px;
    padding: 0 10px;
    text-align: center;
  }

  .reception__container {
    margin: auto;
    display: flex;
    flex-direction: column;
  }

  .dates, .location {
    margin-bottom: 32px;
    margin: auto;
  }

  .parking {
    width: auto;
    margin: 0 20px;
  }

  .parking p {
    font-size: 20px;
  }

  .thanks__container {
    width: auto;
    margin: 10px;
    height: fit-content;
  }

  .thanks h2 {
    text-align: center;
    font-size: 1.5rem;
  }

  .thanks p {
    width: 300px;
  }

  .teach__container {
    width: 300px;
    height: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .teacher__container a {
    margin: 0;
    padding: 4px;
    color: white;
  }

  .teacher-list {
    background-color: #3c2473;
    border-radius: 1.5rem;
    margin: 4px;
    display: flex;
    justify-content: center;
    width: 172px;
  }

  #teachers {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-left: 0;
  }  

  /* #teachers a:hover {
    background-color: transparent;
    border: transparent;
  } */

  /* footer{
    height: 400px;
  } */

  .footer__container {
    width: auto;
    margin: 0px 20px 40px;
    display: flex;
    align-items: flex-start;
  }

.social__container {
  top: 20px;
  position: relative;
}

  .btn-links{
    margin: 0 8px 8px 0;

  }

  .btn__container {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .btn__container a {
    font-size: 1.25rem;
    display: flex;
  }

  .social__container h2{
    font-size: 18px;
  }

  /* #copyright{
    width: auto;
    margin: auto;
    font-size: 15px;
  } */

}

@media screen and (min-width: 768px) and (max-width: 1119px) {
  
  .img__logo {
    width: 230px;
  }

  .logo .main-title {
    font-size: 1.4rem;
  }
  
  .card__container{
    grid-template-columns: repeat(2, 1fr);
    column-gap: 1.5rem ;
  }

  .reception__container {
    /* width: 1000px; */
    margin: auto;
  }

  .parking {
    /* width: 800px; */
  }

  .parking p {
    font-size: 20px;
  }

  .thanks__container {
    /* width: 740px; */
  }

  #teachers {
    display: flex;
    flex-wrap: wrap;
    /* width: 675px; */
    padding-left: 0;
    justify-content: center;
  }

  .teacher__container a {
    margin: 0;
    padding: 4px;
    color: white;
  }

  .teacher-list {
    background-color: #3c2473;
    border-radius: 1.5rem;
    margin: 4px;
    display: flex;
    justify-content: center;
    width: 172px;
    color: white;
  }

  .footer__container{
    width: 800px;
    align-items: flex-start;
  }

  .past__shows {
    width: 400px;
  }

  .btn-links{
    margin: 0 8px 8px 0;
  }

  .btn__container {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    width: 100%;
  }

  .btn__container a {
    font-size: 16px;
    display: flex;
  }

  .social__container h2{
    font-size: 18px;
  }
}

@media (max-width: 1119px) {

  .card__data {
    position: static;
    opacity: 1;
    transform: none;
  }

  .card__article {
    overflow: visible;
  }

  .card__article:hover .card__data,
  .card__article:not(:hover) .card__data {
    animation: none;
  }
}

@media screen and (min-width: 1120px) {
  .card__container{
    grid-template-columns: repeat(3, 1fr);
  }

  .card__data {
    width: 316px;
  }
}
.card__article:first-child .card__title {
  font-size: 18px;
}
