﻿body {
    font-family: Arial, sans-serif;
}

.setting {
    margin-top: 1rem;
}

.setting > * {
    width: 100%;
}

label:after {
    content: ":";
}

#mtext {
    height: 4rem;
}

button.jscolor {
    height: 2rem;
    margin-bottom: .3rem;
    border: solid 1px grey;
    border-radius: .5rem;
}

#canvas {
    width: 100%;
    border: 1px solid black;
}

.window {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #eee;
    opacity: .99;
}

.windowCloseBtn {
    width: 2rem;
    height: 2rem;
    border: solid 2px #333;
    border-radius: 50%;
    margin: .2rem .2rem .2rem auto;
    display: block;
    font-size: 1.5rem;
    background: none;
}

.category {
    width: 100%;
    height: 5rem;
    display: flex;
    align-items: center;
    background-color: #aaa;
}

.category select {
    flex-grow: 1;
}

.pickerElement {
    display: flex;
    align-items: center;
}

.pickerElement {
    background-color: #eee;
}

.pickerElement:nth-child(even) {
    background-color: #ddd;
}

.pickerElement:hover {
    background-color: #ccc;
}

.pickerElement > img {
    width: 25%;
    background: #bbb;
}

.imageInfo {
    flex-grow: 1;
    text-align: center;
}

.imageInfo > small {
    display: block;
}

.imageInfo > button {
    display: block;
    margin: auto;
}

#originalImage, #croppingMask {
    position: absolute;
    max-width: 100%;
    max-height: 100%;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
}

#croppingMask {
    opacity: 0.3;
}

#saveImageImg {
    width: 100%;
}

@media (min-width: 600px) {
    .main {
        display: flex;
        width: 100%;
        justify-content: space-evenly;
    }

    .settings {
        margin-left: 2rem;
        margin-right: 2rem;
        min-width: 15rem;
    }
}