@import url('https://fonts.googleapis.com/css2?family=Host+Grotesk:ital,wght@0,800;1,800&display=swap');
body {
  font-family: 'Host Grotesk', 'Segoe UI', Arial, sans-serif;
  margin: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  min-height: 100vh;
  color: #eaeaea;
  box-sizing: border-box;
  transition: background 0.3s, color 0.3s;
}
body::before {
  content: "";
  position: fixed;
  z-index: -1;
  inset: 0;
  background: radial-gradient(circle at bottom, #5a0070 0%, rgb(77, 0, 139) 20%, #000000 75%);
  background-repeat: no-repeat;
  background-size: cover;
}
.light {
    position: fixed;
    width: 0px;
    opacity: .70;
    background-color: black;
    box-shadow: #5f00b8a4 0px 0px 20px 2px;
    opacity: 0;
    top: 100vh;
    bottom: 0px;
    left: 0px;
    right: 0px;
    margin: auto;
}

.x1{
  -webkit-animation: floatUp 4s infinite linear;
  -moz-animation: floatUp 4s infinite linear;
  -o-animation: floatUp 4s infinite linear;
  animation: floatUp 4s infinite linear;
   -webkit-transform: scale(1.0);
   -moz-transform: scale(1.0);
   -o-transform: scale(1.0);
  transform: scale(1.0);
}

.x2{
  -webkit-animation: floatUp 7s infinite linear;
  -moz-animation: floatUp 7s infinite linear;
  -o-animation: floatUp 7s infinite linear;
  animation: floatUp 7s infinite linear;
  -webkit-transform: scale(1.6);
  -moz-transform: scale(1.6);
  -o-transform: scale(1.6);
  transform: scale(1.6);
  left: 15%;
}

.x3{
  -webkit-animation: floatUp 2.5s infinite linear;
  -moz-animation: floatUp 2.5s infinite linear;
  -o-animation: floatUp 2.5s infinite linear;
  animation: floatUp 2.5s infinite linear;
  -webkit-transform: scale(.5);
  -moz-transform: scale(.5);
  -o-transform: scale(.5);
  transform: scale(.5);
  left: -15%;
}

.x4{
  -webkit-animation: floatUp 4.5s infinite linear;
  -moz-animation: floatUp 4.5s infinite linear;
  -o-animation: floatUp 4.5s infinite linear;
  animation: floatUp 4.5s infinite linear;
  -webkit-transform: scale(1.2);
  -moz-transform: scale(1.2);
  -o-transform: scale(1.2);
  transform: scale(1.2);
  left: -34%;
}

.x5{
  -webkit-animation: floatUp 8s infinite linear;
  -moz-animation: floatUp 8s infinite linear;
  -o-animation: floatUp 8s infinite linear;
  animation: floatUp 8s infinite linear;
  -webkit-transform: scale(2.2);
  -moz-transform: scale(2.2);
  -o-transform: scale(2.2);
  transform: scale(2.2);
  left: -57%;
}

.x6{
  -webkit-animation: floatUp 3s infinite linear;
  -moz-animation: floatUp 3s infinite linear;
  -o-animation: floatUp 3s infinite linear;
  animation: floatUp 3s infinite linear;
  -webkit-transform: scale(.8);
  -moz-transform: scale(.8);
  -o-transform: scale(.8);
  transform: scale(.8);
  left: -81%;
}

.x7{
  -webkit-animation: floatUp 5.3s infinite linear;
  -moz-animation: floatUp 5.3s infinite linear;
  -o-animation: floatUp 5.3s infinite linear;
  animation: floatUp 5.3s infinite linear;
  -webkit-transform: scale(3.2);
  -moz-transform: scale(3.2);
  -o-transform: scale(3.2);
  transform: scale(3.2);
  left: 37%;
}

.x8{
  -webkit-animation: floatUp 4.7s infinite linear;
  -moz-animation: floatUp 4.7s infinite linear;
  -o-animation: floatUp 4.7s infinite linear;
  animation: floatUp 4.7s infinite linear;
  -webkit-transform: scale(1.7);
  -moz-transform: scale(1.7);
  -o-transform: scale(1.7);
  transform: scale(1.7);
  left: 62%;
}

.x9{
  -webkit-animation: floatUp 4.1s infinite linear;
  -moz-animation: floatUp 4.1s infinite linear;
  -o-animation: floatUp 4.1s infinite linear;
  animation: floatUp 4.1s infinite linear;
  -webkit-transform: scale(0.9);
  -moz-transform: scale(0.9);
  -o-transform: scale(0.9);
  transform: scale(0.9);
  left: 85%;
}

@-webkit-keyframes floatUp{
  0%{top: 100vh; opacity: 0;}
  25%{opacity: 1;}
  50%{top: 0vh; opacity: .8;}
  75%{opacity: 1;}
  100%{top: -100vh; opacity: 0;}
}
@-moz-keyframes floatUp{
  0%{top: 100vh; opacity: 0;}
  25%{opacity: 1;}
  50%{top: 0vh; opacity: .8;}
  75%{opacity: 1;}
  100%{top: -100vh; opacity: 0;}
}
@-o-keyframes floatUp{
  0%{top: 100vh; opacity: 0;}
  25%{opacity: 1;}
  50%{top: 0vh; opacity: .8;}
  75%{opacity: 1;}
  100%{top: -100vh; opacity: 0;}
}
@keyframes floatUp{
  0%{top: 100vh; opacity: 0;}
  25%{opacity: 1;}
  50%{top: 0vh; opacity: .8;}
  75%{opacity: 1;}
  100%{top: -100vh; opacity: 0;}
}
.content {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  min-height: 90vh;
  width: 100%;
  gap: 15px;
}
.left-info {
  max-width: 500px;
  text-align: center;
  justify-content: center;
  align-items: center;
  padding: 0 150px;
}
h1 {
  font-size: 12.5em;
  font-family: 'Host Grotesk', 'Segoe UI', Arial, sans-serif;
  background-image: linear-gradient(to bottom, #3c008a, #68208a, #922525);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  margin: 0;
}
  @keyframes focus-in-expand {
  0% { letter-spacing: -0.5em; filter: blur(12px); opacity: 0; }
  100% { filter: blur(0px); opacity: 1;}
}

.focus-in-expand-normal {
  animation: focus-in-expand 0.8s cubic-bezier(0.250, 0.460, 0.450, 0.940) 0s 1 normal both;
}
.desc {
  color: #eaeaea;
  text-shadow: #000000 1px 1px 5px;
  opacity: 0.85;
  font-size: 1.2rem;
  letter-spacing: 1.5px;
}
  @keyframes text-focus-in {
  0% {
    filter: blur(12px);
    opacity: 0;
  }
  100% {
    filter: blur(0px);
    opacity: 1;
  }
}

.text-focus-in-normal {
  animation: text-focus-in 1s cubic-bezier(0.550, 0.085, 0.680, 0.530) 0s 1 normal both;
}

/*Input Container*/
.container {
  display: flex;
  flex-direction: column;
  scroll-behavior: smooth;
  width: 100%;
  max-width: 950px;
  height: 850px;
  min-width: 0;
  box-sizing: border-box;
  margin: 50px;
  padding: 40px 25px;
  backdrop-filter: blur(25px) saturate(200%);
    -webkit-backdrop-filter: blur(25px) saturate(200%);
    --color: rgba(42, 0, 77, 0.123);
    background-color: #000000c7;
    background-image: radial-gradient(rgba(45, 0, 87, 0.411) 10%, transparent 1%);
    background-size: 10px 10px;
    border-radius: 1.5rem;
    border: 2px solid rgba(140, 0, 255, 0.322);
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.849);
  transition: background 0.3s, color 0.3s;
  animation: slide-in-blurred-bottom 0.5s cubic-bezier(0.230, 1.000, 0.320, 1.000) 0s 1 normal both;
}
@keyframes slide-in-blurred-bottom {
  0% {
    transform: translateY(1000px) scaleY(2.5) scaleX(0.2);
    transform-origin: 50% 100%;
    filter: blur(40px);
    opacity: 0;
  }
  100% {
    transform: translateY(0) scaleY(1) scaleX(1);
    transform-origin: 50% 50%;
    filter: blur(0);
    opacity: 1;
  }
}

.tweet-card {
  background: #15181c;
  border: 1px solid #22272a;
  padding: 16px 16px 12px 16px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.18);
  color: #e7e9ea;
  position: relative;
  transition: background 0.3s, color 0.3s;
  font-family: 'Segoe UI', Arial, sans-serif;
  max-width: 100%;
}

/*opacity layer for background darkness*/
.bg-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.3); /* initial darkness */
  pointer-events: none;
  z-index: 0;
  transition: background-color 0.3s ease;
}
#tweetCard > *:not(.bg-overlay) {
  position: relative;
  z-index: 1;
}
#tweetCard {
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.top-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr; /* two equal-width columns */
  gap: 16px;
  margin-bottom: 24px;
}
input::placeholder,
textarea::placeholder,
.file-btn {
  font-family: 'Segoe UI', sans-serif;
  font-style: italic;
  color: #aaa;
  opacity: 1;
  letter-spacing: 0.3px;
}
form input, form textarea, form button {
  display: block;
  width: 100%;
  padding: 15px;
  font-size: 1em;
  border-radius: 10px;
  border: 1px solid #18002c;
  box-sizing: border-box;
  background: #000000;
  color: #eaeaea;
  outline: none;
  transition: background 0.3s, color 0.3s, border 0.3s;
}
form textarea {
  resize: none;
  line-height: 1.5;
  scrollbar-width: none;          /* Firefox */
  -ms-overflow-style: none;       /* Internet Explorer 10+ */
}
textarea::-webkit-scrollbar {
  display: none;                  /* Chrome, Safari, Opera */
}
.file-btn {
  display: inline-block;
  padding: 15px;
  border: 1px solid #18002c;
  border-radius: 8px;
  background: #000000;
  cursor: pointer;
  position: relative;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.file-btn:hover {
  border-color: #8b5cf6;
  background: rgb(18, 0, 34);
}
.file-btn input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

/*control panel styles*/
.control-panel {
  margin-top: 25px;
  padding: 15px;
  border-radius: 1rem;
  border: 1px solid rgba(139, 92, 246, 0.3);
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  color: #eaeaea;
}
.control-panel label {
  display: flex;
  flex-direction: column;
  font-size: 0.95rem;
  gap: 6px;
}
.control-panel input[type="text"],
.control-panel input[type="color"],
.control-panel input[type="file"],
.control-panel input[type="range"] {
  background: #000;
  color: #eaeaea;
  border: 1px solid #333;
  border-radius: 10px;
  padding: 10px;
  font-family: inherit;
  font-size: 14px;
}
.control-panel input[type="checkbox"] {
  align-self: flex-start;
  transform: scale(1.2);
}

.tweet-card img {
  max-width: 100%;
  display: block;
}
.tweet-card h2 {
  font-size: 1.1em;
  margin: 0 0 10px;
  color: #1da1f2;
  font-weight: 600;
}
.tweet-card p {
  font-size: 1.08em;
  color: inherit;
  margin: 0 0 10px;
  word-break: break-word;
}
.tweet-card .author {
  font-size: 0.92em;
  color: #8b98a5;
  text-align: right;
  margin-top: 10px;
}
form button, #downloadBtn {
  background: #000000be;
  color: #ffffff;
  border: none;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 8px;
}
form button:hover, #downloadBtn:hover {
  background: #000000;
}
#downloadBtn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.7em 1em;
  width: 100%;
  border-radius: 15px;
  margin-bottom: 0;
  margin-top: 15px;
  font-size: 1em;
}
#downloadBtn span {
  margin-left: 0.3em;
  transition: opacity 0.3s ease-in-out;
}
#downloadBtn svg {
  fill: rgb(126, 126, 126);
  transition: transform 0.3s ease-in-out;
}
#downloadBtn:hover .svg-wrapper {
  transform: scale(1.25);
  transition: 0.5s linear;
}
#downloadBtn:hover svg {
  transform: translateX(1.5em) scale(1.5);
  fill: #ffffff;
}
#downloadBtn:hover span {
  opacity: 0;
}
#downloadBtn:active {
  transform: scale(0.95);
}

.tweet-author-badge {
  display: flex;
  align-items: center;
}

/* Verified Toggle */
:root {
    --transition: all 0.3s ease;
}

.verified-section {
    background: #000000;
    border: 1px solid #18002c;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
    transition: var(--transition);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Segoe UI', sans-serif;
    font-style: italic;
}

.verified-section:hover {
    border-color: #8b5cf6;
    background: rgb(18, 0, 34);
}

.verified-section.active {
    border-color: #8b5cf6;
  background: rgb(18, 0, 34);
}

.toggle-switch {
    width: 56px;
    height: 28px;
    background: rgb(18, 0, 34);
    border-radius: 14px;
    position: relative;
    cursor: pointer;
    border: 1px solid #8b5cf6;
    flex-shrink: 0;
    transition: all 0.15s ease-out; /* Faster transition */
}

.toggle-knob {
    width: 24px;
    height: 24px;
    background: white;
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 2px;
    will-change: transform;
    transition: transform 0.15s ease-out; /* Faster and smoother */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.toggle-switch.active {
    border-color: #f6b85c;
    background: rgb(34, 31, 0);
}

.toggle-switch.active .toggle-knob {
    transform: translateX(28px);
}

/* Remove hover effect that might cause delay */
.toggle-switch:hover {
    opacity: 1;
}

.verified-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.verified-text {
    font-weight: 500;
    font-size: 1em;
    color: #fff;
}

.verified-subtext {
    font-size: 0.85em;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 4px;
}

.verified-badge {
    display: inline-block;
    vertical-align: middle;
    margin-left: 4px;
    width: 18px;
    height: 18px;
    transition: opacity 0.3s ease;
}

.bg-picker {
  display: flex;
  gap: 8px;
  align-items: center;
  border: 0;
  padding: 0;
  margin: 0;
}
.bg-picker input[type="color"] {
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  background: none;
  padding: 0;
}
.tweet-header {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}
.tweet-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #22272a;
  background: #23272f;
  flex-shrink: 0;
}
.tweet-user {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 2px;
}
.tweet-author {
  font-weight: 700;
  font-size: 1.08em;
  color: inherit;
  margin-right: 4px;
}
.tweet-username {
  color: #71767b;
  font-size: 1em;
}
.tweet-content {
  font-size: 1.15em;
  color: inherit;
  word-break: break-word;
  white-space: pre-wrap;
}
.tweet-footer {
  display: flex;
  align-items: center;
  gap: 1px;
  color: #71767b;
  font-size: 0.95em;
  margin-top: 15px;
}
/*Responsive Design*/
@media (max-width: 768px) {
  body {
    min-height: 100vh;
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
    background-size: cover;
  }
  .content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0;
    gap: 0;
  }
  .left-info {
    max-width: 50vw;
    width: 100%;
    text-align: center;
    padding: 4vw;
    align-items: center;
    justify-content: center;
  }

  h1 {
    font-size: 4em;
    opacity: 0;
    margin: 0;
  }

  .desc {
    font-size: inherit;
    opacity: 0.9;
    word-break: break-word;
  }

  .container {
    max-width: 100%;
    display: flex;
    box-sizing: border-box;
    min-width: 0;
    box-shadow: 0 2px 16px rgba(0,0,0,0.18);
    margin: 0;
  }

  .tweet-card {
    margin-top: 18px;
    font-size: 1em;
    max-width: 100%;
  }

  .tweet-header {
    gap: 10px;
  }

  .tweet-avatar {
    width: 38px;
    height: 38px;
  }

  .tweet-content {
    font-size: 1em;
  }

  .tweet-footer {
    font-size: 0.92em;
    margin-top: 10px;
  }

  form input,
  form textarea,
  form button {
    font-size: 1em;
    padding: 8px;
    border-radius: 7px;
  }

  .char-counter {
    font-size: 0.98em;
    margin-bottom: 8px;
  }

  .bg-picker {
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
  }
}