/**
 * Variables
 */
:root {
  --input-box-shadow: 1px 1px 20px rgba(0,0,0,0.2);
}

/**
 * Core
 */

html, body {
  padding: 0;
  margin: 0;
  background: linear-gradient(to bottom right, rgb(255,0,255), rgb(112,0,112));
  min-height: 100vh;
  font-family: sans-serif;
  user-select:none;
}

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

h1 {
  margin-top: 0;
}

a {
  color: rgb(200,0,200);
}

* > *:first-child {
  margin-top: 0;
}



/**
 * Header
 */

header {
  background-color: rgba(0,0,0,0.5);
  width: 100%;
}

menu.main {
  display: flex;
  flex-direction: row;
  list-style-type: none;
  padding: 0;
  box-shadow: 0px 0px 50px rgba(0,0,0,0.25);
  margin: 0;
}

menu.main li {
  display: flex;
}

menu.main li.ws-menu-item {
  display: none;
}

menu.main li.mobile-menu-toggle {
  display: flex;
  padding: 1.25rem 1rem 0.75rem;
  text-decoration: none;
  transition: all 333ms;
  font-size: 1.5rem;
  line-height: 1rem;
  color: #fff;
  background: no-repeat center url(/img/menu-button.png);
  background-size: 50%;
  width: 54px;
  box-sizing: border-box;
}

menu.main li:first-of-type,
menu.main li:last-of-type {
  border-right: none;
}

menu.main li a {
  padding: 1rem;
  display: flex;
  text-decoration: none;
  transition: all 333ms;
}

menu.main li a:hover {
  background-color: rgba(0,0,0,0.2);
  color: rgba(255,255,255,1);
}

menu.main li a[href=\/post-ad] {
  background: linear-gradient(to bottom, rgba(200, 0, 200, 0.8), rgba(200, 0, 200, 0.5));
  border-radius: 0.25rem;
  padding: 0.5rem 0.75rem;
  color: #fff;
  text-decoration: none;
  box-shadow: 1px 1px 10px rgba(0, 0, 0, 0.2);
  margin: 0.5rem 0.5rem 0.5rem 1rem;
  align-items: center;
  justify-content: center;
}

#MobileMenu {
  display: none;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  transition: all 333ms;
  background: rgba(0,0,0,0.75);
  z-index: 1;
}

#MobileMenu.visible {
  display: flex;
}

#MobileMenu menu.mobile-menu {
  width: calc(100% - 54px);
  display: flex;
  flex-direction: column;
  list-style-type: none;
  flex: 1;
  background: linear-gradient(to bottom right, rgb(255, 0, 255), rgb(112, 0, 112));
  padding: 0;
  margin: 0;
}

#MobileMenuBackdrop {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 54px;
}

#MobileMenu menu.mobile-menu li {
  display: flex;
  background-color: rgba(255,255,255,0.9);
  border-bottom: 1px solid;
}

#MobileMenu menu.mobile-menu li a {
  line-height: 1rem;
  padding: 1rem;
  display: flex;
  flex: 1;
}

#MobileMenu menu.mobile-menu li.spacer {
  height: 0.25rem;
  background: radial-gradient(black, transparent);
}

#MobileMenu menu.mobile-menu li:first-of-type {
  height: 20vh;
  background: linear-gradient(
    to bottom right, 
    rgb(123, 0, 123), 
    rgb(58, 0, 58)
  );
}

@media screen and (min-width: 760px) {
  menu.main li {
    border-right: 1px solid rgba(0, 0, 0, 0.25);
  }
  menu.main li.ws-menu-item {
    display: flex;
  }
  menu.main li.mobile-menu-toggle {
    display: none;
  }

  menu.main li a[href=\/post-ad] {
    margin-right: 1.5rem;
  }
}

menu.main li.logo a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-weight: 900;
  text-shadow: 1px 1px 10px rgba(0, 0, 0, 0.2);
  margin-left: 0.75rem;
  transition: all 333ms;
}

menu.main li.logo a:hover {
  color: rgba(255,255,255,1);
}

menu.main li.logo a span {
  color: rgb(200,0,200);
  font-size: 1.2rem;
  vertical-align: text-top;
}

main {
  display: flex;
  flex-direction: column;
  padding: 0;
  background-color: #fff;
  margin: 0;
  box-shadow: 0px 0px 50px rgba(0,0,0,0.25);
  border-radius: 0;
  width: 100%;
}

main > *:first-child {
  margin-top: 0;
}

main a.direct-message-btn {
  box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.15);
  border-radius: 0.5rem;
  padding: 1rem;
  border: none;
  background: linear-gradient(to bottom, rgb(176 0 176), rgb(134 0 134));
  text-decoration: none;
  color: #fff;
  line-height: 2rem;
}

@media screen and (min-width: 760px) {
  main {
    margin: 2rem;
    width: 1400px;
    max-width: calc(100vw - 4rem);
    border-radius: 0.25rem;
  }
}

/**
 * Footer
 */

footer {
  padding: 2rem;
  display: flex;
  flex-direction: row;
  color: #fff;
  font-size: 0.8rem;
  width: 100%;
  box-sizing: border-box;
}

footer a {
  color: #fff;
}

/**
 * Ads
 */

ol.ads {
  list-style-type: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}

ol.ads > li.ad {
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: 0.5rem 0.5rem 0 0;
  border-bottom: 2px solid rgba(200, 0, 200, 0.5);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  border-left: 1px solid rgba(0, 0, 0, 0.1);
  border-right: 1px solid rgba(0, 0, 0, 0.1);
  font-size: 1.2rem;
  background-color: #fff;
  color: rgba(0, 0, 0, 1);
}

/**
 * Profiles
 */

#ProfileHeader {
  background: linear-gradient(to bottom, rgb(112,0,112), rgb(82,0,82));
  height: 320px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  color: #fff;
}

#ProfileHeader h1 {
  margin: 0 2rem 2rem;
}

#ProfilePage {
  display: flex;
  flex-direction: column-reverse;
  align-items: stretch;
}

#ProfilePage div.main-content,
#ProfilePage menu.sidebar {
  display: flex;
  flex-direction: column;
  padding: 2rem;
}

#ProfilePage div.main-content {
  flex: 1;
}

#ProfilePage menu.sidebar {
  list-style-type: none;
  margin: 0;
}

#ProfilePage menu.sidebar li {
  margin-bottom: 3rem;
}

#ProfilePage menu.sidebar li > *:first-child {
  margin-top: 0;
}

#ProfilePage menu.sidebar li p.block-title {
  margin-bottom: 1rem;
  font-weight: 900;
}

#ProfilePage menu.sidebar a.btn {
  display: flex;
  align-items: center;
  justify-content: center;
}

@media screen and (min-width: 760px) {
  #ProfilePage {
    flex-direction: row;
  }

  #ProfilePage menu.sidebar {
    width: 20vw;
  }
}

/**
 * Locations
 */

ol.location-grid {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  list-style-type: none;
  padding: 0;
  margin: 0;
}

ol.location-grid li.location-grid-item {
  display: flex;
  flex: 4 1 40%;
  flex-direction: column;
  margin: 1rem;
  min-width: 40%;
  max-width: 40%;
}

@media screen and (min-width: 760px) {
  ol.location-grid li.location-grid-item {
    flex: 4 1 20%;
    min-width: 20%;
    max-width: 20%;
  }
}

@media screen and (min-width: 1200px) {
  ol.location-grid li.location-grid-item {
    flex: 4 1 10%;
    min-width: 10%;
    max-width: 10%;
  }
}

ol.location-grid li.location-grid-item ol.location-list {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

ol.location-grid li.location-grid-item ol.location-list li.location-list-item {
  display: flex;
  flex-direction: row;
  align-items: center;
}

ol.location-grid li.location-grid-item ol.location-list li.location-list-item a {
  line-height: 1.5rem;
  display: flex;
  transition: all 333ms;
}

ol.location-grid li.location-grid-item ol.location-list li.location-list-item a:hover {
  color: #000;
}

ol.location-grid li.location-grid-item ol.location-list li.location-list-item span {
  margin-left: 0.25rem;
  font-size: 0.9rem;
  background-color: rgb(200, 0, 200);
  color: #fff;
  padding: 0 0.15rem;
  border-radius: 0.15rem;
  transition: all 333ms;
}

ol.location-grid li.location-grid-item ol.location-list li.location-list-item:hover span {
  background-color: #000;
}

/**
 * Profile Grid
 */

ol.profile-grid {
  list-style-type: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  grid-column-gap: 1rem;
  margin: 1rem;
}

ol.profile-grid li {
  display: flex;
  flex: 2 8 10%;
  aspect-ratio: 1/1;
  background-color: rgba(255,0,255,0.1);
  border-radius: 0.5rem;
  align-items: stretch;
  justify-content: stretch;
}

ol.profile-grid li:hover {
  background-color: rgba(255,0,255,0.2);
}

ol.profile-grid li a {
  display: flex;
  flex: 1;
}

@media screen and (min-width: 760px) {
  ol.profile-grid li {
    max-width: 20%;
  }
}

@media screen and (min-width: 1200px) {
  ol.profile-grid li {
    max-width: 10%;
  }
}

/**
 * Action Page
 */

section#ActionPage {
  padding: 5rem 1rem;
  background: linear-gradient(to bottom right, rgb(100,0,100), rgb(50,0,50));
  color: #fff;
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

section#ActionPage {
}

section#ActionPage.rhs-form {
  flex-direction: column;
  align-items: stretch;
  justify-content: stretch;
  padding: 0;
}

section#ActionPage.rhs-form > div {
  padding: 5rem 2rem;
}

section#ActionPage.rhs-form > div:nth-of-type(1) {
  flex: 1;
  background-color: rgba(0,0,0,0.25);
}

section#ActionPage h1 {
  margin-bottom: 3rem;
}

@media screen and (min-width: 760px) {
  section#ActionPage.rhs-form {
    flex-direction: row;
  }
}

/**
 * Small Form
 */

.small-form {
  display: flex;
  flex-direction: column;
}

@media screen and (min-width: 760px) {
  .small-form {
    width: 360px;
  }
}

.small-form div.form-input-wrapper {
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
}

.small-form div.form-agreement-wrapper {
  display: flex;
  flex-direction: column;
  margin: 2rem 0;
}

.small-form .form-actions-wrapper {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  margin: 2rem 0;
}

.small-form .form-actions-wrapper button {
  font-size: 1rem;
  border-radius: 0.5rem;
  padding: 1rem 2rem;
  border: none;
  background: linear-gradient(to bottom, rgba(200,0,200,0.8), rgba(200,0,200,0.5));
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  border-bottom: 2px solid rgba(255,255,255,0.15);
  flex: 1;
  box-shadow: 1px 1px 10px rgba(0,0,0,1);
}

.small-form div.form-input-wrapper label {
  margin-bottom: 0.5rem;
}

.small-form div.form-input-wrapper input {
  font-size: 1.2rem;
  padding: 0 1rem;
  border-radius: 0.5rem;
  background-color: #fff;
  height: 3rem;
  box-shadow: 1px 1px 10px rgba(0,0,0,1);
  border: none;
}

.small-form .form-help-wrapper {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  margin-top: 1rem;
}

.small-form .form-help-wrapper .separator {
  margin: 0 1rem;
}

.small-form .error-message {
  border-radius: 0.25rem;
  margin-bottom: 2rem;
}

.small-form .error-message p {
  margin: 0;
  font-weight: 600;
}

#LoginForm.small-form {
  width: 360px;
}

/**
 * Landing Page
 */

section#LandingHero {
  padding: 1rem;
  background: linear-gradient(to bottom right, rgb(100,0,100), rgb(50,0,50));
  color: #fff;
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

section#LandingHero h1 {
  font-size: 4rem;
  text-align: center;
}

/* section#LandingHero > * {
  width: 80%;
} */

section#LandingHero div.above-search {
  display: flex;
  flex-direction: column;
  text-align: center;
}

section#LandingHero div.above-search h1 {
  text-align: center;
}

section#LandingPage {
  padding: 1rem;
}

section#LandingPage > h2 {
  margin: 1rem;
}

section#LandingPage > h3 {
  margin: 1rem;
}

@media screen and (min-width: 760px) {
  section#LandingHero > * {
    width: 80%;
  }

  section#LandingHero div.above-search {
    text-align: left;
  }

  section#LandingHero div.above-search h1 {
    text-align: left;
  }
}

@media screen and (min-width: 1200px) {
  section#LandingHero > * {
    width: 60%;
  }
}

/**
 * Search Bar
 */

div#SearchBar {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: start;
  background-color: #fff;
  border-radius: 1rem;
  position: relative;
  box-shadow: 1px 1px 20px rgba(0,0,0,1);
  width: auto;
  max-width: 80vw;
}

/* div#SearchBar */ div#SearchInputWrapper {
  display: flex;
  flex-direction: row;
  width: auto;
  height: 80px;
  max-width: 100%;
  box-sizing: border-box;
}

/* div#SearchBar */ div#SearchInputWrapper div.input-wrapper {
  display: flex;
  flex-direction: row;
  /* align-items: stretch; */
  /* justify-content: stretch; */
  flex: 1;
  max-width: 100%;
  box-sizing: border-box;
  padding-right: 72px;
  position: relative;
}

/* div#SearchBar div#SearchInputWrapper div.input-wrapper */ input#SearchInput {
  display: flex;
  flex-direction: row;
  flex: 1;
  font-size: 1.5rem;
  border-radius: 1rem;
  padding: 0 1rem;
  border: none;
  min-width: 0;
  box-sizing: border-box;
}

/* div#SearchBar div#SearchInputWrapper div.input-wrapper */ button#Search {
  display: flex;
  flex: 1;
  width: 4rem;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  margin: 0.25rem;
  border-radius: 1rem;
  background: linear-gradient(to bottom, rgba(225, 225, 225, 0.75), rgba(130, 130, 130, 0.5));
  border-width: 0 1px 1px 0;
  font-size: 2.5rem;
  cursor: pointer;
  border-color: rgba(255, 255, 255, 0.5) rgba(0, 0, 0, 0.25) rgba(0, 0, 0, 0.5) rgba(255, 255, 255, 0.5);
  position: absolute;
  right: 0.25rem;
  top: 0.25rem;
}

div#SearchPredictions,
div.search-prediction-menu {
  position: absolute;
  top: 6rem;
  left: 0;
  right: 0;
  background: #fff;
  color: #000;
  max-height: 50vh;
  overflow-y: scroll;
  scrollbar-width: none;
  border-radius: 1rem;
  box-shadow: 1px 1px 20px rgba(0,0,0,1);
}

div.search-prediction-menu {
  margin: 0.3rem 1rem 1rem;
  border-radius: 0.5rem;
  box-shadow: 1px 1px 20px rgba(0, 0, 0, 0.25);
  z-index: 2;
}

div.search-prediction-menu {
  max-height: 12rem;
}

div.search-prediction-menu li span {
  display: none;
}

div#SearchPredictions menu,
div.search-prediction-menu menu {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

div#SearchPredictions menu li,
div.search-prediction-menu menu li {
  height: 4rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
  box-sizing: border-box;
  display: flex;
}

div#SearchPredictions menu li:last-of-type,
div.search-prediction-menu menu li:last-of-type {
  border-bottom: none;
}

div#SearchPredictions menu li:hover,
div.search-prediction-menu menu li:hover {
  background-color: #eee;
  cursor: pointer;
}

div#SearchPredictions menu li a,
div.search-prediction-menu menu li a {
  position: relative;
  flex: 1;
  padding: 1.5rem;
}

div#SearchPredictions menu li a::after,
div.search-prediction-menu menu li a::after {
  content: '';
  position: absolute;
  right: 1rem;

}

@media screen and (min-width: 760px) {
  div#SearchBar {
    width: 80%;
    max-width: none;
  }

  div#SearchInputWrapper {
    width: 100%;
  }

  /* div#SearchBar div#SearchInputWrapper div.input-wrapper */ input#SearchInput {
    font-size: 2rem;
  }
}

@media screen and (min-width: 1200px) {
  div#SearchBar {
    width: 60%;
  }
}

/**
 * Search Results
 */

section#SearchResultsHeader {
  padding: 2rem;
  border-bottom: 1px solid rgba(200,0,200,0.2);
  background-color: rgba(200,0,200,0.1);
}

section#SearchResultsHeader h1 {
  margin-bottom: 0;
}

section#SearchResultsBody {
  padding: 2rem;
}

section#SearchResultsBody ol.ads li.ad:last-of-type {
  margin-bottom: 0;
}

/**
 * Post an Ad
 */

section#ActionPage.create-ad  {
  padding: 0;
  justify-content: stretch;
}

section#ActionPage.create-ad form {
  width: 100%;
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: stretch;
  justify-content: stretch;
}

section#ActionPage.create-ad div.create-ad-toolbar {
  display: flex;
  flex-direction: row;
  align-items: center;
  width: 100%;
  padding: 1rem;
  box-sizing: border-box;
}

section#ActionPage.create-ad div.create-ad-toolbar h1 {
  margin-bottom: 0;
  display: flex;
  flex: 1;
}

section#ActionPage.create-ad div.create-ad-toolbar button.post-ad,
section#ActionPage.create-ad .submit-wrapper button[type=submit] {
  background: linear-gradient(to bottom, rgba(200, 0, 200, 0.8), rgba(200, 0, 200, 0.5));
  border-radius: 0.25rem;
  padding: 0.75rem 1.25rem;
  color: #fff;
  box-shadow: 1px 1px 10px rgba(0, 0, 0, 0.2);
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: bold;
  font-family: sans-serif;
  border: none;
  cursor: pointer;
}

section#ActionPage.create-ad div.create-ad-toolbar button.attachments {
  border: none;
  cursor: pointer;
  border-radius: 0.25rem;
  padding: 0.75rem 12px 1.25rem;
  background: transparent;
  /* box-shadow: 1px 1px 10px rgba(0, 0, 0, 0.2); */
  align-items: center;
  justify-content: center;
  display: flex;
  margin-right: 0.5rem;
  line-height: 1.1rem;
  font-size: 1.5rem;
}

section#ActionPage.create-ad div.input-wrapper,
section#ActionPage.create-ad div.textarea-wrapper {
  width: 100%;
  display: flex;
  background-color: rgb(249 229 249);
  flex-direction: column;
  box-sizing: border-box;
  color: rgba(0,0,0,1);
  position: relative;
}

section#ActionPage.create-ad div.textarea-wrapper label,
section#ActionPage.create-ad div.input-wrapper label,
section#ActionPage.create-ad div.input-wrapper input,
section#ActionPage.create-ad div.input-wrapper select {
  padding: 1rem;
}

section#ActionPage.create-ad > div:nth-of-type(2) label {
  padding-top: 2rem;
}

section#ActionPage.create-ad div.textarea-wrapper label,
section#ActionPage.create-ad div.input-wrapper label {
  font-size: 0.9rem;
}

section#ActionPage.create-ad div.input-wrapper input,
section#ActionPage.create-ad div.input-wrapper select {
  font-size: 1rem;
  margin: 0 1rem 1rem;
  border-radius: 0.5rem;
  border-style: none;
  box-shadow: var(--input-box-shadow);
  background-color: #fff;
}

section#ActionPage.create-ad div.textarea-wrapper {
  width: 100%;
  display: flex;
  height: 100%;
  flex: 1;
}

section#ActionPage.create-ad textarea#PostContent {
  display: flex;
  flex: 1;
  font-size: 1.2rem;
  padding: 1rem;
  font-family: sans-serif;
}

section#ActionPage.create-ad .submit-wrapper,
section#ActionPage.create-ad .preview-wrapper  {
  padding: 2rem 1rem;
  background-color: rgb(249 229 249);
}

section#ActionPage.create-ad .submit-wrapper {
  display: flex;
}

section#ActionPage.create-ad .submit-wrapper button[type=submit]  {
  flex: 1;
}

section#ActionPage.create-ad .preview-wrapper {
  color: rgba(0, 0, 0, 1);
  flex: 1;
}

section#ActionPage.create-ad .preview-wrapper h2 {
  font-size: 1rem;
  color: rgba(0, 0, 0, 0.5);
}

section#ActionPage.create-ad #TagList,
section#ActionPage.create-ad #LocationList {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  padding: 0;
  margin: 0 1rem 1rem;
  grid-gap: 0.5rem;
}

section#ActionPage.create-ad #TagList li,
section#ActionPage.create-ad #LocationList li {
  display: flex;
  background: rgba(255, 255, 255, 0.75);
  padding: 0.25rem;
  border-radius: 0.5rem;
  font-size: 0.9rem;
  cursor: pointer;
}

section#ActionPage.create-ad #TagList li span,
section#ActionPage.create-ad #LocationList li span {
  color: rgba(0, 0, 0, 0.25);
  margin-left: 0.25rem;
  padding-right: 0.25rem;
}

section#ActionPage.create-ad #TagList li:hover span,
section#ActionPage.create-ad #LocationList li:hover span {
  color: rgba(0, 0, 0, 0.75);
}

section#ActionPage.create-ad div.preview-wrapper ol.ads li.ad {
  margin-bottom: 0;
  user-select: text;
}
