body,
section,
article,
main,
div,
a {
  box-sizing: border-box;
}
h2,
h3 {
  color: var(--primary);
  margin: 0;
}
main {
  background-color: var(--neutral);
}
.topTitleContainer {
  width: 100%;
  height: 70px;
  position: relative;
  margin: 40px 0 0 0;
}
.topTitleContainer > .topTitle {
  color: var(--primary);
  background-color: var(--neutral);
  font-family: var(--font-family);
  text-align: center;
  width: 100%;
  z-index: 2;
  padding: 0 10px;
  margin: 0;
  box-sizing: border-box;
}
.topTitleContainer > .topTitleLine {
  display: none;
}
@media screen and (min-width: 800px) {
  .topTitleContainer {
    margin: 80px 0 40px 0;
  }
  .topTitleContainer > .topTitle {
    width: fit-content;
    padding: 0 80px;
    white-space: nowrap;
    position: absolute;
    bottom: 30%;
    left: 50%;
    transform: translate(-50%, 50%);
  }
  .topTitleContainer > .topTitleLine {
    width: calc(100% - 40px);
    left: 20px;
    display: block;
    position: absolute;
    background-color: var(--primary);
    height: 2px;
    bottom: 30%;
    z-index: 1;
  }
}
.topContainer > div > .searchContainer {
  width: 100%;
  padding: 10px;
  /* background-color: var(--secondary); */
  box-sizing: border-box;
}
.topContainer > div > .searchContainer > .searchForm {
  display: flex;
  flex-flow: column nowrap;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  gap: 30px;
}
.topContainer > div > .searchContainer > .searchForm > .searchInput {
  height: 42px;
  width: 95%;
  max-width: 380px;
  border: 1px solid var(--tertiary);
  text-align: center;
  font-family: var(--font-family);
  font-size: 20px;
}
.topContainer > div > .searchContainer > .searchForm > #salonSearchInput {
  height: 42px;
  width: 95%;
  max-width: 380px;
}
.topContainer > div > .searchContainer > .searchForm > #nearMeButton {
  background-color: var(--secondary);
  border: 1px solid var(--secondary);
  color: var(--neutral);
  cursor: pointer;
  max-width: 220px;
  transition: all 0.3s ease;
  display: flex;
  flex-flow: row nowrap;
  justify-content: space-evenly;
  align-items: center;
}
#nearMeButton > .material-symbols-outlined {
  font-size: 30px;
}

.topContainer > div > .searchContainer > .searchForm > #nearMeButton:hover {
  background-color: var(--neutral);
  color: var(--secondary);
}
@media screen and (min-width: 800px) {
  .topContainer > div h2 {
    font-size: 64px;
  }
}
#mainContainer {
  width: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  flex-flow: column nowrap;
  justify-content: flex-start;
  align-items: center;
  gap: 0;
}
.subTitleOuterContainer {
  padding: 30px 20px;
}
h3 {
  font-family: var(--font-family);
}
.titleLine {
  background-color: var(--primary);
}
#mapContainer {
  display: block;
  position: relative;
  width: 100%;
  height: 500px;
  margin: 0 0 30px 0;
  padding: 0;
  background-color: var(--primary);
}
#map {
  height: 500px;
  width: 100%;
}
#salonsContainer {
  width: 100%;
  max-width: 635px;
  height: 240px;
  margin: 0;
  padding: 0;
  border: none;
  overflow-x: scroll;
  overflow-y: hidden;
}
#listContainer {
  width: fit-content;
  height: 100%;
  display: flex;
  flex-flow: row nowrap;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 20px;
  margin: 0;
  padding: 0 20px;
  position: relative;
  scrollbar-color: var(--neutral) var(--tertiary);
}
@media screen and (min-width: 800px) {
  #mainContainer {
    flex-flow: row nowrap;
    padding: 0 40px;
    gap: 20px;
    margin-bottom: 30px;
  }
  .subTitleOuterContainer {
    padding: 50px 40px 30px 40px;
  }
  #salonsContainer {
    height: 1000px;
    overflow-x: hidden;
    overflow-y: scroll;
  }
  #listContainer {
    height: fit-content;
    width: 100%;
    flex-flow: column nowrap;
    gap: 20px;
    padding: 0;
  }
  #mapContainer {
    height: 1000px;
    margin: 0;
  }
  #map {
    height: 1000px;
  }
}
.salonListItem {
  position: relative;
  width: 300px;
  height: 220px;
  border: 1px solid var(--primary);
  padding: 10px;
  font-size: 14px;
  color: var(--tertiary);
  font-family: var(--font-family);
  display: flex;
  flex-flow: row nowrap;
  justify-content: space-between;
  align-items: flex-start;
}
#listContainer > .salonListItem:nth-child(2n) {
  animation-name: moveTopToBottom;
  animation-duration: 0.5s;
  animation-fill-mode: both;
  animation-delay: 1s;
  animation-iteration-count: 1;
  animation-timing-function: ease;
}
#listContainer > .salonListItem:nth-child(2n + 1) {
  animation-name: moveBottomToTop;
  animation-duration: 0.5s;
  animation-fill-mode: both;
  animation-delay: 1s;
  animation-iteration-count: 1;
  animation-timing-function: ease;
}
.salonName {
  margin: 0;
  font-size: 14px;
  line-height: 1.2em;
  margin-top: 5px;
  margin-bottom: 8px;
  font-weight: bold;
  color: var(--primary);
}
.salonListItem > .salonTextContainer > p,
.salonListItem > .salonTextContainer > .salonPhone {
  display: flex;
  flex-flow: row nowrap;
  justify-content: flex-start;
  align-items: center;
  gap: 5px;
  margin: 0 0 5px 0;
}
.salonListItem > .salonTextContainer > .salonPhone {
  text-decoration: none;
  color: var(--tertiary);
  font-size: 13px;
  font-family: var(--font-family);
}
.salonListItem .material-symbols-outlined {
  font-size: 13px;
}
.salonListItem > .salonTextContainer > button,
.salonListItem > .salonTextContainer > a {
  font-size: 11px;
  font-weight: 400;
}
.salonListItem > .salonTextContainer > .salonDirect {
  margin: 0;
  position: absolute;
  right: 20px;
  bottom: 20px;
  background-color: var(--primary);
  border: 1px solid var(--primary);
  width: 150px;
  font-size: 14px;
}
.salonListItem > .salonTextContainer > .salonDirect:hover,
.salonListItem > .salonTextContainer > .salonDirect:focus {
  background-color: var(--neutral);
  color: var(--primary);
}

#listContainer > .salonListItem.currentSalon {
  background-color: var(--primary);
  color: var(--neutral);
}
#listContainer
  > .salonListItem.currentSalon
  > .salonTextContainer
  > .salonPhone {
  color: var(--neutral);
}
#salonSearchContainer {
  width: 100%;
  margin: 0;
  padding: 10px;
  background-color: transparent;
  box-sizing: border-box;
}
@keyframes moveTopToBottom {
  from {
    top: -100%;
  }
  to {
    top: 0%;
  }
}
@keyframes moveBottomToTop {
  from {
    bottom: -100%;
  }
  to {
    bottom: 0%;
  }
}
@media screen and (min-width: 800px) {
  .salonListItem {
    width: 100%;
    max-width: 610px;
    height: 300px;
    font-size: 20px;
  }
  .salonListItem > .salonTextContainer {
    display: flex;
    flex-flow: column nowrap;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 10px;
  }
  .salonListItem > .salonTextContainer > .salonDirect {
    font-size: 20px;
    width: 240px;
    background-color: var(--secondary);
    border-color: var(--secondary);
  }
  .salonListItem > .salonTextContainer > .salonDirect:hover,
  .salonListItem > .salonTextContainer > .salonDirect:focus {
    background-color: var(--neutral);
    color: var(--secondary);
  }
  .salonName {
    font-size: 25px;
  }
  .salonListItem,
  .salonListItem > .salonTextContainer > .salonPhone {
    font-size: 18px;
  }
}
@media screen and (min-width: 1200px) {
}
