:host {
  display: block;
}

*, :after, :before {
  box-sizing: border-box;
}

.output-match {
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  word-wrap: break-word;
  background-clip: border-box;
  border-radius: 0;
  padding: 20px;
}

.p-20 {
  padding: 20px;
}

.shadow-lg {
  box-shadow: 0px 4px 10px 2px rgb(74 74 74 / 30%);
}

.card-body {
  padding: 15px;
  height: 100%;
  transition: all 0.3s ease-out;
}

.row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  position: relative;
}

.col-6 {
  flex: 0 0 auto;
  width: 50%;
}

.h-100 {
  height: 100%!important;
}

textarea {
  width: 100%;
  border: none;
  min-height: 100px; 
  resize: none;
}

textarea:focus, textarea:active {
  outline: none
}

.card-body.border-yellow:focus-within {
  border: 2px solid rgb(242, 231, 65);
  padding: 19px;
}

.card-body.border-pink:focus-within {
  border: 2px solid rgb(255, 51, 105);
  padding: 19px;
}

.speech-bubble {
  text-align: left;
  position: relative;
}

.input-bubble {
  width: 50%;
}

.output-bubble, .btn-container {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-container {
  margin-top: 30px;
  margin-bottom: 30px;
}

.mt-0 {
  margin-top: 0px;
}

.left:before {
  content: "";
  width: 0px;
  height: 0px;
  position: absolute;
  border-left: 20px solid rgb(242, 231, 65);
  border-right: 20px solid transparent;
  border-top: 20px solid rgb(242, 231, 65);
  border-bottom: 20px solid transparent;
  left: 50px;
  bottom: -19px;
}

.output-match {
  transition: all 0.3s ease-out;
}

.right:before {
  content: "";
  width: 0px;
  height: 0px;
  position: absolute;
  border-left: 20px solid transparent;
  border-right: 20px solid rgb(255, 51, 105);
  border-top: 20px solid rgb(255, 51, 105);
  border-bottom: 20px solid transparent;
  right: 50px;
  bottom: -19px;
}

.center {
  max-height: 0px;
  min-height: 0px;
  transition: all 0.3s ease-out;
  position: relative;
  border: none;
}

.opacity-50 {
  opacity: 0.5;
}

.overlay {
  display: none;
}

.fixed-plugin {
  position: absolute;
  border-radius: 50%;
  background-color: rgb(4, 212, 254);
  padding: 5px;
  color: white;
  max-height: 40px;
  max-width: 40px;
  min-width: 40px;
  min-height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 600;
  font-size: 25px;
  bottom: 10px;
  right: 10px;
  cursor: pointer;
  transition: max-height 0.3s ease-out;
  z-index: 10;
}

.modal-header {
  transition: all 0.7s ease-out;
  display: flex;
  align-items: start;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 20px;
}

.opened {
  max-height: 300px;
  max-width: 700px;
  border-radius: 0;
  font-weight: 300;
  font-size: 20px;
  padding: 20px;
  display: block;
}

.close-btn {
  margin-left: 20px;
  height: 25px;
  font-weight: 300;
  transition: all 0.3s ease-out;
}

.close-btn:hover {
  font-weight: 600;
}

.has-result {
  max-height: 150px;
  min-height: 150px;
}

.bg-yellow {
  background-color: rgb(242, 231, 65);
}

.bg-pink {
  background-color: rgb(255, 51, 105);
}

.border-pink {
  background-color: white;
  border: 6px solid rgb(255, 51, 105);
}

.border-yellow {
  background-color: white;
  border: 6px solid rgb(242, 231, 65);
}

.bg-white {
  width: 700px;
  max-width: 100%;
  background-color: white;
}

.speech-bubble.bg-yellow::before {
  border-top: 30px solid rgb(242, 231, 65);
}

.speech-bubble.bg-pink::before {
  border-top: 30px solid rgb(255, 51, 105);
}

.text-primary {
  color: rgb(255, 51, 105);
}

.text-white {
  color: white !important;
}

textarea.text-white::placeholder {
  color: rgba(255, 255, 255, 0.5) !important;
}

.text-dark {
  color: rgb(10, 23, 71);
}

textarea.text-dark::placeholder {
  color: rgba(0, 0, 0, 0.5);
}

h2 {
  text-transform: uppercase;
}

textarea {
  font-family: Roboto,Helvetica,Arial,sans-serif;
  font-weight: 300;
}

p {
  font-weight: 300;
}

.bold {
  font-weight: 600 !important;
}

#styledText {
  font-weight: 300;
  margin: 0;
}

.wordcount-left {
  position: absolute;
  bottom: -4px;
  right: 20px;
}

.wordcount-right {
  position: absolute;
  bottom: -4px;
  left: 20px;
}

.wordcount-p {
  font-weight: 300;
}

button {
  background-color: rgb(4, 212, 254);
  background-image: none;
  font-family: Open Sans;
  font-weight: 600;
  text-transform: uppercase;
  line-height: 1;
  letter-spacing: 1px;
  color: #FFFFFF;
  padding-top: 12px;
  padding-right: 24px;
  padding-bottom: 12px;
  padding-left: 24px;
  text-align: center;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease-out;
}

.disabled {
  background-color: #6c757d;
  color: white;
  cursor: not-allowed;
}

.fixed-plugin:not(.opened):hover, button:not(.disabled):hover {
  background-color: rgba(4, 212, 254, 0.8);
}

.no-show {
  display: none;
}

.nText {
  transition: all 0.3s ease-out;
}

.w-100 {
  width: 100%;
}

.w-33 {
  width: 33%;
}

@media (max-width: 768px) {

  .speech-bubble {
    width: 100%;
    max-width: 100%;
  }

  .card-body {
    width: 100%;
  }

  .left {
    align-items: start;
  }

  .right {
    align-items: end;
  }

  .right {
    padding-top: 50px;
  }

  .row {
    padding-left: 0;
    padding-right: 0;
  }

  .fixed-plugin {
    position: fixed;
  }

  .fixed-plugin.opened {
    bottom: 0;
    right: 0;
  }

  .w-33 {
    width: 100%;
  }
  
}

.match-result {
  margin-top: 10px;
  margin-bottom: 10px;
  color: rgb(255, 51, 105);
  font-size: 5rem;
}

#post-match-result {
  font-size: 2.5rem;
  text-decoration: underline;
  text-decoration-color: rgb(242, 231, 65);
}

#Test {
    position: absolute;
    visibility: hidden;
    height: auto;
}

.result-box {
  padding: 0 0.5rem;
  margin: 0.5rem;
  border: 6px dashed rgba(4, 212, 254, 0.8);
}

.output-error > .match-result {
  font-size: 2rem !important;
}