*, *:before, *:after {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}
.noselect {
  -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
     -khtml-user-select: none; /* Konqueror HTML */
       -moz-user-select: none; /* Old versions of Firefox */
        -ms-user-select: none; /* Internet Explorer/Edge */
            user-select: none; /* Non-prefixed version, currently
                                  supported by Chrome, Edge, Opera and Firefox */
}

body {
  background: #202020;
  overflow: hidden;
  font-family: sans-serif;
}

.tinder {
  width: 100vw;
  height: calc(100svh - 147px); /* Adjusted for header height */
  margin-top: 8px;
  opacity: 1;
  transition: opacity 0.1s ease-in-out;
}

.swipe-direction-label-side{
  padding: 8px; 
  margin: 8px;
}

.tinder--cards-outer-container{
  padding-top: 50px;
}

.loaded.tinder {
  opacity: 1;
}

.tinder--status {
  z-index: 2;
  text-align: center;
  pointer-events: none;
}

.tinder--status i {
  font-size: 150px;
  opacity: 0;
  transform: scale(0.3);
  transition: all 0.3s ease-in-out;
  position: absolute;
  width: 100px;
  margin-left: -50px;
}

.tinder--status .status-label {
  opacity: 0;
  font-size: 100px;
  font-weight: bold;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.3);
  transition: all 0.3s ease-in-out;
  color: #fff;
  text-shadow: 0 0 8px #000, 0 0 15px #0008;
  pointer-events: none;
}
.tinder--status .status-label.left { color: #ff5555; }
.tinder--status .status-label.right { color: #55ff55; }
.tinder--status .status-label.up { color: #55aaff; }
.tinder--status .status-label.down { color: #ffaa55; }

.swipe-left .tinder--status .status-label.left { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.swipe-right .tinder--status .status-label.right { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.swipe-up .tinder--status .status-label.up { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.swipe-down .tinder--status .status-label.down { opacity: 1; transform: translate(-50%, -50%) scale(1); }

.tinder_love .fa-heart {
  opacity: 1;
  transform: scale(1);
}

.tinder_nope .fa-remove {
  opacity: 1;
  transform: scale(1);
}

.tinder--cards {
  flex-grow: 0.8;
  padding-top: 40px;
  text-align: center;
  display: flex;
  justify-content: center;
  /*align-items: flex-end;*/
  align-items: center; /* Center cards vertically */
  z-index: 1;
  height: calc(80svh - 74px); /* Adjusted for header height */
  position: relative; /* Ensure stacking context */
}

.tinder--card {
  display: block; /* Stack cards on top of each other */
  height: 100%;
  background: #ccc;
  color: #333;
  padding: 16px;
  border-radius: 8px;
  overflow: hidden;
  position: absolute; /* Absolute for stacking */
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
  will-change: transform;
  transition: all 0.3s ease-in-out;
  cursor: -webkit-grab;
  cursor: grab;
  width: 90svw;
  
  box-shadow: 0 4px 24px rgba(0,0,0,0.15);
}
.upload-link-container{
  
    margin-top : 24px;
    background : #222;
    padding : 18px 16px;
    border-radius : 10px;
    box-shadow : 0 2px 12px #0005;
    display : flex;
    flex-direction : row;
    align-items : center;
    gap : 12px;
    width : 80vh;
    max-width : 700px;
    margin : 0 auto;
}
.upload-link-container > button{
    font-size: 1em;
    padding: 7px 14px;
    background: #444;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}
.moving.tinder--card {
  transition: none;
  cursor: -webkit-grabbing;
  cursor: grabbing;
}

.tinder--card img.streetviewImage {
  max-width: 100%;
  pointer-events: none;
  object-fit: cover; /* Ensures the image covers the card area */
  width: 100%;
  height: 100%;
  width: 100%
}

.tinder--card h3 {
  margin-top: 32px;
  font-size: 32px;
  padding: 0 16px;
  pointer-events: none;
}

.tinder--card p {
  margin-top: 24px;
  font-size: 20px;
  padding: 0 16px;
  pointer-events: none;
}

.tinder--buttons {
  flex: 0 0 100px;
  text-align: center;
  padding-top: 20px;
}

.tinder--buttons button {
  border-radius: 50%;
  line-height: 60px;
  width: 60px;
  border: 0;
  background: #FFFFFF;
  display: inline-block;
  margin: 0 8px;
}

.tinder--buttons button:focus {
  outline: 0;
}

.tinder--buttons i {
  font-size: 32px;
  vertical-align: middle;
}

#labelContainer div{
  font-size: 1.5rem;
  font-weight: bold;
  color: #aaa;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  padding: 8px;
  display: inline-block;
  background-color: #20202088;
  border-radius: 8px;
}

.fa-heart {
  color: #FFACE4;
  text-shadow: 0 0 8px rgba(255, 172, 228, 0.8), 0 0 15px rgba(255, 172, 228, 0.5);
}

.fa-remove {
  color: #950606;
  text-shadow: 0 0 8px rgba(255, 172, 228, 0.8), 0 0 15px rgba(255, 172, 228, 0.7);
}

.tinder--labels {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none; /* Prevent interference with card interactions */
}

#labelContainer {
  font-size: 1rem;
  font-weight: bold;
  color: #777;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
  z-index: 9999;
}

.label.top {
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
}

.label.right {
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
}

.label.bottom {
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
}

.label.left {
  top: 50%;
  left: 10px;
  transform: translateY(-50%);
}
.bottom-buttons{
   position: fixed;
   width:43px;
   bottom: 80px;
    padding: 10px 10px;
   background-color: #181818;
   color: white;
   border: none;
   border-radius: 20px;
   cursor: pointer;
   z-index: 2147483647; /* Ensure it is above other elements */
}

/* Adjust layout for mobile screens */
@media (max-width: 600px) {
  .tinder--cards {
    padding-top: 10px; /* Reduce the padding */
    align-items: center; /* Center the cards vertically */
  }
  .tinder--card {
    width: 98vw;
    max-width: 98vw;
  }
  .tinder{
    height: calc(100svh - 100px); /* Adjusted for header height */
  }
  #bottom-bar {
    display: none;
  }
}

/* Adjust aspect ratio for vertical displays */
@media (max-aspect-ratio: 9/16) {
  .tinder--card {
    height: unset;
    aspect-ratio: 9 / 16; /* Set aspect ratio */
  }
  #kitty{
    max-width: 128px;
    max-height: 128px;
  }
}
/* if height is less then 400px */
@media (max-height: 800px) {

  #kitty{
    max-width: 128px;
    max-height: 128px;
  }
  
}

@media (min-aspect-ratio: 16/9) {
  .tinder--card {
    width: unset;
    
    aspect-ratio: 16 / 9; /* Set aspect ratio */
  }
}