/* CSS: form.css */


@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@400;700&family=Open+Sans:ital,wght@0,400;0,700;1,400;1,700&display=swap');


:root {
    --text-color: #424242;
    --image-max-width: 553px;
    --image-max-height: 311px;
    --vertical-space: 30px;
    --text-font-size: 15px;
    --title-font-size: 48px;
    --verdict-font-size: 86px;
}

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

body {
    font-family: 'Open Sans', sans-serif;
    font-size: var(--text-font-size);
    margin: var(--vertical-space);
    color: var(--text-color);
}

h1 {
    font-family: 'Dancing Script', cursive;
    font-size: var(--title-font-size);
    font-weight: bold;
    margin: var(--vertical-space) 0;
    letter-spacing: 1.2px;
}

a {
    color: #2f7bbf;
}

p {
    line-height: 1.45em;
    margin: var(--vertical-space) 1px;
}

footer {
    font-size: 0.7em;
    padding: 1ex 0 0 2px;
    margin-top: var(--vertical-space);
    color: #888;
    border-top: 1px solid #ccc;
}

footer .credits {
    display: inline-block;
    margin-top: 4px;
}

footer .twitter {
    float: right;
    margin-right: 2px;
}

.instructions {
    font-size: 0.8em;
    color: #888;
}

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

label[for="file"] {
    display: inline-block;
    border-radius: 3px;
    padding: 8px 14px;
    cursor: pointer;
    color: var(--text-color);
    background: #fff;
    border: 1px solid #bbb;
}

label[for="file"]:hover {
    background: #eee;
}

label[for="file"]:active {
    background: #f5f5f5;
}

#container {
    width: calc(var(--image-max-width) + 30px);
    margin: 0 auto;
}

#output_wrapper {
    margin: var(--vertical-space) 0;
    padding: 12px;
    border: 1px solid #eee;
    border-radius: 3px;
    width: fit-content;
    background: repeating-linear-gradient(-45deg, #f4f4f4, #f4f4f4 10px, #fafafa 10px, #fafafa 20px);
    position: relative;
    overflow: hidden;
}

output {
    display: flex;
    justify-content: center;
    align-items: center;
    width: var(--image-max-width);
    height: var(--image-max-height);
    border-bottom: 2px dashed transparent;
}

output img {
    object-fit: contain;
    max-width: var(--image-max-width);
    max-height: var(--image-max-height);
}

output::before {
    display: inline-block;
    position: absolute;
    width: 100%;
    bottom: 0; left: 0;
    padding: 8px 14px;
    font-weight: bold;
    font-size: 0.9em;
    text-shadow: white 0 0 8px;
}

output.detecting::before {
    content: 'Smelling the aromas...';
    color: #777;
    background: #e5e5e5e0;
}

output.error::before {
    content: 'Something wrong happened!';
    color: #690606;
    background: #f59191e0;
}

output.unacceptable_type::before {
    content: 'Sorry. Can\'t upload this file type.';
    color: #5f3c06;
    background: #fdbf63e0;
}

output.unacceptable_size::before {
    content: 'Sorry. This image is just too big.';
    color: #5f3c06;
    background: #fdbf63e0;
}

output.none::before {
    content: '?';
    width: 80%;
    bottom: 33%; left: 8%;
    font-size: var(--verdict-font-size);
    text-align: center;
    text-shadow: #fff 0 0 3px;
    color: #fffffcc0;
}

output.yes::before {
    content: 'Nata :)';
    width: 80%;
    bottom: 33%; left: 8%;
    font-size: var(--verdict-font-size);
    text-align: center;
    text-shadow: #ffff00 0 0 10px;
    color: #04ff04;
}

output.no::before {
    content: 'Not Nata';
    width: 80%;
    bottom: 33%; left: 8%;
    font-size: var(--verdict-font-size);
    text-align: center;
    text-shadow: #fff 0 0 10px;
    color: #ff0404;
}

@media only screen and (max-width: 768px) {
    :root {
        --image-max-width: 72vw;
        --image-max-height: 40.5vw;
        --title-font-size: 6vw;
        --text-font-size: 13px;
        --verdict-font-size: 10vw;
    }
}

@media only screen and (max-width: 600px) {
    :root {
        --image-max-width: 72vw;
        --image-max-height: 40.5vw;
        --title-font-size: 34px;
    }
}


/* EOF - form.css */
