@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@500&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@500&display=swap');
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap");

:root {
    --purple: rgb(106, 0, 255);
    --teal-blue: rgb(34, 166, 179);
    --orange: rgb(255, 135, 73);
    --light-gray: rgb(240, 240, 240);
    --dark-gray: rgb(51, 51, 51);
    --green: rgb(0, 153, 51);
    --green-soft:#28f3a5;
    --blue: rgb(51, 102, 204);
    --light-shadow: rgba(0, 0, 0, 0.2);
    --orange-hover: rgb(255, 102, 0);
    --red: rgb(60, 56, 56);
    --pink: rgb(255, 105, 180);
    --turquoise: rgb(64, 224, 208);
    --brown: rgb(139, 69, 19);
    --light-blue: rgb(173, 216, 230);
    --violet: rgb(238, 130, 238);
    --dark-green: rgb(0, 128, 0);
    --light-red: rgb(255, 99, 71);
    --gold: rgb(255, 215, 0);
    --silver: rgb(192, 192, 192);
    --black: rgb(0, 0, 0);
    --white: rgb(255, 255, 255);
    --soft-white: #f2f2f2;
}

body {
    margin: 0;
    padding: 0;
    border: 0;
    font-family: "Poppins", sans-serif;
    user-select: none;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}


#map {
    height: 100vh;
    width: 100vw;
    overflow: hidden;
}

.info {
    background-color: white;
    border-radius: 1em;
    padding: 0 1em;
}


#btn-cam {
    position: fixed;
    bottom: 50px;
    left: 20px;
    z-index: 998;
    background-color: rgb(248, 239, 254);
    border-radius: 50%;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.294);
    border: none;
    cursor: pointer;
    transition: 0.2s ease-in-out;
    width: 75px;
    height: 75px;
    border: var(--green-soft) 1px solid;
    display: flex;
    align-items: center;
    justify-self: center;
}

#btn-cam:active {
    transform: scale(0.87);
}

#btn-cam img {
    filter:grayscale(1px);
    width: 100%;
    height: auto;
}


.alert {
    padding: 6px 8px;
    font: 14px/16px Arial, Helvetica, sans-serif;
    background: red;
    background: var(--orange);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    text-align: center;
    color: white;
    width: 100%;
    color: rgba(255, 255, 255, 0.8);
    left: 50%;
    transform: translate(-50%, 0%);
}

.show-popup {
  padding: 18px 40px;
  border: none;
  outline: none;
  border-radius: 6px;
  box-shadow: 0 0 10px rgba(0, 0, 0, .1);
  cursor: pointer;
  font-size: 18px;
  color:var(--soft-white) ;
  font-weight: 500;
}
.popup-container {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 1003;
  background: rgba(0, 0, 0, .3);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
}
.popup-container.active {
  opacity: 1;
  pointer-events: auto;
  transition: .4s ease;
  
}
.popup-container .popup-box {
  width: 500px;
  background: #f2f2f2;
  border-radius: 6px;
  box-shadow: 0 0 10px rgba(0, 0, 0, .1);
  padding: 30px;
  transform: scale(0);
  max-width: 80%;
}
.popup-container.active .popup-box {
  transform: scale(1);
  transition: .4s ease;
  transition-delay: .25s;
}
.popup-box h1 {
  color: #333;
  line-height: 1;
}
.popup-box p {
  color: #333;
  margin: 12px 0 20px;
}
.popup-box .close-btn {
  width: 100%;
  height: 45px;
  background: #28f3a5;
  border-radius: 6px;
  border: none;
  outline: none;
  box-shadow: 0 0 10px rgba(0, 0, 0, .1);
  cursor: pointer;
  font-size: 18px;
  color: #f2f2f2;
  font-weight: 500;
  font-family: "Poppins", sans-serif;
}

#load-div {
    z-index: 99999;
    pointer-events: none; 
    position: fixed;
    width: 100vw;
    height: 100vh;
    color: aliceblue;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background: linear-gradient(90deg, #fffef4 15%, #e7ffdc 50%, #fffef4 75%);
    background-size: 200% 100%;
    animation: loading 1.6s infinite;
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    padding: 20px;
    transition: opacity 1s; 
    opacity: 1; 
}

#load-content {
    text-align: center;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.1);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 0.8;
    }
}

#load-content img {
    z-index: 999999;
    max-width: 30%;
    display: block;
    margin: 0 auto;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}
#card {
    top: 8px;
    position: fixed;
    width: 60%;
    height: 85%;
    background-color: #fffefa;
    border-radius: 10px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
    padding: 23px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.146);
    justify-content: start;
    z-index: 99999;
    transform: scale(0);
}

#card.active {
    transform: scale(1);
    transition: .2s ease;
    transition-delay: .25s;
}
  
#point-name {
    font-size: 100%;
    white-space:nowrap;
}
  
#head-card {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 20%;
    max-height: 20%;
}
#exit-card {
    cursor: pointer;
    font-size: 3em;
}
#point-sub {
    display: flex;
    width: 100%;
    max-width: 70%;
    align-items: center;
    justify-content: space-between;
    padding: 0 25px;
}
  
#stars {
    display: flex;
    height: 100%;
    max-height: 100%;
}
  
#stars ion-icon {
    color: #FFD700;
    font-size: 2em;
}
  
#img-card {
    background-size: cover;
    background-color: wheat;
    height: 250px;
    border-radius: 10px;
    background-position: center center;
}
  
#body-card {
    margin-top: 20px;
    overflow-y: scroll;
    overflow-x: hidden;
}
  
#info-point {
    display: flex;
    justify-content: space-between;
}
  
#time-point, #point-value {
    flex: 1;
    text-align: center;
    padding: 8px;

}
#info-point{
    display: flex;
}
  
#head-time-point ion-icon, #point-value-title ion-icon {
    font-size: 2.2em;
    color: #00ea81;
}
  
#head-time-point h1, #point-value-title h1 {
    font-size: 1.5em;
    margin-top: 10px;
}
  
#body-time-point h1, #point-value-body h1 {
    font-size: 1.2em;
    font-weight: bold;
}
  
#card-description-text {
    font-size: 14px;
    margin-top: 20px;
    line-height: 1.5;
    color: #030303;
}
@media (max-width: 768px) {
    #card {
        width: 85%;
    }
    #info-point{
        flex-direction: column;
    }
      

}