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

body {
    font-family: 'Crimson Text', serif;
    font-size: 1.2em;
    margin: 0.5em 2em;
}

p {
    margin: 0.8em 0 0 0;
}

a {
    color: black;
    text-decoration: underline dotted #888;
    font-weight: bold;
}
a:hover {
    color: #888;
    background-color: #DDD;
}

h1, h2, h3, h4, h5 {
    font-family: 'Kanit', sans-serif;
    font-variant: small-caps;
}


code {
    font-size: 0.9em;
    padding: 0 4px;
    background-color: rgba(200, 200, 100, 0.4);
    color: #333;
}

#qr-code {
    z-index: 20;
    display: inline-block;
    position: absolute;
    right: 20px;
    top: 20px;
    transform: scale(0.5);
    transform-origin: top right;
}
#qr-code:hover {
    transform: none;
}

#main-container {
    position: relative;
    height: 100%;
    margin: 0;
}

.panel {
    display: inline-block;
    position: absolute;
    width: 20%;
    min-width: 200px;
    height: 15%;
    min-height: 200px;
    border-radius: 4px;
    background-color: #DDD;
    padding: 8px;
    cursor: grab;
}

.panel.dragging {
    opacity: 0.4;
    cursor: grabbing;
    filter: drop-shadow(10px 4px 2px #333);
    z-index: 21;
}

.panel-text {
    margin: 3px;
    cursor: text;
}


.panel-button-edit {
    opacity: 0.2;
    position: absolute;
    top: 5px;
    right: 5px;
}
.panel:hover .panel-button-edit {
    opacity: 1.0;
}
