:root {
  --container-width: min(1200px, 100%);
  --primary-background: #ffffff;
  --mana-orange: #f58025;
  --mana-brown: #61452b;
  --mana-grey: #7d7e80;
  --mana-beige: ##f2f1ec;
  --secondary: #259AF5;
  --standard-shadow: rgba(0, 0, 0, 0.16) 0px 3px 6px, rgba(0, 0, 0, 0.23) 0px 3px 6px;
  --secondary-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), inset 0 -2px 4px rgba(0, 0, 0, 0.2);
  --space-xxs: 0.25rem;
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-xxl: 3rem;
  --gradiant-1: linear-gradient(145deg, #f58025, #ff8c42);
  --gradiant-2: linear-gradient(0deg, #f58025, #ff8c42);
}

/* debug */

/* * {
  border: 1px solid greenyellow;
} */



* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Helvetica, Arial, sans-serif;
}

html {
  background-size: 300% 60vh;
  background-repeat: no-repeat;
  background-image: url("/static/village/assets/wave.377ba1e3fae9.svg");
  background-position: bottom left;
  /* background-attachment: fixed; */
  animation: changeBackground 60s linear infinite alternate;
}

@keyframes changeBackground {
  0% {
    background-position: bottom left;
  }
  100% {
    background-position: bottom right;
  }
}

a:visited {
  color: inherit;
}

h1 {
  padding-bottom: var(--space-lg);
}

h2 {
  padding-bottom: var(--space-md);
}

h3,
h4,
h5,
h6 {
  padding-bottom: var(--space-sm);
}

p {
  padding-bottom: var(--space-xs);
}

.btn-prim,
.allauth-main>form>button {
  text-transform: capitalize;
  text-align: center;
  padding: .75rem 1rem .75rem 1rem;
  /* Test styles here */
  min-width: 100px;
  max-width: 350px;
  background: var(--gradiant-1);
  border: none;
  border-radius: 4px;
  color: #fff;
  padding: .5rem .75rem;
  font-size: 1rem;
  /* box-shadow: var(--secondary-shadow); */
  transition: 30ms all;
  border: 1px solid white;
}

.btn-prim:hover,
.allauth-main>form>button:hover {
  cursor: pointer;
  background: var(--gradiant-2);
}

html,
body {
  width: 100%;
  height: auto;
  min-height: 100vh;
}

body {
  position: relative;
  display: grid;
  grid-template-columns: 100%;
  grid-template-rows: auto 1fr auto;
  justify-items: center;
}

body > * {
  padding-left: 1rem;
  padding-right: 1rem;
}

#primary-header,
#primary-footer {
  z-index: 5;
}

main {
  z-index: 3;
}

#primary-nav {
  z-index: 7;
}

#primary-header,
#primary-footer,
main {
  width: var(--container-width);
}

#primary-header {
  height: min-content;
  margin-bottom: 1rem;
}

.primary-header-row {
  padding-top: .5rem;
  margin-bottom: .5rem;
  height: min-content;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  overflow-x: auto;
  justify-content: space-between;
  align-items: center;
  overflow: hidden;
}

/* If no banners, then we need to remove this space */
.primary-header-row:only-child {
  margin-bottom: 0px;
}

#menu-toggle {
  height: 32px;
  width: 32px;
  font-size: 18px;
  background: var(--gradiant-1);
  color: white;
  font-weight: 500;
  border: none;
  border-radius: 2px;
  /* box-shadow: var(--secondary-shadow); */
}

#menu-toggle:hover {
  background: var(--gradiant-2);
  cursor: pointer;
}

#primary-logo-link {
  display: inline-block;
  line-height: 0;
}

#primary-logo {
  height: 32px;
}

#primary-nav {
  position: absolute;
  width: 300px;
  right: calc(((100vw - var(--container-width)) / 2 + 1.5rem + 32px));
  height: calc(100vh - 4px);
  background-color: white;
  z-index: 9;
  border: 2px solid var(--secondary);
  margin-top: 2px;
  margin-bottom: 2px;
}

#primary-footer {
  bottom: 0;
  color: white;
  text-align: center;
}

#primary-footer > *{
  margin-bottom: 1rem;
  margin-top: 1rem;
}

#primary-footer > *:first-child {
  text-align: left;
}

#primary-footer > *:last-child {
  text-align: right;
}

/* messages */
.messages {
  position: fixed;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  max-width: 100%;
  text-align: center;
  z-index: 9;
}

.messages > .delete-icon {
  width: 100%;
  text-align: right;
}

.messages>li {
  list-style-type: none;
}

.debug {
  background-color: #f9f9f9;
  border-left: 4px solid #bdbdbd;
  color: #555;
  padding: 8px 16px;
  margin-bottom: 10px;
}

.info {
  background-color: #e6f2fa;
  border-left: 4px solid #31708f;
  color: #31708f;
  padding: 8px 16px;
  margin-bottom: 10px;
}

.success {
  background-color: #dff0d8;
  border-left: 4px solid #3c763d;
  color: #3c763d;
  padding: 8px 16px;
  margin-bottom: 10px;
}

.warning {
  background-color: #fcf8e3;
  border-left: 4px solid #8a6d3b;
  color: #8a6d3b;
  padding: 8px 16px;
  margin-bottom: 10px;
}

.error {
  background-color: #f2dede;
  border-left: 4px solid #a94442;
  color: #a94442;
  padding: 8px 16px;
  margin-bottom: 10px;
}

.message {
  border-radius: 3px;
  font-size: 14px;
  line-height: 1.4;
  margin: 0 1rem 0 1rem;
  max-width: var(--container-width);
}

.errorlist > li {
  background-color: #f2dede;
  border-left: 4px solid #a94442;
  color: #a94442;
  padding: 8px 16px;
  margin-bottom: 10px;
}

.errorlist {
    list-style: none;
}

#login-container {
  margin: 0 auto 0 auto;
}

.allauth {
  width: clamp(300px, 400px, calc(100% - 2rem));
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4rem;
}

.allauth>*>p {
  text-align: center;
}

.allauth-menu {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  align-items: center;
}

.allauth-menu-list {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.allauth-menu-list>li {
  list-style-type: none;
}

.allauth-main {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  align-items: center;
}

.allauth-main > form {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: .75rem;
}

.allauth-main>ul>li {
  list-style-type: none;
}

.grid {
  margin-bottom: 1rem;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 1rem;
}

.column {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
}

.row {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 1rem;
}

.card,
.tile {
  padding: .75rem 1rem .75rem 1rem;
  box-shadow: var(--standard-shadow);
  border-radius: 8px;
  background-color: white;
  height: min-content;
}

.icon-large {
  width: 200px;
}

.menu-title {
  font-size: 2rem;
  font-weight: bold;
  text-decoration: 2px solid underline var(--secondary);
}

.menu-list {
  list-style-type: none;
}

.menu-list > li {
  height: 32px;
  padding-left: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.menu-list > li > a {
  cursor: pointer;
}

.icon-dir {
  height: 100%;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

.center {
  margin-left: auto;
  margin-right: auto;
  display: block;
}

@media screen and (max-width: 1200px) {
  /* to keep visual lock in to top left */
  .primary-header-row {
    padding-top: 1rem;
    margin-bottom: 0.5rem;
  }
}

@media only screen and (max-width: 768px) {

  body > * {
    padding-left: .5rem;
    padding-right: .5rem;
  }

  /* to keep visual lock in to top left */
  .primary-header-row {
    padding-top: .5rem;
  }

  #primary-header {
    margin-bottom: .5rem;
  }
  
}

@media only screen and (max-width: 480px) {

  body > * {
    padding-left: .25rem;
    padding-right: .25rem;
  }

  /* to keep visual lock in to top left */
  .primary-header-row {
    padding-top: .25rem;
  }

  #primary-header {
    margin-bottom: .25rem;
  }
  
}

.banner {
  padding: .5rem;
  background-color: #f58025;
  color: white;
  overflow-x: auto;
}

.ui-icon-small {
  height: 32px;
}