@charset "UTF-8";

:root {
    --blur: 0px;
    --contrast: 100%;
    --grayscale: 0%;
    --hue-rotate: 0deg;
    --sepia: 0%;
    --brightness: 100%;
    --saturate: 100%;
    --invert: 0%;
}

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

body {
    display: grid;
    min-height: calc(100vh - 3rem);
    width: 100%;
    place-items: center;
    background-color: rgb(0, 22, 37)
}

header {
    display: grid;
    width: 100%;
    margin: 1rem;
    text-align: center;
}

header>h1 {
    color: white;
    font-family: "roboto condensed", system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

header p:nth-last-child(2) {
    color: white;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

header p:nth-last-child(1) {
    display: none;
    color: rgb(36, 117, 16);
    font-weight: bolder;
    background-color: white;
    padding: .3rem;
    margin: .3rem 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

a {
    color: green
}

@media (max-width: 735px) {
    header p:nth-last-child(1) {
        display: inline
    }
}

p {
    font-size: 1rem;
}

main {
    min-height: 100vh;
    min-width: auto;
    max-width: calc(100% -2rem);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    flex-wrap: no-wrap;
    margin: 1rem;

    background-color: rgb(0, 33, 55);
    border: 2px solid white;
    border-radius: .3rem;
    box-shadow: 1px 1px 20px -10px white;
}

#editar {
    position: absolute;
    top: -2px;
    color: transparent
}

div:has(>img) {
    z-index: 2;
}

img {
    filter: blur(var(--blur)) contrast(var(--contrast)) grayscale(var(--grayscale)) hue-rotate(var(--hue-rotate)) sepia(var(--sepia)) brightness(var(--brightness)) saturate(var(--saturate)) invert(var(--invert));

    max-width: calc(100% - 1rem);
    max-height: 93vmin;
    object-fit: scale-down;
    border-radius: .3rem;
    transition: 200ms linear;
    margin: 1rem;
}

#formulario {
    background-color: rgb(0, 33, 55);
    padding: .3rem;
    border: 2px solid white;
    border-radius: .3rem;
    box-shadow: 1px 1px 20px -10px white;
    margin: 1rem;
    text-align: center;
    z-index: 0;
}

label {
    display: inline-block;
    width: 6rem;
    text-align: left;
    margin: .3rem;
    color: black;
    font-size: 1rem;
    font-weight: bold;
    font-family: 'Courier New', Courier, monospace;
    color: white;
}

input[type=range] {
    margin: 1rem;
    height: .3rem;
}

.pRange {
    display: flex;
    justify-content: center;
    flex-wrap: no-wrap;
    padding: .3rem;
    margin: .3rem
}

@media (width <=900px) {
    main {
        flex-wrap: wrap;
    }

    .pRange {
        flex-wrap: wrap;
    }

    img {
        max-width: calc(100% - 2rem);
        max-height: 95vh;
    }
}

input[type=reset] {
    cursor: pointer;
    margin: .5rem auto;
    border: 2px solid white;
    border-radius: .2rem;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-weight: bold;
    color: white;
    background-color: transparent;
    padding: .5rem;
    transition: background-color 50ms linear;
}

input[type=reset]:active {
    background-color: rgba(0, 0, 0, 0.4);
}

input[type=file] {
    display: none;
}

#file_inpt>label {
    width: 80%;
    text-align: center;
    margin: 1rem 0;
    border-radius: .5rem;
    padding: .5rem;
    outline: 2px dashed white;
    cursor: pointer
}

#file_inpt>label:active {
    background-color: rgba(0, 0, 0, 0.4);
}

footer {
    display: grid;
    place-items: center;
    height: 3rem;
    width: 100%;
}

footer p {
    filter: blur(var(--blur)) contrast(var(--contrast)) grayscale(var(--grayscale)) hue-rotate(var(--hue-rotate)) sepia(var(--sepia)) brightness(var(--brightness)) saturate(var(--saturate));

    color: rgb(0, 22, 37);
    font-weight: bolder;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

/* modal */

#abrir_modal {
    font-weight: 900;
    font-size: 1.5rem;
    outline: 2px solid black;
    padding: 10px 20px;
    border-radius: 50%;
    position: fixed;
    bottom: 10px;
    right: 10px;
    z-index: 1;
}

#modal {
    padding: 20px;
    padding-bottom: 10px;
    margin: auto auto;
    outline: 1px solid black;
    text-align: center;
}

#fechar_modal {
    background-color: #9f2222;
    margin: 10px;
    outline: 1px solid black;

    cursor: pointer;
    border: 1px solid black;
    border-radius: .2rem;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-weight: bold;
    color: white;
    padding: .5rem;

}
