@import url(https://fonts.googleapis.com/css?family=Anonymous+Pro);



input[type="file"] {
  outline: none;
  padding: 4px;
  margin: -4px;
}

input[type="file"]:focus-within::file-selector-button,
input[type="file"]:focus::file-selector-button {
  outline: 2px solid #0964b0;
  outline-offset: 2px;
}

input[type="file"]::before {
  top: 16px;
}

input[type="file"]::after {
  top: 14px;
}

/* ------- From Step 2 ------- */

input[type="file"] {
  position: relative;
}

input[type="file"]::file-selector-button {
  width: 136px;
  color: transparent;
}

/* Faked label styles and icon */
input[type="file"]::before {
  position: absolute;
  pointer-events: none;
  /*   top: 11px; */
  left: 40px;
  color: #0964b0;
  content: "Upload File";
}

input[type="file"]::after {
  position: absolute;
  pointer-events: none;
  /*   top: 10px; */
  left: 16px;
  height: 20px;
  width: 20px;
  content: "";
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%230964B0'%3E%3Cpath d='M18 15v3H6v-3H4v3c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-3h-2zM7 9l1.41 1.41L11 7.83V16h2V7.83l2.59 2.58L17 9l-5-5-5 5z'/%3E%3C/svg%3E");
}

/* ------- From Step 1 ------- */

/* file upload button */
input[type="file"]::file-selector-button {
  border-radius: 4px;
  padding: 0 16px;
  height: 40px;
  cursor: pointer;
  background-color: white;
  border: 1px solid rgba(0, 0, 0, 0.16);
  box-shadow: 0px 1px 0px rgba(0, 0, 0, 0.05);
  margin-right: 16px;
  transition: background-color 200ms;
}

/* file upload button hover state */
input[type="file"]::file-selector-button:hover {
  background-color: #f3f4f6;
}

/* file upload button active state */
input[type="file"]::file-selector-button:active {
  background-color: #e5e7eb;
}

/* ------------------------ */





/* default boilerplate to center input */
body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: #CCCCCC;
  /* Lighter shade of black */
}

h1 {
  font-family: "Big Shoulders Stencil Display", sans-serif;
  font-optical-sizing: auto;
  font-size: 4rem;
}

.frm {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  width: 75vw;
}

#image-upload {
  color: black;
    
}
.container {
  display: inline-block;
}

.typed-out {
  overflow: hidden;
    border-right: .1em solid black;
    white-space: nowrap;
    font-size: 1.6rem;
    width: 0;
    animation:
      typing 1s steps(20, end) forwards;
  padding: 10px;
}

@keyframes typing {
  from {
    width: 0
  }

  to {
    width: 90%
  }
}

/* The typewriter cursor effect */
@keyframes blink-caret {

  from,
  to {
    border-color: transparent
  }

  50% {
    border-color: orange
  }
}

.upload-btn {
  background-color: #8e8b8b;
  /* Lighter shade of gray */
  border: none;
  /* No border */
  color: black;
  /* Lighter shade of black text */
  padding: 12px 32px;
  /* Padding */
  text-align: center;
  /* Center text */
  text-decoration: none;
  /* No underline */
  display: inline-block;
  font-size: 16px;
  margin: 4px 2px;
  cursor: pointer;
  /* Cursor on hover */
  border-radius: 8px;
  /* Rounded corners */
  border: 2px solid black;
  /* Border with width 10px */
  border-radius: 10px;
  /* Rounded corners */
  overflow: hidden;
}

.upload-btn:hover {
  background-color: #BEBEBE;
  /* Slightly darker gray on hover */
}

.upload-btn:active {
  background-color: #A9A9A9;
  /* Darker gray when clicked */
}

.upload-btn:focus {
  outline: none;
  /* No outline on focus */
}

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

#image-container {
  order: 1;

  border: 2px solid black;
  /* Border with width 10px */
  border-radius: 10px;
  /* Rounded corners */
  overflow: hidden;
}

#result {
  order: 2;

  text-align: center;
  padding: 10px;
  font-size: 20px;
}

.line-1 {
  position: relative;
  top: 50%;
  width: 24em;
  margin: 0 auto;
  border-right: 2px solid rgba(255, 255, 255, .75);
  font-size: 180%;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  transform: translateY(-50%);
}

/* Animation */
.anim-typewriter {
  animation: typewriter 4s steps(44) 1s 1 normal both,
    blinkTextCursor 500ms steps(44) infinite normal;
}

@keyframes typewriter {
  from {
    width: 0;
  }

  to {
    width: 24em;
  }
}

@keyframes blinkTextCursor {
  from {
    border-right-color: rgba(255, 255, 255, .75);
  }

  to {
    border-right-color: transparent;
  }
}