*{
    font-family: 'Roboto', sans-serif;
}

html {
    width: 100%;
    height: 100%;
    overflow: auto;
    overscroll-behavior: none;
    user-zoom: fixed;
    font-family: Arial, Helvetica, sans-serif;
}

body {
    display: grid;
    grid-template-rows: 60px calc(100% - 60px);
    grid-template-areas:
        "menu"
        "body";
    overflow: auto;
    width: 100%;
    height: 100%;
    margin: 0;
    user-select: none;
    background-color: #e3e3e5;
}

#app-body {
    grid-area: body;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: 80px auto 260px;
    grid-template-areas:
        "toolbar canvas infopanel";
}

/*************** Menu ***************/

#menu {
    position: relative;
    box-sizing: border-box;
    grid-area: menu;
    height: 60px;
    background-color: #313337;
    border-bottom: 1px solid #424347;
    -webkit-box-shadow: 0px 4px 11px 0px rgba(61, 61, 61, 0.75);
    -moz-box-shadow: 0px 4px 11px 0px rgba(61, 61, 61, 0.75);
    box-shadow: 0px 4px 11px 0px rgba(61, 61, 61, 0.75);
}

#menu #app-title {
    width: 100%;
    min-width: 100%;
    display: flex;
    align-content: center;
    justify-content: center;
    color: white;
    font-size: 60px;
}

#menu #room-id {
    position: absolute;
    right: 0px;
    top: 0px;

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

    color: #b9b9b9;
    font-size: 40px;
}

/*************** Toolbar ***************/

#toolbar {
    grid-area: toolbar;
    display: flex;
    flex-direction: column;
    align-content: center;
    width: 80px;
    background-color: #2F3034;
}

#toolbar button {
    background-color: #2F3034;
    width: 70px;
    height: 70px;
    background-repeat: no-repeat;
    background-size: 140px 70px;
    background-position: 0px 0px;
    border: none;
    padding: 0;
    margin: 0;
    margin-right: auto;
    margin-left: auto;
}

#toolbar button:focus {
    outline:0;
}


#toolbar button.selected {
    background-position: -70px 0;
}

#toolbar #freeform-button {
    background-image: url("../img/pen.svg");
}

#toolbar #select-button {
    background-image: url("../img/select.svg");
}

/*************** Canvas ***************/

#canvas {
    grid-area: canvas;
    width: 100%;
    height: 100%;
}

#canvas svg {
    width: 100%;
    height: 100%;
}

#canvas svg path {
    stroke-linecap: round;
    stroke-linejoin: round;
}

.selection-rect {
    fill: none;
    stroke-width: 2px;
}

#canvas path.in-creation {
    fill: none;
    stroke: black;
    stroke-width: 2px;
}

/*************** Info Panel ***************/

#info-panel {
    grid-area: infopanel;
    width: 260px;
    background-color: #333437;
}

/*************** Login Pop up *************/

#login-screen {
    position: absolute;
    top: 0px;
    width: 100%;
    height: 100%;
}

#login-screen-background {
    position: absolute;
    width: 100%;
    height: 100%;

    background-color: black;
    opacity: 0.75;
}

#login-popup {
    position: absolute;
    margin: auto;
    top: 25%;
    left: 0px;
    right: 0px;

    width: 450px;

    background-color: white;
    border-radius: 5px;
}

#login-popup h1 {
    text-align: center;
    color: #313337;
    font-size: 3em;
    margin-top: 10px;
    margin-bottom: 10px;
}

#join-room-div {
    margin-bottom: 50px;
    text-align: center;
}

#join-room-div label {
    font-size: 2em;
}

#join-room-div input[type="text"] {
    height: 1.5em;
}


#login-popup #join-room-button {
    display: block;
    margin: 5px;
    margin-left: auto;
    margin-right: auto;

    height: 2em;
    width: 11em;

    border: none;
    border-radius: 5px;
    background: #313337;
    color: white;
    font-size: 1.5em;
}

#login-popup #new-room-button {
    border: none;
    background: white;
    color: blue;
}

#login-popup #new-room-div {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

/**************
Info Panel
**************/

.info-panel-element {
    background-color: #3F4147;
    padding-bottom: 4px;
    min-height: 64px;
}

.info-panel-element .header {
    background-color: #2F3133;
    color: white;
    font-size: 20px;
    margin-bottom: 6px;
    padding: 4px;
}

/**************
Pickers
**************/

#stroke-picker input {
    margin-left: 9px;
}

#stroke-picker input[type="text"] {
  width: 20px;
}

#stroke-picker label {
    margin-left: 2px;
    color: white;
}

#fill-picker {
    position: relative;
}

#fill-picker select {
    position: absolute;
    left: 14px;
}

#fill-picker input {
    position: absolute;
    right: 14px;
}

/*******************
peer-list
*******************/
#peer-list .body {
    display: flex;
    margin: 2px;
    flex-wrap: wrap;
}

.peer-circle {
    width: 30px;
    height: 30px;

    border-radius: 50%;
    border-width: 3px;
    border-style: solid;
    background: white;
    margin-left: 5px;
    margin-bottom: 5px;

    text-align: center;
    line-height: 30px;
    color: #555555;
    font-size: 13px;
}

.peer-circle.main-circle {
    background: #555555;
    color: white;
}
