/* ========= 
    color 
============*/
:root {
    --neutral-0: hsl(0, 0%, 100%);
    --neutral-300: hsl(252, 6%, 83%);
    --neutral-500: hsl(245, 15%, 58%);
    --neutral-700: hsl(245, 19%, 35%);
    --neutral-900: hsl(248, 70%, 10%);
    --neutral-900-transparente: rgba(42, 39, 61, 0.4);
    --neutral-700-transparente: rgba(89, 83, 128, 0.4);
    --orange-500: hsl(7, 88%, 67%);
    --orange-700: hsl(7, 71%, 60%);
    --bg-image: url('./assets/images/background-mobile.png');
}
.attribution { font-size: 11px; text-align: center;margin-top: 15px;margin-bottom: 55px; }
.attribution a { color: hsl(228, 45%, 44%); }
/* ===========
    font-family
============== */
@font-face {
    font-family: Inconsolata;
    src: url('./assets/fonts/Inconsolata-VariableFont_wdth\,wght.ttf');
}
/* =============
    default
================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
/* ============
    layout 
=============== */
html {
    overflow: auto;
    height: 100%;
}
html, body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    position: relative;
    font-family: Inconsolata;
    color: var(--neutral-0);
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: var(--bg-image);
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    z-index: -1;
    min-height: 100%;
}
label {
    display: block;
    font-size: 20px;
    width: 400px;
    margin-bottom: 10px;
}
input {
    cursor: pointer;
    width: 100%;
    max-width: 400px;
    height: 45px;
    border-radius: 10px;
    background: inherit;
    border: 1px solid var(--neutral-500);
    margin-bottom: 20px;
    color: white;
    text-indent: 12px;
    background-color: var(--neutral-900-transparente);
}
input:hover {
    background: var(--neutral-700-transparente);
}
input:focus {
    border-color: var(--neutral-0);
}
.hidden-file-input {
  display: none;
}
.custom-file-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  width: 85%;
  height: 100px;
  border: 2px dashed;
  color: var(--neutral-500);
  border-radius: 6px;
  cursor: pointer;
}
.file-input {
  display: none;
}
.upload-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 400px;
  padding: 18px 0;
  border: 2px dashed var(--neutral-500);
  border-radius: 10px;
  background: var(--neutral-900-transparente);
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.upload-area:hover {
    background: var(--neutral-700-transparente);
}
.upload-area:hover .upload-text {
    color: var(--neutral-300);
}
.upload-text {
  font-size: 16px;
  color: var(--neutral-500);
  margin-bottom: 8px;
}
.email {
    color: var(--orange-700);
}
.text-gradient {
    background: linear-gradient(to right,hsl(7, 86%, 67%), hsl(0, 0%, 100%));
    background-clip: text;
    display: inline-block;
    color: transparent;
}
.text-logo-mark {
    font-size: 20px;
    font-weight: 700;
}
.upload-icon {
    border: 1px solid var(--neutral-500);
    padding: 8px;
    border-radius: 10px;
    background: var(--neutral-700);
    margin-bottom: 12px;
}
.icon-info {
    fill: var(--orange-700);
    stroke: var(--orange-700);
}
.img-selected {
    width: 55px;
    height: 55px;
    border-radius: 12px;
    border: 1px solid var(--neutral-300);
}
.date {
    text-indent: 35px;
    line-height: 1px;
}
.btn-input {
    cursor: pointer;
    border: none;
    width: 95px;
    padding: 6px 8px;
    border-radius: 5px;
    font-size: 12px;
    background-color: var(--neutral-700-transparente);
    color: var(--neutral-300);
    font-weight: 700;
}
label.btn-input {
    display: inline-flex;
    align-items: center;
    margin: 0;
    vertical-align: middle;
}
.text-decorate {
    text-decoration: underline;
    text-underline-offset: 2px;
}
.btn-input:hover {
    text-decoration: underline;
}
#preview-container {
    display: none;
}
.preview-container img {
  max-width: 100%;
  max-height: 200px;
  border-radius: 8px;
}
.button-text {
    font-size: 15px;
}
.btn-genere {
    cursor: pointer;
    width: 100%;
    max-width: 400px;
    height: 45px;
    border-radius: 8px;
    border: none;
    background-color: var(--orange-700);
    color: var(--neutral-900);
    font-weight: bold;
    z-index: 20;
}
.btn-genere:focus {
    border-color: var(--neutral-0);
}
.btn-genere:hover {
    border: 1px solid var(--neutral-500);
}
.ticket {
    display: grid;
    grid-template-columns: 90% 10%;
    grid-template-rows: 50% 50%;
    box-sizing: border-box;
    padding: 1.5em;
    padding-left: 1em;
    width: 480px;
    height: 180px;
    background-image: url('./assets/images/pattern-ticket.svg');
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
}
.items-1 {
    grid-column: 1;
    grid-row: 1;
}
.items-2 {
    grid-column: 2;
    grid-row: span 2;
}
.items-3 {
    grid-column: 1;
    grid-row: 2;
}
.space-between {
    display: flex;
    align-content: space-around;
    flex-wrap: wrap;
    gap: 1em;
}
.center {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    overflow-x: hidden;
}
.p-1 {
    padding: 1em;
}
.github {
    width: 15px;
    height: 15px;
}
.count {
    font-size: 13px;
    color: var(--neutral-500);
}
.w-16 {
    width: 16%;
}
.w-80 {
    width: 70%;
}
.code {
    writing-mode: sideways-rl;
    color: var(--neutral-500);
}
.left {
    display: flex;
    justify-content: left;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}
.bottom {
    display: flex;
    justify-content: left;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 10px;
}
.align-top {
    align-content: start;
}
.left.align-top.items-1:first-child {
    align-items: start;
}
.logo-mark-title {
    width: 20px;
    height: 20px;
    margin-top: 2px;
}
.logo-mark {
    width: 26px;
    height: 26px;
    margin-top: 4px;
}
.text-center {
    text-align: center;
}
.title {
    font-size: 26px;
}
.title-2 {
    font-size: 28px;
    font-weight: 700;
}
.mt-2 {
    margin-top: 20px;
}
.gap-1 {
    gap: 1px;
}
.gap-2 {
    gap: 2px;
}
.mb-1 {
    margin-bottom: 1em;
}
.message-error {
    color: var(--orange-700);
}
.message-error-1, .message-error-2, .message-error-3 {
    width: 100%;
    display: none;
    color: var(--orange-700) !important;
}
.mb-2 {
    margin-bottom: 2em;
}
.avatar {
    width: 45px;
    height: 45px;
    border-radius: 8px;
}
.img-title {
    width: 58%;
}
.upload-description {
    color: var(--neutral-500);
    font-size: 12px;
    margin-left: 12px;
}
.description {
    color: var(--neutral-300);
    font-size: 16px;
}
.size-xs {
    font-size: 12px;
    margin-left: 8px;
}
.size-md {
    font-size: 14px;
    line-height: 150%;
}
.ticket-description {
    width: 100%;
    display: block;
    font-size: 12px;
    color: var(--neutral-500);
}
.ticket-title {
    word-break: normal;
    text-indent: 8px;
}
.fullname-write {
    word-break: break-all;
}
.w-full {
    width: 100%;
}
.w-md {
    width: 90%;
    line-height: 1.3;
}
.h-60 {
    height: 60%;
}
.h-50 {
    height: 50%;
}
.h-3 {
    height: 3.2em;
}
.squiggly-line-top {
    position: absolute;
    width: 30%;
    top: 10px;
    right: 0;   
}
.pattern-lines {
    position: absolute;
    width: 100%;
    height: 100vh;
    object-fit: cover;
    object-position: center;
    background-size: cover;
    left: 0;
    top: 0;
    z-index: -1;
}
form {
    max-width: 340px;
    z-index: 2;
}
.pattern-circle {
    position: absolute;
    top: -20px;
    left: -20px;
    width: 80px;
    height: 80px;
}
.pattern-circle-mobile {
    position: absolute;
    width: 90px;
    height: 90px;
    bottom: 50%;
    right: -15%;
}
.lines-bottom-mobile {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 65%;
    z-index: 1;
}
.lines-bottom-desktop {
    position: absolute;
    display: none;
}
.generated-tickets {
    display: none;
    width: 340px;
}
main {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}
/* ===========
    Responsive
============= */
@media screen and (min-width: 600px) and (max-width: 900px) {
    :root {
        --bg-image: url('./assets/images/background-tablet.png');
    }
    form {
        max-width: 400px;
        z-index: 2;
    }
    .title {
        font-size: 36px;
    }
    .ticket {
        padding: 1em;
        padding-left: 1em;
        width: 380px;
        height: 180px;
    }
}
@media screen and (min-width: 901px) {
    :root {
        --bg-image: url('./assets/images/background-desktop.png');
    }
    .ticket {
        padding: 1em;
        padding-left: 1em;
        width: 380px;
        height: 180px;
    }
    .title {
        font-size: 40px;
    }
    .generated-tickets {
        width: 470px;
        padding: 1em;
    }
    form {
        max-width: 600px;
        margin-left: 1em;
        margin-right: 1em;
    }
    input ,.btn-genere,.upload-area, .message, .message-error-1, .message-error-2, .message-error-3 {
        width: 400px;
    }
    main {
        padding: 1em;
    }
    .squiggly-line-top {
        display: inline;
        position: absolute;
        right: 0;
        top: 60px;
    }
    .pattern-circle {
        display: inline;
        position: absolute;
        top: 500px;
        right: 210px;
    }
    .lines-bottom-mobile {
        display: none;
    }
    img.lines-bottom-desktop {
        display: inline;
        position: absolute;
        left: 0;
        bottom: 0;
        width: 50%;
        z-index: 1;
    }
}