@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@300&family=Ubuntu:wght@700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Pacifico&display=swap");

html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  display: block;
}
body {
  line-height: 1;
}
ol,
ul {
  list-style: none;
}
blockquote,
q {
  quotes: none;
}
blockquote:before,
blockquote:after,
q:before,
q:after {
  content: "";
  content: none;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}

*,
*::before,
*::after {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

:root {
  --primary-clr: #f8ad58;
  --secondary-clr: #39565a;
  --default: white;

  --text-secondary-clr: #333;

  --bg-primary-clr: #fef1e6;
}

body {
  margin: 0;
  padding: 0;
  font-family: "ubuntu", sans-serif;
  overflow-x: hidden;
  max-width: 1500px;
  margin: auto;
  scroll-behavior: smooth;
  /* background-color:var(--bg-primary-clr) */
}

.header-other-page {
  max-width: 1500px;
  padding: 1em !important;
  background-color: var(--secondary-clr);
  margin-top: -200px;
  -webkit-animation: none;
  animation: none;
  opacity: 0;
}
/* .slide-in-header{
  animation:slide-in-header .5s ease-in forwards ;
} */

/* ------------------------------------------------------------------------------ */
/* main body */
.main {
  width: 100%;
  background-color: var(--bg-primary-clr);
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  position: relative;
}

/* ------------------------------------------------------------------------------ */
/* main body header/hero */
.main__hero {
  width: 100%;
  position: relative;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}
.main__hero-header {
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  z-index: 1;
}
h1.hero-header__title {
  color: white;
  font-family: "Pacifico", cursive;
  font-size: 1.8rem;
  font-size: clamp(1.8rem, 8vw, 5rem);
}
.main__hero-image {
  width: 100%;
  position: relative;
}
.main__hero-image::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.4);
}
.hero-image__img {
  width: 100%;
}

/* ------------------------------------------------------------------------------ */
/* main-content */

.main__content {
  width: 90%;
  margin: auto;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
}

.card {
  width: 100%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  margin-top: 3em;
}
/* .purpose{
  flex-direction: row-reverse;
} */
.card-img {
  width: 80%;
  margin: auto;
  -webkit-transform: scale(0);
  -ms-transform: scale(0);
  transform: scale(0);
  -webkit-transition: -webkit-transform 0.5s ease-out;
  transition: -webkit-transform 0.5s ease-out;
  -o-transition: transform 0.5s ease-out;
  transition: transform 0.5s ease-out;
  transition: transform 0.5s ease-out, -webkit-transform 0.5s ease-out;
}
.scale-up {
  -webkit-animation: scale-up 0.5s ease-out 1 forwards;
  animation: scale-up 0.5s ease-out 1 forwards;
}
.card-img img {
  width: 100%;
}
.card-desc {
  width: 100%;
  z-index: 2;
}
.card-desc__title {
  font-size: 2rem;
  font-size: clamp(2rem, 6vw, 3rem);
  color: var(--secondary-clr);
  margin-top: 0.5em;
  text-align: center;
}
.card-desc__text {
  font-family: "roboto", serif;
  font-size: 1rem;
  font-size: clamp(1rem, 2vw, 2rem);
  margin-top: 0.5em;
  text-align: center;
}

.main__gallery {
  width: 90%;
  margin: 0 auto;
  padding: 5em 0;
}

h2.main__gallery-title {
  text-align: center;
  font-size: 2.5rem;
  font-size: clamp(2.2rem, 4vw, 4rem);
  font-weight: 900;
  color: var(--secondary-clr);
  margin-bottom: 0.5em;
}

.gallery__small-img {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: 1fr 1em 1fr;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 1em;
}
.gallery__small-img-wrapper {
  overflow: hidden;
  cursor: pointer;
  position: relative;
  -webkit-transform: scale(0);
  -ms-transform: scale(0);
  transform: scale(0);
  -webkit-transition: -webkit-transform 0.5s ease-out;
  transition: -webkit-transform 0.5s ease-out;
  -o-transition: transform 0.5s ease-out;
  transition: transform 0.5s ease-out;
  transition: transform 0.5s ease-out, -webkit-transform 0.5s ease-out;
}
.gallery__small-img-wrapper:hover::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(0, 0, 0, 0.3);
  -webkit-animation: opacityUp 0.5s ease-in 1 forwards;
  animation: opacityUp 0.5s ease-in 1 forwards;
  z-index: 1;
}
.gallery__small-img-wrapper:hover::after {
  content: "More Details";
  position: absolute;
  top: 45%;
  -webkit-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  transform: translateY(-50%);
  left: 0;
  right: 0;
  font-family: "pacifisto", cursive;
  font-weight: 900;
  font-size: 1.2rem;
  font-size: clamp(1.2rem, 3vw, 3rem);
  text-align: center;
  color: var(--secondary-clr);
  background-color: rgba(255, 255, 255, 0.75);
  -webkit-animation: book-open 0.5s ease-in-out 1 forwards;
  animation: book-open 0.5s ease-in-out 1 forwards;
  z-index: 1;
}

.gallery__small-img-wrapper img {
  width: 100%;
  -webkit-transition: -webkit-transform 0.3s ease-in;
  transition: -webkit-transform 0.3s ease-in;
  -o-transition: transform 0.3s ease-in;
  transition: transform 0.3s ease-in;
  transition: transform 0.3s ease-in, -webkit-transform 0.3s ease-in;
}
.gallery__small-img-wrapper:hover img {
  -webkit-transform: scale(1.2);
  -ms-transform: scale(1.2);
  transform: scale(1.2);
}

/* bigger image */
.gallery__big-img {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  z-index: 15;
  background-color: rgba(0, 0, 0, 0.9);
  -webkit-transform: scaleX(0);
  -ms-transform: scaleX(0);
  transform: scaleX(0);
}
.prev-btn,
.next-btn {
  position: absolute;
  top: 50%;
  cursor: pointer;
  /* width: 30px;
  height: 30px; */
  /* background-color:blue; */
  color: white;
  -webkit-transform: scale(3);
  -ms-transform: scale(3);
  transform: scale(3);
  text-align: center;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}
.prev-btn {
  left: -15%;
}
.next-btn {
  right: -15%;
}

.card-big-image {
  position: absolute;
  top: 40%;
  left: 50%;
  bottom: 2em;
  -webkit-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  padding: 1em;
  width: 80%;
  max-width: 50vh;
}

.gallery__big-img-wrapper {
  width: 100%;
  position: relative;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  /* overflow-x: hidden; */
}
.big-img {
  width: 100%;
  opacity: 0;
}

.active-img {
  -webkit-animation: opacityUp 0.5s ease-in 1 forwards;
  animation: opacityUp 0.5s ease-in 1 forwards;
  /* opacity: 1; */
  /* transform: translateX(100%); */
}
/* .prev-img{
  animation: translate-left .5s ease-in  1  forwards;
}
.next-img{
  animation: translate-right .5s ease-in  1  forwards;
} */
.passive-img {
  -webkit-animation: opacity2 0.5s ease-in 1 forwards;
  animation: opacity2 0.5s ease-in 1 forwards;
}

.absolute-img {
  position: absolute;
  width: 100%;
  opacity: 0;
}
.close-big-img {
  position: absolute;
  right: -5px;
  top: -20px;
  border-radius: 50%;
  display: inline-block;
  font-size: 1.2rem;
  font-size: clamp(1.2rem, 1.5vw, 1.5rem);
  width: 2em;
  height: 2em;
  background-color: white;
  text-align: center;
  line-height: 2em;
  cursor: pointer;
}
.close-big-img:hover {
  color: var(--secondary-clr);
}
.close-big-img:active {
  -webkit-transform: scale(0.9);
  -ms-transform: scale(0.9);
  transform: scale(0.9);
}
.big-img-title {
  color: white;
  /* font-size: 1.5rem; */
  font-size: clamp(1.5rem, 2vw, 2.5rem);
  margin-bottom: 0.5em;
  text-align: center;
}
.big-img-desc {
  /* position: relative; */
  color: white;
  font-family: "roboto", serif;
  font-weight: 100;
  margin-top: 1em;
  text-align: center;
}

/* ------------------------------------------------------------------------------ */
/* footer */
/* ------ ------------------------------------------------------------------------*/
.footer {
  background-color: var(--secondary-clr);
  position: relative;
  width: 100%;
  height: -webkit-fit-content;
  height: -moz-fit-content;
  height: fit-content;
  padding: 3em 0;
  color: white;
  /* opacity: 0; */
  /* height: 0; */
}
.height-grow {
  -webkit-animation: fade-top 1s ease-in-out forwards;
  animation: fade-top 1s ease-in-out forwards;
}

.footer-main-content {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  width: 90%;
  margin: auto;
}
.footer-nav {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  width: 100%;
}

.footer-logo-nav {
  width: 50%;
  margin: auto;
}
.footer-logo-nav img {
  width: 100%;
}

.footer-link-nav {
  width: 40%;
  margin: 1em auto;
}
.footer-link {
  list-style: none;
}
.footer-link a {
  text-decoration: none;
  text-align: center;
  display: block;
  color: white;
  font-size: 1.5rem;
  font-size: clamp(1.5rem, 2vw, 3rem);
  line-height: 1.5em;
}
.footer-link a:hover {
  color: var(--bg-primary-clr);
}

.footer-address {
  width: 100%;
}
.location {
  display: none;
}
.location h3 {
  font-size: 1rem;
}

.social-media h4 {
  display: none;
}

.social-media {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
}
.facebook-footer,
.instagram-footer {
  margin: 0 1em;
}

.instagram-footer i,
.facebook-footer i {
  -webkit-transform: scale(2);
  -ms-transform: scale(2);
  transform: scale(2);
  color: #333;
}

.footer-copyright {
  font-size: 0.7rem;
  font-size: clamp(0.7rem, 1vw, 1.2rem);
  text-align: center;
  margin-top: 2em;
  color: #ddd;
}

/* ============= */
/* medium device */
/* ============= */
@media only screen and (min-width: 480px) and (max-width: 779px) {
  .footer-main-content {
    width: 90%;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-direction: row;
    flex-direction: row;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
  }
  .footer-nav {
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-direction: row;
    flex-direction: row;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    width: 45%;
  }
  .footer-logo-nav {
    width: 50%;
    margin: 0;
  }
  .footer-link-nav {
    width: 50%;
    margin-left: 1.5em;
  }

  .footer-link a {
    text-align: start;
    font-size: 1.3rem;
    font-size: clamp(1.2rem, 3vw, 4rem);
  }

  .footer-address {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    width: 50%;
  }
  .location {
    display: block;
    text-align: center;
  }
  .location-link {
    text-decoration: none;
    color: white;
  }
  .location-link:hover {
    color: var(--bg-primary-clr);
  }

  .social-media {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: space-evenly;
    -ms-flex-pack: space-evenly;
    justify-content: space-evenly;
  }
  .social-media-link {
    text-decoration: none;
    color: white;
  }
  .social-media-link:hover {
    color: var(--bg-primary-clr);
  }

  .facebook-footer,
  .instagram-footer {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    margin-top: 1em;
    margin-right: 2em;
  }
  .facebook-footer h4,
  .instagram-footer h4 {
    margin-left: 1em;
  }
  .social-media h4 {
    display: block;
  }

  .main__gallery {
    margin: auto;
    padding: 3em;
  }

  .card {
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-direction: row;
    flex-direction: row;
    /* justify-content: space-around; */
  }
  .card-img {
    width: 35%;
    margin: 0;
  }
  .card-desc {
    width: 55%;
  }
  .purpose {
    -webkit-box-orient: horizontal;
    -webkit-box-direction: reverse;
    -ms-flex-direction: row-reverse;
    flex-direction: row-reverse;
  }

  .card-desc__title {
    margin-top: 0;
    font-size: 2.2rem;
    font-size: clamp(2.2rem, 6.5vw, 3.2rem);
  }
  .card-desc__text {
    font-size: 1.2rem;
    font-size: clamp(1.2rem, 2.3vw.2.3rem);
  }

  .gallery__small-img {
    -ms-grid-columns: 1fr 1em 1fr 1em 1fr;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 1em;
  }
}

/* ============= */
/* big device */
/* ============= */
@media only screen and (min-width: 780px) {
  .footer-main-content {
    width: 90%;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-direction: row;
    flex-direction: row;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
  }
  .footer-nav {
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-direction: row;
    flex-direction: row;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    width: 40%;
  }
  .footer-logo-nav {
    width: 35%;
    margin: 0;
  }
  .footer-link-nav {
    width: 50%;
    margin-left: 1.5em;
  }

  .footer-link a {
    text-align: start;
    font-size: 1.3rem;
    font-size: clamp(1.2rem, 2vw, 1.5rem);
  }

  .footer-address {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    width: 45%;
  }
  .location {
    display: block;
    text-align: center;
  }
  .location h3 {
    font-size: 1.5rem;
    font-size: clamp(1rem, 2vw, 1.5rem);
  }
  .location-link {
    text-decoration: none;
    color: white;
  }
  .location-link:hover {
    color: var(--bg-primary-clr);
  }

  .social-media {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: space-evenly;
    -ms-flex-pack: space-evenly;
    justify-content: space-evenly;
  }
  .social-media-link {
    text-decoration: none;
    color: white;
  }
  .social-media-link:hover {
    color: var(--bg-primary-clr);
  }

  .facebook-footer,
  .instagram-footer {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    margin-top: 1em;
    margin-right: 2em;
  }
  .facebook-footer h4,
  .instagram-footer h4 {
    margin-left: 1em;
  }

  .social-media h4 {
    display: block;
  }

  .main__gallery {
    margin: auto;
    padding: 5em;
  }

  .card {
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-direction: row;
    flex-direction: row;
    /* justify-content: space-around; */
  }
  .card-img {
    width: 35%;
    margin: 0;
  }
  .card-desc {
    width: 55%;
  }
  .purpose {
    -webkit-box-orient: horizontal;
    -webkit-box-direction: reverse;
    -ms-flex-direction: row-reverse;
    flex-direction: row-reverse;
  }

  .card-desc__title {
    margin-top: 0;
    font-size: 2.5rem;
    font-size: clamp(2.5rem, 6vw, 5rem);
  }
  .card-desc__text {
    font-size: 1.5rem;
    font-size: clamp(1.5rem, 3vw.3rem);
  }

  h2.main__gallery-title {
    font-size: 3rem;
    font-size: clamp(3rem, 7vw, 4rem);
  }
  .gallery__small-img {
    -ms-grid-columns: 1fr 1em 1fr 1em 1fr;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 1em;
  }
}
