html,
body {
  overflow-x: hidden;
  padding: 0;
  margin: 0;
  font-family: "Roboto Condensed", sans-serif !important;
  scrollbar-width: none !important;
  -ms-overflow-style: none;
}

* {
  scrollbar-width: none !important;
  box-sizing: border-box !important;
}

::-webkit-scrollbar {
  display: none;
}

@font-face {
  font-family: 'tilda-black';
  src: url('/fonts/tilda-sans_black.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'tilda-bold';
  src: url('/fonts/tilda-sans_bold.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'tilda-extra-bold';
  src: url('/fonts/tilda-sans_extra-bold.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'tilda-medium';
  src: url('/fonts/tilda-sans_medium.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'tilda-semibold';
  src: url('/fonts/tilda-sans_semibold.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'tilda-vf';
  src: url('/fonts/tilda-sans_vf.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'tilda-light';
  src: url('/fonts/tilda-sans_light.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'tilda-regular';
  src: url('/fonts/tilda-sans_regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

.Container {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100%;
}

#map {
  width: 100%;
  height: 100%;
}

.Header {
  background-color: #fdf0d5;
  border-bottom: 3px solid #0d1821 !important;
  display: flex;
  justify-content: center;
  position: relative;
  width: 100%;
  z-index: 12;
}

.Header_content {
  align-items: center;
  background-color: #fdf0d5;
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1400px;
  padding: 10px 20px;
  width: 100%;
}

.Flagbox {
  align-items: center;
  display: flex;
}

.Input {
  background-color: #fdf0d5;
  border: 3px solid #0d1821;
  border-right: none;
  font-family: tilda-regular;
  font-size: 16px;
  height: 45px;
  outline: none;
  padding-left: 15px;
}

.Button {
  background-color: #0d1821;
  border: 3px solid #0d1821;
  color: #fdf0d5;
  cursor: pointer;
  font-family: tilda-regular;
  font-size: 16px;
  height: 45px;
  transition: .5s;
  width: 80px;
}

#submitButton {
  box-shadow: 4px 4px 0 #eca72c;
}

button#submitButton:hover {
  background-color: #FDF0D5;
  color: #0D1821;
}

#resultButton {
  background-color: #fdf0d5;
  border: 3px solid #fdf0d5;
  color: #0d1821;
  font-family: tilda-regular;
}

#resultButton:hover {
  background-color: #0D1821;
  color: #FDF0D5;
}

#coordinatesInput {
  box-shadow: 4px 4px 0 #eca72c;
  width: 250px;
}

#coordinatesInput::selection {
  background-color: #0d1821;
  color: #fdf0d5;
}

#resultInput {
  field-sizing: content;
  color: #fdf0d5;
  background-color: #0d1821;
  border: 3px solid #fdf0d5;
  border-right: none;
  max-width: 50vw;
  min-width: 160px;
  padding-right: 15px;
}

#resultInput::selection {
  background-color: #fdf0d5;
  color: #0d1821;
}

#copyButton {
  width: 40px;
  background-color: #fdf0d5;
  border: 3px solid #fdf0d5;
  color: #0d1821;
  font-family: tilda-regular;
}

button#copyButton:hover {
  background-color: #0d1821;
  color: #fdf0d5;
}

input[type=text] {
  appearance: none;
  border-radius: 0;
}


.maplibregl-ctrl-group button+button {
  border-top: 3px solid #0d1821 !important;
}

.maplibregl-ctrl-group {
  background: #ffffff00 !important;
  box-shadow: none !important;
}

.maplibregl-ctrl-group button {
  background-color: #fdf0d5;
  border: 3px solid #0d1821;
  color: #fdf0d5;
  margin-bottom: 3px;
  border-radius: 0px !important;
  transition: .5s;
}

.maplibregl-ctrl-group button:hover {
  background-color: #fdf0d5 !important;
  border: 3px solid #0d1821;
  border-radius: 0px !important;
}

.maplibregl-ctrl-attrib-button button:hover {
  background-color: #0d1821 !important;
  border: 3px solid #0d1821;
  border-radius: 0px !important;
}

.maplibregl-ctrl-attrib-inner {
  width: 291px;
  height: 20px;
}

.maplibregl-ctrl.maplibregl-ctrl-attrib.maplibregl-compact {
  background-color: #fdf0d5 !important;
  border: 3px solid #0d1821;
  height: 30px !important;
  width: auto !important;
  color: #000;
  border-radius: 0px !important;
}

.maplibregl-ctrl.maplibregl-ctrl-attrib.maplibregl-compact.maplibregl-compact-show {
  width: auto !important;
  height: auto !important;
}

.maplibregl-ctrl-attrib-button:focus,
.maplibregl-ctrl-group button:focus {
  box-shadow: none !important;
}

.maplibregl-ctrl-attrib-button {
  background-color: rgb(0, 0, 0, 0) !important;
}

.maplibregl-ctrl.maplibregl-ctrl-scale {
  background-color: #fdf0d5 !important;
}

canvas.maplibregl-canvas {
    background-color: #022b48 !important;
}

.marker {
  background-image: url("/static/svg/pin.svg") !important;
  background-size: contain;
  width: 40px;
  height: 40px;
}

.marker>svg {
  opacity: 0 !important;
}

/* Result Overlay Modal Styles - Exactly as in a.html */
.Result_overlay {
  position: fixed;
  top: 0;
  background-color: rgba(52, 58, 64, 0.6);
  width: 100vw;
  height: 100vh;
  color: #fff;
  z-index: 14;
  display: flex;
  justify-content: center;
  align-items: center;
}

.Result_content {
  background-color: #0D1821;
  padding: 50px;
  width: auto;
  box-shadow:
    0 1px 4px rgba(0, 0, 0, .3),
    -23px 0 20px -23px rgba(0, 0, 0, .8),
    23px 0 20px -23px rgba(0, 0, 0, .8),
    0 0 40px rgba(0, 0, 0, .1) inset;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  max-width: 90vw;
}

.Result_title {
  text-align: center;
  color: #FDF0D5;
  font-size: 26px;
  font-weight: bold;
  font-family: tilda-bold;
}

.Result_message {
  margin-top: 30px;
  color: #FDF0D5;
  text-align: center;
  font-size: 16px;
  font-family: tilda-regular;
}

.Result_button {
  width: 100%;
  height: 40px;
  margin-top: 8px;
  background-color: #FDF0D5;
  color: #0D1821;
  font-weight: 500;
  border: none;
  cursor: pointer;
  font-size: 18px;
  transition: 0.5s;
}

/* Success and Error specific styles */
.Result_content.success .Result_title {
  color: #5fad56;
}

.Result_content.error .Result_title {
  color: #c22b10;
}

/* Responsive design for smaller screens */
@media (max-width: 768px) {
  .Header_left {
    display: none;
  }

  .Header_content {
    justify-content: center;
  }
}

/* For very small screens */
@media (max-width: 480px) {
  .Header_content {
    padding: 10px;
  }
}