@import url('./fonts.css');

:root {
  --body-background-color: #eceff1;
  --main-background-color: #fff;
  --thredd-color: #4790fc;
  --thredd-color-darker: hsl(from var(--thredd-color) h s calc(l - 5%));
  --main-color: #262626;
  --main-color-lighter: #787878;
  --link-color: var(--main-color);
  --link-hover-color: #444;
  --user-link-color: var(--main-color);
  --text-input-background-color: var(--main-background-color);
  --text-input-color: var(--main-color);
  --message-border-color: #f5f5f5;
  --feedback-color: var(--thredd-color);
}
@media (prefers-color-scheme: xxdark) {
  :root {
    --body-background-color: #000;
    --main-background-color: #262626;
    --main-color: #eceff1;
    --message-border-color: #313131;
  }
}

body {
  font-family: "Gilroy-Regular", Helvetica, Arial, sans-serif;
  background: var(--body-background-color);
  color: var(--main-color);
  margin: 0;
  padding: 0;
}

button {
  min-height: 50px;
   box-shadow: 0px 8px 15px rgba(0, 0, 0, 1.0);
}

#new-thredd-link {
  text-align: center;
}

#new-thredd-link hr {
  opacity: 0.1;
}

#new-thredd-link img {
  width:16px;
  cursor: pointer;
}

#new-thredd-link a {
  text-decoration: none;
  cursor: pointer;
}

#canvas {
  max-width: 360px;
  margin: 0 auto;
  padding: 5px 5px 15px 5px;
  background: var(--main-background-color);
  border-radius: 3px;
  min-height: 100vh;
}
@media (max-width: 600px) {
  #canvas {
    max-width: 100%;
    margin: 0;
  }
}
.page-new-thredd #canvas {
  padding-left: 20px;
  padding-right: 20px;
}

#page-header .logo-container {
  display: flex;
  padding: 10px 5px;
  height: 45px;
}
#page-header .logo-container img {
  height: 100%;
  width: auto;
}

#content {
  width: 100%;
  margin-bottom: 10px;
}
#content #message {
  font-family: 'Gilroy-Bold';
  font-size: 20px;
  padding: 5px 13px;
}
.page-new-thredd #content #message {
  margin-top: 65px;
  height: 60px;
  font-size: 35px;
  padding-left: 0;
  padding-right: 0;
}

#help-text {
  margin-top: 40px;
  font-size: 14px;
}

#new-thredd-container {
  margin-top: 40px;
}


/* From https://css-tricks.com/the-cleanest-trick-for-autogrowing-textareas/ */
.grow-wrap {
  /* easy way to plop the elements on top of each other and have them both sized based on the tallest one's height */
  display: grid;
}
.grow-wrap::after {
  /* Note the weird space! Needed to preventy jumpy behavior */
  content: attr(data-replicated-value) " ";

  /* This is how textarea text behaves */
  white-space: pre-wrap;

  /* Hidden from view, clicks, and screen readers */
  visibility: hidden;
}
.grow-wrap > textarea {
  /* You could leave this, but after a user resizes, then it ruins the auto sizing */
  resize: none;

  /* Firefox shows scrollbar on growth, you can hide like this. */
  overflow: hidden;
}
.grow-wrap > textarea,
.grow-wrap::after {
  /* Place on top of each other */
  grid-area: 1 / 1 / 2 / 2;
}

#connect-insta-container .icon-link span {
  font-size: 36px !important;
}

textarea.thredd-input,
textarea.thredd-input:focus,
textarea.thredd-input::after {
  /* Identical styling required!! */
  font-size: 14px;
  box-shadow: none;
}
textarea.thredd-input::placeholder {
  font-size: 14px;
  line-height: 1.2;
  opacity: .75;
}

@keyframes rotation {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(359deg);
  }
}

.rotate {
  animation: rotation 2s infinite linear;
}

#new-thredd-group {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: solid 1px var(--main-color-lighter);
  border-radius: 10px;
  padding: 10px 15px;
}
#new-thredd-group .input-container {
  flex-grow: 1;
}
#new-thredd-group #new-thredd-input,
#new-thredd-group #new-thredd-input::after {
  /* Identical styling required!! */
  border: none;
}


#new-thredd-container .link-container {
  flex-grow: 1;
  overflow-x: hidden;
}
#new-thredd-container #thredd-link {
  font-size: 14px;
  white-space: nowrap;
  border: none;
  box-shadow: none;
  width: 100%;
}
#new-thredd-container #thredd-link-clippy {
  position: absolute;
  top: 0;
  opacity: 0;
  z-index: -1;
  height: 0;
  border: none;
}

#new-thredd-container .icon-actions {
  display: flex;
  align-items: center;
  cursor: pointer;
}
#new-thredd-container .icon-hints .icon {
  display: flex;
  padding-right: 5px;
}
#new-thredd-container .icon-actions .icon {
  display: flex;
  padding-left: 5px;
}
@media (max-width: 600px) {
  #new-thredd-container .icon-hints .icon {
    padding-right: 10px;
  }
  #new-thredd-container .icon-actions .icon {
    padding-left: 10px;
  }
}

#profile-holder {

  font-size: 12px;
  opacity: 0.4;
  cursor: pointer;
  position: relative;
  text-align: right;
  margin-top: -33px;
  padding-right: 10px;
}
#profile-holder .username {
    text-decoration: none;
    font-family: 'Gilroy-SemiBold';
    color: var(--user-link-main-color);
}

.logoff {
  font-size: 12px;
  opacity: 0.4;
  cursor: pointer;
}

#action-feedback {
  display: flex;
  justify-content: center;
  width: 100%;
  font-size: 10px;
  color: var(--feedback-color);
  height: 25px;
  visibility: hidden;
  opacity: 0;
  transition: opacity 1000ms ease-in, visibility 0ms ease-in 1000ms;
}
#action-feedback.show {
  visibility: visible;
  opacity: 1;
  transition-duration: 50ms;
  transition-delay: 0ms;
}

#actions {
  margin-top: 60px;
}

@media (min-width: 600.01px) {
  #new-thredd-container .icon-actions #share-thredd-link.icon {
    display: none;
  }
}

.box {
  width: 100%;
  margin: 5px 0;
  padding: 0;
}

#replies {
  display: flex;
  flex-direction: column;
  padding: 0;
}

#replies .message {
  min-height: 70px;
  padding: 5px 20px;
  border-bottom: solid 1px var(--message-border-color);
}
#replies .message:first-child {
  border-top: solid 1px var(--message-border-color);
}



.message a.user-link {
  text-decoration: none;
  font-family: 'Gilroy-SemiBold';
  color: var(--user-link-main-color)
}


.message .part,.message div {
  display: inline;
  position: relative;
}

.pullright {
  float:right;
}

#newTaco,#saveTaco {
  cursor: pointer;
}
#newBody {
  width: 100%;
  height: 77px;
}

.message time {
  display: block;
  font-size: small;
  font-weight: lighter;
  opacity: 0.5;
  margin: auto;
  width: 10px;
  /* margin-left: 3px; */
  margin-top: 5px;
  margin-bottom: 2px;
}

.message .created {

  font-size: small;
  font-weight: lighter;
  opacity: 0.5;

}

.message hr {
  opacity: 0.25;
  margin-top: 5px;
  margin-bottom: 4px;
}

#tacoLink {
  cursor: pointer;
  font-size: small;
  margin-left: 2px;
}
#replies .message .username,
#replies .message .body {
  font-size: 16px;
}

.hidden {
  display: none !important;
}

#postMessage {
  display: flex;
  justify-content: space-between;
  padding: 5px 15px 10px 15px;
}

#postMessage .input-container {
  flex: 1;
}
#postMessage .cta-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 0 0 5px;
  color: var(--thredd-color);
  cursor: pointer;
}

#postMessage #btnPost {
  /* position: relative;
  top:-10px;
  background-color: white; */
  /* cursor: pointer; */
}

#no-thredd-container,
#connect-insta-container {
  padding-left: 15px;
  padding-right: 15px;
}

.unloaded {

  min-height: 1024px;
}

.page-new-thredd #connect-insta-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 30px;
}
.page-new-thredd #connect-insta {
  height: 80px;
  width: 80px;
  /* border: solid 1px var(--main-color-lighter); */
  border-radius: 50%;
  padding: 10px;
  cursor: pointer;
}

.message.duplicate {
  margin-top: -10px !important;

}

.remover {
    cursor: pointer;
    opacity: 0.2;
    font-size: small;
}

iframe{
    border: 0;
    width: 100%;
}

.moreDot {
  display: block;
  font-size: small;
  font-weight: lighter;
  opacity: 0.5;
  margin-left: 3px;
  margin-top: -5px;
}
.more {
  text-align: center;
}
.moreText {
  display: block;
  font-size: small;
  font-weight: lighter;
  opacity: 0.5;
  margin-left: 3px;
  margin-top: -5px;
  margin-bottom: 10px;
  cursor: pointer;
}

.rounded-corners {
  border-radius: 25px;
  border: 2px solid #CCCCCC;
  padding: 20px;
  /* width: 200px;
  height: 150px; */
}

.connect-insta {
  cursor: pointer;
}

.connect-insta:active {
  opacity: 0.5;
}

.remover:hover {
    cursor: pointer;
    opacity: 0.5;
    font-size: small;
}

.transparent {
  opacity: 0;
}

#tacoLinks {
  display: block;
}

.touching {
  opacity: 0.3;
}


@keyframes jiggle {
  0% {
    transform: rotate(-1deg);
  }
  50% {
    transform: rotate(1deg);
  }
}

.message[data-wiggle="true"] {
  animation: jiggle 0.2s infinite;
  border: 1px solid #aaa;
  box-shadow: 0 0 1px rgba(0,0,0,.85);
}

.btn-primary {
  background-color: var(--thredd-color);
  color: var(--main-background-color);
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.btn.btn-thredd,
.btn.btn-thredd:active {
  background-color: var(--thredd-color);
  color: var(--main-background-color);
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.btn.btn-thredd:active {
  filter: brightness(.9);
}

.btn.btn-thredd .btn-label {
  font-family: 'Gilroy-SemiBold';
}

.btn-ripple {
	display: inline-block;
	position: relative;
	overflow: hidden;
	transition: all ease-in-out .5s;
}

.btn-ripple::after {
	content: "";
	display: block;
	position: absolute;
	top: 0;
	left: 25%;
	height: 100%;
	width: 50%;
	background-color: #000;
	border-radius: 50%;
	opacity: 0;
	pointer-events: none;
	transition: all ease-in-out 1s;
	transform: scale(5, 5);
}

.btn-ripple:active::after {
	padding: 0;
	margin: 0;
	opacity: .2;
	transition: 0s;
	transform: scale(0, 0);
}

.connected-insta {
  cursor: pointer;
}

.no-auth-button {
  display: none;
}

/* .for-creating,
.for-created {
  display: none;
} */
