/*
Notes:
- Specify max width for img, embed etc etc
- 40/48 pixels between targets
*/

html,
body,
#app {
  margin: 0;
  height: 100%;
  width: 100%;
}

a {
  color: unset;
  text-decoration: unset;
}

/**********************************/
/**********************************/
/* High level homepage structure */
/**********************************/
/**********************************/
#header {
  min-height: 60px;
  flex-grow: 1;
}

/*Used by homepage, profilepage and product page*/
#main {
  display: flex;
  flex-flow: column;
  height: 100%;
}

#homepage-content {
  display: flex;
  flex-flow: column;
  flex-grow: 1;
}

#footer {
  width: 100%;
  text-align: right;
  background-color: #333333;
}

#footer-links {
  padding: 10px 10px;
  display: flex;
  justify-content: space-evenly;
  width: 80%;
  margin: 0 auto;
  max-width: 400px;
}

.footer-text {
  color: white;
  padding-right: 0 10px;
  font-size: 14px;
  display: flex;
  align-items: center;
  cursor: pointer;
  margin: 0;
}

.footer-link {
  display: flex;
  align-items: center;
}

.footer-icon {
  padding: 5px;
}

#homepage-content-second-half {
  background-color: #333333;
  flex-grow: 1;
  display: flex;
  align-items: center;
}

#homepage-content-first-half {
  padding-bottom: 15px;
  flex-grow: 1;
  display: flex;
}

#homepage-carousel-logo-search-container {
  margin: auto auto;
}

#carousel-tagline-container {
  display: flex;
  flex-direction: column;
}

/****************************/
/****************************/
/*Header*/
/****************************/
/****************************/
#signing-in-message {
  /* This width makes the message stay constant and have just the dots move */
  width: 100px;
  margin-right: 15px;
}

#login-register-profile-container {
  display: flex;
  /* justify-content: flex-end; */
  /* margin: 15px 15px 0 0; */
}

#claim-account-button {
  border: 2px solid #b67600;
  padding: 4px;
  font-weight: 500;
  border-radius: 10px;
  color: #b67600;
  background: none;
  cursor: pointer;
}

#claim-account-button p {
  margin: 0;
  font-size: 16px;
  padding: 0 3px;
}

#thank-you-text {
  padding-top: 20px;
  font-size: 12px;
}

#logo-register {
  width: 100%;
  max-width: 500px;
}

#register-button,
#earlyaccess-button {
  background-color: #333333;
  color: white;
}

.header-form-container {
  /*display:flex;
  flex-direction:column;*/
  position: relative;
  /* Vertically center the things in them */
  margin: auto auto;
}

.header-form-box {
  position: absolute;
  margin-top: 1px;
  padding: 10px 10px;
  /* TODO: Is it ok is this is empty? width:; */
  background-color: white;
  z-index: 99;
  border: 1px solid black;
  margin-right: 10px;
  right: 0px;
  width: 245px;
}

#login-box {
  /* This is the exact width iphone 6/7/8 need to display the login box properly 
  without the left border going out of the screen */
  width: 237px;
}

.header-form-label {
  font-size: 16px;
  margin-top: 10px;
  display: block;
  text-align: left;
}

#register-form,
#login-form,
#reset-password-form {
  width: 80%;
  margin: 0 auto;
}

.reset-password-back-button {
  align-items: center;
  text-align: left;
  display: flex;
}

#login-form-forgot-password {
  margin: 10px 0;
  font-size: 12px;
  text-align: right;
}

.forgot-password-back-text {
  margin: 1px 0 0 0;
  font-size: 12px;
  text-align: left;
}

#login-box-button {
  margin-bottom: 0;
}

#reset-password-link-sent {
  margin: 5px 0 0 0;
  font-size: 12px;
  text-align: center;
}

#login-form-error {
  height: 14px;
  margin: 0;
  font-size: 12px;
  color: red;
}

.header-form-input-text {
  margin-bottom: 22px;
  padding: 5px;
  width: 100%;
  display: block;

  /* Because this input has padding and margin, without the following it breaks the 100% width */
  /* Observe effect when you remove these */
  -webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
  -moz-box-sizing: border-box; /* Firefox, other Gecko */
  box-sizing: border-box;
}

.header-box-input-hint-black-bg {
  font-size: 11px;
  display: block;
  padding-bottom: 2px;
  color: #bbb;
  text-align: left;
}

.header-box-input-hint-white-bg {
  font-size: 11px;
  display: block;
  padding-bottom: 2px;
  text-align: left;
}

.header-button {
  list-style-type: none;
  margin: 0 10px;
  font-size: 16px;
  border: 2px solid #333333;
  padding: 5px;
  background: white;
  cursor: pointer;
  outline: none;
}

.header-box-button {
  font-size: 16px;
  border: 2px solid #333333;
  padding: 5px;
  background: white;
  cursor: pointer;
  outline: none;
  display: block;
  margin: 0 auto 1em auto;
  width: 100%;
}

.or-text {
  text-align: center;
  letter-spacing: 1.5px;
  margin: 18px 0px;
}

#register-box-button {
  border-color: white;
}

#register-box {
  background-color: #333333;
}

/* These are HACKs to overwrite the style for the 'sign-in-with-google' boxes */

/* Make sure the 'sign in with google' text is in the center of the button and button doesn't have extra width */
.firebaseui-idp-button {
  width: unset;
}

/* Styling the 'sign in with google' button */
#login-box .firebaseui-idp-button {
  border: solid 1px black;
  box-shadow: none;
}

/* These two let us change the text to 'register with google' */
#register-box .firebaseui-idp-text,
#register-box .firebaseui-idp-text-long {
  visibility: hidden;
  line-height: 0;
}

#register-box .firebaseui-idp-text:after,
#register-box .firebaseui-idp-text-long:after {
  content: "Register with Google";
  display: block;
  visibility: visible;
  text-indent: 0;
}

#register-box label {
  color: white;
}

.header-form-input-text {
  font-size: 16px;
}

#profile-container,
#claim-account-container {
  display: flex;
  align-items: center;
}

#profile-info {
  display: flex;
  align-items: center;
  cursor: pointer;
}

#profile-icon,
#profile-down-arrow {
  padding: 0 5px 0 5px;
}

#profile-email-text {
  /*margin-bottom: 11px;*/
  font-size: 16px;
  padding: 0 3px;
  margin: 0;
}

#profile-box {
  position: absolute;
  width: 90px;
  background-color: white;
  z-index: 99;
  border: 1px solid black;
  border-radius: 18px;
  top: 20px;
  right: 0px;
  padding: 10px 4px;
  margin: 0 auto;
}

#profile-link {
  color: black;
  text-decoration: none;
}

#profile-options-list {
  list-style-type: none;
  padding: 0;
  text-align: center;
  margin: 0;
}

#profile-options-list li {
  padding: 8px 0;
  font-size: 16px;
  cursor: pointer;
}

/****************************/
/****************************/
/*Tweets box*/
/****************************/
/****************************/
@keyframes slide-left-first {
  from {
    left: 0;
  }
  to {
    left: -100%;
  }
}
@keyframes slide-left-second {
  from {
    left: 100%;
  }
  to {
    left: 0%;
  }
}

.carousel-li-a {
  animation-name: slide-left-first;
  animation-duration: 1s;
  animation-delay: 15s;
  animation-fill-mode: forwards;
}

.carousel-li-b {
  animation-name: slide-left-second;
  animation-duration: 1s;
  animation-delay: 15s;
  animation-fill-mode: forwards;
  left: 100%;
}

#carousel {
  padding: 20px 0 40px 0;
  overflow: hidden; /* Without this the next carousel item will increase page width since it's techinically present in the overflow area */
  height: 180px; /*This matters; TODO: Why?*/
  width: 100%;
  flex-grow: 1;
}

#carousel ul {
  position: relative;
  list-style: none;
  list-style-type: none;
  margin: 0;
  height: 50px;
  padding: 0;
}

#carousel ul li {
  position: absolute;
  float: left;
  margin-right: 1px;
  width: 100%;
}

#carousel-ask-platform-square-logo-box {
  min-width: 55px;
  display: flex;
  flex-direction: column;
}

img.carousel-ask-platform-square-logo {
  width: 45px;
  height: 45px;
  border-radius: 25px;
  margin: 0 auto;
}

.carousel-ask-product-name {
  display: table-caption;
  text-align: center;
  padding: 0;
  font-style: normal;
  font-size: 12px;
  margin: 10px 0 0 0;
}

#carousel-ask-platform-not-square-logo-box {
  width: 45px;
  height: 45px;
  display: flex;
  flex-direction: column;
  text-align: center;
  justify-content: center;
  border-radius: 50%;
}

img.carousel-ask-platform-not-square-logo {
  height: 100%;
  width: 100%;
  object-fit: contain;
}

.carousel-ask-description,
.carousel-ask-title {
  padding-left: 10px;
  padding-right: 20px;
  margin: 0;
  font-size: 16px;
  font-style: italic;
  text-align: center;

  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
}

.carousel-ask-title {
  font-weight: bold;
  margin-bottom: 5px;
}

.carousel-ask-footer {
  padding-right: 20px;
  text-align: right;
  font-weight: bold;
}

.carousel-ask-author {
  color: #7cb3de;
  font-size: 15px;
  margin: 0px;
  padding-top: 10px;
}

.carousel-ask-date-time {
  color: #7cb3de;
  font-size: 13px;
  margin: 0px;
}

.carousel-ask-box {
  display: flex;
  margin: 0 auto;
  width: 90%;
  justify-content: center;
}

.carousel-preview-box {
  width: inherit; /* Removing this takes up all the width in the parent box, not sure why. */
}

/****************************/
/****************************/
/* Logo area */
/****************************/
/****************************/

#void-tagline-text {
  margin: 0;
  font-size: 16px;
  text-align: center;
  color: gray;
}

#homepage-logo-container {
  justify-content: center;
  text-align: center;
}

#homepage-logo-container img {
  width: 90%;
}

.btn-clear {
  border: none;
  background: transparent;
}

#homepage-search-container {
  padding: 0 20px;
}

#search-form {
  flex-grow: 1;
  border: 1px solid black;
  border-radius: 15px;
  position: relative;
}

#early-access-form {
  text-align: center;
}

#early-access-register-button {
  color: white;
  background-color: #333333;
}

input#early-access-email {
  margin-top: 10px;
  border: 1px solid black;
  border-radius: 15px;
  font-size: 16px;
  padding: 6px 15px;
  text-align: center;
  outline: none;
  /* flex: 0.97;  TODO: WTF Is this?*/
  width: 85%;
}

input#early-access-email::placeholder {
  color: #aaaaaa;
  letter-spacing: 3px;
  font-size: 12px;
}

button#early-access-button {
  font-size: 12px;
  letter-spacing: 4px;
  text-align: center;
  margin-top: 10px;
  color: #aaaaaa;
}

@keyframes activate-early-access-button {
  from {
    font-size: 12px;
    color: #aaaaaa;
    border-bottom: 1px dotted white;
    padding-bottom: 0px;
  }
  to {
    font-size: 14px;
    color: black;
    border-bottom: 1px dotted black;
    padding-bottom: 4px;
  }
}

.early-access-email-valid-button {
  animation-name: activate-early-access-button;
  animation-duration: 4s;
  animation-fill-mode: forwards;
}

.search-icon {
  padding: 0 3px;
}

#search-bar-container {
  margin: 0 auto;
  width: 100%;
}

#search-input {
  /* Needs to be min 16px so that iOS doesn't zoom in */
  font-size: 16px;
  border: none;
  padding: 6px 2px;
  outline: none;
  /* flex: 0.97;  TODO: WTF Is this?*/
  width: 85%;
}

#add-new-product-search-result,
.search-result {
  font-size: 13px;
}

#add-new-product-search-result-inactive {
  font-size: 13px;
  color: #4e4e4e;
  font-style: italic;
}

/*
  Placeholder has long text so we want the size to be smaller since for iOS
  actual size is going to be 16px
*/
#search-input::-webkit-input-placeholder {
  font-size: 14px;
}

#submit-button {
  padding: 0 0 0 6px;
  z-index: 80;
}

#homepage-logo-primary-tagline {
  font-size: 15px;
  letter-spacing: 0.5px;
  text-align: center;
  margin: -10px 0 10px 0;
  font-weight: 400;
  letter-spacing: 1.5px;
}

#homepage-logo-secondary-tagline {
  font-size: 16px;
  font-style: italic;
  margin: 5px 0 10px 0;
  color: black;
  font-weight: lighter;
  text-align: center;
}

/****************************/
/****************************/
/* About text on homepage */
/****************************/
/****************************/

#homepage-about-text-container {
  flex-grow: 1;
  background-color: #333333;
}

div#homepage-about-text-container p {
  font-size: 12px;
  text-align: justify;
  padding: 0px 25px;
  margin-bottom: 0px;
  color: white;
  background-color: #333333;
}

/****************************/
/****************************/
/*Common*/
/****************************/
/****************************/

.clear-list-styling {
  list-style: none;
  padding: 0;
  margin: 0;
}

.cursor-pointer {
  cursor: pointer;
}

.text-decoration-underline {
  text-decoration: underline;
}

.toast-green {
  border: "1px solid green";
  color: "green";
  font-family: "Roboto", sans-serif;
}

.align-items-center {
  align-items: center;
}

.align-items-baseline {
  align-items: baseline;
}

@keyframes spin {
  from {
    transform: scale(1) rotate(0deg);
  }
  to {
    transform: scale(1) rotate(360deg);
  }
}

.spinning {
  animation: spin 1s infinite linear;
}

.margin-0 {
  margin: 0;
}

.margin-left-5 {
  margin-left: 5px;
}

.order1 {
  order: 1;
}

.order2 {
  order: 2;
}

.order3 {
  order: 3;
}

.order4 {
  order: 4;
}

.order5 {
  order: 5;
}

.no-animation-name {
  animation-name: unset;
}

.inline-block {
  display: inline-block;
}

.inline {
  display: inline;
}

.initial-position {
  position: initial;
}

.block {
  display: block;
}

.overflow-scroll {
  overflow: scroll;
}

.font-weight-bold {
  font-weight: bold;
}

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

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

.position-relative {
  position: relative;
}

.aldrich-font {
  font-family: "Roboto", sans-serif;
}

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

.bold-font-weight {
  font-weight: bold;
}

.flex-div {
  display: flex;
}

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

.wide100 {
  width: 100%;
}

.white-color {
  color: white;
}

.red-color {
  color: red;
}

.color-light-red {
  color: rgb(252, 97, 97);
}

.color-light-blue {
  color: rgb(89, 214, 255);
}

.color-green {
  color: green;
}

.color-light-green {
  color: rgb(140, 247, 140);
}

.color-theme-blue {
  color: #639aef;
}

.color-white {
  color: white;
}

.font-style-normal {
  font-style: normal;
}

.darkred-color {
  color: darkred;
}

.no-max-width {
  max-width: none;
}

.display-none {
  display: none;
}

.justify-center {
  justify-content: center;
}

.justify-text-align {
  text-align: justify;
}

/****************************/
/*Autocomplete*/
/*the container must be positioned relative:*/
/****************************/

.autocomplete {
  position: relative;
  display: inline-block;
}

.autocomplete-items {
  z-index: 99;
  width: 100%;
  /*margin-top:10px;*/
  /*margin-left: 20px;
  margin-right: 20px;*/
  font-size: 12px;
  background-color: white;
  position: absolute;
  border: 1px dashed black;
  border-radius: 10px;
}

.autocomplete-items:empty {
  border: none;
}

.autocomplete-items div {
  padding: 10px;

  cursor: pointer;
}

/*when hovering an item:*/
.autocomplete-items div:hover {
  background-color: #e9e9e9;
}

/*when navigating through the items using the arrow keys:*/
.autocomplete-active {
  background-color: DodgerBlue !important;
  color: #ffffff;
}

/* Modal */
#set-username-modal-allowed-chars {
  text-align: center;
  font-style: italic;
  color: gray;
  font-weight: lighter;
  font-size: 12px;
}

#first-feature-ask-text {
  font-size: 13px;
}

#create-username-modal-container {
  margin-right: -50%;
  transform: translate(-50%, -50%);
  width: 70%;
  max-width: 450px;
}

#add-product-modal-container {
  margin-right: -50%;
  transform: translate(-50%, -50%);
  width: 70%;
  max-width: 450px;
}

#about-modal-container {
  margin-right: -50%;
  transform: translate(-50%, -50%);
  width: 75%;
  max-width: 450px;
}

#welcome-header {
  margin-top: 0;
}

#about-modal-close-container {
  text-align: right;
}

.modal-field-error-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  position: relative;
}

.add-product-input-div {
  display: flex;
  flex-direction: column;
  margin-top: 30px;
}

.add-product-input-label-div {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-right: 10px;
}

.add-product-input-file-label-div {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  /* Because the error fields this contains are absolutely positioned */
  position: relative;
}

.add-product-file-input-label {
  width: 80%;
  text-align: center;
  padding: 8px;
  border: dashed 1px black;
  border-radius: 15px;
  cursor: pointer;
}

.add-product-file-input-label:hover {
  border-color: #639aef;
}

.add-product-input-hint {
  margin: 5px 0 5px 0;
  padding: 0;
  color: #aaaaaa;
  font-size: 12px;
  width: 80%;
}

.add-product-input-file-hint {
  margin: 5px 0 0 0;
  padding: 0;
  color: #aaaaaa;
  font-size: 11px;
  text-align: center;
  width: 100%;
}

.add-product-input-label {
}

.add-product-input {
  font-size: 16px;
  padding: 10px 10px;
  border-radius: 15px;
  border: 1px solid black;
  outline: none;
}

.add-product-input-file {
  width: 0.1px;
  height: 0.1px;
  opacity: 0;
  overflow: hidden;
  position: absolute;
  z-index: -1;
}

.modal-file-field-upload-icon {
  margin-right: 10px;
}

.form-error-text {
  display: block;
  font-size: 12px;
  /*Absolute so that when the error fields show up they don't alter the height of the container*/
  position: absolute;
  padding-top: 5px;
  text-align: center;
  width: 100%;
  /* We want the text to be at the bottom and the text can be multi-line */
  bottom: 0px;
  transform: translateY(100%);
}

#set-username-button,
#add-product-button {
  margin: 30px auto 0 auto;
  display: block;
  font-weight: bold;
  border-radius: 15px;
  padding: 10px 20px;
  background: rgb(40, 40, 40);
  color: white;
  cursor: pointer;
  outline: none;
  font-size: 15px;
  margin-bottom: 15px; /* So that if the form is overflowing the screen then there's some space after the button  */
}

#welcome-read-more-button {
  margin: 30px auto 0 auto;
  display: block;
  font-weight: bold;
  border-radius: 15px;
  padding: 10px 20px;
  background: white;
  color: black;
  cursor: pointer;
  outline: none;
  font-size: 16px;
}

#set-username-button:hover,
#add-product-button:hover {
  background: black;
}

/****************************/
/*     Header       */
/****************************/

#non-homepage-header-container > div#header-searchbar-container {
  width: 100%;
}

#homepage-header-container {
  display: flex;
  justify-content: flex-end;
  /* flex-grow: 1; */
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
}

#homepage-header-container > #header-login-registration-profile-container {
  /* padding: 15px 15px 0 0; */
  /* 
    This must match the height of this box when the header is on a non-homepage 
    i.e. 45px of the image height + 7px of the padding at the top
  */
  height: 52px;
}

#non-homepage-header-container {
  display: flex;
  padding: 0 10px 10px 10px;
  flex-wrap: wrap;
  justify-content: space-between;
}

#header-image-container {
  text-align: center;
}

#header-image {
  padding: 7px 0 0 0;
  /* width: 140px; Don't need this since the height is specified */
  height: 45px;
}

.header-button-container {
  display: flex;
  align-items: center;
}

#header-search-input {
  margin: 0 auto;
  width: 98%;
}

/****************************/
/*     Non-home pages       */
/****************************/

#product-bio {
  background-color: #333;
  display: flex;
  padding: 15px 0px 20px 0; /* Left doesn't have marging since the image that will be on the left has rounded borders to make a circle so that kind of adds some implicit padding */
  flex-direction: column;
}

#product-bio-inner-container {
  display: flex;
  width: 100%;
  justify-content: space-between;
}

#product-text {
  padding-right: 15px;
}

.product-text-no-image {
  margin: 0 auto;
}

.product-settings-icon {
  margin-right: 20px;
}

#product-image-container-square {
  display: flex;
  align-items: center;
}

#product-image-container-not-square {
  display: flex;
  background-color: white;
  padding: 13.5px;
  margin: 0 20px;
  width: 63px;
  height: 63px;
  border-radius: 50%;
  justify-content: center;
}

#product-infocard-title {
  margin: 20px 0 5px 0;
}

#product-image-square {
  height: 90px;
  width: 90px;
  padding: 0 20px;
  border-radius: 50%;
}

#product-image-not-square {
  height: 100%;
  width: 100%;
  object-fit: contain;
}

#product-website-text-container {
  display: flex;
  margin: 5px 0 0 0;
  color: white;
}

#product-website-text {
  color: white;
  font-size: 12px;
  margin: 0 0 0 1px;
}

#product-not-affiliated-text {
  margin: 30px 0 0 0;
  font-size: 10px;
  font-style: italic;
  color: white;
}

#product-desc {
  font-size: 14px;
  text-align: justify;
  margin: 0;
}

/*Preview text css*/

.preview-text-outer-container {
  text-align: center;
}

.preview-text-collapsed-container {
  height: unset;
  opacity: 1;
  max-height: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  z-index: -1;
  text-align: justify;
}

.preview-text-collapsed-container-overflowing {
  position: relative; /* This property in the non-overflowing class above looks about fine but the hyperlink stops working */
}

.preview-text-collapsed-container-overflowing::after {
  content: "";
  z-index: 1;
  position: absolute;
  height: 60px;
  bottom: 0px; /* Changing this intricately affects the offsetHeight and scrollHeight properties which are used to determine the fade and read more plus button */
  top: 10px;
  left: 0;
  width: 100%;
  /* Safari needs gradient ends specified in this format specifically */
  background: linear-gradient(rgba(255, 255, 255, 0), rgb(255, 255, 255, 1));
}

.preview-text-expanded-container {
  z-index: -1;
  text-align: justify;
}

.feature-ask-preview-author {
  font-size: 14px;
  margin: 0;
}

.feature-ask-share {
  background: none;
  border: none;
  cursor: pointer;
}

.feature-ask-preview-actions-text {
  font-size: 14px;
  margin: 0 0 0 5px;
}

.feature-ask-preview-status {
  margin: 0;
  display: inline;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 1.5px;
  font-weight: 500;
  margin-right: 7px;
}

.feature-ask-preview-label {
  margin: 0;
  margin-right: 7px;
  display: inline;
  font-size: 12px;
  border-radius: 12px;
  padding: 1px 10px;
  color: white;
  background-color: #333;
}

.feature-ask-preview-comment-count {
  display: inline;
  margin: 0;
  font-size: 10px;
  margin-left: 3px;
  /* Fixed width because comment count can be 1 or 2 or 3 digits and alignment of comment icon
  should stay the same in all cases */
  width: 20px;
  text-align: left;
}

.feature-ask-preview-info-actions {
  padding-top: 5px;
  align-items: center;
  justify-content: space-between;
}

.feature-ask-preview-info-actions-div {
  padding: 0 5px;
  justify-content: center;
  align-items: flex-end;
}

.feature-ask-preview-created-date {
  margin: 0;
  font-size: 10px;
}

/* Feature Asks */
#product-feature-asks-content-container {
  flex-grow: 1;
  width: 90%;
  padding: 30px 20px 20px 20px;
}

.upvote-cta-count-column {
  padding-right: 10px;
}

#add-new-featureask-button-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.product-feature-ask-container {
  margin: 20px 0 20px 0;
  /* align-items: center; */
}

.upvote-cta-container {
  cursor: pointer;
}

.upvote-cta-container-2 {
  /*TODO: Is this needed?*/
  margin-right: 0px;
}

.downvote-cta-container-2 {
  margin-left: 0px;
}

.upvote-downvote-cta-container {
  margin-top: -9px;
}

.votecount-over-ctas-container {
  margin-right: 10px;
}

.downvote-cta-container {
  margin-top: 3px;
  cursor: pointer;
}

.upvote-count-downvote-container {
  margin-right: 10px;
  margin-top: 0px;
  width: 25px;
  text-align: center;
}

@keyframes disappear {
  0% {
    opacity: 1;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

.login-to-act-container {
  animation: disappear 6s;
  margin-left: 25px;
  align-items: center;
}

.login-to-act-text {
  margin: 0;
  font-family: "Roboto";
  font-size: 13px;
  padding: 5px 10px;
  border: 1px solid #d75959;
  border-radius: 10px;
  background-color: white;
  color: #d75959;
  position: absolute;
  /* width: max-content;
  transform: translate(-50%, 200%); */
}

.feature-ask-preview-card {
  width: 100%;
}

#add-new-feature-ask {
  padding: 6px 10px;
  border-radius: 10px;
  background-color: #333;
  color: white;
  font-weight: bold;
  font-size: 16px;
}

#comment-button-container {
  display: flex;
  justify-content: center;
}

#comment-button {
  padding: 6px 10px;
  border-radius: 10px;
  background-color: #333;
  color: white;
  font-weight: bold;
  font-size: 16px;
  cursor: pointer;
}

#comment-button p {
  margin: 0;
}

#add-new-feature-ask:focus {
  outline: none;
  background-color: #777;
}

#add-new-feature-ask:hover {
  outline: none;
  background-color: #444;
}

.product-feature-ask-first-row {
  display: flex;
}

/* .product-feature-ask {
  display: flex;
  flex-direction: column;
  margin-top: 20px;
} */

.product-feature-ask-count {
  font-size: 13px;
}

.product-feature-ask-count-2 {
  font-size: 18px;
}

.upvote-cta-count-container {
  margin-right: -3px;
}

.downvote-cta-count-container {
  margin-left: -3px;
}

.vote-cta-button {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.vote-cta-button svg path {
  stroke-width: 1.5px;
}

.vote-cta-button-not-chosen svg path {
  stroke-width: 1px;
}

.vote-cta-button-voted-up {
  color: #00a000;
}

.vote-cta-button-voted-up svg path {
  stroke-width: 2.5px;
}

.vote-cta-button-voted-down {
  color: #a00000;
}

.vote-cta-button-voted-down svg path {
  stroke-width: 2.5px;
}

.vote-cta-button-voted {
  background: none;
  border: none;
  color: rgb(142, 0, 0);
  padding: 0;
}

.upvote-count {
  margin: 0px 0 0 0;
  text-align: center;
  font-weight: bold;
}

.upvote-count-text {
  margin: 0 0 0px 0;
  font-size: 10px;
  display: block;
  font-weight: normal;
}

.product-feature-ask-title-container {
  font-size: 20px;
  margin: 0;
}

#add-feature-ask-modal-container,
#claim-account-modal-container {
  margin-right: -50%;
  transform: translate(-50%, -50%);
  width: 70%;
  max-width: 450px;
}

.feature-ask-title {
  font-size: 20px;
  margin: 0;
}

.feature-ask-desc {
  font-size: 16px;
  margin: 6px 0 0 0;
  white-space: pre-line;
}

/* Welcome */
#welcome-modal-close-container {
  text-align: right;
}

#welcome-modal-close-container svg {
  cursor: pointer;
}

.about-text {
  margin: 0 auto;
  max-width: 700px;
  text-align: justify;
  text-align-last: center;
  width: 90%;
  /* letter-spacing: 1.3px; */
  color: #383838;
  /* line-height: 22px; */
  font-size: 14px;
}

#about-highlighted-text {
  margin: 20px auto;
  font-size: 16px;
  font-weight: bold;
  width: 70;
  max-width: 700px;
  text-align: center;
  /* line-height: 22px; */
}

/* About */
#about-content-container {
  flex-grow: 1;
  padding: 0px 20px 10px 20px;
}

#register-content-container {
  flex-grow: 1;
  padding: 30px 20px 20px 20px;
  text-align: center;
}

#about-header {
  font-size: 32px;
  margin: 0;
  letter-spacing: 2px;
}

/* Profile page */
#profile-content-container {
  flex-grow: 1;
  padding: 30px 20px 20px 20px;
}

#profile-table {
  width: 350px;
}

#profile-table td {
  padding: 5px;
}

.profile-table-keys {
  font-size: 16px;
  font-weight: bold;
}

.profile-table-values {
  font-size: 16px;
}

#post-comment-textarea,
#post-comment-textarea:focus {
  display: block;
  border-radius: 10px;
  width: -webkit-fill-available;
  color: #333333;
  padding: 10px;
  outline: none;
}

.post-area-container-non-composing {
  display: flex;
  align-items: center;
  justify-content: center;
}

#post-comment-error-text {
  font-size: 12px;
  text-align: center;
  position: absolute;
  left: 0; /* These center align */
  right: 0;
}

#post-comment-textarea-error-container {
  margin-bottom: 20px;
}

#post-comment-header {
  font-size: 18px;
  margin: 15px 0 8px 0;
}

#comments-header {
  margin: 10px 0 10px 0;
  font-size: 18px;
}

.feature-ask-comment-text {
  font-size: 16px;
  margin: 6px 0 0 0;
  white-space: pre-line;
}

.feature-ask-comment-author {
  font-size: 14px;
  margin: 0;
  display: inline;
}

.feature-ask-comment-time {
  font-size: 12px;
  color: #4e4e4e;
  margin: 0 0 0 5px;
  display: inline;
}

.feature-ask-comment-text-container {
  padding-left: 10px;
}

.feature-ask-comment-separator {
  margin: 10px 0 15px 0;
}

#loading-spinner-container {
  margin-top: 20px;
  text-align: center;
}

#new-comment-here-link {
  cursor: pointer;
  font-weight: bold;
}

/*
  Product Settings
*/
#product-settings-options {
  list-style: none;
  padding-left: 0px;
  text-align: right;
}

#product-settings-options li {
  padding: 11px 25px 11px 0;
}

#product-page-non-padded-content-container {
  flex-grow: 1;
}

#product-page-settings-left-bar {
  min-width: 130px;
  width: 30%;
  background-color: #ededed;
}

#product-page-settings-right-area {
  display: flex;
  flex-grow: 1;
  padding: 15px;
}

.product-setting-nav-selected {
  background-color: rgb(207, 207, 207);
}

#product-settings-admins-container,
#product-settings-notifications-container {
  width: 100%;
}

#product-settings-admins-header,
#product-settings-notifications-header {
  text-align: center;
}

.product-settings-notifications-item {
  margin-left: 5px;
}

#product-settings-save-notifications-button,
#product-settings-add-new-tag-button,
#product-settings-tag-renaming-button {
  font-size: 16px;
  padding: 5px 15px;
  background-color: rgb(40, 40, 40);
  cursor: pointer;
  color: white;
  outline: none;
  border-radius: 15px;
}

#product-settings-save-notifications-button {
  display: block;
}

.product-settings-tag {
  margin: 5px 0 5px 5px;
  display: inline;
}

.product-setting-tag-action {
  /* margin: 0 0 0 5px; */
  margin: 0 auto;
}

.product-setting-tag-action-text {
  font-size: 10px;
  margin: 0 7px;
}

#product-settings-add-new-tag-container {
  margin-top: 20px;
}
#product-settings-add-new-tag-text {
  margin: 0 0 0 5px;
  display: inline;
  font-size: 16px;
  text-decoration: underline;
}

#product-settings-add-new-tag-cta {
  background: none;
  border: none;
}

.product-settings-tag-container {
  height: 30px;
  margin-bottom: 7px;
}

#new-tag-name,
#tag-new-name {
  border-radius: 25px;
  padding: 2px 10px;
  font-family: "Roboto";
  font-size: 16px;
  width: 160px;
}

/*
*** Ask actions menu
*/

.ask-multilevel-menu-list li {
  /* margin: 5px 0; */
  padding: 5px 0;
  display: flex;
  width: 250px;
}

.ask-multilevel-menu-list li.direction-right {
  justify-content: space-between;
}

.ask-multilevel-menu-list li.direction-left {
  justify-content: flex-start;
}

.ask-multilevel-menu-list li.direction-left p {
  margin-left: 5px;
}

.ask-multilevel-menu-list li p {
  margin: 0;
}

#feature-ask-actions-menu-container {
  position: absolute;
  right: 0;
  top: 0;
}

#ask-actions-menu-list-container {
  background-color: white;
  z-index: 1;
  display: inline;
  order: -1;
  border-radius: 20px;
  padding: 15px 5px 15px 15px;
  border: solid 1px black;
  transition: height 500ms ease;
  overflow: hidden;
  position: relative;
}

/*CSS transitions*/

.ask-actions-menu-primary-enter {
  position: absolute;
  transform: translateX(-110%);
}

.ask-actions-menu-primary-enter-active {
  transform: translateX(0%);
  transition: all 500ms ease;
}

.ask-actions-menu-primary-exit {
  transform: translateX(0%);
  position: absolute;
}

.ask-actions-menu-primary-exit-active {
  transform: translateX(-110%);
  transition: all 500ms ease;
}

.tags-menu-action-primary-enter,
.change-status-menu-action-primary-enter {
  transform: translateX(110%);
}

.tags-menu-action-primary-enter-active,
.change-status-menu-action-active {
  transform: translateX(0%);
  transition: all 500ms ease;
}

.tags-menu-action-primary-exit,
.change-status-menu-action-primary-exit {
  /* transform: translateX(0%); */
}

.tags-menu-action-primary-exit-active,
.change-status-menu-action-primary-exit-active {
  transform: translateX(110%);
  transition: all 500ms ease;
}

#claim-account-header {
  font-size: 22px;
}

#claim-account-subheader {
  font-size: 16px;
}

.claim-account-bottom-text {
  font-size: 12px;
}

#claim-account-close-button {
  text-align: right;
}

/****************************/
/****************************/
/* medium width screens */
/****************************/
/****************************/

@media only screen and (min-width: 450px) and (max-width: 649px) {
  #thank-you-text {
    font-size: 14px;
  }

  .product-text-no-image {
    margin: unset;
  }

  #profile-options-list {
    max-width: 350px;
    margin-left: auto;
    margin-right: auto;
  }

  #early-access-register-header {
    margin-top: 75px;
  }

  .header-box-input-div {
    margin-bottom: 50px; /* When sign-in with Google is brought back this should be margin-top*/
  }

  #early-access-register-button {
    margin-top: 50px;
  }

  #carousel {
    max-width: 400px;
    margin: 0 auto;
  }

  #homepage-logo-container {
    max-width: 450px;
    margin: 0 auto;
  }

  .search-bar-container-max-width {
    max-width: 380px;
  }

  #search-input {
    /* We don't add this for mobile since the font size has to be 16px for iOS and adding this
    on top would take too much */
    padding: 8px;
    /* So that it can be in the same line with the search icon */
    width: 85%;
  }

  #about-header {
    font-size: 36px;
    margin: 10px 0;
  }

  .about-text {
    font-size: 16px;
  }

  #about-highlighted-text {
    font-size: 18px;
  }

  div#homepage-about-text-container p {
    margin-left: auto;
    margin-right: auto;
    max-width: 400px;
    font-size: 14.5px;
  }

  #homepage-logo-primary-tagline {
    font-size: 16px;
  }

  #homepage-logo-secondary-tagline {
    font-size: 16px;
  }

  #product-bio-inner-container,
  #product-feature-asks-content-container,
  #profile-content-container,
  #about-content-container,
  #register-content-container {
    max-width: min(450px, 85%);
    margin: 0 auto;
  }

  #non-homepage-header-container {
    max-width: 460px;
    margin: 0 auto;
  }

  .footer-text {
    font-size: 16px;
  }

  .carousel-ask-title {
    -webkit-line-clamp: 4;
  }
}

/****************************/
/****************************/
/* large width screens */
/****************************/
/****************************/
@media only screen and (min-width: 650px) {
  /*#header {
    max-width: 1000px;
    margin:0 auto;
  }*/

  #header-nav {
    /* max-width: 1000px; */
    /* margin-left: auto; */
    /* margin-right: auto; */
  }

  .product-text-no-image {
    margin: unset;
  }

  input#early-access-email::placeholder {
    font-size: 14px;
  }

  button#early-access-button {
    font-size: 14px;
  }

  @keyframes activate-early-access-button {
    from {
      font-size: 14px;
      color: #aaaaaa;
      border-bottom: 1px dotted white;
      padding-bottom: 0px;
    }
    to {
      font-size: 16px;
      color: black;
      border-bottom: 1px dotted black;
      padding-bottom: 4px;
    }
  }

  #early-access-register-header {
    margin-top: 40px;
  }

  .header-box-input-div {
    margin-bottom: 50px; /* When sign-in with Google is brought back this should be margin-top*/
  }

  #early-access-register-button {
    margin-top: 50px;
  }

  #thank-you-text {
    font-size: 16px;
  }

  #about-header {
    font-size: 36px;
    margin: 10px 0;
  }

  .about-text {
    font-size: 16px;
    line-height: 22px;
  }

  #about-highlighted-text {
    font-size: 18px;
    line-height: 25px;
    margin: 30px 0px;
  }

  #homepage-content-first-half {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-grow: 3;
    /*fix*/
    padding-bottom: 0;
  }

  /*TODO: DO we need this?*/
  #homepage-carousel-logo-search-container {
    display: flex;
    flex-direction: row;
    /*admitted clusterfuck*/
    justify-content: space-around;
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
  }

  #carousel {
    max-width: 500px;
  }

  .carousel-ask-box {
    width: 90%;
  }

  .carousel-ask-title {
    -webkit-line-clamp: 3;
  }

  #search-input {
    padding: 8px;
  }

  #search-input::-webkit-input-placeholder {
    font-size: 16px;
  }

  #homepage-logo-search-container {
    width: 50%;
    max-width: 500px;
  }

  #carousel-tagline-container {
    width: 45%;
    margin-bottom: 0px;
  }

  #void-tagline-container {
    /* order: 2; */
    letter-spacing: 0.8px;
  }

  #homepage-about-text-container {
    height: 100%;
  }

  div#homepage-about-text-container p {
    margin-left: auto;
    margin-right: auto;
    padding: 0px 50px;
    max-width: 1000px;
    font-size: 17px;
    height: 100%;
    display: flex;
    align-items: center;
  }

  #homepage-logo-primary-tagline {
    font-size: 16px;
    letter-spacing: 2.5px;
  }

  #homepage-logo-secondary-tagline {
    font-size: 18px;
  }

  #footer {
    margin-right: 20px;
  }

  .footer-text {
    font-size: 16px;
  }

  .footer-link svg {
    height: 18px;
    width: 18px;
  }

  .autocomplete-items {
    border-width: 2px;
  }

  #add-product-modal-container {
    max-width: 700px;
  }

  #non-homepage-header-container > #header-image-container {
    padding: 0 10px;
    order: 1;
  }

  #non-homepage-header-container
    > #header-login-registration-profile-container {
    order: 3;
  }

  #non-homepage-header-container > div#header-searchbar-container {
    order: 2;
    flex-grow: 1;
    align-items: center;
    padding: 0 10px;
    width: auto;
  }

  #product-bio-inner-container {
    max-width: min(1100px, 85%);
    margin: 0 auto;
  }

  #product-feature-asks-content-container,
  #profile-content-container,
  #about-content-container,
  #non-homepage-header-container,
  #register-content-container {
    max-width: 1100px;
    margin: 0 auto;
  }

  #non-homepage-header-container {
    width: 98%; /* Not 100% because if you set at 100% and give padding, then sometimes it may add unnecessary horizontal scroll (e.g. when viewport width is 600-900 px)*/
  }

  #header-searchbar-container {
    max-width: 400px;
  }

  #header-login-registration-profile-container {
    margin-left: auto;
  }

  .feature-ask-preview-comment-count {
    font-size: 14px;
  }

  .feature-ask-preview-info-actions-div svg {
    height: 16px;
    width: 16px;
  }

  .feature-ask-preview-actions-text,
  .feature-ask-preview-author {
    font-size: 16px;
  }
}
