@import url('https://fonts.googleapis.com/css?family=Roboto:400,700&display=swap');

/* ==== CSS Variables ==== */
:root {
  --background-color-light: white;
  --background-color-mid: lightgray;
  --background-color-dark: #1E90FF;
  --shadow-small: 0 2px 4px rgba(0, 0, 0, 0.6);
  --shadow-large: 0 4px 16px rgba(0, 0, 0, 0.6);
  --font-family: 'Roboto', sans-serif;
  --font-size-small: 10px;
  --font-size-standard: 12px;
  --font-size-large: 14px;
  --font-size-title: 32px;
  --text-color-light: white;
  --text-color-mid: lightgray;
  --text-color-dark: black;
}

/* ==== Global Reset ==== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  /* outline: 1px red dashed; */
}

html, body {
  overflow: hidden;
}

/* ==== App Layout ==== */
body {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  background-color: var(--background-color-mid);
}

.app {
  width: 370px;
  max-width: 370px;
  height: 640px;
  max-height: 640px;
  position: relative;
  border-radius: 12px;
  box-shadow: var(--shadow-large);
  background-color: var(--background-color-light);
  font-family: var(--font-family);
  font-size: var(--font-size-standard);
  color: var(--text-color-dark);
  margin: 10px;
}

/* ==== Header ==== */
.header {
  height: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  background-color: var(--background-color-dark);
  color: var(--text-color-light);
  padding: 10px;
}

.header-title {
  height: 40px;
  font-size: var(--font-size-title);
  text-shadow: var(--shadow-small);
}

.header-content {
  height: 100px;
}

/* ==== Main ==== */
.main {
  height: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  background-color: var(--background-color-light);
  font-size: var(--font-size-large);
  padding: 10px;
}

.main-content {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 3px 10px;
}

.main-content label {
  width: 120px;
  text-align: left;
}

input[type="text"],
input[type="number"],
input[type="file"] {
  width: 230px;
  padding: 2px 4px;
  box-sizing: border-box;
  border: 1px solid var(--background-color-mid);
  border-radius: 5px;
}

#map {
  border-radius: 5px;
  border: 1px solid black;
  margin: 5px 10px;
}

button {
  background-color: var(--background-color-dark);
  color: var(--text-color-light);
  border: none;
  padding: 2px 4px;
  border-radius: 5px;
  cursor: pointer;
  box-shadow: var(--shadow-small);
  font-size: var(--font-size-large);
  transition: background-color 0.3s ease;
  margin: 5px 10px;
}

button:hover {
  background-color: #187bcd;
}

/* ==== Footer ==== */
.footer {
  width: 100%;
  height: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  background-color: var(--background-color-dark);
  font-size: var(--font-size-small);
  color: var(--text-color-mid);
}

.footer-content {
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 10px;
}

.footer a {
  color: var(--text-color-mid);
  text-decoration: none;
}
