html,
body {
    margin: 0;
}

@font-face {
  font-family: "Geist";
  src: url("/fonts/Geist-VariableFont_wght.woff2") format("woff2 supports variations"),
       url("/fonts/Geist-VariableFont_wght.woff2") format("woff2-variations");
  font-weight: 100 1000;
}

@property --bg { syntax: "<color>"; inherits: true; initial-value: #F1F1F1; }
@property --text { syntax: "<color>"; inherits: true; initial-value: #1C1E21; }
@property --muted { syntax: "<color>"; inherits: true; initial-value: #525252; }
@property --surface { syntax: "<color>"; inherits: true; initial-value: #F9FAFB; }
@property --border { syntax: "<color>"; inherits: true; initial-value: #e4e6e9; }
@property --drop-border { syntax: "<color>"; inherits: true; initial-value: #C4CCD1; }
@property --drop-hover { syntax: "<color>"; inherits: true; initial-value: #DFE3E9; }
@property --input-hover { syntax: "<color>"; inherits: true; initial-value: #f0f8ff; }
@property --preview-chrome { syntax: "<color>"; inherits: true; initial-value: #dde1e7; }
@property --tab { syntax: "<color>"; inherits: true; initial-value: #ffffff; }
@property --code { syntax: "<color>"; inherits: true; initial-value: #DFE3E9; }
@property --error { syntax: "<color>"; inherits: true; initial-value: #ffe6ef; }
@property --back { syntax: "<color>"; inherits: true; initial-value: #333333; }
@property --btn { syntax: "<color>"; inherits: true; initial-value: #0232fd; }
@property --btn-hover { syntax: "<color>"; inherits: true; initial-value: #0124b5; }
@property --btn-text { syntax: "<color>"; inherits: true; initial-value: #ffffff; }
@property --logo-bg { syntax: "<color>"; inherits: true; initial-value: #1C1E21; }
@property --logo-fg { syntax: "<color>"; inherits: true; initial-value: #F1F1F1; }

:root {
  --font-fallback: Helvetica, Arial, sans-serif;
  color-scheme: light;
  --bg: #F1F1F1;
  --text: #1C1E21;
  --muted: #525252;
  --surface: #F9FAFB;
  --border: #e4e6e9;
  --drop-border: #C4CCD1;
  --drop-hover: #DFE3E9;
  --input-hover: #f0f8ff;
  --preview-chrome: #dde1e7;
  --tab: #ffffff;
  --code: #DFE3E9;
  --error: #ffe6ef;
  --back: #333333;
  --btn: #0232fd;
  --btn-hover: #0124b5;
  --btn-text: #ffffff;
  --shadow: 0 2px 1px rgba(0, 0, 0, 0.08), 0 4px 2px rgba(0, 0, 0, 0.08), 0 8px 4px rgba(0, 0, 0, 0.08), 0 16px 8px rgba(0, 0, 0, 0.08), 0 32px 16px rgba(0, 0, 0, 0.08);
  --logo-bg: #1C1E21;
  --logo-fg: #F1F1F1;
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #1C1E21;
  --text: #F1F1F1;
  --muted: #b8bcc0;
  --surface: #2a2d31;
  --border: #3a3f45;
  --drop-border: #5c646c;
  --drop-hover: #3a3f45;
  --input-hover: #353a40;
  --preview-chrome: #2f3338;
  --tab: #3a3f45;
  --code: #2a2d31;
  --error: #4a3036;
  --back: #F1F1F1;
  --btn: #3d62ff;
  --btn-hover: #5b7cff;
  --btn-text: #fff;
  --logo-bg: #F1F1F1;
  --logo-fg: #1C1E21;
}

@media (prefers-reduced-motion: no-preference) {
  html.theme-transition {
    transition:
      --bg 0.18s ease,
      --text 0.2s ease,
      --muted 0.2s ease,
      --surface 0.18s ease,
      --border 0.18s ease,
      --drop-border 0.18s ease,
      --drop-hover 0.18s ease,
      --input-hover 0.18s ease,
      --preview-chrome 0.18s ease,
      --tab 0.18s ease,
      --code 0.18s ease,
      --error 0.18s ease,
      --back 0.2s ease,
      --btn 0.18s ease,
      --btn-hover 0.18s ease,
      --btn-text 0.18s ease,
      --logo-bg 0.18s ease,
      --logo-fg 0.18s ease;
  }
}

body {
    font-family: "Geist", var(--font-fallback);
	-webkit-font-smoothing: antialiased;
    font-size: 16px;
    line-height: 22px;
    color: var(--text);
    background-color: var(--bg);
}

a,
a:link {
    color: var(--text);
    text-decoration: none;
}

a:hover,
a:visited {
    color: var(--muted);
    text-decoration: underline;
}

p {
    font-size: 16px;
	font-weight: 400;
    line-height: 24px;
    color: var(--muted);
}

.intro {
    font-size: 18px;
    margin-bottom: 24px;
}

.legal p {
    font-size: 18px;
    line-height: 28px;
    color: var(--muted);
}

.legal li {
    font-size: 18px;
    line-height: 28px;
    color: var(--muted);
}

h1 {
    font-size: 48px;
    line-height: 52px;
    font-weight: 800;
    margin-bottom: 12px;
	margin-top: auto;
}

.legal h1 {
    font-size: 48px;
    line-height: 52px;
    font-weight: 800;
    text-align: left;
}

h2 {
    font-size: 18px;
    font-weight: 800;
}

.legal h2 {
    font-size: 18px;
    line-height: 28px;
    font-weight: 800;
}

h3 {
    font-size: 14px;
    font-weight: 400;
}

label {
    display: none;
}


/* Header */

header {
    padding: 32px;
	max-width: 520px;
	margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo{
    height: 80px;
    border-radius: 24px;
}

.theme-toggle {
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 12px;
    background-color: transparent;
    color: var(--text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 40px;
    transition: transform 0.2s ease-out;
}

.theme-toggle:hover {
    background-color: transparent;
}

.theme-toggle:active {
    transform: scale(.92);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
    display: none;
}

[data-theme="light"] .theme-toggle .icon-moon,
:root:not([data-theme]) .theme-toggle .icon-moon {
    display: block;
}

[data-theme="dark"] .theme-toggle .icon-sun {
    display: block;
}


/* Main */

.main {
    max-width: 520px;
    position: relative;
    display: block;
    padding: 0 32px;
    margin: 0 auto;
}

#form {
    height: 240px;
	width:100%;
	text-align: ;
	padding: 52px 0;
    display: table;
	background-color: var(--surface);
	border: 1px solid var(--border);
	border-radius: 24px;
	box-shadow: var(--shadow);
}

#file_input {
    width: 200px;
    height: 240px;
    border-radius: 8px;
    display: block;
    position: relative;
    top: -40px;
}

#file_input:hover {
    cursor: pointer;
    background-color: var(--input-hover);
}

#file_input:focus {
    background-color: var(--input-hover);
}

.empty_state {
    width: 170px;
	font-size:14px;
    text-align: center;
    display: none;
    position: relative;
	margin: 0 auto;
	margin-top: -200px;
    z-index: 77;
    pointer-events: none;
}
.empty_state_mobile {
    width: 170px;
	font-size:14px;
    text-align: center;
    display: block;
    position: relative;
	margin: 0 auto;
	margin-top: -200px;
    z-index: 77;
    pointer-events: none;
}

@media only screen and (min-width: 1024px) {
	.empty_state_mobile {
		display:none;
	}
	.empty_state {
		display: block;
	}	
}


.icon {
    width: 36px;
    font-size: 36px;
    margin: 8px auto;
}

#droptarget {
    width: 200px;
    height: 200px;
	margin: 0 auto;
    border: 1px dashed var(--drop-border);
    border-radius: 8px;
    display: block;
    position: relative;
    overflow: hidden;   
}

.error-messages {
    background-color: var(--error);
    border-radius: 4px;
    font-size: 15px;
    font-weight: 400;
    padding: 24px;
    margin: 0 auto;
	left:2px;
    width: 152px;
    height: 152px;
    margin-top: -292px;
    z-index: 99;
    position: relative;
    text-align: center;
	left:1px;
	margin-bottom: 132px;
}

a#back {
    display: block;
    text-decoration: underline;
    color: var(--back);
    margin: 16px 0 0 0;
    position: relative;
    text-align: center;
}

.results {
    margin-top: 160px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.results h2 {
    margin: 0;
}

img#file_preview {
    width: 200px;
    height: 200px;
    position: relative;
    z-index: 88;
    pointer-events: none;
    margin: 0 auto;
	margin: 0 auto;
    margin-top: 0px;
    display: block;
    margin-top: -292px;
    border-radius: 8px;
    background-color: var(--surface);
	left:1px;
}

.preview {
    padding: 15px 16px 0px 16px;
    border-radius: 16px 16px 0 0;
    background-color: var(--preview-chrome);
    margin-bottom: 24px;
}

.tab {
    background-color: var(--tab);
    display: block;
    border-radius: 8px 8px 0 0;
    padding: 1px 0px 0px 0px;
    height: 48px;
}

.placeholder {
    position: relative;
    display: block;
    float: left;
    width: 24px;
    height: 24px;
    margin: 12px 10px 0 10px;
    z-index: 11;
    pointer-events: none;
}

.tab h3 {
    position: relative;
    display: block;
}

.guidelines {
    max-width: 200px;
    display: block;
    margin: 0 auto;
    margin-top: 16px;
    text-align: center;
    color: var(--muted);
    font-size: 13px;
    line-height: 18px;
}

#submit_button {
    display: none;
}

.button_primary {
    margin: 0 auto;
    display: table;
    background-color: var(--btn);
    border: none;
    border-radius: 24px;
    color: var(--btn-text);
    padding: 24px 32px;
    text-align: center;
    text-decoration: none;
    font-size: 15px;
    cursor: pointer;
    max-width: 295px;
    box-shadow: var(--shadow);
	transition: transform 0.2s ease-out;
}

.button_primary:hover {
    background-color: var(--btn-hover);
    text-decoration: none;
}

.button_primary:active {
    transform: scale(.92);
}

/* Code snipet */

.code {
    margin-top: 52px;
}

.code ol {
    color: var(--muted);
}

.code li {
    padding: 4px 0;
}

pre {
    background-color: var(--code);
    color: var(--text);
    padding: 16px 16px 16px 16px;
    border-radius: 24px;
    font-family: "Courier New", Courier, monospace;
    white-space: pre-wrap;
}

pre .button_secondary {
    position: relative;
    float: right;
}

.button_secondary {
    background-color: var(--code);
    border: none;
    border-radius: 12px;
    color: var(--text);
    padding: 8px;
    text-align: center;
    text-decoration: none;
    font-size: 18px;
    cursor: pointer;
    width: 40px;
    height: 40px;
	transition: transform 0.2s ease-out;
}

.button_secondary:hover {
    background-color: var(--surface);
}

.button_secondary:active {
    transform: scale(.92);
}

/* Buymeacoffee */

.buymeacoffee {
    margin-top: 52px;
    text-align: center;
    color: var(--muted);
}

/* FAQ section */
.faq-container {
    max-width: 520px;
    margin: 40px auto;
    padding: 32px;
}

.faq-container h2 {
    font-size: 32px;
    line-height: normal;
    font-weight: 800;
}
.faq-list {
    margin-top:24px;
}

.faq-item {
    background-color: var(--surface);
    border-radius: 20px;
    margin-bottom: 12px;
    border: 1px solid var(--border);
    overflow: hidden;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    font-weight: 600;
}

.faq-question:hover {
    
}

.faq-question.active {
    
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s, padding 0.2s;
	transition-timing-function: cubic-bezier(0.86,0,0.07,1);
}

.faq-answer.active {
    padding: 0 20px 20px;
    max-height: 1024px; /* Adjust as needed for largest content */
}

.faq-answer p {
    color: var(--muted);
	margin: 0;
}

.chevron {
	flex: 0 0 20px;
    width: 20px;
    height: 20px;
    transition: transform 0.2s;
	transition-timing-function: cubic-bezier(0.86,0,0.07,1);
}

.chevron.active {
    transform: rotate(180deg);
}




/* 404 */

.not-found {
    max-width: 520px;
    position: relative;
    display: block;
    padding: 0 32px 48px 32px;
    margin: 0 auto;
}

a.button_primary,
a.button_primary:link,
a.button_primary:visited,
a.button_primary:hover {
    color: var(--btn-text);
    text-decoration: none;
}

.not-found .button_primary {
    margin: 8px 0 0 0;
    display: inline-block;
}


/* Terms & Privacy pages */

.legal {
    max-width: 520px;
    position: relative;
    display: block;
    padding: 0 32px;
    margin: 0 auto;
}


/* Footer */

footer {
    max-width: 520px;
    color: var(--muted);
    position: relative;
    display: block;
    padding: 0 32px 72px 32px;
    margin: 0 auto;
}


/*

  .     '     ,
    _________
   /_|_____|_\ 
   '. \   / .'
     '.\ /.'
       '.'

Karim Dahou - Product Designer

*/
