* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  

:root {
    --bg-gradient:radial-gradient(circle, rgba(31,31,31,1) 5%, rgba(0,0,0,0.9607492655265231) 100%);;
    --surface: #1d1d1d;
    --accent: #4f46e5;
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --border: 1px solid rgba(255, 255, 255, 0.1);
    --font-mono: 'Fira Code', monospace;
    --font-sans: 'Inter', sans-serif;
  }
  
  body {
    background: rgb(31,31,31);
    background: var(--bg-gradient);
    color: var(--text-primary);
    min-height: 100vh;
  }
  
  .headerContainer {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    padding: 4rem 2rem 3rem;
    position: relative;
  }
  
  .title {
    position: relative;
    font-family: var( --font-sans);
    padding: 0 2rem;
    font-weight: bold;
    color: var(--accent);
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
  }
  
  /* Corner icons styling */
  .icon-top, .icon-bottom {
    position: absolute;
    font-size: 1.4rem;
    color: var(--accent);
    opacity: 0.8;
  }
  
  .icon-top {
    top: -15px;
    left: -25px;
  }
  
  .icon-bottom {
    bottom: -15px;
    right: -25px;
  }
  
  .title::before,
  .title::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    border: 2px solid var(--accent);
  }
  
  .title::before {
    top: -8px;
    left: -30px;
    border-right: none;
    border-bottom: none;
  }
  
  .title::after {
    bottom: -8px;
    right: -30px;
    border-left: none;
    border-top: none;
  }
  
  .icon-top, .icon-bottom {
    font-size: 1.2rem;
    color: var(--text-secondary);
    opacity: 0.8;
  }
  
  .mainContainer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
  }
  
  .markedInput, .markedOutput {
    background: var(--surface);
    border: var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    height: 70vh;
    min-height: 500px;
    position: relative;
    transition: transform 0.2s ease;
    animation: Entrance .5s ease-in-out;
  }
  
  /* .markedOutput{
    animation: Entrance 1s ease-in;
  } */
  .markedInput:hover, .markedOutput:hover {
    transform: translateY(-2px);
  }
  
  .markedInputText {
    width: 100%;
    height: 100%;
    background: none;
    border: none;
    resize: none;
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 0.95rem;
    line-height: 1.5;
    padding: 1rem;
    transition: 1s ease-in-out;
   
  }
  
  .markedInputText:focus {
    outline: none;
  }
  
  .markedInputText::placeholder {
    color: var(--text-secondary);
    opacity: 0.6;
  }
  
  .OutputSection {
    height: 100%;
    overflow-y: auto;
    padding: 1rem;
    overflow-wrap: break-word;
    white-space: pre-wrap;
    overflow-y: auto;
  }
  
  /* Markdown Content Styling */
  .OutputSection h1 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(45deg, #fff, #a5b4fc);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
  
  .OutputSection h2 {
    font-size: 1.5rem;
    margin: 1.2rem 0;
    color: var(--accent);
  }
  
  .OutputSection code {
    font-family: var(--font-mono);
    background: rgba(79, 70, 229, 0.1);
    padding: 0.2em 0.4em;
    border-radius: 4px;
    color: #818cf8;
  }
  
  .OutputSection pre {
    background: var(--bg);
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
    overflow-x: auto;
  }
  
  .OutputSection blockquote {
    border-left: 3px solid var(--accent);
    padding-left: 1rem;
    margin: 1rem 0;
    color: var(--text-secondary);
  }
  
  .OutputSection a {
    color: var(--accent);
    text-decoration: none;
    position: relative;
  }
  
  .OutputSection a:hover {
    text-decoration: underline;
  }
  
  @media (max-width: 768px) {
    .mainContainer {
      grid-template-columns: 1fr;
      padding: 0 1rem;
    }
    
    .title {
      font-size: 1.8rem;
    }
    
    .markedInput, .markedOutput {
      height: 400px;
    }
  }

  

/* Animations */
@keyframes Entrance {
    from {
        /* opacity: 0; */
        /* transform: translateY(20px); */
        transform: scale(0);
    }
    to {
        /* opacity: 1; */
        /* transform: translateY(0); */
        transform: scale(1);
    }
}