@import "../fonts/noto-sans/standard.css";

html, body {
    height: 100%;
    overflow: hidden;
    font-family: 'Noto Sans Variable', Verdana, system-ui, sans-serif;
}

body {
    margin: 0;
    padding: 8pt;
    background: #eee;
    box-sizing: border-box;
}

form#feedback {
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    border: thin solid #ccc;
    border-radius: 8px;
    overflow: hidden;
}

textarea#kukarek {
    width: 100%;
    margin: 0;
    padding: 8px 12px;
    box-sizing: border-box;
    flex: 1;
    font-family: 'Noto Sans Variable', Verdana, system-ui, sans-serif;
    border: none;
    border-bottom: thin solid #ccc;
    resize: none;
    outline: none;
}

#bar {
    display: flex;
    align-items: center;
    overflow: hidden;
}

#info {
    flex: 1;
    display: flex;
    align-items: center;
}

#ohno, #itstoobig {
    font-size: 8pt;
    color: crimson;
    user-select: none;
}

#counter {
    width: 4ch;
    margin: 0 16px;
    padding: 0;
    color: #996793;
    background: none;
    font-weight: bold;
    border: none;
    outline: none;
}

img#kaptscha {
    width: 100px;
    height: 35px;
}

input#ebash {
    min-width: 7ch;
    max-width: 11ch;
    color: #333;
    outline: none;
    font-size: 10pt;
    font-weight: bold;
    text-align: center;
    border-radius: 6px;
    border: thin solid #ccc;
    margin: 0.5em 1em;
    height: 2em;
}

input#send {
    background-color: transparent;
    background-image: url(/imgs/buttons/koodah.svg);
    background-size: 32px;
    background-repeat: no-repeat;
    background-position: center;
    padding: 0;
    width: 40px;
    height: 40px;
    color: transparent;
    margin: 0 .5em 0 0;
    cursor: pointer;
    font-size: 17pt;
    border: none;
    transition: background .1s ease-in-out;
}
input#send:hover {
    transition: background .1s ease-in-out;
}
input#send:active {
    transition: background .1s ease-in-out;
}



#message_sent {
    text-align: center;
}

#message_sent h3 {
    color: #996793;
}

#identifier {
    font-size: 10pt;
    text-align: center;
    color: #555;
    font-style: italic;
}

#moar {
    display: inline-block;
    color: #efefef;
    background: #996793;
    margin-top: 16px;
    padding: 4px 8px;
    text-decoration: none;
    font-size: 9pt;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 4px;
    transition: background .1s ease-in-out;
}
#moar:hover {
    background-color: #a5739f;
    transition: background .1s ease-in-out;
}
#moar:active {
    color: #ddd;
    background-color: #674062;
    transition: background .1s ease-in-out;
}

@media (max-width: 320px) {
    #counter {
	display: none;
    }
    #ohno {
	display: none;
    }
}

@media handheld {
    input, textarea {
	font-size: 24pt;
    }

    img#kaptscha {
	width: 200px;
	height: 70px;
    }
}

@media (orientation: portrait) {
    form#feedback {
	flex-direction: column-reverse;
	display: grid;
        grid-template:
        "bar" 5em
        "kukarek" auto
        "keyboard" env(keyboard-inset-height, 0px);
    }
    textarea, input {
	font-size: 3em;
    }
    textarea#kukarek {
	border-bottom: none;
	border-top: thin solid #ccc;
	grid-area: kukarek;
    }
    #bar {
	height: 5em;
	grid-area: bar;
    }
    img#kaptscha {
	height: 5em;
	width: auto;
	margin: 0 1em;
    }
    input#ebash {
	height: 60px;
	font-size: 24pt;
	margin: 0 .5em;
	padding: 0;
	line-height: 5em;
	width: 7ch;
    }
}
