@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

*,
*:before,
*:after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

html,
body {
  height: 100%;
  padding: 0;
  margin: 0;
}

h1,
h2,
p {
  margin: 0.5rem 0;
}

a {
  color: #60a5fa;
  text-decoration: none;
}

h1 {
  font-weight: 600;
  font-size: 2rem;
}

h2 {
  font-size: 1rem;
}

body {
  font-family: 'Poppins', sans-serif;
  color: #212121;
  font-weight: 300;
}

main {
  display: flex;
  flex-direction: row;
  height: 100%;
}

.map {
  width: calc(100% - 500px);
  background: #eee;
}

.content {
  width: 500px;
  padding: 2rem;
  overflow: auto;
  position: relative;
  box-shadow: 0 0 60px -30px black;
}

label {
  font-weight: 600;
  display: block;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

fieldset {
  border: 0;
  background: #f6f6f6;
  margin: 1rem 0;
  border-radius: 5px;
  padding: 1rem;
}

fieldset p:last-child {
  margin: 0;
}

h1:first-child {
  margin-top: 0;
}

input[type='text'],
input[type='password'],
textarea {
  display: block;
  width: 100%;
  font-size: 1rem;
  font-family: inherit;
  padding: 0.25rem 0.5rem;
  border: 1px solid #ccc;
  color: inherit;
}

textarea {
  resize: vertical;
  min-height: 60px;
}

input[type='text'][readonly] {
  background: #eee;
}

input[type='submit'],
.button {
  background: #60a5fa;
  color: white;
  padding: 0.5rem 1rem;
  font-family: inherit;
  border: 0;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  border-radius: 5px;
}

input[type='submit'].disabled {
  pointer-events: none;
  opacity: 0.3;
}

.home-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 0;
  text-align: center;
}

.home-page h1 {
  margin-bottom: 0;
}

.home-page h2 {
  margin-top: 0;
  color: #aaa;
  font-weight: 400;
  font-size: 1.5rem;
}

.home-page .button-container {
  display: flex;
  flex-direction: row;
  gap: 1rem;
}

hr {
  border: 0;
  border-top: 5px solid #eee;
  width: 100%;
  margin: 2rem 0;
}

.recent-maps {
  display: none;
  width: 100%;
}

.recent-maps.visible {
  display: block;
}

.recent-maps ul {
  text-align: left;
}

.loading-overlay {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: white;
}

.load-existing {
  display: none;
}

.load-existing.visible {
  display: block;
  width: 100%;
}

.load-existing form {
  display: flex;
  flex-direction: row;
}

.load-existing form input[type='submit'] {
  width: 150px;
  margin-left: 1rem;
}
