#matrix-canvas {
    border: 2px solid #555;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

canvas {
    display: block;
}

#matrix-info {
    margin-top: 10px;
    font-size: 14px;
    color: #aaa;
}

.swal2-html-container code {
    display: block;
    padding: 20px 50px;
    border-radius: 4px;
    background-color: #333;
    color: #fff;
    border: 1px solid #555;
    font-size: 12px;
}

.code-container {
    position: relative;
}

.copy-code {
    padding: 4px 8px;
    position: absolute;
    top: 5px;
    right: 5px;
}

.force-border-radius {
    border-top-left-radius: 4px !important;
    border-bottom-left-radius: 4px !important;
}

.nudgeX {
    animation: nudgeX-animation 0.3s ease-in-out;
}

.nudgeY {
    animation: nudgeY-animation 0.3s ease-in-out;
}

@keyframes nudgeX-animation {
    0% {
        transform: translateX(0);
    }

    20% {
        transform: translateX(-10px);
    }

    40% {
        transform: translateX(10px);
    }

    60% {
        transform: translateX(-5px);
    }

    80% {
        transform: translateX(5px);
    }

    100% {
        transform: translateX(0);
    }
}

@keyframes nudgeY-animation {
    0% {
        transform: translateY(0);
    }

    20% {
        transform: translateY(-10px);
    }

    40% {
        transform: translateY(10px);
    }

    60% {
        transform: translateY(-5px);
    }

    80% {
        transform: translateY(5px);
    }

    100% {
        transform: translateY(0);
    }
}

form.dropdown-menu {
    width: 18rem;
}

.generated-item p.card-text span {
    display: block;
    white-space: pre;
    text-align: right;
    font-style: italic;
    font-size: small;
}

/* Grid table */
table.no-wrap th,
table.no-wrap td {
    white-space: nowrap;
}

td.selected {
    background-color: rgba(var(--bs-primary-rgb), 0.5) !important;
    color: var(--bs-light) !important;
}

td.focused {
    outline: 2px solid var(--bs-primary) !important;
}

td.no-select {
    user-select: none;
    -webkit-user-select: none;
    /* Safari */
    -moz-user-select: none;
    /* Firefox */
    -ms-user-select: none;
    /* IE/Edge */
}

td.focused[contenteditable="true"] {
    background-color: var(--bs-light) !important;
    color: var(--bs-dark) !important;
}

th:hover {
    outline: 2x solid var(--bs-light) !important;
}

th img {
    width: 20px;
    vertical-align: middle;
    filter: invert(100%);
}

.th-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.th-wrapper span {
    text-align: left;
}

.th-wrapper img {
    text-align: right;
}

/* Grid table end */

#editor {
    width: 98vw;
    height: 90vh;
    position: relative;
    border: var(--bs-border-width) solid var(--bs-border-color);
    border-radius: var(--bs-border-radius);
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

@media (max-width: 600px) {
    #editor {
        width: 91vw;
        height: 89vh;
    }
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 */
    height: 0;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 80%;
    height: 80%;
}