:root {
  --color-brand--1: #ffb545;
  --color-brand--2: #00c46a;

  --color-dark--1: #2d3439;
  --color-dark--2: #42484d;
  --color-light--1: #aaa;
  --color-light--2: #ececec;
  --color-light--3: rgb(214, 222, 224);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: inherit;
}

html {
  font-size: 46.5%;
  box-sizing: border-box;
}

body {
  font-family: 'Manrope', sans-serif;
  color: var(--color-light--2);
  font-weight: 400;
  line-height: 1.6;
  height: 100vh;
  overscroll-behavior-y: none;

  background-color: #fff;
  padding: 2.5rem;

  display: flex;
}

/* GENERAL */
a:link,
a:visited {
  color: var(--color-brand--1);
}

/* SIDEBAR */
.sidebar {
  flex-basis: 50rem;
  background-color: var(--color-dark--1);
  padding: 3rem 5rem 4rem 5rem;
  display: flex;
  flex-direction: column;
  width: 35rem;
  
}

.logo {
  height: 5.2rem;
  align-self: center;
  margin-bottom: 4rem;
}

.workouts {
  list-style: none;
  height: 75vh; /* was @ 77 */
  overflow-y: scroll;
  overflow-x: hidden;
}

.workouts {
  /* Chrome & Edge */
  ::-webkit-scrollbar {
    width: 0;
  }
  /* Firefox */
  scrollbar-width: none;
}

/*
.workouts::-webkit-scrollbar {
  width: 0;
}
*/

.workout {
  background-color: var(--color-dark--2);
  border-radius: 5px;
  padding: 1.5rem 2.25rem;
  margin-bottom: 1.75rem;
  cursor: pointer;

  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 0.75rem 1.5rem;
}
.workout--running {
  border-left: 5px solid var(--color-brand--2);
}
.workout--cycling {
  border-left: 5px solid var(--color-brand--1);
}

.workout__title {
  font-size: 1.7rem;
  font-weight: 600;
  grid-column: 1 / -1;
}

.workout__details {
  display: flex;
  align-items: baseline;
}

.workout__icon {
  font-size: 1.8rem;
  margin-right: 0.2rem;
  height: 0.28rem;
}

.workout__value {
  font-size: 1.5rem;
  margin-right: 0.5rem;
}

.workout__unit {
  font-size: 1.1rem;
  color: var(--color-light--1);
  text-transform: uppercase;
  font-weight: 800;
}

.form {
  background-color: var(--color-dark--2);
  border-radius: 5px;
  padding: 1.5rem 2.75rem;
  margin-bottom: 1.75rem;

  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem 2.5rem;

  /* Match height and activity boxes */
  height: 12.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 {
  display: flex;
  align-items: center;
}

.form__row--hidden {
  display: none;
}

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

.form__input {
  width: 100%;
  padding: 0.3rem 1.1rem;
  font-family: inherit;
  font-size: 1.4rem;
  border: none;
  border-radius: 3px;
  background-color: var(--color-light--3);
  transition: all 0.2s;
}

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

/* data entry button on workout form */
.form__btn,
.cnxEntry {
  font-size: 1.4rem;
  margin-left: 7.8rem;
  margin-top: .7rem;
  width: 8rem;
  height: 3rem;
  border-radius: 5px;
}

.form__btn {
  background-color: #00c46a;
}

.cnxEntry {
  background-color: rgb(180, 51, 66);
}

.copyright {
  margin-top: auto;
  font-size: 1.3rem;
  text-align: center;
  color: var(--color-light--1);
}

.twitter-link:link,
.twitter-link:visited {
  color: var(--color-light--1);
  transition: all 0.2s;
}

.twitter-link:hover,
.twitter-link:active {
  color: var(--color-light--2);
}

/* MAP */
#map {
  flex: 1;
  height: 100%;
  background-color: var(--color-light--1);
  z-index: 1;
}

/*   STYLING FOR THE POPUP MAP MARKERS   */

/* Popup width is defined in JS using options */
.leaflet-popup .leaflet-popup-content-wrapper {
  background-color: var(--color-dark--1);
  color: var(--color-light--2);
  border-radius: 5px;
}

.leaflet-popup .leaflet-popup-content {
  font-size: 1.5rem;
  margin-left: 8px;
  height: auto;
  margin-top: 10px;
}

.leaflet-popup .leaflet-popup-tip {
  background-color: var(--color-dark--1);
}

.running-popup .leaflet-popup-content-wrapper {
  border-left: 7px solid var(--color-brand--2);
}
.cycling-popup .leaflet-popup-content-wrapper {
  border-left: 7px solid var(--color-brand--1);
}
/* used to override leaflet's built-in styling */
.leaflet-popup-close-button {
  font-size: 11px !important;
  width: 15px !important;
  height: 15px !important;
  padding-right: 2rem !important;
}

/* sort / edit modal window */

.modal-window {
  position: absolute;
  margin-top: 12.5rem;
  margin-left: 50rem;
}

.modal-window.hidden {
  display: none;
}

.modal-window-dropdown {
  position: relative;
  min-height: auto;
  width: 50vh;
  background-color: transparent;
  z-index: 100;
}

/* drop down menu */
.edit-delete-sort {
  position: absolute;
  min-width: 42.8rem;
  width: auto;
  height: 4rem;
  font: inherit;
  font-size: 2rem;
  font-weight: 500;
  color: #fdfbfb;
  text-align: center;
  background-color: rgba(84, 91, 93, 0.8);
  border-radius: 5px;
  margin-left: 1rem;
}
.edit-delete-sort:hover {
  background-color: rgb(105, 108, 108);
  color: rgb(234, 232, 232);
  font-size: 2.1em;
  font-weight: 400;
  cursor: pointer;
}
.edit-delete-sort:active {
  background: #545b5d;
  -webkit-box-shadow: inset 0px 0px 5px #1b1a1a;
  -moz-box-shadow: inset 0px 0px 5px #1b1a1a;
  box-shadow: inset 0px 0px 5px #1b1a1a;
  outline: none;
}
.edit-delete-sort.hidden {
  display: none;
}

/* popup window for editing choices */
/* shows when clicking on Edit workout */

.modal-popup.hidden {
  display: none;
}

.modal-popup {
  position: absolute;
  height: auto;
  width: 42.8rem;
  background-color: rgb(105, 108, 108);
  margin-top: 4rem;
  margin-left: 1rem;
  padding: 1em;
  font: inherit;
  font-size: 2rem;
  border-radius: 5px;
  z-index: 15;
}

.edit-choices {
  color: inherit;
  font: inherit;
  cursor: pointer;
}

/* probably not going to use */
/* accepts user input for the dropdown menu */
.input-box {
  font: inherit;
  font-size: inherit;
  background-color: inherit;
  color: #fdfbfb;
  border-radius: 5px;
  text-align: center;
}
/* text for input box */
::placeholder {
  color: #fdfbfb;
}

/* creates the blur over the map */
.overlay {
  position: absolute;
  top: 0;
  left: 52.6rem;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(2px);
  z-index: 5;
}

.overlay.hidden {
  display: none;
}

/* There is no more reset/delete button */
/* erase all workouts button */
#reset {
  position: absolute;
  top: 15.5vh;
  margin-left: 1.4vh;
  width: 95%;
  font-size: 2vh;
  font-weight: 400;
  border-radius: 6px;
  height: 2em;
  /* background-color: rgb(95, 101, 101); */
  /* color: rgb(217, 213, 213); */
}
#reset:hover {
  background-color: rgb(109, 192, 223);
  cursor: pointer;
  color: red;
}
#reset:active {
  background: #38a7c9;
  -webkit-box-shadow: inset 0px 0px 5px #1b1a1a;
  -moz-box-shadow: inset 0px 0px 5px #1b1a1a;
  box-shadow: inset 0px 0px 5px #1b1a1a;
  outline: none;
}
