/* Font-family */
@import url("https://fonts.googleapis.com/css2?family=Prompt:wght@400;500;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Secular+One&display=swap");

body {
  padding: 25px;
  height: 100vh;
}

.hidden {
  display: none;
}

.sidebar-open {
  display: inline-block;
  cursor: pointer;
}

/* Sidebar functionality */

/* Sidebar style */
.sidebar {
  width: 500px;
  background-color: #22223b;
  color: #f2e9e4;
  display: flex;
  flex-direction: column;
  align-content: center;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  width: 75px;
}

.logo .app-name {
  font-family: "Prompt", sans-serif;
  font-size: 2rem;
}

.sidebar-item {
  width: 100%;
  height: 70vh;

  overflow-y: scroll;
  overflow-x: hidden;
}

.sidebar-item::-webkit-scrollbar {
  width: 0;
}

/* Form */
.form {
  background-color: #888caa;
  border-radius: 10px;
  padding: 1rem;
  margin: 0 0 1rem 0;
  /* margin-bottom: 1rem; */

  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  gap: 0.5rem 1rem;

  /* Match height and activity boxes */
  /* height: 9.25rem; */
  transition: all 0.5s, transform 1ms;
}

.form.hidden {
  transform: translateY(-30rem);
  height: 0;
  padding: 0 2.25rem;
  margin-bottom: 0;
  opacity: 0;
}

.form__row {
  /* width: fit-content; */
  display: flex;
  align-items: center;
}

.form__row--hidden {
  display: none;
}

.form__label {
  flex: 0 0 50%;
  font-size: 1rem;
  font-weight: 600;
}

.form__input {
  width: 100%;
  padding: 0.3rem 0.75rem;
  font-family: inherit;
  font-size: 1rem;
  border: none;
  border-radius: 3px;
  background-color: white;
  transition: all 0.2s;
}

.form__input:focus {
  outline: none;
  background-color: #fff;
}

.form__btn {
  display: none;
}

/* Entries */
.workout-entry {
  width: 100%;
  color: #22223b;
  background-color: #c9ada7;
  border-radius: 10px;

  cursor: pointer;
}

.workout-entry .close-btn img {
  width: 20px;
  cursor: pointer;
  transform: translate(10px, -15px);
}

.workout--running {
  border-left: 5px solid #f1faee;
}

.workout--cycling {
  border-left: 5px solid #a8dadc;
}

.workout__title {
  font-size: 1.5rem;
  font-family: "Secular One", sans-serif;
}

/* button */
div.button {
  display: flex;
}

.btn {
  text-align: right;
  margin-left: auto;
}

/* MAP */
#map {
  flex: 1;
  min-height: calc(100vh-25px);
  background-color: gray;
}

/* Popup width is defined in JS using options */
.leaflet-popup .leaflet-popup-content-wrapper {
  background-color: gray;
  color: white;
  border-radius: 5px;
  padding-right: 0.6rem;
}

.leaflet-popup .leaflet-popup-content {
  font-size: 1rem;
}

.leaflet-popup .leaflet-popup-tip {
  background-color: gray;
}

.running-popup .leaflet-popup-content-wrapper {
  border-left: 5px solid #f1faee;
}
.cycling-popup .leaflet-popup-content-wrapper {
  border-left: 5px solid #a8dadc;
}

#empty-message {
  background-color: rgba(233, 236, 239, 0.5);
  color: rgba(0, 0, 0, 0.5);
  border-radius: 20px;
}
