@font-face {
  font-family: "fanavari";
  src: url("../fonts/Shabnam-FD.woff2") format("woff2");
}

*{
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

body{
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #faf7ee;
    padding-top: 20px;
    font-family: "fanavari", sans-serif;
}

.rows{
    position: absolute;
    top: 0px;
    width: 80%;
    right: 300px;
    display: flex;
    align-items: center;
    justify-content: start;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 100px;
    margin-right: 40px;
	padding-bottom: 40px;
}

.flip-card {
  background-color: transparent;
  width: 220px;
  height: 294px;
  perspective: 1000px;
  font-family: sans-serif;
}

.frontCircle{
    width: 160px;
    height: 160px;
    border-radius: 50%;
}

.frontImage{
    position: absolute;
    width: 220px;
    height: 220px;
}

.backImage{
    width: 180px;
    height: 180px;
}

.backText{
    display: flex;
    align-items: center;
    gap: 10px;
}

.backTitle{
    display: flex;
    flex-direction: column;
    align-items: start;
}

.backBrand{
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.backTitle h4{
    font-size: 20px;
}

.backTitle p{
  font-size: 14px;
  width: 150px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.frontBrand{
    width: 30px;
    height: 30px;
    position: absolute;
    top: 10px;
    right: 10px;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.8s 150ms;
  transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
  box-shadow: 0 8px 14px 0 rgba(0,0,0,0.2);
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 1rem;
}

.flip-card-front {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flip-card-back {
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: rotateY(180deg);
}

.trapezoid {
    position: absolute;
    top: 0px;
    z-index: -1;
    width: 220px;
	height: 147px;
    border-radius: 1rem 1rem 0px 0px;
	clip-path: polygon(0 0, 100% 0, 100% 50%, 0% 100%);
}

.moreBTN{
    color: black;
    margin-top: 20px;
    border: none;
    text-decoration: none;
    border-radius: 15px;
    outline-offset: 2.5px;
    height: 30px;
    width: 87%;
    transition: all 100ms ease-in;
}

.moreBTN:hover{
    outline-offset: 1px;
}

.sideMenu{
    width: 300px;
    z-index: -1;
    height: 100vh;
    position: fixed;
    right: 0;
    top: 0;
    background-color: #fcf3e9;
    box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
    padding: 40px;
	padding-top:100px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

:root {
  --background: linear-gradient(30deg, #f39c12 30%, #f1c40f);
  --background-select: linear-gradient(to right, #f9651d 3rem, #f8d8c8 3rem);
}

/* Reset <select> defaults */
select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border: 0;
  outline: 0;
  background: none;
  color: inherit;
  box-shadow: none;
}
select::-ms-expand {
  display: none;
}
/* Custom Select wrapper */
.select {
  margin-top: 10px;
  color: #2c2c2b;
  position: relative;
  display: flex;
  width: 100%;
  background: var(--background-select);
  border-radius: 0.25rem;
  overflow: hidden;
}
.select select {
  flex: 1;
  padding: 1em;
  cursor: pointer;
}
/* Arrow style */
.select::after {
  content: "\25BC";
  position: absolute;
  left: 17px; /* Adjusted for RTL */
  top: 8px;
  transition: .5s all ease;
  pointer-events: none; /* IMPORTANT to click on arrow */
  color: #ecebe4;
}
/* Arrow hover */
.select:hover::after {
  color: #524437;
  animation: bounce 1s infinite;
}

@keyframes bounce {
  10% {
    transform: translatey(1px);
  }
  25% {
    transform: translatey(0.5px);
  }
  50% {
    transform: translatey(0px);
  }
  75% {
    transform: translatey(-0.5px);
  }
  90%{
    transform: translatey(-1px);
  }
}


.sideFooter{
    position: absolute;
    bottom: 20px;
    width: 80%;
    text-align: left;
    border-top: 2px solid black;
    padding-top: 15px;
    font-family: "kugile", sans-serif;
}

@media (max-width: 767.98px) {
    .rows{
        right: 0;
        margin-right: 70px;
        margin-top: 130px;
    }
    .sideMenu{
      display: none;
    }
}