/* Global Styles */
* {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  border-style: none;
  line-height: 1.5em;
}


a {
  text-decoration: none;
  /* color: white; */
}

ul {
  list-style: none;
}

/* Main Content */
main {
  overflow: hidden;
  margin: 0vb 0 30vb;
  height: auto;
}

.intro {
  /* background-color: #010101; */
  margin: 30vb 30vb;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.intro p {
  margin-top: 10vb;
  width: 100%;
  text-align: center;
  font-size: 2.3em;
  font-weight: 600;
}

.intro i {
  font-size: 3em;
  border-radius: 50px;
  -webkit-border-radius: 50px;
  -moz-border-radius: 50px;
  -ms-border-radius: 50px;
  -o-border-radius: 50px;
  color: var(--accent);
}

section {
  display: grid;
  grid-template-columns: repeat(3, minmax(250px, 1fr));
  justify-content: center;
  grid-template-rows: repeat(2, minmax(350px, 1fr));
  align-items: center;
  /* align-content: center; */
  gap: 25px 25px;
  margin: 10vb 10vb;
}

#ham {
  display: none;
}

.card-parent {
  width: 100%;
  height: 100%;
}

.card {
  perspective: 500px;
  transform-style: preserve-3d;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  align-content: center;
  transition: transform 0.5s ease-out;
  -webkit-transition: transform 0.5s ease-out;
  -moz-transition: transform 0.5s ease-out;
  -ms-transition: transform 0.5s ease-out;
  -o-transition: transform 0.5s ease-out;
  position: relative;
  background-color: var(--accent);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.card img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.front {
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) translateZ(80px);
  transform-style: preserve-3d;
  -webkit-transform: translate(-50%, -50%) translateZ(80px);
  -moz-transform: translate(-50%, -50%) translateZ(80px);
  -ms-transform: translate(-50%, -50%) translateZ(80px);
  -o-transform: translate(-50%, -50%) translateZ(80px);
  text-align: center;
  vertical-align: middle;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.front h1 {
  font-family: "Times New Roman", Times, serif;
  font-size: 2em;
}

.front i {
  font-size: 3em;
}

.back {
  position: absolute;
  width: 100%;
  height: 100%;
  /*background-color: aliceblue;
  */
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) translateZ(-80px) rotateY(180deg);
  -webkit-transform: translate(-50%, -50%) translateZ(-80px) rotateY(180deg);
  -moz-transform: translate(-50%, -50%) translateZ(-80px) rotateY(180deg);
  -ms-transform: translate(-50%, -50%) translateZ(-80px) rotateY(180deg);
  -o-transform: translate(-50%, -50%) translateZ(-80px) rotateY(180deg);
  transform-style: preserve-3d;
  text-align: center;
  vertical-align: middle;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  z-index: -1;
}

.back img {
  position: absolute;
  height: 100%;
  width: 100%;
  filter: brightness(50%);
  -webkit-filter: brightness(50%);
  object-fit: cover;
  transform: translateZ(-80px);
  -webkit-transform: translateZ(-80px);
  -moz-transform: translateZ(-80px);
  -ms-transform: translateZ(-80px);
  -o-transform: translateZ(-80px);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.back h2 {
  color: var(--accent);
  font-size: 3em;
}

.back p {
  font-size: 1.3em;
  color: white;
}

.card-parent:hover .card {
  transform: rotateY(-180deg);
  -webkit-transform: rotateY(-180deg);
  -moz-transform: rotateY(-180deg);
  -ms-transform: rotateY(-180deg);
  -o-transform: rotateY(-180deg);
  /* animation: overboard 1s; */
  /* -webkit-animation: overboard 1s ease-out forwards; */
}

/* 
@keyframes overboard {
  0% {
    transform: rotateY(0deg);
    -webkit-transform: rotateY(0deg);
    -moz-transform: rotateY(0deg);
    -ms-transform: rotateY(0deg);
    -o-transform: rotateY(0deg);
  }
  60% {
    transform: rotateY(185deg);
    -webkit-transform: rotateY(185deg);
    -moz-transform: rotateY(185deg);
    -ms-transform: rotateY(185deg);
    -o-transform: rotateY(185deg);
  }
  100% {
    transform: rotateY(180deg);
    -webkit-transform: rotateY(180deg);
    -moz-transform: rotateY(180deg);
    -ms-transform: rotateY(180deg);
    -o-transform: rotateY(180deg);
  }
}

.card:not(:hover) {
  animation: settle-back 1s ease-out;
  -webkit-animation: settle-back 1s ease-out;
}
@keyframes settle-back {
  0% {
    transform: rotateY(180deg);
    -webkit-transform: rotateY(180deg);
    -moz-transform: rotateY(180deg);
    -ms-transform: rotateY(180deg);
    -o-transform: rotateY(180deg);
  }
  100% {
    transform: rotateY(0deg);
    -webkit-transform: rotateY(0deg);
    -moz-transform: rotateY(0deg);
    -ms-transform: rotateY(0deg);
    -o-transform: rotateY(0deg);
  }
} */

/* Questions Section */
#questions {
  display: flex;
  /* justify-content: center;
  align-items: center; */
  /* background-color: #010101; */
  /* width: 150vb; */
}

#questions a {
  display: flex;
  gap: 5vb;
  padding: 5vb 10vb;
  /* justify-content: space-between; */
  align-items: center;
}

#questions * p {
  font-weight: 600;
  font-size: 1.4em;
}

#questions div i {
  padding: 15px 17px;
  font-size: 1.2em;
}

#questions .any {
  background-color: var(--black);
}

.any p {
  color: white;
}

#questions .any i {
  background-color: var(--accent);
  color: black;
}

#questions .phone {
  background-color: var(--accent);
  flex-grow: 2;
}

.phone p {
  color: black;
}

#questions .phone i {
  background-color: var(--black);
  color: var(--accent);
  transform: rotateY(180deg);
  -webkit-transform: rotateY(180deg);
  -moz-transform: rotateY(180deg);
  -ms-transform: rotateY(180deg);
  -o-transform: rotateY(180deg);
}

#questions .email {
  background-color: #eeeeee;
}

.email p {
  color: black;
}

#questions .email i {
  background-color: var(--accent);
  color: var(--black);
}

#questions a {
  transition: 0.3s;
  -webkit-transition: 0.3s;
  -moz-transition: 0.3s;
  -ms-transition: 0.3s;
  -o-transition: 0.3s;
}

#questions a:hover {
  transform: scale(1.1);
  -webkit-transform: scale(1.1);
  -moz-transform: scale(1.1);
  -ms-transform: scale(1.1);
  -o-transform: scale(1.1);
}

/* Gallery Section */
#gallary .buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 5vb;
  gap: 3vb;
}

#gallary .button {
  background-color: #eeeeee;
  padding: 2vb 3vb;
  font-size: 1.5em;
  font-weight: bold;
  cursor: pointer;
}

#gallary .active {
  background-color: var(--accent);
  border-bottom: 5px solid #010101;
}

.show {
  /* margin: 10vb auto; */
  background-color: var(--black);
  padding: 5vb;
  display: flex;
  flex-direction: row;
  width: 190vb;
  height: 100vh;
  justify-content: center;
  align-items: center;
  transform: translate(20px, 0px);
  -webkit-transform: translate(20px, 0px);
  -moz-transform: translate(20px, 0px);
  -ms-transform: translate(20px, 0px);
  -o-transform: translate(20px, 0px);
}

.show img {
  height: 60vh;
  width: 100vb;
  object-fit: cover;
}

.show .content {
  display: flex;
  flex-direction: column;
  gap: 10vb;
  padding: 5vb;
  color: white;
}

.show .content h1 {
  font-size: 2.4em;
}

.show .content p {
  color: gray;
  font-family: Arial, Helvetica, sans-serif;
  /* font-size: 1.1em; */
}

.show .content button {
  width: 20vb;
  height: 5vh;
  cursor: pointer;
  font-weight: bold;
  transition: 0.3s;
  -webkit-transition: 0.3s;
  -moz-transition: 0.3s;
  -ms-transition: 0.3s;
  -o-transition: 0.3s;
}

.show .content button:hover {
  transform: scale(1.1);
  -webkit-transform: scale(1.1);
  -moz-transform: scale(1.1);
  -ms-transform: scale(1.1);
  -o-transform: scale(1.1);
  background-color: var(--accent);
}

/* Choose Section */
#choose {
  text-align: center;
  margin: 0 auto;
  display: flex;
  background-color: var(--accent);
  width: 70vb;
  height: 6vh;
  justify-content: center;
  align-items: center;
  padding: 0;
}

#choose button {
  background-color: transparent;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  transition: 0.3s;
  -webkit-transition: 0.3s;
  -moz-transition: 0.3s;
  -ms-transition: 0.3s;
  -o-transition: 0.3s;
}

#choose div {
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  position: absolute;
  color: white;
  padding: 3vb;
  background-color: #010101;
}

#choose button:hover {
  color: white;
  background-color: black;
}

/* Media Queries */
@media (max-width: 768px) {
  .intro {
    margin: 20vb 5vb;
  }
  section {
    grid-template-columns: repeat(1, minmax(200px, 1fr));
    grid-template-rows: repeat(6, minmax(350px, 1fr));
    gap: 0px;
    height: fit-content;
    margin: 10vb 5vb;
  }

  #questions {
    flex-direction: column;
    justify-content: stretch;
    align-items: stretch;
    margin: 10vb 5vb;
    /* width: 100%; */
  }

  #gallary {
    display: none;
  }
  #choose{
    width: auto;
  }
}

@media (min-width: 769px) {
  #questions {
    justify-content: center;
    align-items: center;
    margin: 0 20vb;
  }
}
