:root {
  font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  font-weight: 400;

  color-scheme: light dark;
  color: rgba(255, 255, 255, 0.87);

  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  font-weight: 500;
  color: #646cff;
  text-decoration: inherit;
}
a:hover {
  color: #535bf2;
}

body {
  font-family: "Inter", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
  /* overflow: hidden; Prevent scrollbar */
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  width: 100%;
  background-color: #f5f5f5;
  margin: 0;
}

.container {
  background-color: #fff;
  padding: 10px;
  border-radius: 5px;
  display: flex;
  justify-content: space-between;
  width: fit-content;
  position: absolute;
  bottom: 120px;
}

#nameInput {
  width: 200px;
  padding: 10px;
  border: 1px solid #ccc;
  background-color: white;
  color: black;
  font-size: 16px;

  font-family: "Inter", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
}

.inputErrorPopup{
  width: fit-content;
  padding: 2%;
  border-radius: 5px;
  position: absolute;
  bottom: 100%;
  left: 2.75%;
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  flex: none;

  transition: all ease-in-out 0.5s;
}

.inputErrorPopup.active{
  opacity: 100%;
}

/* Popup arrow */
.inputErrorPopup .popuptext::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0%;
  transform: translateX(-100%) translateY(-50%);
  border-width: 5px;
  border-style: solid;
  border-color: transparent #555 transparent transparent;
}

#enterButton {
  padding: 10px 20px;
  border: 1px solid #ccc;
  border-radius: 5px;
  background-color: #f0f0f0;
  text-decoration: none;
  color: #333;
  cursor: pointer;
  transition: all 0.25s ease-in-out;
  user-select: none;

  font-family: "Inter", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
}

#enterButton:hover {
  background-color: #c7c7c7;
  color: #333;
  cursor: pointer;
}

.download-button {
  display: inline-flex;
  align-items: center;
  padding: 10px 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  background-color: #f0f0f0;
  text-decoration: none;
  color: #333;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.download-button:hover {
  background-color: #ddd;
  color: #333;
}

#nameBoxes {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: stretch;
  user-select: none;
  width: 90%;
  max-width: 90%;
  /* max-height: 50%; */

  gap: 1%;
  position: absolute; /* Make boxes appear above container */
  top: 45%; /* Position boxes vertically centered */
  left: 50%; /* Center boxes horizontally */
  transform: translate(-50%, -50%); /* Offset center based on width */
}

.nameBox {
  background-color: #eee;
  font-size: 500%;
  padding: 10%;
  border-radius: 5px;
  width: fit-content;
  height: fit-content;
  color: #333;
  opacity: 0; /* Initial opacity for fade-in */
  transition: transform 1s ease-in-out, opacity 1s ease-in-out; /* Animation properties */
}

.nameBox.enter {
  opacity: 1;
  transform: translateY(0); /* Slide up animation */
}

.nameBox.exit {
  opacity: 0;
  transform: translateY(20px); /* Slide down animation */
}

#nameBoxes img {
  min-width: 0%;
  max-width: 100%;
  max-height: 100%;
  align-self: center;
  /* object-fit: contain; */
  display: block;
  transform: translateY(20px);
  transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out, scale 0.25s ease-in-out;
  opacity: 0%;
}

#nameBoxes img.active {
  transform: translateY(0px);
  opacity: 100%;
}

#nameBoxes img:hover {
  scale: 1.1;
}

#nameBoxes img.selected {
  scale: 1.1;
  /* border: 2px solid black; */
}

.blankDiv{
  width: 2%;
  height: 5%;
  align-self: center;
}

.location-info {
  text-align: center; /* Center align the content */
  position: absolute;
  bottom: 35px;

  font-family: "Inter", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
}

.location-title {
  pointer-events: none;
  opacity: 0%;

  font-weight: bold;
  font-size: 1.2em;
  text-decoration: none; /* Remove underline from hyperlink */
  color: #333; /* Set text color */

  transition: all ease-in-out 0.5s;

  font-family: "Inter", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
}

.location-title.active {
  opacity: 100%;
  pointer-events: all;
}

.location-coordinates {
  color: #666; /* Set text color for coordinates */
  font-size: 0.9em;
  opacity: 0%;

  transition: all ease-in-out 0.5s;
}

.location-coordinates.active {
  opacity: 100%;
}

.popup {
  width: fit-content;
  height: fit-content;
  position: absolute;
  text-align: center;
  z-index: 999;
  color: black;
  flex: none;

  font-size: 85%;

  bottom: 100%;
  right: 40%;

  opacity: 0%;
  pointer-events: none;
  transition: all 0.5s ease-in-out;
}
.popup:after {
  content: "";
  height: 100%;
  width: 100%;
  border-radius: 4px;
  position: absolute;
  top: 0;
  left: 0;
  box-shadow: 0 1px 14px rgba(0,0,0,.2);
}
.popup:before {
  content: "";
  width: 20px;
  height: 20px;
  transform: rotate(45deg);
  box-shadow: 0 1px 14px rgba(0,0,0,.2);
  background: #fff;
  position: absolute;
  z-index: 998;
}
/*
Different arrow positioning
*/
.popup.arrow-top:before {
  left: calc(50% - 10px);
  top: -8px;
}
.popup.arrow-right:before {
  top: calc(50% - 10px);
  right: -8px;
}
.popup.arrow-bottom:before {
  left: calc(50% - 10px);
  bottom: -8px;
}
.popup.arrow-bottom.active{
  opacity: 100%;
}

.popup.arrow-left:before {
  top: calc(50% - 10px);
  left: -8px;
}

.textAboveInput {
  color: black;
  position: absolute;
  bottom: 189px;
  font-size: 75%;
  user-select: none;
  opacity: 100%;
}

.title .textAboveInput {
  color: black;
  position: relative;
  bottom: 0px;
  font-size: 50%;
  user-select: none;
  opacity: 100%;
}

/* 
Popup wrapper
This is where we add the white background and padding of the content within the popup
*/
.popup-wrapper {
  width: 100%;
  padding: 1%;
  padding-right: 10%;
  padding-left: 10%;
  border-radius: 4px;
  background: #fff;
  position: relative;
  z-index: 998;  
}

.pageTitle{
  font-size: 3vw;
  padding-top: 1%;
  padding-left: 1%;
  color: black;

  font-family: "Inter", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
  width: fit-content;
  height: fit-content;
  user-select: none;

  /* display: flex;
  flex-direction: column; */

  position: absolute;
  top: 0%;
  left: 0%;
  /* user-select: none; */
  background-size: contain;
}

.pageTitle img
{
  position: relative;
  width: 4.5rem;
  /* display: block; */
  margin: 0;
  cursor: pointer;
  filter: drop-shadow(0 0 0.25rem rgba(0, 0, 0, 0.4));
  transition: all 0.25s ease-in-out;
}

.pageTitle img:hover
{
  opacity: 75%;
}

.infoIcon{
  position: absolute;
  height: fit-content;
  width: fit-content;
  right: 0.5%;
  top: 0.0%;
  padding: 1%;
  user-select: none;

  cursor: default;
  
  color: black;
  font-size: 150%;
  transition: all 0.25s ease-in-out;
}

.infoIcon:hover{
  opacity: 50%;
  cursor: pointer;
}

.title{
  text-align: center;     
  position: absolute;     
  top: 3%;      
  font-size: 3vw;
  color: black;
  user-select: none;
}