/* -------------------- GENERAL -------------------- */

*,
html {
    font-weight: 300;
    scroll-behavior: smooth;
    box-sizing: border-box;
}

@font-face {
    font-family: 'upright';
    src: url('../fonts/Upright.otf') format('opentype');
}

/* -------------------- BODY -------------------- */

body {
    background-color: #ffffff;
    font-family: 'upright', sans-serif;
    margin: 0;
    padding: 0;

}

/* -------------------- HEADER -------------------- */

header {
    background-color: #202020;
    text-align: center;
    padding: 0.5rem 0;
}

header h1 {
    font-size: 3.8rem;
    color: white;
    -webkit-text-stroke: 1.5px black;
    margin: 0;
}

/* -------------------- CONTAINER -------------------- */

.container {
    max-width: 500px;
    background-color: #dedede;
    border: 2px solid #000000;
    margin: 2rem auto;
    padding: 1.5rem;
    box-sizing: border-box;
}

#textInput {
    height: 120px;
    width: 100%;
    background-color: #FEFEFE;
    border: 2px solid #000000;
    font-family: 'upright', sans-serif;
    font-size: 1.5rem;
    margin-top: 1rem;
    padding: 1rem;
    resize: none;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

#textInput::placeholder {
    color: #202020;
}

#textInput:focus {
    border-color: #505050;
    outline: none;
}

#textInput:focus::placeholder {
    color: #505050;
}

/* -- BUTTONS -- */
#buttons {
    margin-top: 1em;
    margin-bottom: 1em;
    display: flex;
    gap: 1em;
    justify-content: center;
}

#changePictureBtn,
#downloadBtn {
    background-color: #ffffff;
    border: 2px solid #000000;
    font-family: 'upright', sans-serif;
    font-size: 1.5rem;
    color: #202020;
    padding: 0.5em 1.0em;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
    cursor: pointer;
}

#changePictureBtn:hover,
#downloadBtn:hover {
    background-color: #f5f5f5;
    border-color: #505050;
    color: #505050;
}

/* -- DROP AREA -- */
.drop-area {
    background-color: #ffffff;
    border: 2px solid #000000;
    text-align: center;
    font-size: 1.5rem;
    color: #202020;
    margin: 1rem 0;
    padding: 2rem;
    position: relative;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
    cursor: pointer;
}

.drop-area:hover {
    background-color: #f5f5f5;
    border-color: #505050;
    color: #505050;
}

.drop-area input[type="file"] {
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    position: absolute;
    cursor: pointer;
}

/* -- IMAGE CONTAINER -- */
.image-container {
    text-align: center;
    margin-top: 1rem;
}

canvas#canvas {
    max-width: 100%;
    border: 2px solid #000000;
}

/* -------------------- FOOTER -------------------- */

.footer {
    background-color: #202020;
    font-size: 1.45rem;
    text-align: center;
    color: #ffffff;
    -webkit-text-stroke: 0.8px black;
    padding: 0.8rem 0;
}

.footer-content {
    max-width: 700px;
    margin: 0 auto;
}

.footer-text p {
    margin: 0 0 0.3rem 0;
    color: #ffffff;
}

.footer-text a {
    color: #ffffff;
    text-decoration: #505050 underline;
    transition: color 0.3s ease;
}

.footer-text a:hover {
    color: #dedede;
}

/* -------------------- RESPONSIVE -------------------- */

@media (max-width: 600px) {

    html,
    body {
        height: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        display: flex !important;
        flex-direction: column !important;
    }

    .container {
        max-width: 95vw !important;
        width: 95vw !important;
        margin: auto auto 0 auto !important;
    }

    .footer {
        margin-top: auto !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
}

@media (min-width: 601px) and (max-width: 900px) {

    html,
    body {
        height: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        min-height: 100vh !important;
        display: flex !important;
        flex-direction: column !important;
    }

    .container {
        margin: auto !important;
        max-width: 95vw !important;
        width: 95vw !important;
        box-sizing: border-box !important;
        flex-shrink: 0 !important;
        margin-top: 1.5rem !important;
        margin-bottom: 1.5rem !important;
    }

    .footer {
        margin-top: auto !important;
        width: 100% !important;
        box-sizing: border-box !important;
        flex-shrink: 0 !important;
    }
}