@keyframes rainbowGrowing {
  0% {
    filter: blur(1px);
  }

  100% {
    filter: blur(255px);
  }
}

@keyframes blinkingInputIndicator {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 1;
  }
  51% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

@keyframes sliderGettingWider {
  0% {
    width: 100%;
  }

  100% {
    width: 7000%;
  }
}

@keyframes textAreaIsBack {
  0% {
    width: 10px;
    height: 10px;
  }

  100% {
    width: 200px;
    height: auto;
  }
}

@keyframes disclaimerTextAppearing {
  0% {
    width: 0;
  }

  100% {
    width: 100%;
  }
}

@keyframes finalTextsFadein {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

* {
  margin: 0px;
  padding: 0px;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: #f0ebf8;
}

main {
  display: flex;
  position: relative;
  background-color: #fff;
  width: 60vw;
  height: fit-content;

  margin: 1rem auto;
  gap: 1.5rem;
  padding: 1rem 2rem;
  flex-direction: column;
  border: 1px solid rgb(218, 220, 224);
  border-radius: 24px;
}

main::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 24px;

  background: linear-gradient(to bottom right, red, orange, yellow, green, blue, indigo, violet);
  animation-name: rainbowGrowing;
  animation-duration: 2000s;

  z-index: -1;
}

.line {
  height: 1px;
  width: auto;
  margin: -0.5rem -2rem;
  background-color: rgb(218, 220, 224);
}

/* 
Form Header Section
*/

.form-header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.apology-span {
  color: blue;
  text-decoration: underline;
  user-select: none;
  cursor: pointer;
}

.apology-span:hover {
  color: darkblue;
}

.apology-href {
  position: fixed;
  bottom: 0;
  left: 0;
  padding: 0.125rem 0.3rem;
  font-size: 0.875rem;
  color: #bcb3d1;
  background-color: #09080d;
  border: 1.5px solid #251f33;
  opacity: 0;
  transition: opacity 300ms cubic-bezier(0, -0.25, 0.64, 1);
}

/* 
Small CSS Class: CSS Combinators
A + B = Affects the next sibling of A
A ~ B = Affects all next siblings of A
A B = Affects all descendents of A
A > B = Affect the direct children of A

The first version of the false href was made
usign JS. This time, I will be testing with A + B
(o゜▽゜)o☆ secret star for anyone reading this~~
*/

p:has(.apology-span:hover) + .apology-href {
  opacity: 1;
}

.apology-paragraph {
  position: absolute;
  overflow: scroll;
  top: 0;
  left: 0;
  font-size: 1rem;
  font-family: serif;
  color: black;
  width: 180vw;
  pointer-events: none;
  z-index: 1;
}

/* 
Below is a way of making a triangle in html with css.
The idea was to make a weird button
*/

.close-apology-paragraph-button {
  position: fixed;
  font-size: 3rem;
  font-family: Times;
  right: 4rem;
  top: 1rem;
  width: 0vw;
  height: 0vh;
  color: red;
  border: solid 90px;
  border-color: transparent transparent transparent white;
  cursor: pointer;
  z-index: 2;
}

/*
Form User Section
*/

.form-user-info {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.form-user-fields-wrapper {
  display: flex;
  flex-direction: row;
  row-gap: 2rem;
  flex-wrap: wrap;
  justify-content: space-between;
}

.form-user-field {
  display: flex;
  flex-direction: column;
  width: 12rem;
  gap: 0.2rem;
}

.fake-input {
  position: relative;
  user-select: none;
  width: 100%;
  font-size: 0.875rem;
  padding: 2px 6px;
  color: gray;
  border: 1px solid rgb(118, 118, 118);
  border-radius: 3px;
}

.fake-input:hover {
  cursor: text;
  border-color: #26a0da;
}

.fake-input.focus {
  border-color: transparent;
  outline: 2px solid black;
  border-radius: 1px;
}

.input-indicator {
  position: absolute;
  left: 0px;
  top: 50%;
  width: 1px;
  height: 110%;
  transform: translateY(-50%);
  background-color: black;

  animation-name: blinkingInputIndicator;
  animation-duration: 1.1s;
  animation-iteration-count: infinite;
}

.fake-label {
  font-size: 1rem;
  border: none;
  padding-block: 0;
  padding-inline: 0;
  cursor: default;
}

.fake-label:focus {
  outline: none;
}

.fake-label:disabled {
  background-color: white;
}

.fake-label::placeholder {
  color: black;
}

.warning-paragraph {
  position: absolute;
  top: -2rem;
  left: -1rem;
  color: red;
  text-wrap: nowrap;
}

.number-slider-div {
  display: flex;
  flex-direction: column;
  position: relative;
  justify-content: center;
}

.number-slider {
  appearance: none;
  height: 1rem;
  background: white;
  outline: 1px solid rgb(118, 118, 118);
  border-radius: 2px;

  animation-name: sliderGettingWider;
  animation-duration: 480s;
  animation-delay: 8s;
}

.number-slider::-webkit-slider-thumb {
  appearance: none;
  width: 1rem;
  height: 1rem;
  background-color: black;
  border-radius: 16px;
  cursor: pointer;
}

.number-slider::-moz-range-thumb {
  appearance: none;
  width: 1rem;
  height: 1rem;
  background-color: black;
  border-radius: 16px;
  cursor: pointer;
}

.number-value-display {
  position: absolute;
  transform: translateX(-50%);
  margin-bottom: 16px;
  background-color: white;
  color: black;
}

.binary-search-birthday-wrapper {
  display: none;
}

.binary-search-birthday-wrapper.visible {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-items: center;
  gap: 3rem;
}

.binary-search-birthday-buttons-wrapper {
  display: flex;
  flex-direction: row;
  justify-items: center;
  align-items: center;
  gap: 5rem;
}

.binary-search-birthday-button {
  font-size: 1rem;
  padding: 0.75rem 1.25rem;
  border-radius: 0.5rem;
  border: 1px solid gray;
  cursor: pointer;
  transition: background-color 1500ms ease-in;
}

.binary-search-birthday-button:hover {
  background-color: blue;
  color: white;
}

.binary-search-question-paragraph {
  font-size: 1.25rem;
}

.mouse-trail-dot {
  height: 16px;
  width: 16px;
  pointer-events: none;
  z-index: 10000;
  position: fixed;
  filter: blur(10px);
}
/*
Form Feedback Section
*/

.form-feedback {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.form-feedback-field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  width: 100%;
  height: 100%;
}

.first-todo {
  color: #69737c;
}

.second-todo {
  color: black;
}

.third-todo {
  color: blue;
}

.textarea-feedback {
  height: 15rem;
  animation-name: textAreaIsBack;
  animation-duration: 4.5s;
}

.textarea-feedback.shy {
  overflow: hidden;
  width: 10px;
  height: 10px;
  outline: 2px solid black;
  resize: none;
}

.feedback-dialogue {
  color: rgb(250, 128, 114);
  font: 1.25rem;
  user-select: none;
}

.move-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  bottom: 7vh;
  right: 7vw;
  cursor: pointer;

  height: 7rem;
  width: 7rem;
  border-radius: 50%;
  background: black;
  border: 4px solid rgb(118, 118, 118);
  color: white;
  z-index: 9999;
}

.disclaimer-paragraph {
  color: red;
  position: fixed;
  top: 68vh;
  right: 1vw;

  animation-name: disclaimerTextAppearing;
  animation-duration: 5s;
}

.form-submit {
  display: flex;
}

.submit-button {
  width: 100%;
  height: 3rem;
  font-size: 1rem;
  color: white;
  border: none;
  cursor: pointer;
  background-color: #098de6;

  border-radius: 0.5rem;
}

.submit-button:hover {
  background-color: #26a0da;
}

.submit-button:disabled {
  background-color: gray;
  cursor: not-allowed;
}

.textarea-holds-button {
  pointer-events: none;
  position: fixed;
  font-size: 1.25rem;
  background-color: rgb(255, 255, 255);
}

.black-overlay {
  position: fixed;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  gap: 2rem;

  height: 100vh;
  width: 100vw;

  justify-content: center;
  align-items: center;
  background-color: black;
  z-index: 9999;
}

.final-message-01 {
  animation-name: finalTextsFadein;
  animation-duration: 3s;
}

.final-message-02 {
  color: white;
  opacity: 0.1;
}
