/* #canvas-container {
    height: 100vh;
    width: 50%;
    align-self: flex-start;
  }
  
  #canvas-container canvas {
    width: 100%;
    height: 100%;
  } */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap");

* {
  font-family: "Gill Sans", "Gill Sans MT", Calibri, "Trebuchet MS", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.overlay {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 10;
  /* width: 175px;  */
  /* height: 250px; half height */
  /* background-color: rgba(240, 240, 240, 0.7); */
  background-color: transparent;
  /* padding: 15px 20px; */
  padding: 0;
  /* border-radius: 12px; */
  border-radius: 0;
  /* color: #222; */
  /* box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15); */
  box-shadow: none;
  /* font-family: "Gill Sans", "Gill Sans MT", Calibri, "Trebuchet MS", sans-serif; */
  display: flex;
  flex-direction: column;
  /* justify-content: space-between; */
  /* user-select: none; */
  align-items: center;
  border: none;
}

/* .overlay h1 {
  font-size: 1.2rem;
  margin: 0;
  font-weight: 700;
}

.overlay p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.3;
} */

overlay h1,
p {
  display: none;
}

.overlay form {
  /* margin: 0; */
  margin-top: 5px;
  /* display: flex; */
  /* justify-content: center; */
}

/* .overlay button {
  background-color: rgba(150, 150, 150, 0.85);
  border: none;
  border-radius: 8px;
  color: #111;
  padding: 8px 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
} */

.overlay button {
  background-color: #2980b9;
  border: none;
  border-radius: 6px;
  color: white;
  width: auto;
  height: auto;
  padding: 8px 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}

.overlay button:hover {
  background-color: rgba(110, 110, 110, 0.95);
}

#percentage {
  font-size: 3.5rem;
  font-weight: 700;
  color: rgb(255, 255, 255);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  padding: 0;
  margin: 0;
}

#infoContainer {
  position: absolute; /* Position near the cursor */
  display: none;
  background: rgba(80, 80, 80, 0.85);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 1rem;
  min-width: 140px;
  max-width: 175px;
  z-index: 1000;
  transition: all 0.3s ease;
  /* border-left: 4px solid #3498db; */
  color: white;
}

#infoContainer.fading {
  opacity: 0;
  transform: translateY(10px);
}

#countryName {
  font-size: 1.2rem; /* Smaller font */
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #ffffff; /* White text for better contrast */
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  padding-bottom: 0.5rem;
}

#countryFlag {
  width: 100%;
  height: auto;
  border-radius: 6px;
  margin-bottom: 0.7rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  object-fit: cover;
}

#markVisit {
  width: 100%;
  margin-top: 0.7rem;
  padding: 0.6rem;
  border: none;
  border-radius: 6px;
  background: linear-gradient(135deg, #3498db, #2980b9);
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  font-size: 0.8rem;
}

#markVisit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  background: linear-gradient(135deg, #2980b9, #1c638e);
}

#markVisit:active {
  transform: translateY(1px);
}

/* Overlay styling */
/* .overlay {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 10;
  width: 175px; 
  background: rgba(255, 255, 255, 0.95);
  padding: 15px 20px;
  border-radius: 12px;
  color: #222;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
} */

.container {
  height: 100%;
  width: 50%;
  position: fixed;
  z-index: 1;
  top: 0;
  overflow-x: hidden;
  overflow-y: hidden;
  padding-top: 0;
}

.left {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  left: 0;
  background-color: black;
  width: 40%;
}

.right {
  right: 0;
  background-color: #111;
  width: 60%;
}

canvas {
  position: fixed;
}

@keyframes slideInFromLeft {
  0% {
    transform: scale(0);
  }
  100% {
    transform: scale(1);
  }
}

.wrapper {
  padding: 5%;
  width: 100%;
  max-width: 350px;
  animation: 0.6s ease-out 0s 1 slideInFromLeft;
}

.form-container form {
  position: relative;
  background: rgba(255, 255, 255, 0.9);
  padding: 25px;
  border-radius: 12px;
  margin-top: 5px;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.form-message {
  font-size: 0.9rem;
  color: #e74c3c;
  margin: 10px 0;
  text-align: center;
  font-weight: 500;
}

.input-group {
  width: 100%;
  margin: 0 auto 15px auto;
  display: flex;
}

input[type="text"],
input[type="password"],
input[type="email"] {
  width: 100%;
  padding: 12px;
  border: 1px solid #a8a7a7;
  border-radius: 6px;
  background-color: rgba(255, 255, 255, 0.9);
  margin-bottom: 8px;
  transition: border-color 0.3s;
  font-size: 14px;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus {
  border-color: #3498db;
  outline: none;
  box-shadow: 0 0 0 3px rgba(49, 131, 185, 0.2);
}

.form-submit {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, #3498db, #2980b9);
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  margin-top: 10px;
}

.form-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  background: linear-gradient(135deg, #2980b9, #1c638e);
}

.form-submit:active {
  transform: translateY(1px);
}

.button-container {
  display: flex;
  position: relative;
  width: 100%;
  margin-bottom: 15px;
  background-color: #f0f0f0;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

#btn {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(135deg, #3498db, #2980b9);
  border-radius: 30px;
  transition: 0.5s;
}

.form-button {
  padding: 10px 0;
  width: 50%;
  cursor: pointer;
  background: transparent;
  border: none;
  outline: none;
  position: relative;
  font-weight: 600;
  color: #555;
  transition: color 0.3s;
}

.form-button:hover {
  color: #222;
}

#flashMessage {
  color: red;
  text-align: center;
  width: 100%;
  position: absolute;
  top: 70%;
  left: 50%;
  transform: translate(-50%, -50%);
}

#map {
  display: flex;
  width: 100vw;
  height: 100vh;
  margin: 0;
  padding: 0;
}

#svgContainer {
  display: flex;
  width: 100%;
  height: 100%;
  overflow: visible;
  background-color: rgba(19, 17, 17, 0.904);
  justify-content: center;
  align-items: center;
}

#svgContainer svg {
  overflow: visible;
  transform: scale(1);
  max-width: 100%;
  max-height: 100%;
}

#svgContainer svg path {
  fill: orange;
  transition: fill 0.3s ease;
}

#svgContainer svg path:hover {
  fill: grey;
}

.delete-button {
  background: rgba(231, 76, 60, 0.7);
  color: white;
  border: none;
  border-radius: 4px;
  padding: 3px 8px;
  font-size: 12px;
  cursor: pointer;
}

.delete-button:hover {
  background-color: rgba(192, 57, 43, 0.8);
}

.image-actions {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

.small-button {
  background: linear-gradient(135deg, #3498db, #2980b9);
  color: white;
  border: none;
  border-radius: 4px;
  padding: 5px 10px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.small-button:hover {
  background: linear-gradient(135deg, #2980b9, #1c638e);
}

@keyframes popUp {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

body,
html {
  margin: 0;
  height: 100%;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
  overflow-y: hidden;
}
