
* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
  text-align: center;
  font: 13px/1.231 arial, helvetica, clean, sans-serif;
  background: #fff;
  background: linear-gradient(0deg, rgba(255, 255, 255) 0%, rgba(233, 236, 242, 1) 100%); 
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: grey;
}

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

.oekaki {
    width: 920px;
    max-width: 100%;
    margin: 0 auto;
    position: relative;
    background: linear-gradient(0deg,rgba(208, 224, 242, 0.66) 0%, rgba(233, 236, 242, 1) 100%);
    border: 2px solid;
    border-color: #fff #40404042 #40404078 #fff;
    border-radius: 5px;
}


.titlebar {
  height: 26px;
  display: flex;
  align-items: center;
  padding: 3px 6px;
  color: white;
  font-weight: bold;
  background: linear-gradient( to right, #0000ff24, #61bdff61 );
}

.menubar {
    height: 27px;
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 2px 4px;

    border-bottom: 1px solid #808080;
}

.menu {
    position: relative;
}

.menu-button {
    border: 0;
    background: transparent;
    padding: 3px 10px;
}

.menu-button:hover,
.menu.open .menu-button {
    color: black;
    background: #a5b3bec1;
    border-radius:4px;
}

.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 100;
  width: 160px;
  padding: 3px;
  background: #ffffffa8;
  border: 2px solid;
  border-color: #fff #404040 #404040 #fff;
  border-radius: 5px;
}

.menu.open .dropdown {
    display: block;
}

.dropdown button {
    width: 100%;
    padding: 5px 8px;

    text-align: left;

    border: 0;
    background: transparent;
}

.dropdown button:hover {
    color: black;
    background:#a5b3bec1;
    border-radius:4px;
}

.separator {
    height: 1px;
    margin: 3px 0;

    background: #808080;
    border-bottom: 1px solid #fff;
}

.editor {
    height: 560px;
    display: flex;
    min-height: 0;
}

.toolbar {
    position: relative;
    width: 225px;
    flex-shrink: 0;

    padding: 7px;

    overflow-y: auto;

    border-right: 3px solid #000000b5;
}


.tool-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
}

.tool {
    height: 40px;
    padding: 0;

    font-size: 21px;
    border-radius:7px;
    color:black;
    border-color:#b7d0e8;
    background: linear-gradient(0deg,rgba(208, 224, 242, 0.66) 0%, rgba(233, 236, 242, 1) 100%);
}

.tool.active {
    background: #d7e2ef;

    border-color:
        #4040407d
        #40404051;
}

.section {
    margin-top: 12px;
    padding-top: 9px;

    border-top: 1px solid #808080;
}

.section label {
    display: block;
    margin-bottom: 6px;
    font-weight: bold;
}

.sizes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3px;
}

.sizes button {
  padding: 4px 2px;
  background: #ffffff73;
  border: 2px solid;
  border-color: #fff #a9a9a97a #888888a6 #fff;
  border-radius: 7px;
}

#size {
    display: block;
    width: 100%;
    height: 20px;
    margin: 8px 0 0;
    padding: 0;
}
#opacity {
    display: block;
    width: 100%;
    height: 20px;
    margin: 8px 0 0;
    padding: 0;
}
#size-value {
    margin-top: 3px;
    text-align: center;
}

#color,
#background-color {
    display: block;
    width: calc(50% - 3px);
    height: 34px;
    padding: 2px;
}

#color {
    float: right;
}

#background-color {
    float: left;
}


#palette {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 3px;
    margin-top: 7px;
    clear: both;
    padding-top:10px;
}

.palette-color {
    width: 100%;
    height: 20px;
    padding: 0;

    border: 2px solid;
    border-color: #fff #404040 #404040 #fff;
}

.canvas-column {
    flex: 1;
    min-width: 0;
    min-height: 0;

    display: flex;
    flex-direction: column;
}

.canvas-scroll {
    flex: 1;
    min-width: 0;
    min-height: 0;

    overflow: hidden;

    padding: 10px;

    display: flex;
    align-items: center;
    justify-content: center;

    background:
        repeating-conic-gradient(
            #d0d0d0 0% 25%,
            #eeeeee 0% 50%
        )
        0 0 / 20px 20px;

    border-bottom: 1px solid #808080;
}

.canvas-frame {
    width: 800px;
    max-width: 100%;
    height: auto;

    padding: 7px;

    background: #c0c0c0;

    border: 2px solid;
    border-color: #fff #404040 #404040 #fff;

    flex-shrink: 1;
}

.canvas-wrapper {
    width: 100%;
    max-width: 100%;

    line-height: 0;

    border: 1px solid #111;

    background:
        repeating-conic-gradient(
            #ddd 0% 25%,
            #fff 0% 50%
        )
        0 0 / 16px 16px;
}

#canvas {
    display: block;

    width: 100%;
    height: auto;

    max-width: 100%;

    background: transparent;

    touch-action: none;
    cursor: crosshair;
}

.statusbar {
    height: 23px;
    flex-shrink: 0;

    display: grid;
    grid-template-columns: 1fr 110px 100px;
    gap: 4px;

    padding: 2px 4px;
}

.statusbar span {
    display: flex;
    align-items: center;

    padding: 0 5px;

    border: 1px solid;
    border-color: #808080 #fff #fff #808080;
}

.submission {
    min-height: 48px;

    display: flex;
    align-items: center;
    gap: 5px;

    padding: 7px;

    border-top: 1px solid #fff;

    flex-wrap: wrap;
}



/*submission buttons*/
.submission input {
    height: 29px;

    padding: 4px 6px;

    background: white;
    border: 2px solid;
    border-color: #404040 #fff #fff #404040;
}

#artist-name {
    width: 130px;
}

#drawing-title {
    width: 220px;
}

#submit-button {
  height: 30px;
  margin-left: auto;
  padding: 4px 18px;
  font-weight: bold;
  border-color:#b7d0e8;
  background: linear-gradient(0deg,rgba(208, 224, 242, 0.66) 0%, rgba(233, 236, 242, 1) 100%); 
  border-radius: 8px;
  color:grey;
}

#submit-button:active {
    border-color: white;
    background:#b7d0e8;
    color:white;
}

#submit-status {
    min-width: 120px;
}

@media (max-width: 600px) {
    .toolbar {
        width: 175px;
    }

    #toolbar-toggle {
        display: block;
        position: absolute;
        top: 6px;
        right: -1px;
        z-index: 10;

        width: 22px;
        height: 34px;

        padding: 0;

        font-size: 18px;
        line-height: 1;

        background: #ffffff;
        border: 2px solid;
        border-color: #fff #404040 #404040 #fff;
        border-radius: 4px 0 0 4px;
    }

    .toolbar.collapsed {
        width: 30px;
        padding-left: 4px;
        padding-right: 4px;
        overflow: hidden;
    }

    .toolbar.collapsed #toolbar-toggle {
        right: 3px;
    }
}


    #drawing-title {
        width: 150px;
    }
    
    
    
.image {
    position: fixed;
    right: 15px;
    bottom: 15px;

    width: 120px;
    height: 120px;

    background-image: url("aquila.png");
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}


