@font-face {
    font-family: 'Inconsolata';
    src: url(assets/fonts/Inconsolata-VariableFont_wdth,wght.ttf);
    font-style: normal;
}

:root {
    --main-bg-color: rgb(83, 85, 85);
    --main-text-color: aliceblue;
    --card-bg-color: rgba(255, 255, 255, 0.122);
    --button-bg-color: rgb(225, 97, 81);
    --highlight-color: hsl(7, 86%, 67%);
}

body {
    font-family: Inconsolata;
    height: 100vh;
    width: 100vw;
    background-color: var(--main-bg-color);
    background-image: url(assets/images/background-desktop.png);
    background-size: cover;
    display: flex;
    flex-direction: column; 
    justify-content: space-between; 
    align-items: center; 
    color: var(--main-text-color);
    background-attachment: fixed;
    box-sizing: border-box;
}

form {
    text-align: center;
    display: block;
    margin-bottom: 0;
}

h1 {
    font-weight: 800;
}

.card {
    margin-top: 3.125rem; 
    text-align: left;
    height: 37.5rem; 
    width: 25rem; 
    position: relative;
    margin-left: 2em;
}

.card input {
    margin: 0.3125rem; 
    height: 2.1875rem; 
    width: 100%;
    display: block;
    background-color: var(--card-bg-color);
    border: none;
    border-radius: 0.3125rem; 
    color: var(--main-text-color);
}

.card input:focus {
    border: none;
    outline: none;
}

#info-container {
    font-size: x-small;
}

#file-icon {
    width: 100%;
    height: 5em;
    display: flex;
    flex-flow: column;
    background-color: var(--card-bg-color);
    align-items: center;
    justify-content: center;
    border-radius: 0.625rem; 
    border: dashed gray 1px;
}

#file-icon label {
    cursor: pointer;
}

#avatar-input {
    display: none;
}

.card button {
    background-color: var(--button-bg-color);
    height: 2.1875rem; 
    width: 100%;
    border-radius: 0.625rem; 
    margin-top: 0.625rem; 
    padding: 0.375rem; 
}

#ticket-container {
    position: absolute;
    margin-top: 2em;
    padding: 1em;
    text-align: center;
    color: var(--main-text-color);
    display: none;
}

#ticket-Name {
    color: var(--highlight-color);
}

#ticketLogo {
    position: absolute;
    bottom: 40%;
    left: 5%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.3125rem; 
    border-radius: 0.3125rem; 
    color: white;
    font-size: 1em;
}

#ticketCredentials {
    position: absolute;
    bottom: 10px;
    left: 20%;
    display: flex;
    align-items: center;
    padding: 0.3125rem; 
    border-radius: 0.3125rem; 
    color: white;
    top: 85%;
    left: 25%;
    height: fit-content;
    transform: translate(-50%, -50%);
    width: fit-content;

}

#ticketCredentials img {
    margin-right: 0.3125rem; 
    margin-left: 0.625rem; 
}

#ticket-avatar {
    width: 6.25rem; 
    height: 6.25rem; 
    border-radius: 50%;
}

.attribution {
    font-size: 0.9375rem; 
    text-align: center;
}

.attribution a {
    color: hsl(77, 76%, 54%);
}

#error {
    color: red;
    font-size: 0.8em;
    margin-top: 0.3125rem; 
}

#ticket-container p {
    font-size: 1.2em;
}

@media (max-width: 600px) {
    body {
        flex-direction: column;
       width: 100vw;
      height: 100vh;
        align-items: center;
        padding: 1em;

    }

    .card {
        width: 90%;
        margin-left: 0;
    }
    .ticket {
        width: 50%;
        overflow: hidden;
    }

    #ticket-container {
        width: 100%;
        padding: 1em;
        margin-top: 1em;
        flex-direction: column;
         align-items: center;
         padding: 1em;
    
    }

    #ticketCredentials {
        flex-direction: row;
        align-items: center;
        text-align: center;
        top: 86%;
        left: 30%;
        transform: translate(-50%, -50%);
    }

    #ticketCredentials img {
        margin: 0.5em 0;
    }

    #ticketLogo {
        bottom: 40%;
        left: 30%;
        transform: translateX(-50%);
    }
}