@import url('https://fonts.googleapis.com/css2?family=Inconsolata:wght@200..900&display=swap');

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

: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%);
    --Orange-500: hsl(7, 88%, 67%);
    --Orange-700: hsl(7, 71%, 60%);
}

body {
    background: url(./assets/images/background-mobile.png) no-repeat;
    background-size: cover;
    background-position: center;
    color: white;
    font-family: "Inconsolata", serif;
}

main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    width: 100vw;
    height: 100vh;
    background: url(./assets/images/pattern-circle.svg) no-repeat right center;
    position: relative;
}

main:before {
    content: "";
    background: url(./assets/images/pattern-lines.svg);
    width: 100%;
    height: 100%;
    position: absolute;
}

main::after {
    content: "";
    background: url(./assets/images/pattern-squiggly-line-bottom.svg) no-repeat left bottom;
    width: 100%;
    height: 100%;
    position: absolute;
}

section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--Neutral-0);
    margin: 1rem;
    min-width: 320px;
    z-index: 1;
}

.form__top {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
}

.form__top h1 {
    font-size: 2rem;
    font-weight: 800;
}

.form__top img {
    width: 150px;
}

.form__start {
    margin-top: 2rem;
}

form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form__input {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.form__line {
    border: solid 1px var(--Neutral-700);
    border-radius: .8rem;
    gap: .8rem;
    cursor: pointer;
    text-align: center;
}

.form__line img {
    background-color: var(--Neutral-700);
    border-radius: 8px;
    padding: .5rem;
}

.form__input input {
    background: transparent;
    width: 100%;
    outline: none;
    border: none;
    border-radius: 1rem;
    padding: .8rem;
    background-color: var(--Neutral-900);
    color: var(--Neutral-300);
}

#avatar__area {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    border: dotted 2px var(--Neutral-700);
}

.form__input #avatar {
    cursor: pointer;
    outline: dotted solid 1px;
    border: dotted solid 1px;
    background: transparent;
    backdrop-filter: blur(2px) saturate(100%);
    padding: 1rem;
    display: flex;
    flex-direction: column;
}

.upload__box {
    display: none;
}

form button {
    width: 100%;
    padding: .8rem;
    border: none;
    border-radius: .5rem;
    background: var(--Orange-500);
    cursor: pointer;
    transition: ease-in-out .5s;
    font-weight: 600;
}

form button:hover {
    background-color: var(--Neutral-500);
    color: white;
    transition: ease-in-out .5s;
}

.error-msg {
    font-size: .8rem;
    color: var(--Orange-700);
}

.error-style {
    border: solid 1px var(--Orange-700);
}

.form__ticket {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.fullname {
    font-weight: 800;
    background: -webkit-linear-gradient(hsl(7, 86%, 67%), hsl(0, 0%, 100%));
    -webkit-background-clip: text;
    color: transparent;
}

.form__ticket h2 {
    font-size: 2rem;
    text-align: center;
}

.form__ticket p {
    font-size: 1rem;
    text-align: center;
}

#fullemail {
    color: var(--Orange-500);
}

.ticket {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    justify-content: center;
    background: url(./assets/images/pattern-ticket.svg) no-repeat;
    padding: 1rem;
    width: 360px;
    height: 160px;
    background-size: contain;
    margin-top: 2rem;
}

.ticket__top {
    display: flex;
    width: 100%;
    gap: 1rem;
}

.ticket__top__text {
    display: flex;
    flex-direction: column ;
    gap: .5rem;
}

.ticket__top__text span {
    font-size: 1.5rem;
}

.ticket__bottom {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.ticket__bottom img {
    height: 50px;
    border-radius: 11px;
}

.ticket__bottom__text {
    display:flex;
    flex-direction: column;
    gap: .5rem;
}

.ticket__bottom__text span {
    font-size: 1.5rem;
}

.ticket__bottom__github {
    display: flex;
    align-items: center;
}

.ticket__bottom__github img {
    height: 100%;
}

.ticket__bottom__github span {
    font-size: 1rem;
}
    
.hide {
    display: none;
}

.attribution { 
    font-size: 11px; text-align: center; 
}

.attribution a { 
    color: hsl(228, 45%, 44%);
}


@media (min-width: 1100px) {
    body {
        background: url(./assets/images/background-tablet.png) no-repeat;
        background-size: cover;
        background-position: center;
    }

    section {
        min-width: 500px;
    }
}

@media (min-width: 1800px) {
    body {
        background: url(./assets/images/background-desktop.png) no-repeat;
        background-size: cover;
        background-position: center;
    }
}