@import url("https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css");
@import url("https://fonts.googleapis.com/css?family=Lacquer:400|Oswald:400");

:root {
  --primary-color: #F5C94E;
  --bg-color: #000000;
  --input-bg: #D9D9D9;
  --shadow-color: #ff000073;
  --text-color: #000000;
  --code-bg: #fff;
  --placeholder-color: #00000080;
  --hover-brightness: 1.1;
  --active-scale: 0.98;
  --transition-speed: 0.2s;
}

* {
  -webkit-font-smoothing: antialiased;
  box-sizing: border-box;

}

::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: #000000;
}

::-webkit-scrollbar-thumb {
  background: #f5c94e;
  border: 2px solid #000000;
}

::-webkit-scrollbar-thumb:hover {
  background: #d4ab3c;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  min-height: 100vh;
}

button:focus-visible {
  outline: 2px solid var(--primary-color) !important;
}

a {
  text-decoration: none;
}

input:focus {
  outline: 2px solid var(--primary-color);
}

button {
  font-family: inherit;
}


.clobber {
  background-color: var(--bg-color);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 1rem;
}

.container {
  max-width: 90rem;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  padding: 2rem 1rem;
}

.logo {
  text-align: center;
  margin-bottom: 2rem;
  transition: transform var(--transition-speed) ease;
}

.logo:hover {
  transform: scale(1.05);
}

.logo h1 {
  display: flex;
  align-items: center;
  font-family: "Lacquer", Helvetica;
  color: var(--primary-color);
}

.text-wrapper {
  font-size: 4rem;
}

.text-wrapper-2 {
  font-size: 8rem;
  line-height: 1;
}

.form-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: 100%;
  max-width: 43.75rem;
}

.input-group {
  position: relative;
  width: 100%;
  transition: transform var(--transition-speed) ease;
}

.input-group:hover {
  transform: translateY(-2px);
}

.input-group:active {
  transform: scale(var(--active-scale));
}

.input-field {
  width: 100%;
  height: 4.6875rem;
  background-color: var(--input-bg);
  box-shadow: 0.375rem 0.375rem 0.3125rem 0.0625rem var(--shadow-color);
  padding: 1rem 1rem 1rem 6.25rem;
  font-family: "Oswald", Helvetica;
  font-size: 1.5rem;
  border: none;
  transition: all var(--transition-speed) ease;
}

.input-field:focus {
  outline: 2px solid var(--primary-color);
  box-shadow: 0.5rem 0.5rem 0.375rem 0.0625rem var(--shadow-color);
}

.input-field::placeholder {
  color: var(--placeholder-color);
}

.icon-container {
  position: absolute;
  top: 0;
  height: 100%;
  width: 5rem;
  border-right: 1px solid var(--bg-color);
  display: flex;
  align-items: center;
  justify-content: center;
}

.input-icon {
  width: 3.125rem;
  height: 3.125rem;
  transition: transform var(--transition-speed) ease;
}

.input-group:hover .input-icon {
  transform: scale(1.1);
}

.encode img {
  position: relative;
  top: 0.1rem;
}

.generate-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  width: 100%;
  max-width: 31.25rem;
  height: 4.6875rem;
  margin: 0 auto;
  background-color: var(--primary-color);
  box-shadow: 0.375rem 0.375rem 0.3125rem 0.0625rem var(--shadow-color);
  border: none;
  cursor: pointer;
  font-family: "Oswald", Helvetica;
  font-size: 2rem;
  color: var(--text-color);
  transition: all var(--transition-speed) ease;
  position: relative;
  overflow: hidden;
}

.generate-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transform: translateX(-100%);
  transition: transform var(--transition-speed) ease;
}

.generate-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0.5rem 0.5rem 0.375rem 0.0625rem var(--shadow-color);
  filter: brightness(var(--hover-brightness));
}

.generate-btn:hover::after {
  transform: translateX(0);
}

.generate-btn:active {
  transform: scale(var(--active-scale));
  box-shadow: 0.25rem 0.25rem 0.25rem 0.0625rem var(--shadow-color);
}

.btn-icon {
  width: 3.125rem;
  height: 3.125rem;
  transition: transform var(--transition-speed) ease;
}

.generate-btn:hover .btn-icon {
  transform: scale(0.75);
}

.result-box {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1rem;
}

.output {
  width: 100%;
  max-width: 62.5rem;
  background-color: var(--input-bg);
  border: 1px solid var(--primary-color);
  box-shadow: 0.375rem 0.375rem 0.3125rem 0.0625rem var(--shadow-color);
  transition: transform var(--transition-speed) ease;
}

.output:hover {
  transform: translateY(-2px);
}

.output-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.875rem 1rem;
  border-bottom: 1px solid var(--bg-color);
}

.browsers img {
  transition: transform var(--transition-speed) ease;
}

.browsers .chrome {
  height: 1.8rem;
}

.browsers .firefox {
  height: 2rem;
}

.browsers .chrome:hover, .browsers .firefox:hover {
  transform: scale(1.1);
}

.output-actions {
  display: flex;
  gap: 1rem;
}

.action-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  font-family: "Oswald", Helvetica;
  font-size: 0.875rem;
  color: var(--text-color);
  padding: 0.5rem;
  border-radius: 0.25rem;
  transition: all var(--transition-speed) ease;
}

.action-btn:hover {
  background-color: rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}

.action-btn:active {
  transform: scale(var(--active-scale));
}

.action-btn img {
  width: 1rem;
  height: 1rem;
  transition: transform var(--transition-speed) ease;
}

.action-btn:hover img {
  transform: scale(1.2);
}

.output-content {
  min-height: 4rem;
  overflow-x: auto;
  padding: 1rem;
  background: var(--code-bg) !important;
}

pre, code {
  padding: 0 !important;
  margin: 0 !important;
  height: 100% !important;
  width: 100% !important;
  font-size: 100% !important;
  overflow-y: hidden !important;
}

pre {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hljs {
  all: unset;
  font-family: monospace !important;
  display: block;
  padding: 1em;
}

@media (max-width: 768px) {
  .text-wrapper {
    font-size: 3rem;
  }
  
  .text-wrapper-2 {
    font-size: 6rem;
  }
  
  .input-field {
    font-size: 1.25rem;
  }
  
  .generate-btn {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .text-wrapper {
    font-size: 2rem;
  }
  
  .text-wrapper-2 {
    font-size: 4rem;
  }
  
  .input-field {
    height: 3.5rem;
    padding-left: 4rem;
  }
  
  .input-icon {
    width: 2rem;
    height: 2rem;
  }
  
  .generate-btn {
    height: 3.5rem;
    font-size: 1.25rem;
  }
  
  .btn-icon {
    width: 2rem;
    height: 2rem;
  }

  .icon-container {
    width: 3.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
