:root {
  --color-primary-background : #141414;
  --color-secondary-background : #202020;

  --color-font: #e7e7e7;
  --color-primary: #f2c83b;
  --color-secondary: #1a9df1;
  --color-error: #eb4d4b;
  --color-success: #6ab04c;
  --color-warning: #f0932b;
  --color-disabled: #95a5a6;
  --color-placeholder : #a9a9a9;
  --color-hidden : #4c5656;
}

::placeholder {
  color: var(--color-placeholder);
}

::-webkit-calendar-picker-indicator {
  filter: invert(1);
}


* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'quicksandbook', sans-serif;
  color: var(--color-font);
  font-size: 18px;
}


.align-right { text-align: right; }
.align-center { text-align: center; }

div.flex { display: flex; }
div.flex-between { justify-content: space-between; }
div.flex-right { justify-content: flex-end; }
div.flex-align-center { align-items: center; }

.padding-tiny { padding: 8px 12px; }

.primary { color: var(--color-primary); }
.secondary { color: var(--color-secondary); }
.error { color: var(--color-error); }
.success { color: var(--color-success); }
.warning { color: var(--color-warning); }
.disabled {color: var(--color-disabled); }

i { color: inherit; }

/* Hide scrollbar for Chrome, Safari and Opera */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
/* Hide scrollbar for IE, Edge and Firefox */
.no-scrollbar {
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}

.pointer { cursor: pointer; }
.rounded { border-radius: 15px; }
.rounded-30px { border-radius: 30px; }
a {text-decoration: none;}


.w-100 { width: 100%; }

[data-enabled="false"] { display: none !important; }

.hide-content {
  content: "";
  color: var(--color-primary) !important;
  background-color: var(--color-primary) !important;
  border-radius: 50px;
}


body {
  background-color: var(--color-primary-background);
}

main#main {
  padding-top: 50px;
}

button.btn,
a.btn {
  display: inline-block;
  padding: 6px 12px;
  background-color: var(--color-secondary-background);
  border: 2px solid transparent;
}

button.btn.border,
a.btn.border {
  border-radius: 1px;
  /* border-color: var(--color-disabled) */
}

button.btn.rounded,
a.btn.rounded {
  border-radius: 5px;
}

button.btn.fully-rounded,
a.btn.fully-rounded {
  border-radius: 50px;
}

button.btn.primary-btn,
a.btn.primary-btn {
  font-weight: bold;
  color: var(--color-primary-background);
  background-color: var(--color-primary);
}

button.btn.secodnary-btn,
a.btn.secondary-btn {
  font-weight: bold;
  color: var(--color-primary-background);
  background-color: var(--color-secondary);
}

button.btn.error-btn,
a.btn.error-btn {
  font-weight: bold;
  color: var(--color-primary-background);
  background-color: var(--color-error);
}

button.btn.success-btn,
a.btn.success-btn {
  font-weight: bold;
  color: var(--color-primary-background);
  background-color: var(--color-success);
}

button.btn.primary-btn.hollow,
a.btn.primary-btn.hollow {
  font-weight: bold;
  color: var(--color-primary);
  border-color: var(--color-primary);
  background-color: var(--color-primary-background);
}

button.btn.secondary-btn.hollow,
a.btn.secondary-btn.hollow {
  font-weight: bold;
  color: var(--color-secondary);
  border-color: var(--color-secondary);
  background-color: var(--color-primary-background);
}

button.btn.error-btn.hollow,
a.btn.error-btn.hollow {
  font-weight: bold;
  color: var(--color-error);
  border-color: var(--color-error);
  background-color: var(--color-primary-background);
}

button.btn.success-btn.hollow,
a.btn.success-btn.hollow {
  font-weight: bold;
  color: var(--color-success);
  border-color: var(--color-success);
  background-color: var(--color-primary-background);
}

article { padding: 8px 12px; }
article.center-screen {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
}

section.page-container {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 120px);
  overflow-y: scroll;
  padding: 6px 12px;
}

section.page-container.center-page {
  justify-content: center;
}

/*
  Chips
  -- Used as small components that displays
  a simple word : might be info or status for exemple.
*/
div.chip-container {
  padding: 6px 8px;
  overflow-x: auto;
}

.chip {
  border: 0;
  outline: 0;
  padding: 4px 8px;
  background-color: var(--color-secondary-background);
  border-radius: 15px;
  margin-right: 5px;
  margin-bottom: 5px;
}


/*
  Flash Messages
  - Flash Message styling and container
*/
div.flash-message-container {
  position: absolute;
  top: 0;
  left: 0;

  width: 100vw;
  padding-top: 25px;
  z-index: 40;
}

div.alert {
  padding: 6px 10px;
  margin: 4px;
  border-radius: 15px;
}
div.alert.success {
  color: var(--color-font);
  background-color: var(--color-success);
}
div.alert.error {
  color: var(--color-font);
  background-color: var(--color-error);
}
div.alert.warning {
  color: var(--color-font);
  background-color: var(--color-warning);
}

/* 
  Auth Container 
  - Used to create a screen-centered div. 
*/
div.auth-container {
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;  
  padding: 16px 24px;

  max-width: 400px;
  margin: 0 auto;
}

div.auth-container img.logo {
  height: 192px;
  margin: 0 auto 20px auto;
}

form {
  width: 100%;
  display: flex;
  flex-direction: column;
}

div.auth-container form {
  padding: 24px 0 24px 0;
}

div.auth-container div.form-submit {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

form div.form-group {
  display: flex;
  flex-direction: column;
}

form div.form-group div.invalid-feedback {
  color: var(--color-error);
}

form div.form-group label {
  margin-top: 10px;
}

form input,
button,
form select,
form textarea,
form div.searchBox {
  outline: 0;
  padding: 6px 12px;
  margin: 5px 0 5px 0;
  font-size: 18px;
  background-color: var(--color-primary-background);
  border: 1px solid var(--color-secondary-background);
}

form textarea {
  resize: none;
  min-height: 128px;
}

form button {
  border-radius: 15px;
}

form div.form-group div.radio-field {
  margin: 5px 0 5px 0;
  font-size: 18px;
  background-color: var(--color-primary-background);
  border: 1px solid var(--color-secondary-background);
}

form div.form-group div.radio-field input[type="radio"] {
  display: none;
}

form div.form-group div.radio-field input[type="radio"] + label {
  display: block;
  padding: 6px 8px;
  margin: 0;
  color: var(--color-placeholder);
}

form div.form-group div.radio-field input[type="radio"]:checked + label {
  background-color: var(--color-secondary-background);
}

form .imageInput {
  width: 100%;
  aspect-ratio: 1/1;
  max-width: 400px;

  background-color: var(--color-secondary-background);
}

form .imageInput div.pic {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  width: 100%;
  height: 100%;

  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

form .imageInput p {
  margin-top: 25px;
}

form .imageInput#banner,
form .imageInput#icon,
form .imageInput#picture { 
  aspect-ratio: auto;
  padding: 6px 12px;
  margin: 15px 0;
}
form .imageInput#banner div.pic,
form .imageInput#icon div.pic,
form .imageInput#picture div.pic {
  height: auto;
  flex-direction: row;
  align-items: center;
}
form .imageInput#banner div.pic i,
form .imageInput#icon div.pic i,
form .imageInput#picture div.pic i {
  font-size: 2em;
  margin-right: 15px;
}

form .imageInput#banner div.pic p,
form .imageInput#icon div.pic p,
form .imageInput#picture div.pic p
{margin-top: 0;}


div.icon-title {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
}

div.icon-title button {
  width: 35px;
  height: 35px;
  background-color: transparent;
  border: 0;
}

div.icon-title img {
  height: 2em;
}

/*
  Search Bar Design
  -- With an icon in it
*/
form div.searchBox {
  display: flex;
  margin: 4px 6px;
  padding: 0;
}

form div.searchBox i {
  padding: 6px 12px;
  background-color: var(--color-secondary-background);
}
form div.searchBox button {
  margin: 0;
  border: 0;
  padding: 0; 
}
form div.searchBox input {
  margin: 0;
  padding: 4px 6px;
  border: 0;
  flex-grow: 1;
}


/*
  Navigation Bar
  - Multiple sorts of navigation bars
*/

nav { background-color: var(--color-primary-background); }

nav#topNavbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  display: flex;
  padding: 6px 12px; 
  justify-content: space-between;
  align-items: center;

  background-color: var(--color-primary-background);
  z-index: 10;
  box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 6px -1px, rgba(0, 0, 0, 0.06) 0px 2px 4px -1px;
}

nav#sidenav {
  position: absolute;
  top: 54px;
  left: 0;
  width: 100vw;
  height: calc(100vh - 120px);
  padding: 16px 24px;
  background-color: var(--color-primary-background);
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
}

nav#sidenav a {
  font-size: 1.2em; 
  margin-bottom: 20px;
}
nav#sidenav a i {
  width: 35px;
  margin-right: 15px;
  font-size: 1.1em;
}

/*
  Bottom Options
  - When triggered show a list of links
*/

div.bottomOptions {
  position: absolute;
  bottom: 0;
  left: 0;

  width: 100vw;
  z-index: 20;

  background-color: var(--color-secondary-background);
}

div.bottomOptions div.titling {
  width: 100%;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
}

div.bottomOptions div.titling h3 {
  font-size: 24px;
  text-align: center;
}
div.bottomOptions div.titling i {
  font-size: 24px;
}
div.bott

div.bottomOptions div.options {
  max-height: 35vh;
  overflow-y: scroll;
  padding: 16px 24px;
}

div.bottomOptions a.option {
  padding: 6px 12px;
  margin-bottom: 5px;
  font-size: 20px;
  text-align: left;

  display: flex;
  justify-content: space-between;
  align-items: center;
}

article.cta {
  margin-top: 40px;
  border: 2px solid var(--color-secondary-background);
}
article.cta h3 {
  color: var(--color-primary);
}

/** TOPICS **/
.topic-card {
  padding: 6px 12px;
  margin: 4px 6px;
  display: flex;
  flex-direction: row;
  align-items: center;
  border: 2px solid var(--color-secondary-background);
  border-radius: 5px;
}
.topic-card img { 
  width: 54px; 
  margin-right: 15px;
}

article.topic-header {
  padding: 0;
}

article.topic-header img.banner {
  width: 100%;
  height: auto;
}

article.topic-header div.topic-infos {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
}

article.topic-header div.topic-infos {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  padding: 12px;
  margin-bottom: 8px;
}
article.topic-header div.topic-infos img.picture {
  width: 86px;
  margin-right: 15px;
  border-radius: 50%;
}
article.topic-header div.topic-infos h4 {
  color: var(--color-primary);
}
form.topicchat {
  position: sticky;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 6px 10px;
}

form.topicchat .form-group {
  display: flex;
  flex-grow: 1;
}
form.topicchat button {
  color: var(--color-font);
  background-color: var(--color-secondary);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  margin-left: 15px;
}

article.topic-chat {
  margin-bottom: 15px;
}

article.topic-chat p.message {
  padding: 6px 10px;
  border-radius: 15px;
  background-color: var(--color-secondary-background);
  word-wrap: break-word;
}

article.topic-chat p.infos {
  color: var(--color-disabled);
  text-align: right;
}

/** Miscs Widgets */
/** -- Small Stat */
.widget.small-stat {
  display: block;
  width: auto;
  padding: 6px 12px;
  margin: 4px 6px;
  background-color: var(--color-secondary-background);
  border-radius: 5px;
}

/** USERS **/

/**
  - section.big-user-infos
  Big display that shows every data about a given user.
*/
article#big-user-infos {
  padding: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
article#big-user-infos img.banner {
  aspect-ratio: 16/9;
  width: 100%;
}

article#big-user-infos a.setting-btn {
  align-self: flex-start;
  margin-left: 15px;
}

article#big-user-infos div.user-infos {
  padding: 6px 12px;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}

article#big-user-infos div.user-infos img.picture {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  margin-right: 15px;
}

article#big-user-infos div.user-infos div.text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

article#big-user-infos div.user-infos h2 {
  font-size: 1.2rem;
}

article#big-user-infos div.user-infos div.icons {
  margin-top: 5px;
}
article#big-user-infos div.user-infos div.icons i {
  margin-right: 5px;
}

article#big-user-infos div.action-row button {
  margin-left: 15px;
}

article#big-user-infos button#followButton[data-status='on'] {
  border-color: var(--color-error);
  color: var(--color-error);
}

article#big-user-infos div.action-row p.follow-count {
  margin-top: 5px;
  text-align: center;
}

/** 
  - short-user-infos
  Display of the short format of an user.
*/
div.short-user-infos {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
}

div.short-user-infos h4 a {
  display: flex;
  align-items: center;
}
div.short-user-infos h4 a * {
  margin: 0 5px;
}

div.short-user-infos img {
  margin-right: 5px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
}

div.short-user-infos div.user-contact i {
  font-size: 1.2em; 
  margin-left: 5px;
}

/**
  - nav.short-user-nav
  Small navigation widget that display
  a bell icon and the user picture. Both as links.
*/
nav.short-user-nav {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}

nav.short-user-nav i { color: var(--color-disabled); }
nav.short-user-nav i[data-status="unread"] { color: var(--color-warning); }

nav.short-user-nav img {
  margin-left: 15px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
}

/** USER NOTIFICATIONS **/

article.user-notification {
  margin: 5px 0;
}

/**
  - article.user-notification.user-follow
  Display of the notification that someone followed someone else.
*/
article.user-notification.user-follow,
article.user-notification.feed-like article.content {
  padding: 6px 12px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--color-secondary-background);
}

article.user-notification.user-follow div.notification-infos {
  flex-grow: 1;
  margin-left: 15px;
}

/** FEED CONTENT **/

.usercontent {
  margin-top: 25px;
}

/**
  - feedcontent
  Additional container for user related content.
*/

/**
  - usercontent .img-container
  Allows us to put things on top of an image.
*/
.usercontent .img-container {
  position: relative;
  text-align: center;
  color: var(--color-font);
}

.usercontent .img-container button.likebtn {
  position: absolute;
  bottom: 8px;
  right: 16px;

  padding: 0;
  background-color: transparent;
  border: 0;
}

.usercontent .img-container button.likebtn i {
  font-size: 1.2rem;
}

.usercontent .img-container button.likebtn[data-status='liked'] {
  color: var(--color-error);
  -webkit-text-stroke-width: 1px;
  -webkit-text-stroke-color: var(--color-primary-background);
}
.usercontent .img-container button.likebtn[data-status='liked'] i {
  -webkit-text-stroke-color: var(--color-font);
}



.usercontent .img-container a.editbtn {
  position: absolute;
  top: 8px;
  right: 16px;

  padding: 0;
  background-color: transparent;
  border: 0;
}

.usercontent .img-container a.editbtn i {
  font-size: 1.2rem;
}


/**
  - usercontent img
  Picture posted by an user and displayed in a feed.
*/
.usercontent img {
  width: 100%;
  height: auto;
  border-radius: 5px;
}


/**
  - feedcontent p.content
  This is the message linked to the feedcontent post.
*/

.usercontent.feedcontent p.content {
  margin: 5px 0;
  padding: 6px 12px; 
  border-radius: 5px;
  background-color: var(--color-secondary-background);
}

/** 
  - product title
  This is used to style the radio version of the
  product name
*/
form.product-singlebuy {
  margin: 15px 0;
}

form.product-singlebuy button {
  border-radius: 2px;
}


@media screen and (min-width: 940px) {

  nav#sidenav { 
    display: flex !important; 
    width: 260px;
  }

  button#sidenav-button { display: none; }

  main.pad {
    padding-left: 280px;
  }

  section.page-container {
    width: 460px;
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
  }
  section.page-container.center-page {
    justify-content: flex-start;
  }

  /* Hide scrollbar for Chrome, Safari and Opera */
  section.page-container::-webkit-scrollbar {
  display: none;
  }

}