@import url("https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200..1000;1,200..1000&family=Raleway:ital,wght@0,100..900;1,100..900&family=Special+Gothic+Condensed+One&display=swap");

body {
  margin: 0;
  background-color: #ffffff;
  font-family: "Nunito", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
}

.disabled {
  color: #999;
  cursor: default;
  text-decoration: none;
  pointer-events: none;
  user-select: none;
}

.tmp-opening-date {
  display: flex;
  align-items: center;
  flex-direction: column;
  margin: 1em;
  margin-top: 10vh;
  font-size: xx-large;
}

/* NAV MENU */

#open-menu {
  display: none;
}

nav {
  font-size: 16px;
  color: white;
  background-color: #262339;
  padding: 0.3em;
  display: flex;
  justify-content: space-between;
  position: fixed;
  width: 100%;
  top: 0px;
  font-size: larger;
  z-index: 9999;
}

nav i {
  rotate: 180deg;
  padding-right: 1em;
  display: none !important;
  position: absolute;
  top: 1em;
  right: 1em;
}

nav ul {
  margin: 0;
  margin-right: 1em;
  padding: 3px;
  list-style: none;
}

nav ul li {
  display: inline-block;
  margin: 0;
}

nav li a {
  color: white;
  text-decoration: none;
  padding: 0.5em 1.5em;
  transition: 0.3s ease-out;
  border-radius: 10px;

  display: flex;
}

nav li a:hover {
  background-color: rgb(26, 26, 43);
}

.logo img {
  width: 50px;
  padding-left: 1.2em;
}

/* MAIN PAGE */

.main {
  padding: 1em;
  color: white;
  height: 60vh;
  background-size: cover;
  display: flex;
}

.cabinet {
  background-image: linear-gradient(rgba(4, 9, 30, 0.7), rgba(4, 9, 30, 0.7)),
    url(../images/cabinet.avif);
  background-position: center;
  font-size: xx-large;
  display: grid;
  align-content: space-around;
  flex-direction: column;
  padding: 2em;
}

.cabinet h1 {
  font-size: xx-large;
}

.cabinet p {
  font-size: 0.7em;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  width: 60%;
}

.team {
  height: auto;
  flex-direction: column;
  align-items: center;
  color: black;
  font-size: x-large;
  padding: 2em 0;
}

.team-pictures {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 columns */
  gap: 20px;
  width: 80%;
  justify-content: center;
  padding: 0em 1em;
}

.team-member {
  display: flex;
  flex-direction: column;
  margin: 0.5em 1em;
  font-size: large;
  border-radius: 5px;
  background-color: rgba(255, 245, 238, 0.637);
  box-shadow: 5px 4px 15px 0px rgba(0, 0, 0, 0.251);
  padding: 1em;
  transition: 0.3s ease-out;
  text-decoration: none;
  color: black;
}

.team-member:hover {
  scale: 1.1;
}

.team-member img {
  display: block;
  width: 80%;
  border-radius: 10px;
  margin-bottom: 1em;
  align-self: center;
}

.team-member p {
  padding-left: 10%;
  margin: 0.5em 0;
}

.team-member-name {
  font-weight: 500;
}

.team-member-job {
  color: rgb(50, 50, 50);
  font-size: medium;
}

/* CABINET */
.team-description-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 2em;
  margin-top: 10vh;
}

/* Flip card wrapper */
.flip-card {
  width: 60%;
  height: 400px;
  margin: 1em 0;
}

.flip-card-front img {
  width: 300px; /* adjust as needed */
  margin: 1em;
  aspect-ratio: 1 / 1;
  border-radius: 5px;
}

/* Trigger flipping with .flipped class */
.flip-card-inner {
  position: relative;
  height: 100%; /* Added */
}

/* Front and back faces */
.flip-card-front,
.flip-card-back {
  transition: 0.3s ease-in-out;
  position: absolute;
  width: 100%;
  backface-visibility: hidden;
  border-radius: 5px;
  background-color: rgb(255 245 238);
  padding: 1em;
  box-sizing: border-box;
  box-shadow: 5px 4px 15px 0px rgba(0, 0, 0, 0.251);
  height: 100%; /* ✅ Added */
  display: flex; /* ✅ Added */
  flex-direction: row; /* ✅ Added */
  align-items: center; /* Optional for vertical alignment */
}

.flip-card-front {
  margin-bottom: 2.5em;
}

/* "Click me" trigger styling */
.flip-trigger {
  margin-top: auto;
  align-self: flex-end;
  color: #007bff;
  font-weight: bold;
  cursor: pointer;
  text-decoration: underline;
  position: absolute;
  bottom: 1em;
  right: 1em;
}

.team-member-description-name-text {
  padding: 0% 5%;
  display: flex;
  justify-content: center;
  flex-direction: column;
  width: 50%;
  text-align: justify;
}

.team-member-description-name-text p {
  transform: 0.8s;
  overflow: hidden;
}

.team-member-name-cabinet {
  font-size: larger;
  font-weight: 700;
  margin-top: 0.5em;
}

.team-member-description-cabinet {
  margin: 0;
  font-size: clamp(0.6em, 1em, 1.2em);
}

/* CONTACT */
.contact-section {
  margin: 1em;
  color: black;
  display: flex;
  justify-content: center;
  align-items: center;
}

.contact {
  font-size: larger;
  display: flex;
  width: 20%;
  max-width: 300px;
  aspect-ratio: 1 / 1;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-shadow: 5px 4px 15px 0px rgba(0, 0, 0, 0.251);
  margin: 1em;
  padding: 1em 1.5em 0 1.5em;
  transition: 0.2s;
}

.contact:hover {
  scale: 1.1;
}

.contact i {
  font-weight: 600;
  font-size: 1.5em;
  position: relative;
}

.map-section {
  padding: 2em;
  display: flex;
  justify-content: center;
  box-shadow: inset 0px 0px 15px 0px rgba(0, 0, 0, 0.251);
  background-color: #262339;
}

.map-section iframe {
  aspect-ratio: 1 / 1;
}
/* FOOTER */
footer {
  background-color: black;
  color: white;
  display: flex;
  position: relative;
  bottom: 0;
  width: 100%;
  justify-content: end;
  padding: 4px;

    display: none;

}

.hidden {
  opacity: 0;
}


@media (max-width: 700px) {
  #open-menu {
    display: block;
    position: fixed;
    top: 1em;
    right: 1em;
    background-color: #262339;
    color: white;
    border-radius: 30px;
    padding: 0.7em;
    box-shadow: 5px 4px 15px 0px rgba(0, 0, 0, 0.251);
    z-index: 2;
  }

  .logo {
    display: none;
  }

  nav {
    font-size: 16px;
    color: white;
    background-color: #262339;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: fixed;
    width: 60%;
    height: 100%;
    top: 0px;
    right: 0px;
    font-size: larger;
    z-index: 9999;
    right: -400px;
    transition: 0.8s ease-out;
  }

  nav i {
    display: block !important;
  }
  nav ul {
    margin: 0;
    margin-right: 1em;
    margin-top: 2em;
    padding: 0.5em;
    list-style: none;
    display: flex;
    flex-direction: column;
    align-self: center;
    width: 90%;
  }

  nav ul li {
    display: inline-block;
    margin: 0.5em;
  }

  nav li a {
    color: white;
    text-decoration: none;
    padding: 0.5em 1.5em;
    transition: 0.3s ease-out;
    border-radius: 10px;

    display: flex;
  }

  .main {
    padding: 1em;
    height: 60vh;
    justify-content: center;
  }

  .cabinet p {
    font-size: 0.5em;
    flex-direction: column;
    width: 90%;
  }

  .team {
    height: auto;
    padding: 2em 0;
  }

  .team-pictures {
    display: block;
  }

  .team-member {
    margin: 1.5em 0;
    padding: 1em 0;
  }

  .team-member:hover {
    scale: 1;
  }

  .team-member img {
    width: 75%;
  }

  .team-member p {
    padding: 0.5em;
    margin: 0 0;
    align-self: center;
  }

  /* Cabinet */

  .team-description-section {
    margin: 0;
  }

  /* Flip card wrapper */
  .flip-card {
    width: 95%;
    height: 95vh;
  }

  .flip-card-front img {
    width: 80%; /* adjust as needed */
    margin: 1em;
  }

  .flip-card-front,
  .flip-card-back {
    flex-direction: column;
  }

  .team-member-description-name-text {
    width: 95%;
  }

  .team-member-name-cabinet {
    font-size: 1em;
  }

  /* CONTACT */
  .contact-section {
    margin: 1em 0;
    flex-direction: column;
  }

  .contact {
    width: 70%;
  }

  .contact:hover {
    scale: 1;
  }

  .map-section {
    margin-bottom: 0;
    padding: 1em;
  }

  .map-section iframe {
    width: 100%;
  }

  footer {
    justify-content: flex-start;
  }
}
