@font-face {
    font-family: "Shadows Into Light";
    src: url("/fonts/ShadowsIntoLight-Regular.ttf") format("truetype");
}

.widget-area {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    grid-template-rows: repeat(12, 1fr);
    position: relative;
}

.widget {
    position: relative;
    padding: 1.5em;
    margin: 0.2em;
    overflow: hidden !important;
}

.widget.text {
    box-shadow: 0 0 3px rgba(0, 0, 0, 0.5);
    background: #faffe3;
    border-radius: 0.375rem;
    overflow: hidden !important;
}

.widget.sticky-note {
    font-family: "Shadows Into Light";
    font-size: 1.2vw;
    font-weight: 600;
    text-decoration: none;
    color: #000;
    background: #ffc;
    padding: 1em;
    -moz-box-shadow: 5px 5px 7px rgba(33, 33, 33, 1);
    -webkit-box-shadow: 5px 5px 7px rgba(33, 33, 33, .7);
    box-shadow: 5px 5px 7px rgba(33, 33, 33, .7);
    -moz-transition: -moz-transform .15s linear;
    -o-transition: -o-transform .15s linear;
    -webkit-transition: -webkit-transform .15s linear;
    transition: transform .15s linear;
    overflow: hidden !important;
}

.sticky-note:nth-child(even) {
    transform: rotate(4deg);
    top: 5px;
    background: #cfc;
}

.sticky-note:nth-child(3n) {
    transform: rotate(-3deg);
    top: -5px;
    background: #ccf;
}

.sticky-note:nth-child(5n) {
    transform: rotate(5deg);
    top: -10px;
}

.image-widget {
    border: none;
    overflow: hidden !important;
}

div:has(> .image-widget) {
    box-shadow: none !important;
}

.grid-cell {
    position: relative;
    border-bottom: 1px dashed #8d857b;
    border-right: 1px dashed #8d857b;
    box-sizing: border-box;
    pointer-events: none;
}

.move-button {
    cursor: grab;
    position: absolute;
    top: 0;
    left: 4px;
}

.resize-button {
    cursor: nwse-resize;
    position: absolute;
    transform: rotate(45deg);
    bottom: -6px;
    right: 0;
}

.delete-button {
    position: absolute;
    top: 0;
    right: 4px;
    cursor: pointer;
    background-color: transparent;
    border: none;
    padding: 2px;
}

iframe {
    overflow: hidden !important;
}

.clock-widget {
    background: #3a3a3a;
    color: #fafafa !important;
    border: 5px solid #000;
    border-radius: 20px;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.6);
    perspective: 1000px;
    transform-style: preserve-3d;
}


.clock-face {
    text-shadow: 2px 2px 3px rgba(0, 0, 0, 0.3);
}

.qr-code {
    width: 7vw;
    max-width: 200px;
    position: absolute;
    border-radius: 0.5vw;
    right: 3vh;
    bottom: calc(var(--spacing) * 22);
    user-select: none;
    z-index: 70;
    /* Ensure it's way higher than the widgets */
    box-shadow: rgba(0, 0, 0, 0.4) 0px 2px 4px,
        rgba(0, 0, 0, 0.3) 0px 7px 13px -3px, rgba(0, 0, 0, 0.2) 0px -3px 0px inset;
}

.widget-editing {
    background-color: #ffc;
    border-radius: 0.375em;
}


itemcontent {
    display: block;
    width: 100%;
    height: 100%;
    overflow: auto;
    box-sizing: border-box;
    white-space: pre-wrap;
    word-wrap: break-word;
    word-break: break-word;
}